Skip to main content

Overview

For files that exceed the Base64 size limits or when you need better upload performance, DomoAI provides a file upload API. This allows you to:
  • Upload files up to 80 MB
  • Reuse uploaded files across multiple API calls
  • Reduce request payload size for better performance

How It Works

The upload process uses presigned URLs - a secure, two-step upload flow:
1

Request Upload URL

Call POST /v1/upload/file with your filename to get a presigned URL and domoai_uri.
2

Upload File

Upload your file directly to the presigned URL using a PUT request with the provided headers.
3

Use domoai_uri

Use the domoai_uri in subsequent API calls (e.g., Talking Avatar, Image to Video) instead of Base64 data.

Supported File Types

Step 1: Request Upload URL

Response

Step 2: Upload File to Presigned URL

Use the presigned_url and headers from the previous response to upload your file:

Step 3: Use domoai_uri in API Calls

Once uploaded, use the domoai_uri in your API requests:

Limitations

domoai_uri tokens expire after 24 hours. If you need to use the same file after expiration, you must upload it again.

Input Format Reference

All media inputs support two methods:
You only need to provide one of these fields. If multiple are provided, domoai_uri takes priority, followed by bytes_base64_encoded.

Next Steps

Talking Avatar API

Create Talking Avatars from Audio, Images, or Videos

Upload API Reference

View the complete Upload API specification