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

Only Base64-encoded data is accepted for images.
MethodSize Limit
Image Base64 String10 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..."
  }
}
Converting Images to Base64:
// 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

FormatLimitDetails
Text2,000 charactersCounted as Unicode characters

Next Steps