POST /v1/videos/generations
Long-running video generation. Authenticate with the same Bearer rd_sk_* key as chat.
https://api.rodiumai.io/v1/videos/generationsBody parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Video model id: google/veo-3.1, bytedance/seedance-2-0, minimax/hailuo-02, xai/grok-imagine-video... The live list is GET /v1/models (output_modalities contains video). |
| prompt | string | Required | Text description of the video to generate or animate. |
| duration_seconds | number | Optional | Clip length in seconds (aliases: seconds, duration). Default 8. Each model has its own range (Sora snaps to 4, 8 or 12). Billed on the length of the returned clip. |
| resolution | string | Optional | Output tier: "480p", "720p", "1080p" or "4k", as offered by the model. Combined with aspect_ratio, the gateway sends the exact width x height the model accepts (see Resolution, aspect ratio and size below). |
| aspect_ratio | string | Optional | Aspect ratio, e.g. "16:9" (default), "9:16", "1:1", "4:3", "3:4", "21:9" (alias: ratio). With an input image, the output follows the image instead. |
| width, height | integer | Optional | Exact output size in pixels, sent as is (instead of resolution + aspect_ratio). Must be a size the model accepts. |
| size | string | Optional | Same as width + height in one string, e.g. "1280x720" or "720x1280" (the form Sora expects). |
| generate_audio | boolean | Optional | Veo and Seedance: render a soundtrack (alias: generateAudio). It changes the price per second when the model prices audio separately. Ignored by models without the option. |
| image | object | string | Optional | First frame (image to video). Accepts { b64_json, mime_type }, a data URL or raw base64 on every model; an https URL on Seedance, MiniMax and Grok; a gs:// URI on Veo. Aliases: input_image, image_url, input_reference. |
| last_frame | object | string | Optional | Optional end frame (same encodings as image) for a start to end transition. Veo and Seedance. |
| reference_images | array | Optional | Seedance 2.x and other Runware models: style or subject references (same encodings as image). |
| video, audio | string | Optional | Seedance 2.x and MiniMax H3: a reference video or audio clip (https URL or data URL). |
| resize_mode | string | Optional | Veo image to video: how the first frame is fitted ("pad" or "crop"). |
| seed | integer | Optional | Optional seed, forwarded to models that support it. |
Request examples
…SDK helpers
…A synchronous call
POST /v1/videos/generationskeeps the connection open until the clip is ready, usually one to several minutes and up to about 10. There is no job id and nothing to poll: set a client timeout of at least 10 minutes. Node's built-infetchstops after 300 s without response headers: pass an undiciAgentwith a longerheadersTimeout, as in the JavaScript examples.- Authenticate with
Authorization: Bearer(nox-api-key). Keep the request body under 10 MiB: send large inputs as an https URL where the model accepts one.
Models
| Family | Model ids | Inputs | Notes |
|---|---|---|---|
| Veo | google/veo-3.1, google/veo-3.1-fast, google/veo-3.1-lite | Text, image, last_frame | resolution, aspect_ratio, resize_mode, generate_audio (audio changes the price per second). |
| Seedance 2.x | bytedance/seedance-2-0, bytedance/seedance-2-0-fast, bytedance/seedance-2-0-mini, bytedance/seedance-2-5 | Text, image, last_frame, reference_images, video, audio | 2.0 and 2.5 up to 1080p (2.5 up to 4K), Fast and Mini up to 720p. generate_audio. |
| Seedance 1.0 | bytedance/seedance-1-0-pro, bytedance/seedance-1-0-pro-fast | Text, image | Pro: 480p or 1080p. Pro Fast: 480p, 720p or 1080p. |
| MiniMax Hailuo | minimax/hailuo-02, minimax/hailuo-2-3-fast, minimax/h3, minimax/h3-fast, minimax/h3-max, minimax/h3-max-turbo, minimax/01-director, minimax/01-live | Text, image (H3: also video, audio) | minimax/hailuo-2-3-fast and minimax/01-live need an image. |
| Grok Imagine | xai/grok-imagine-video, xai/grok-imagine-video-1-5, xai/grok-imagine-video-1-5-lite | Text, image | 480p or 720p (1.5: also 1080p). Ratios 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3. |
| Gemini Omni Flash | google/gemini-omni-flash-1-1 | Text, image, last_frame, reference_images, video | Video with native audio. |
| Sora | openai/sora-2 | Text, image (resized to the output size) | size "1280x720" or "720x1280", duration_seconds snapped to 4, 8 or 12. Only when listed in /v1/models. |
The catalogue changes: GET /v1/models gives the live list with prices (models whose output_modalities contains video). The same parameters work on every provider a model is routed to.
Resolution, aspect ratio and size
- Easiest: send
resolution(480p,720p,1080p,4k) andaspect_ratio(16:9,9:16,1:1,4:3,3:4,21:9). The gateway sends the exact width x height the model accepts. Defaults: the model's default tier (720p for Seedance 2.x and Grok, 480p for Seedance 1.0) and 16:9. - Or send
widthandheight(orsize, e.g."1920x1080"): they are sent as is and must be a size the model accepts. They win overresolution. - Seedance 2.0, 2.0 Fast, 2.0 Mini, 1.0 and Grok Imagine 1.5 only take a tier on its own with an input image or video. In text only, the gateway turns the tier and ratio into width and height for you; with an input image, the clip keeps the image's ratio.
- A tier or ratio the model does not offer is refused with a
400that lists the accepted values (for example1080pon Seedance 2.0 Fast).
| Ratio | 480p | 720p | 1080p | 4K |
|---|---|---|---|---|
| 16:9 | 864x496 | 1280x720 | 1920x1080 | 3840x2160 |
| 9:16 | 496x864 | 720x1280 | 1080x1920 | 2160x3840 |
| 1:1 | 640x640 | 960x960 | 1440x1440 | 2880x2880 |
| 4:3 | 752x560 | 1112x834 | 1664x1248 | 3326x2494 |
| 3:4 | 560x752 | 834x1112 | 1248x1664 | 2496x3328 |
| 21:9 | 992x432 | 1470x630 | 2206x946 | 4398x1886 |
Sizes for Seedance 2.0 (Fast and Mini: 480p and 720p only). Seedance 2.5 uses the same sizes except 480p 16:9 = 854x480, 480p 9:16 = 480x854 and 4K 3:4 = 2494x3326.
Durations and inputs per model
| Model | duration_seconds | Frames (image, last_frame) | References |
|---|---|---|---|
| Veo 3.1, 3.1 Fast | 4, 6 or 8 | 2 | Up to 3 images |
| Veo 3.1 Lite | 4, 6 or 8 | 2 | None |
| Seedance 2.0, 2.0 Fast, 2.0 Mini | 4 to 15 | 2 | Up to 9 images, 3 videos, 3 audios |
| Seedance 2.5 | Default 5 | 2 | Up to 30 images, 10 videos, 10 audios |
| Seedance 1.0 Pro | 1.2 to 12 | 2 | None |
| Seedance 1.0 Pro Fast | 1.2 to 12 | 1 | None |
| MiniMax H3, H3 Fast | 4 to 15 | 2 | Up to 9 images, 3 videos, 3 audios |
| MiniMax H3 Max | 5 to 15 | 2 | Up to 9 images, 3 videos, 3 audios |
| MiniMax H3 Max Turbo | 5 to 15 | 2 | None |
| MiniMax Hailuo 02, 2.3 Fast | 6 or 10 (1080p: 6) | 02: 2, 2.3 Fast: 1 (required) | None |
| MiniMax 01 Director, 01 Live | 6 | 1 (01 Live: required) | None |
| Grok Imagine Video, 1.5 | 1 to 15 | 1 | Up to 7 images |
| Grok Imagine Video 1.5 Lite | 1 to 15 | 1 | None |
| Gemini Omni Flash 1.1 | 3 to 10 | 2 | Up to 7 images, 3 videos |
Send references in reference_images (array), video and audio. A value outside these ranges is refused by the provider with a 400 naming the parameter. Limits come from the provider and can change; the model page of each provider has the details.
Video prices in /v1/models
rodiumai_pricing.pricing_unitisper_second_of_videofor most video models:rodiumai_pricing.videothen holds RODI per second under these keys, each model filling the ones it prices:perSecond(base rate),withAudioPerSecond,noAudioPerSecond,p1080WithAudio,p1080NoAudio,p4kWithAudio,p4kNoAudio.- The rate used: for 1080p or 4K, the matching
p1080.../p4k...key first; thenwithAudioPerSecondornoAudioPerSecond; thenperSecond. The first key the model prices wins. - Audio: when
generate_audiois not sent, the with-audio rate applies (Veo and Seedance 2 render a soundtrack by default). Send"generate_audio": falsefor a silent clip at the no-audio rate where the model has one. pricing_unitper_million_tokenson a video model (Seedance served by BytePlus): billed on the video tokens the provider reports.video.per_1m_tokensgives RODI per 1M tokens by variant (default,1080p,video_input...: resolution, thenvideo_inputwhen a reference video is sent, thenno_audio);output_per_1mis the default rate.- Estimate: rate x
duration_seconds. The hold uses the requested length (8 when omitted) and the bill the length of the returned clip.
Response
The body has created, model and data[0] with b64_json (MP4, with mime_type) or url, plus duration_seconds. Veo and Sora usually answer in base64; Seedance, MiniMax and Grok answer with a temporary url: download the file right away.
Billing: per second of the returned clip for most models (the hold uses duration_seconds, 8 when omitted), at the rate of the resolution and audio option. When Seedance is served by BytePlus it is billed on the video tokens the provider reports. A generation that fails, is refused by the provider or is blocked by safety filters is not billed: the hold is released.
Errors
400 invalid_request_error: a missingmodelorprompt, or a value the provider refused. The provider's reason is inerror.messageand the parameters it blames inerror.param(for examplewidth,height).402: not enough balance for the hold.429: rate limit.502/503: the provider failed or is unavailable, retry later.- Details and the full envelope: API errors.