Overview
DomoAI Enterprise API accepts various input types depending on the endpoint. This page provides comprehensive documentation on all supported input formats, size limits, and requirements.
Images can be provided via Base64-encoded data or domoai_uri (for files uploaded via the File Upload API).
| Method | Size Limit |
|---|
| Base64 String | 10 MB |
| File Upload (domoai_uri) | 10 MB |
| Format | File Extensions | Content Type |
|---|
| JPEG | .jpg, .jpeg | image/jpeg |
| PNG | .png | image/png |
| WebP | .webp | image/webp |
| AVIF | .avif | image/avif |
The API validates actual image content, not just file extensions. Ensure your images are in one of the supported formats.
Base64 Method
{
"image": {
"bytes_base64_encoded": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJ..."
}
}
domoai_uri Method
For larger files, use the File Upload API to get a domoai_uri:
{
"image": {
"domoai_uri": "domoai://eyJhbGciOiJIUzI1NiIs..."
}
}
Text Inputs (Prompts)
Prompts describe the desired output and guide the AI generation process.
Prompt Specifications
| Format | Limit | Details |
|---|
| Text | 2,000 characters | Counted as Unicode characters |
Audio can be provided via Base64-encoded data or domoai_uri (for files uploaded via the File Upload API).
| Method | Size Limit |
|---|
| Base64 String | 10 MB |
| File Upload (domoai_uri) | 80 MB |
| Format | File Extensions | Content Type |
|---|
| MP3 | .mp3 | audio/mpeg |
| WAV | .wav | audio/wav |
| AAC | .aac | audio/aac |
| FLAC | .flac | audio/flac |
{
"audio": {
"bytes_base64_encoded": "SUQzAgAAAAAPdlRDTQAA...",
// OR
"domoai_uri": "domoai://eyJhbGciOiJIUzI1NiIs..."
}
}
For audio files, we recommend using the File Upload API as audio files are typically larger than images.
Video can be provided via Base64-encoded data or domoai_uri (for files uploaded via the File Upload API).
| Method | Size Limit |
|---|
| Base64 String | 10 MB |
| File Upload (domoai_uri) | 80 MB |
| Format | File Extensions | Content Type |
|---|
| MP4 | .mp4 | video/mp4 |
| WebM | .webm | video/webm |
| MOV | .mov | video/quicktime |
| AVI | .avi | video/x-msvideo |
{
"video": {
"bytes_base64_encoded": "AAAAHGZ0eXBtcDQy...",
// OR
"domoai_uri": "domoai://eyJhbGciOiJIUzI1NiIs..."
}
}
Video files are typically large. We strongly recommend using the File Upload API for video inputs.
Next Steps