MiniMax H3 API reference
Check MiniMax H3 availability, inputs, parameters, file requirements, credit pricing, and request examples for Rivya Public API v1. Model ID: minimax-h3.
minimax-h3
text, file
Required for reference modes
The credit cost depends on your inputs and settings. Check the estimate before you start. The final cost is rounded up to whole credits.
Video
METERED
7000 characters
Request fields
Set model at the top level. Put model-specific controls and reference inputs in params, using the format documented for this model.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | minimax-h3 | Set model to minimax-h3. |
| prompt | string | Yes | - | Maximum 7000 characters for this model. |
| params | object | No | - | The model-specific params object. Use the documented keys and reference-file format for this model. |
| client_request_id | string | No | - | Optional ID for tracing this request in your system. It does not replace Idempotency-Key. |
Model parameters
| Key | Type | Required | Default | Range | Options | Description |
|---|---|---|---|---|---|---|
| seedance_scene | select | No | text | - | text, frames, reference | Choose the MiniMax input path before uploading; text, frames, and references have separate requirements. |
| resolution | select | No | 2K | - | 768P, 2K | The selected tier sets the per-second rate applied to output plus verified input-video time. |
| aspect_ratio | select | No | 16:9 | - | adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | Adaptive is available in reference mode, not text mode. Frame mode uses its image geometry instead of sending this control. |
| minimax_single_frame_role | select | No | first | - | first, last | Yes. With one image, choose whether it is the starting or ending frame. With two images, order them as start and then end. |
| duration | number | No | 6 | min 4 / max 15 / step 1 | - | Choose a whole-number output duration from 4 through 15 seconds. |
Upload policy
Upload reference files through Files API first. Keep the original URLs, verified metadata, and tokens. Follow this model's request example: some models use params.referenceMediaItems, while others use different fields.
Guide frames or multimodal references: Frames accepts 1 or 2 JPEG, PNG, or WebP images up to 30 MB each. Reference accepts up to 9 such images, 3 MP4/MOV videos up to 50 MB and 2-15 seconds each, and 3 MP3/WAV audio files up to 15 MB and 2-15 seconds each; video and audio totals are each capped at 15 seconds, all media is capped at 15 files, and audio cannot be used alone.
15
image, video, audio
When duration verification is required, use duration_token from /api/v1/files as durationToken in the request. Keep any additional signed metadata this model requires.
| kind | Max size | MIME types |
|---|---|---|
| image | 30 MB | image/jpeg, image/png, image/webp |
| video | 50 MB | video/mp4, video/quicktime |
| audio | 15 MB | audio/mpeg, audio/wav, audio/x-wav |
Minimal request
{
"model": "minimax-h3",
"prompt": "A camera slowly circles a product bottle on a studio table.",
"params": {
"seedance_scene": "text",
"resolution": "2K",
"aspect_ratio": "16:9",
"minimax_single_frame_role": "first",
"duration": 6
}
}Reference-file request
{
"model": "minimax-h3",
"prompt": "A camera slowly circles a product bottle on a studio table.",
"params": {
"seedance_scene": "reference",
"resolution": "2K",
"aspect_ratio": "16:9",
"minimax_single_frame_role": "first",
"duration": 6,
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"kind": "video",
"name": "reference-video.mp4",
"mimeType": "video/mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_from_files_api",
"width": 1280,
"height": 720,
"sizeBytes": 8388608,
"framesPerSecond": 30,
"videoBitrateMbps": 8,
"videoMetadataToken": "video_metadata_token_from_original_files_api_upload_response"
}
]
}
}Example response
An accepted generation request returns a task ID. Poll the status endpoint until the task succeeds or fails. A status request failure does not mean generation failed.
{
"id": "task_minimax_h3_example",
"status": "queued",
"model": "minimax-h3",
"reserved_credits": 78,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Some modes require Files API reference uploads.
