Authentication
Send your API key in theX-API-KEY header on every request, to the base URL https://api-eg.olimi.ai. See API Authentication.
You only ever see the videos that belong to the company your API key is issued to.
How it works
Video generation runs in the background:- Pick an avatar: List avatars and take a
model_config_id. - Create: Create a video with your audio file and that ID. It returns straight away with
status: "queued". - Poll: call Get video progress every few seconds until
statusiscompleted,failedorcancelled. - Download: once it’s
completed, get the file from Download a video, or fromvideoAttachment.urlin Get a video.
Video fields
Responses also carry internal fields. They may change without notice, so rely only on the fields listed on this page.
Status values
Errors
Always branch onstatusCode first. Errors from this API come in three shapes:
401and404:{ "statusCode", "errorCode", "message" }, for exampleerrorCode: "stv_job_not_found".400:{ "statusCode", "message", "error" }. There’s noerrorCode; themessagesays what went wrong.- Validation (
422):messageis a list of what went wrong.
An unknown
configId doesn’t return an error: the video is created, then ends with status: "failed" and an errorMessage saying the configuration wasn’t found. Take configId from List avatars.
The message text is for humans and may change.