Endpoint
{model_id} with any model ID from the Models page — video, image, or chat. The request format is the same for all models.
Request Headers
| Header | Value |
|---|---|
Authorization | Bearer YOUR_API_KEY |
Content-Type | application/json |
Request Body
Root Parameters
Text prompt describing the desired output. Required for most models.
Hint for the generation type. One of
video, image, chat. Usually inferred automatically from the model.A URL that RouterBase will
POST the completed result to. Optional — use this or poll for the result.Video-specific parameters. See Video Parameters.
Image-specific parameters. See Image Parameters.
LLM / chat parameters. See LLM Parameters.
Video Parameters
Passed insidevideo_params:
Output aspect ratio. Options:
16:9, 9:16, 1:1, 4:3, 3:4. Default: 16:9.Video length in seconds. Options:
5 or 10. Check the specific model page for supported values.Output resolution. Options:
720p, 1080p.Reference image URLs for image-to-video generation.
Reference video URLs for video-to-video generation.
Auto-translate the prompt to English before sending to the model. Default:
false.Optional watermark text to overlay on the output.
Generate multiple video shots. Default:
false.Image Parameters
Passed insideimage_params:
Output aspect ratio. Default:
1:1.Output width in pixels.
Output height in pixels.
Description of what to exclude from the image.
Random seed for reproducible results.
Reference image URLs for image-to-image generation.
LLM Parameters
Passed insidellm_params:
Sampling temperature (0–2). Higher values = more creative output.
Maximum output tokens.
Nucleus sampling parameter (0–1).
Response
Use this ID to poll for the result. See Task Status.
Initial status, always
waiting at submission time.