Skip to navigation

Media · Video · Generate a video from a text prompt

View as Markdown

Creates a video from a short text prompt — similar to script-to-video but optimized for brief prompts rather than full scripts. 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.
payloadobjectRequired
should_exportbooleanOptionalDefaults to true
Whether to export the final video file.

Response

Async task queued.
task_idstringOptional

Poll GET /api/v1/tasks/{task_id} until SUCCESS or FAILURE.