Use CometAPI video model docs by choosing the provider workflow that matches your job type. Most video endpoints create asynchronous tasks, so save the task ID and use polling or webhooks to retrieve results.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Choose a video API
| Goal | Start here |
|---|---|
| Create Sora video jobs | Create video |
| Query Sora video jobs | Retrieve video |
| Generate Runway videos | Image to Video |
| Generate Kling videos | Text to Video |
| Create Seedance videos | Create |
| Generate xAI video jobs | Video Generation |
Create a video task
The following example submits a video generation task with multipart form data:Poll for the result
The following example polls a video task by ID:Common errors
| Error | Fix |
|---|---|
| Missing task ID | Store the ID from the create response before returning from your job handler. |
| Polling too fast | Add delay and backoff between status checks. |
| Unsupported duration or size | Use values accepted by the selected video endpoint. |
| Callback not received | Keep polling as a fallback and verify that your callback URL accepts POST requests. |