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.
Only Base64-encoded data is accepted for images.
Method Size Limit
Image Base64 String 10 MB
Format File Extensions Content Type
JPEG .jpg, .jpegimage/jpegPNG .pngimage/pngWebP .webpimage/webpAVIF .avifimage/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..."
}
}
Converting Images to Base64:
JavaScript/Node.js
JavaScript/Browser
Python (File Path)
Python (PIL/Pillow)
// Using Node.js fs module
const fs = require ( 'fs' );
// Read image file and convert to base64
const imageBuffer = fs . readFileSync ( 'path/to/image.jpg' );
const base64String = imageBuffer . toString ( 'base64' );
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
Next Steps