Endpoint
Request Parameters
Additional parameters vary by model. Use the model detail endpoint (
GET /api/ai/models/:id) to see the request_schema for model-specific parameters.
Either prompt or multi_prompt is required. Sending both returns an error:
Examples
Basic text-to-video
Response (response_format: "url")
Response (response_format: "b64_json")
Multi-shot video
Important Notes
- Video generation can take several minutes. Very long generations may time out on your client side.
- For long-running or batch generation, use
/ai/queuewhich returns immediately and processes in the background.