Media · Video · Generate a video from a script
Creates a full video from a text script with voiceover, visuals, and captions. Returns a task_id.
Generation costs credits. Poll getTaskResult until SUCCESS, then read result.export_id. If should_export=true, poll getVideoExport separately until status=3; download URLs are returned in assets.urls. Task SUCCESS alone does not mean the MP4 export is ready.
Authentication
AuthorizationApi-Key
Header authentication of the form Api-Key <token>
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
payload
should_export
Whether to export the final video file.
Response
Async task queued.
task_id
Poll GET /api/v1/tasks/{task_id} until SUCCESS or FAILURE.
