API Hop Docs
MiniMax H3 Video Generation
MiniMax H3 text, reference, and first/last-frame generation: official-style inputs, media requirements, complete requests, and job polling.
https://api.apihop.ai/v1/video-generationsConcurrency limit
AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.
POST /v1/video-generations GET /v1/jobs/{id} Availability
Availability depends on your API Hop API Key. Submit a request only when GET /v1/models returns the exact model ID minimax-h3.
Request Format
Use the content array to provide text and media, and role to specify each media item's purpose. See the official create-task reference and official video guide for the input definitions.
Send JSON to POST https://api.apihop.ai/v1/video-generations with Authorization: Bearer YOUR_APIHOP_API_KEY and Content-Type: application/json. An accepted request returns HTTP 202 and data.jobId. Poll GET https://api.apihop.ai/v1/jobs/{id} for the status and result.
Common Parameters
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | minimax-h3; MiniMax-H3 is also accepted. |
content | array<object> | Yes | Array with exactly one non-empty {"type":"text","text":"..."} item, up to 7,000 characters, plus the media for the chosen mode. |
duration | integer | Yes | Integer from 5 to 15 seconds. |
resolution | string | Yes | Use 768P or 2K in text and reference modes. frames mode supports 2K only. The lowercase spellings 768p and 2k are also accepted. |
ratio | string | By mode | Text and reference requests require a concrete ratio: 16:9, 9:16, 4:3, 3:4, 1:1, or 21:9. Frame requests use the image ratio. |
mode | string | No | text, reference, or frames. If supplied, it must agree with the content roles. |
stream | boolean | No | Omit or use false. Video generation is asynchronous. |
Use publicly accessible HTTP(S) media URLs without embedded credentials or URL fragments. This interface does not accept mm_file:// references or base64 data URIs for H3. For images, use direct download URLs on public HTTPS domains whenever possible.
Use at most 9 images per request. Every image, including reference images and first/last frames, must be PNG, JPEG (including JPG), or WebP and no larger than 24 MiB (25,165,824 bytes). Frame mode still allows exactly one first frame and at most one last frame.
The API does not support 4-second output, last-frame-only input, audio-only references, adaptive reference ratios, callbacks, extra, or response_format. Unsupported combinations return an error.
Content Item Fields
| Field | Type | Required | Description |
|---|---|---|---|
content[].type | string | Yes | text, image_url, video_url, or audio_url. |
content[].text | string | For type: "text" | Exactly one non-empty text item per request, up to 7,000 characters. |
content[].role | string | No | Image roles: first_frame, last_frame, reference_image; an omitted image role means first_frame. Video and audio roles are reference_video and reference_audio, respectively, and default to those values when omitted. |
content[].image_url | object | For type: "image_url" | Object containing only url. |
content[].image_url.url | string | With image_url | Publicly accessible HTTP(S) image URL. A direct download URL on a public HTTPS domain is recommended. |
content[].video_url | object | For type: "video_url" | Object containing only url. |
content[].video_url.url | string | With video_url | Publicly accessible HTTP(S) reference-video URL. |
content[].audio_url | object | For type: "audio_url" | Object containing only url. |
content[].audio_url.url | string | With audio_url | Publicly accessible HTTP(S) reference-audio URL. |
Each item contains only the fields for its declared type. Unknown fields, mismatched roles, duplicate text items, and mixed frame/reference inputs are rejected. The three modes below specify the allowed combinations, media counts, and ratio rules.
Text Mode: text
Choose text mode to create a scene entirely from a description. Describe the subject, setting, action, camera movement, and intended sound in the text item. The content array contains only that item; images, videos, and audio are not allowed.
Specify a concrete ratio. Omitting it or sending adaptive is invalid for text generation. Omit mode or set it to text.
curl --request POST \
--url https://api.apihop.ai/v1/video-generations \
--header 'Authorization: Bearer YOUR_APIHOP_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "minimax-h3",
"content": [
{"type": "text", "text": "A red toy car rolls slowly across a white table. The camera follows at table height. Soft wheel sounds, no dialogue."}
],
"duration": 6,
"resolution": "768P",
"ratio": "16:9"
}'Reference Mode: reference
Choose reference mode to guide appearance, movement, camera work, or sound with existing media. A reference image guides the subject or visual style; it does not become the video's first frame. Use frames mode when the opening image must be fixed.
Include the text item and at least one reference image or reference video. Audio can accompany those inputs but cannot be the only reference. Describe each reference's purpose in the prompt, for example, "use reference image 1 for the car and reference video 1 for the camera movement." Refer to images, videos, and audio in their respective input order.
| Content type | Role | URL field | Maximum count |
|---|---|---|---|
image_url | reference_image | image_url.url | 9 |
video_url | reference_video | video_url.url | 3 |
audio_url | reference_audio | audio_url.url | 3 |
Use at most 12 media files in total. Each video or audio clip must be 2-15 seconds; video clips together must not exceed 15 seconds, and audio clips have a separate 15-second total. Use images in PNG/JPEG/WebP up to 24 MiB each, videos in MP4/MOV up to 50 MB each, and audio in WAV/MP3 up to 15 MB each. Check that each media file meets these requirements before submitting.
When using 9 reference images at 768P, use direct download URLs on public HTTPS domains (default port 443) for all media in the request. For this combination, each reference image must be at least 64 px wide and 64 px high, with at most 12 million pixels in total.
For reference requests, explicitly set a concrete ratio. This interface currently rejects an omitted or adaptive reference ratio. Do not mix reference roles with first_frame or last_frame.
curl --request POST \
--url https://api.apihop.ai/v1/video-generations \
--header 'Authorization: Bearer YOUR_APIHOP_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "minimax-h3",
"content": [
{"type": "text", "text": "Use reference image 1 for the red toy car, reference video 1 for the slow camera movement, and reference audio 1 for the background mood. Keep the car appearance consistent."},
{"type": "image_url", "image_url": {"url": "https://example.com/car.jpg"}, "role": "reference_image"},
{"type": "video_url", "video_url": {"url": "https://example.com/camera.mp4"}, "role": "reference_video"},
{"type": "audio_url", "audio_url": {"url": "https://example.com/music.mp3"}, "role": "reference_audio"}
],
"duration": 6,
"resolution": "768P",
"ratio": "16:9"
}'Frame Mode: frames
Choose frames mode when an image must define the opening frame, optionally with a second image defining the ending frame. The prompt describes the motion and transition between them. With only the first frame, the model continues from that image; with both frames, it generates the transition toward the final image.
Include one text item and exactly one image_url with role: "first_frame". An image without a role is also interpreted as the first frame. Optionally add one image_url with role: "last_frame". Multiple first/last frames and a last frame without a first frame are rejected.
Omit ratio or use adaptive. The input image determines the ratio; a supplied valid concrete ratio is ignored. Reference images, videos, and audio cannot be mixed with frame inputs.
curl --request POST \
--url https://api.apihop.ai/v1/video-generations \
--header 'Authorization: Bearer YOUR_APIHOP_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "minimax-h3",
"content": [
{"type": "text", "text": "The red toy car moves smoothly from the left side of the table to the right. Keep the camera fixed and finish at the supplied final frame."},
{"type": "image_url", "image_url": {"url": "https://example.com/start.jpg"}, "role": "first_frame"},
{"type": "image_url", "image_url": {"url": "https://example.com/end.jpg"}, "role": "last_frame"}
],
"duration": 6,
"resolution": "2K",
"ratio": "adaptive"
}'Remove the last_frame item to request first-frame-only generation. The example URLs are placeholders; replace them with accessible media before submitting.
Job Status and Results
An accepted request returns HTTP 202. Keep the decimal data.jobId as a string.
{
"success": true,
"data": {
"jobId": "90071992547409931",
"status": "PENDING",
"model": "minimax-h3"
}
}Poll GET /v1/jobs/{id} with a key from the same account every 5-10 seconds. PENDING, CONNECT, and PROCESSING are non-terminal. On COMPLETED, read video URLs from data.outputResult.result[].url; each URL is a string. Stop polling on FAILED or CANCELLED.
The platform does not provide permanent storage for generated videos. As soon as the task completes and returns the results, download the videos and save them to your own device or storage. Do not use the returned video links as long-term storage addresses.
If submission times out or a job remains processing, check the existing job and account usage before retrying; another POST can create another charged task.
Billing
MiniMax H3 is billed per second of generated video. See Pricing for published rates.