MiniMax-H3-Context-IR API
MiniMax-H3-Context-IR turns ideas and reference media into structured video prompts on APISea—not finished videos.
MiniMax-H3-Context-IRMiniMax-H3-Context-IR API pricing
All prices in USD. APISea rates compared with the official list price for the same unit.
| Token type | APISea | Official | Save |
|---|---|---|---|
| Input per 1M tokens | $0.7292 | $0.8286 | −12% |
| Output per 1M tokens | $2.89 | $3.29 | −12% |
Approximate cost per output
| Option | APISea | Official |
|---|---|---|
| Default | ≈ $0.088 | $0.10 |
What is MiniMax-H3-Context-IR?
MiniMax-H3-Context-IR is MiniMax’s multimodal prompt-enhancement model for video workflows. Send an original idea with optional images, reference videos, or audio paired with visual media, and receive a richer, structured text prompt—not a generated video. It supports first- and last-frame images, role-tagged images, target aspect ratio, and a target duration that guides pacing language. Use it independently or pass the returned result.prompt as-is to MiniMax-H3 for generation.
On APISea, call MiniMax-H3-Context-IR through the video generations endpoint using your API key. Requests are asynchronous and typically complete in 20–40 seconds. Billing is token-based: input costs $0.7292 per 1M tokens and output costs $2.89 per 1M tokens. Multimodal inputs can significantly increase input token usage. APISea offers pay-as-you-go access and bills only successful requests; the Default configuration is about 12% below the provider list price.
MiniMax-H3-Context-IR highlights
Structured Prompt Output
Receive an enhanced text prompt in result.prompt rather than a video. Pass that prompt as-is to MiniMax-H3 for generation.
Multimodal Reference Inputs
Supply reference images, videos, and audio to inform prompt enhancement. Audio must be paired with an image or video.
Pacing and Framing
Set a target duration from 4–15 seconds to guide pacing language. Specify a target aspect ratio, which is required for text-only input.
Optional Content Moderation
Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. Moderation is off by default.
How to call the MiniMax-H3-Context-IR API in 4 steps
- 01
Get an API key
Sign in to APISea, top up from $50, and create an sk-sea key in the console.
- 02
Set the base URL
Use https://api.apisea.ai/v1 as the base URL in your SDK or HTTP client.
- 03
Send the request
Call POST /v1/videos/generations with "model": "MiniMax-H3-Context-IR" and the parameters below.
- 04
Handle the response
The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.
Request examples
Documentation: MiniMax-H3 Context-IR Prompt Enhancementcurl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-H3-Context-IR",
"prompt": "Epic space-opera trailer: a female captain alone before a huge viewport as the last fleet gathers and jumps away.",
"duration": 5,
"aspect_ratio": "16:9"
}'Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | — | Fixed value: `MiniMax-H3-Context-IR` |
nsfw_check | boolean | Optional | false | Whether to run content moderation before submitting the Context-IR task. |
prompt | string | Required | — | Original idea text, **≤ 7000 characters** |
duration | integer | Optional | 5 | Target video duration (seconds), **4\~15**, default `5`. Affects pacing language in the enhanced prompt. |
aspect_ratio | string | Optional | — | Target aspect ratio. **Required for text-only input**, and cannot be `adaptive`. |
first_frame_image | string | Optional | — | First-frame image URL |
last_frame_image | string | Optional | — | Last-frame image URL |
image_urls | string[] | Optional | — | Reference images (always treated as references), ≤ **9** |
image_with_roles | object[] | Optional | — | Role-tagged images: `first_frame` / `last_frame` / `reference_image` |
video_urls | string[] | Optional | — | Reference videos, ≤ **3**; each 2\~15s, total ≤ 15s |
audio_urls | string[] | Optional | — | Reference audio, ≤ **3**; cannot be used alone — pair with image or video |
What you can build with MiniMax-H3-Context-IR
Video Brief Expansion
Build a tool that turns a short creative idea into a structured prompt ready for MiniMax-H3 video generation.
Reference-Based Prompting
Let users attach visual references or frame images so prompt enhancement can incorporate multimodal context.
Preview-to-Final Workflows
Use Context-IR as the first step before a MiniMax-H3 768P preview and optional regeneration to 2K.
Audio-Informed Creative Briefs
Pair reference audio with images or video to produce an enhanced prompt informed by both visual and audio inputs.
Tips for better results
- 01
Set Text-Only Framing
For text-only requests, provide aspect_ratio and do not use adaptive. Keep the original prompt at or below 7000 characters.
- 02
Match Your Target Duration
Set duration to the intended video length within 4–15 seconds; the default is 5. This controls pacing language, not a video output.
- 03
Manage Reference Costs
Include media that contributes useful context: multimodal inputs significantly increase input tokens. Actual billing is settled against prompt_tokens and completion_tokens.
- 04
Poll and Reuse
Poll task status every 3–5 seconds while the asynchronous request runs. Once complete, pass result.prompt as-is to MiniMax-H3.
Limits and things to know
This model produces text only; requests typically complete asynchronously in 20–40 seconds.
The original prompt is limited to 7000 characters, with up to 9 reference images and 3 reference videos; videos must each be 2–15 seconds and total no more than 15 seconds.
Up to 3 reference audio inputs are supported, but audio cannot be used alone; frame and reference inputs follow H3’s mutual-exclusion rules.
MiniMax-H3-Context-IR API FAQ
What does MiniMax-H3-Context-IR do?
It uses your idea and optional media to produce an enhanced, structured video prompt. The output is text in result.prompt, not a generated video.
How much does MiniMax-H3-Context-IR cost on APISea?
APISea charges $0.7292 per 1M input tokens and $2.89 per 1M output tokens. Billing is based on actual token usage, and the Default configuration is about 12% below the provider list price.
How do I call MiniMax-H3-Context-IR through APISea?
Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer authentication, model set to MiniMax-H3-Context-IR, and a required prompt. Submission returns a task_id; poll task status to retrieve the completed result.
Which parameters are required for text-only requests?
Provide model, prompt, and aspect_ratio; aspect_ratio cannot be adaptive. The prompt must be at most 7000 characters, and optional duration accepts 4–15 seconds with a default of 5.
How is Context-IR different from MiniMax-H3 video generation?
Context-IR enhances prompts and returns text, while MiniMax-H3 generates video. Context-IR can run alone or precede a 768P preview and 2K regeneration workflow.
Can I use MiniMax-H3-Context-IR commercially?
Commercial use is subject to the provider's terms. Review the applicable terms and rights for any reference media before deploying a commercial workflow.
Related models
MiniMax-H3
MiniMax-H3-Max
MiniMax-H3-Regeneration
MiniMax-Hailuo-02
MiniMax-Hailuo-2.3
MiniMax-Hailuo-2.3-Fast
apisea-zoe
happyhorse
happyhorse-1.0Start building with MiniMax-H3-Context-IR
One key, pay as you go from $50, billed only for successful requests.