NeuralBridge
Sign in Download IDE
MiniMax

MiniMax H3

video

MiniMax video model: clips with sound of 4–15 seconds in 768p and 2K from text, from first and last frames and from references — up to 9 images, 3 videos and 3 audio clips.

Specifications

Context window
—
Max tokens in response
—
Vendor
MiniMax
Release
—
Login
text, images, video, audio
Output
video

Capabilities

multi_reftxt2vidimg2vidfirst_last_frame

Description

What it does

  • Text to video: describe the scene, the characters, the camera movement and the sound. The aspect ratio is required here (16:9, 9:16, 1:1, 4:3, 3:4, 21:9).
  • Frames: a first frame, a last frame alone, or both. The video starts or ends on these images; the frame follows the image.
  • Video from references: up to 9 images, up to 3 videos (2–15 s each, 15 s in total at most) and up to 3 audio clips (2–15 s, 15 s in total), 12 files at most. References set the character's appearance, motion, camera, style and voice. In the prompt, name files in order: Image 1, Video 1, Audio 1.
  • Length: a whole number of seconds from 4 to 15. Resolution 768p or 2K. Aspect ratio: adaptive (default, from the files), 16:9, 9:16, 1:1, 4:3, 3:4, 21:9.
  • The model creates the sound itself from the prompt and references: speech, music, effects.
  • A prompt is always required, up to 7000 characters. English works best.

File requirements

  • Images: JPG, PNG, WEBP, HEIC, HEIF, up to 30 MB, sides of 256–5760 px, proportions from 2:5 to 5:2.
  • Videos: MP4 or MOV (H.264 or H.265), up to 50 MB, 23.976–60 fps, sides of 256–5760 px, proportions from 2:5 to 5:2.
  • Audio: WAV or MP3, up to 15 MB.

How to call

POST /v1/videos/generations (or /v1/videos/references) with a JSON body. Files go in media: [{"type": "first_frame" | "last_frame" | "reference_image" | "reference_video" | "reference_audio", "url": "…"}] as an https link or a data URI. Frames and references cannot be combined in one request.

{"model": "minimax/h3-08130", "prompt": "A cinematic space-opera teaser: a fleet jumps into hyperspace above a purple nebula", "duration": 5, "resolution": "2k", "aspect_ratio": "16:9"}

From references:

{"model": "minimax/h3-08130", "prompt": "The character performs street dance, following the motion in Video 1; the appearance follows Image 1.", "duration": 5, "resolution": "768p", "media": [{"type": "reference_image", "url": "https://example.com/hero.png"}, {"type": "reference_video", "url": "https://example.com/dance.mp4"}]}

Response

The response arrives when the video is ready: usually in 3 to 10 minutes, longer for a 15-second 2K clip. Set a client timeout of at least 16 minutes and send an Idempotency-Key header: repeating a request with the same key does not start a second paid generation; it waits for and returns the clip already paid for. data[0].url is a link to the MP4 file (it lives one day, save the file right away), duration_seconds is the clip length.

Errors

  • 400: invalid input; the error text names the field. Model rejection codes: input_moderation, output_moderation, input_download_failed (the model could not download a file), input_invalid_media (a file did not fit). Rejected requests are not billed.
  • 402: not enough funds on the balance. 429: the model is overloaded. 502 or 504: the video was not received; nothing is charged.

Price

You pay per second. The rate depends on the resolution (768p or 2K). Seconds of input video (references) are billed at the same rate, images beyond five separately. The prices are shown on this page.

Parameters

resolutiondefault: 768p · 768p · 2k
Video resolution, for example 720P or 1080P. Also affects the price.
durationdefault: 5 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12 · 13 · 14 · 15
Length in seconds: of the clip for video, of the track for music. Also affects the price.
prompt
The request text: what you want to get. For video: the scene, camera movement and light; for music: genre, mood, instruments, tempo. The length limit depends on the model.
aspect_ratiodefault: adaptive · adaptive · 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9
Aspect ratio of the result, for example 16:9, 9:16 or 1:1.
t2v_aspect_ratiodefault: 16:9 · 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9
Aspect ratio when the request has no images or files (adaptive is not allowed here).
last_frame_alone
A last frame can be passed without a first one: the video ends on that image.
media
A list of files {type, url}: first_frame, last_frame, reference_image, reference_video (https only), reference_audio.
media_labelsdefault: Image {n}|Video {n}|Audio {n}
How the model reads references to files in the prompt; {n} is the file number within its kind, in order.
input_video_billed
Seconds of input video are billed at the same rate as seconds of the result.
reference_images
How many reference images can be passed.
reference_videos
How many videos can be passed (30 s in total at most).
reference_audios
How many audio clips can be passed (30 s in total at most).
reference_files
How many images, videos and audio clips can be passed together.
reference_image_side
Image width and height, pixels.
reference_image_aspect
Width divided by height.
reference_image_mb
Megabytes per image.
reference_video_seconds
Seconds in one reference video.
reference_videos_total_seconds
Seconds in all reference videos together.
reference_video_fps
Frames per second in the input video.
reference_video_side
Video width and height, pixels.
reference_video_aspect
Width divided by height.
reference_video_mb
Megabytes per video.
reference_audio_seconds
Seconds in one reference audio clip.
reference_audios_total_seconds
Seconds in all audio clips together.
reference_audio_mb
Megabytes per audio clip.

Endpoints

POSThttps://api.neuralbridge.ru/v1/videos/generationsprimary
Videos — generations — Generate video from a text description.
POSThttps://api.neuralbridge.ru/v1/video/generations
Videos — generations (legacy path) — The early singular path for video generation. Still accepted, but use /v1/videos/generations in new integrations.

Code examples

bash
curl https://api.neuralbridge.ru/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "minimax/h3-08130", "prompt": "Дрон летит над осенним лесом", "resolution": "1080P", "duration": 5}'

Other MiniMax models

For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Video second / second10,92 ₽
Video second 768p / second10,92 ₽
Video second 2K / second17,745 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
minimax/h3-08130
Get API key