Skip to main content
The API exposes individual operations. You decide when to review content, change hosts, generate audio or render video. Each stage uses the same project and billing flow as the Web app.

1. Select your source and template

Read quota summary, templates, voices and avatars. Use returned IDs in subsequent requests. Create project accepts supported text, URL, document, script and audio origins. Its schema defines the source fields and script_params; choose the fields appropriate to your origin. Preserve the full project ID returned by creation or listing. Poll Get project with query.project_id until the script is ready. To change the source and regenerate, use Regenerate script with prj_id.

2. Review and save the script settings

Get settings returns saved settings. Use Save project to save scenes, speakers, voices, avatars, layout and subtitle options before preparing audio. Keep the endpoint’s exact scene structure and IDs.
The settings response can contain a shortened display ID. Retain the full project ID from creation or listing for future requests.

3. Prepare audio

Read data.task_id, then poll without an idempotency key:
Task status 3 means success and 4 means failure. This stage prepares the project’s audio and video scenes. For one changed scene, use Redo speech and Get speech task.

4. Check credits and render

Call Render credit check with project_id. Review the returned estimate against the active subscription. Render reads the saved project. Each task requires project_id; index selects a script and defaults to 0.
To change content or presentation, update Save project and prepare audio before rendering again. Poll Get project for render state and the final video URL. If generation fails, inspect the project’s error. Project and avatar retry operations are available only in the Web application.

5. Retrieve the outputs

The output guide covers video, audio and SRT subtitles. Every output stays attached to the same project and storage used by Web.