Run a workflow
A workflow runs the full generation pipeline and creates a VideoGen project. This is the first step of every video. Pick the workflow that matches your input, start it with one call, then wait for the run to finish.
Start and wait
Start the workflow, then poll the run until status is terminal. The SDK helpers pollWorkflowRun (TS) and poll_workflow_run (Python) loop for you.
TypeScript
Python
cURL
The start response returns immediately with { workflowRunId, projectId, projectUrl, remixActionIds } and 202 Accepted. Poll GET /v1/workflows/runs/{workflowRunId} until status is succeeded. When it is, the project is ready to edit or export.
Choosing a visual style
Script and voiceover workflows accept a visualStyle: { type: "STOCK" } for stock footage, or { type: "AI_IMAGE", aiStyle } for AI-generated images, where aiStyle is a free-form description of the look. See AI styles for example descriptions.
Next steps
- Apply remix actions: Add music, a logo, or natural-language edits.
- Workflows reference: Every workflow input and option.
- Handling async tasks: Poll or use webhooks for the result.