Skip to main content

Endpoint

Generates videos synchronously. The request blocks until the video is ready, which can take 1-10+ minutes depending on the model and duration. For long-running or batch generation, consider using the async queue instead.

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:
Sending neither returns:

Examples

Basic text-to-video

Response (response_format: "url")

The URL is a temporary link that expires after a period of time.

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/queue which returns immediately and processes in the background.

Errors