Skip to main content

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.

Image Inputs

Images can be provided via Base64-encoded data or domoai_uri (for files uploaded via the File Upload API).
MethodSize Limit
Base64 String10 MB
File Upload (domoai_uri)10 MB

Supported Image Formats

FormatFile ExtensionsContent Type
JPEG.jpg, .jpegimage/jpeg
PNG.pngimage/png
WebP.webpimage/webp
AVIF.avifimage/avif
The API validates actual image content, not just file extensions. Ensure your images are in one of the supported formats.

Image Input Format

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

FormatLimitDetails
Text2,000 charactersCounted as Unicode characters

Audio Inputs

Audio can be provided via Base64-encoded data or domoai_uri (for files uploaded via the File Upload API).
MethodSize Limit
Base64 String10 MB
File Upload (domoai_uri)80 MB

Supported Audio Formats

FormatFile ExtensionsContent Type
MP3.mp3audio/mpeg
WAV.wavaudio/wav
AAC.aacaudio/aac
FLAC.flacaudio/flac

Audio Input Format

{
  "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 Inputs

Video can be provided via Base64-encoded data or domoai_uri (for files uploaded via the File Upload API).
MethodSize Limit
Base64 String10 MB
File Upload (domoai_uri)80 MB

Supported Video Formats

FormatFile ExtensionsContent Type
MP4.mp4video/mp4
WebM.webmvideo/webm
MOV.movvideo/quicktime
AVI.avivideo/x-msvideo

Video Input Format

{
  "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