Making a request
Conventions shared by every endpoint.
Request body & files
The text endpoints (text to speech, translation) expect a body JSON with Content-Type: application/json. Endpoints that take a media file (subtitling, dubbing) expect an upload multipart/form-data with a field file, or a source_url.
| Constraint | Value |
|---|---|
| Accepted media formats | mp3, wav, m4a, webm, mp4, mov … |
| Maximum file size | 80 MB beyond that: 413 |
| Maximum text length | 5,000 characters per request |
| Language codes | See Languages (e.g. bam_Latn, fra_Latn, eng_Latn) |
Synchronous vs asynchronous
Two families of calls, depending on processing time:
- Synchronous — text to speech, translation. The response (JSON or file) comes back in the same call.
- Asynchronous (jobs) — subtitling and dubbing process a whole video. The creation call returns immediately
{"job_id": "…", "status": "queued"}. You then poll for progress.
Track a job (polling)
Poll the status endpoint until status move on to done (or error), then download the result.