← All models
Example
Details
- Accepts
- text
Pricing
- Price
- 0.021 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| seed | — | Random seed. A random seed is selected when omitted. |
| promptrequired | string | Text prompt for video generation |
| duration | integer | The duration of the video in seconds. |
| sync_mode | boolean | Return the generated video as base64 instead of a CDN URL. |
| resolution | stringenum: 480P, 768P | The native generation resolution of the video. |
| aspect_ratio | stringenum: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | The aspect ratio of the generated video. |
| enable_safety_checker | boolean | If set to true, the safety checker will be enabled. |
| prompt_expansion_moderequired | stringenum: disabled, balanced, quality | How much effort to spend rewriting the prompt before generation. 'disabled' skips prompt expansion. 'balanced' returns in about a second. 'quality' spends up to ~30s on a richer prompt. |
| image_url | — | Optional URL of the image to use as the first frame. When provided, the output aspect ratio follows this image. When omitted, the request is handled as text-to-video (16:9 by default). |
| end_image_url | — | Optional URL of the image to use as the last frame, for first-to-last keyframe generation. |
Output
| Field | Type | Description |
|---|---|---|
| video | — | The generated video |
| timings | — | Timing breakdown in seconds. 'inference' is the DiT denoising time on the GPU backend. Null on routes that do not report backend timings. |
| expanded_prompt | — | The prompt after expansion, as sent to the model. Null when prompt expansion was disabled, left the prompt unchanged, or was performed internally by MiniMax's hosted API. |