Forge is available: build a website with AI from your RodiumAi account.

Try Forge
RodiumAi docs
Core concepts

Video generation

Same gateway auth as chat. Video jobs can take several minutes, use a long timeout.

POSThttps://api.rodiumai.io/v1/videos/generations

Call POST /v1/videos/generations with a video model id: Veo (google/veo-3.1, -fast, -lite), Seedance (bytedance/seedance-2-0, -2-5...), MiniMax Hailuo, Grok Imagine or Sora. Text-to-video and image-to-video are supported; pick the size with resolution + aspect_ratio. The call is synchronous: the response arrives when the clip is ready.

When to use

  • Product motion: animate a logo or packaging still.
  • Short ads and social clips from a text storyboard.
  • Controlled transitions between two keyframes (last_frame).

Recipes

Text → video

Send model + prompt + duration_seconds. No image field.

Note: Use cinematic prompts; keep duration within the model’s limits.

Image → video

Pass image as { b64_json } or a data: URL (every model), gs:// (Veo) or an https URL (Seedance, MiniMax, Grok).

Note: Base64 works everywhere; with an input image the clip keeps the image's aspect ratio.

last_frame transition

Provide image (start) and last_frame (end) with the same encodings to morph between two frames.

Note: Both frames should share aspect ratio when possible.

Text → video examples

…

Image → video

…

Seedance example (size, audio, references)

Seedance 2.0 in 1080p 9:16 with sound. Give resolution + aspect_ratio and the gateway sends the exact size the model accepts; errors carry the provider's reason in error.message and the field in error.param. The Python example adds a first frame and shows where references go.

…

Request parameters

ParameterTypeRequiredDescription
modelstringRequiredVideo 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).
promptstringRequiredText description of the video to generate or animate.
duration_secondsnumberOptionalClip 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.
resolutionstringOptionalOutput 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_ratiostringOptionalAspect 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, heightintegerOptionalExact output size in pixels, sent as is (instead of resolution + aspect_ratio). Must be a size the model accepts.
sizestringOptionalSame as width + height in one string, e.g. "1280x720" or "720x1280" (the form Sora expects).
generate_audiobooleanOptionalVeo 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.
imageobject | stringOptionalFirst 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_frameobject | stringOptionalOptional end frame (same encodings as image) for a start to end transition. Veo and Seedance.
reference_imagesarrayOptionalSeedance 2.x and other Runware models: style or subject references (same encodings as image).
video, audiostringOptionalSeedance 2.x and MiniMax H3: a reference video or audio clip (https URL or data URL).
resize_modestringOptionalVeo image to video: how the first frame is fitted ("pad" or "crop").
seedintegerOptionalOptional seed, forwarded to models that support it.

API reference: videos

A synchronous call

  • POST /v1/videos/generations keeps 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-in fetch stops after 300 s without response headers: pass an undici Agent with a longer headersTimeout, as in the JavaScript examples.
  • Authenticate with Authorization: Bearer (no x-api-key). Keep the request body under 10 MiB: send large inputs as an https URL where the model accepts one.

Models

FamilyModel idsInputsNotes
Veogoogle/veo-3.1, google/veo-3.1-fast, google/veo-3.1-liteText, image, last_frameresolution, aspect_ratio, resize_mode, generate_audio (audio changes the price per second).
Seedance 2.xbytedance/seedance-2-0, bytedance/seedance-2-0-fast, bytedance/seedance-2-0-mini, bytedance/seedance-2-5Text, image, last_frame, reference_images, video, audio2.0 and 2.5 up to 1080p (2.5 up to 4K), Fast and Mini up to 720p. generate_audio.
Seedance 1.0bytedance/seedance-1-0-pro, bytedance/seedance-1-0-pro-fastText, imagePro: 480p or 1080p. Pro Fast: 480p, 720p or 1080p.
MiniMax Hailuominimax/hailuo-02, minimax/hailuo-2-3-fast, minimax/h3, minimax/h3-fast, minimax/h3-max, minimax/h3-max-turbo, minimax/01-director, minimax/01-liveText, image (H3: also video, audio)minimax/hailuo-2-3-fast and minimax/01-live need an image.
Grok Imaginexai/grok-imagine-video, xai/grok-imagine-video-1-5, xai/grok-imagine-video-1-5-liteText, image480p or 720p (1.5: also 1080p). Ratios 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Gemini Omni Flashgoogle/gemini-omni-flash-1-1Text, image, last_frame, reference_images, videoVideo with native audio.
Soraopenai/sora-2Text, 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) and aspect_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 width and height (or size, e.g. "1920x1080"): they are sent as is and must be a size the model accepts. They win over resolution.
  • 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 400 that lists the accepted values (for example 1080p on Seedance 2.0 Fast).
Ratio480p720p1080p4K
16:9864x4961280x7201920x10803840x2160
9:16496x864720x12801080x19202160x3840
1:1640x640960x9601440x14402880x2880
4:3752x5601112x8341664x12483326x2494
3:4560x752834x11121248x16642496x3328
21:9992x4321470x6302206x9464398x1886

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

Modelduration_secondsFrames (image, last_frame)References
Veo 3.1, 3.1 Fast4, 6 or 82Up to 3 images
Veo 3.1 Lite4, 6 or 82None
Seedance 2.0, 2.0 Fast, 2.0 Mini4 to 152Up to 9 images, 3 videos, 3 audios
Seedance 2.5Default 52Up to 30 images, 10 videos, 10 audios
Seedance 1.0 Pro1.2 to 122None
Seedance 1.0 Pro Fast1.2 to 121None
MiniMax H3, H3 Fast4 to 152Up to 9 images, 3 videos, 3 audios
MiniMax H3 Max5 to 152Up to 9 images, 3 videos, 3 audios
MiniMax H3 Max Turbo5 to 152None
MiniMax Hailuo 02, 2.3 Fast6 or 10 (1080p: 6)02: 2, 2.3 Fast: 1 (required)None
MiniMax 01 Director, 01 Live61 (01 Live: required)None
Grok Imagine Video, 1.51 to 151Up to 7 images
Grok Imagine Video 1.5 Lite1 to 151None
Gemini Omni Flash 1.13 to 102Up 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_unit is per_second_of_video for most video models: rodiumai_pricing.video then 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; then withAudioPerSecond or noAudioPerSecond; then perSecond. The first key the model prices wins.
  • Audio: when generate_audio is not sent, the with-audio rate applies (Veo and Seedance 2 render a soundtrack by default). Send "generate_audio": false for a silent clip at the no-audio rate where the model has one.
  • pricing_unit per_million_tokens on a video model (Seedance served by BytePlus): billed on the video tokens the provider reports. video.per_1m_tokens gives RODI per 1M tokens by variant (default, 1080p, video_input...: resolution, then video_input when a reference video is sent, then no_audio); output_per_1m is 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 missing model or prompt, or a value the provider refused. The provider's reason is in error.message and the parameters it blames in error.param (for example width,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.