curl --request POST \ --url https://api.apimart.ai/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "MiniMax-H3-Max", "prompt": "A detective in a trench coat turns around on a neon-lit street in the rain. The camera slowly pushes in as reflections shimmer on the pavement.", "duration": 5, "resolution": "768P", "aspect_ratio": "16:9" }'
import requestsresponse = requests.post( "https://api.apimart.ai/v1/videos/generations", headers={ "Authorization": "Bearer <token>", "Content-Type": "application/json", }, json={ "model": "MiniMax-H3-Max", "prompt": "A detective turns around on a neon-lit street in the rain.", "duration": 5, "resolution": "768P", "aspect_ratio": "16:9", },)print(response.json())
const response = await fetch("https://api.apimart.ai/v1/videos/generations", { method: "POST", headers: { Authorization: "Bearer <token>", "Content-Type": "application/json", }, body: JSON.stringify({ model: "MiniMax-H3-Max", prompt: "A detective turns around on a neon-lit street in the rain.", duration: 5, resolution: "768P", aspect_ratio: "16:9", }),});console.log(await response.json());
MiniMax Video Generation V2 fast model with asynchronous task submission
Supports text-to-video, first/last-frame control, and multimodal reference generation
Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio
Supports reference images, videos, and audio; 2K and middle frames are not supported
POST
/
v1
/
videos
/
generations
curl --request POST \ --url https://api.apimart.ai/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "MiniMax-H3-Max", "prompt": "A detective in a trench coat turns around on a neon-lit street in the rain. The camera slowly pushes in as reflections shimmer on the pavement.", "duration": 5, "resolution": "768P", "aspect_ratio": "16:9" }'
import requestsresponse = requests.post( "https://api.apimart.ai/v1/videos/generations", headers={ "Authorization": "Bearer <token>", "Content-Type": "application/json", }, json={ "model": "MiniMax-H3-Max", "prompt": "A detective turns around on a neon-lit street in the rain.", "duration": 5, "resolution": "768P", "aspect_ratio": "16:9", },)print(response.json())
const response = await fetch("https://api.apimart.ai/v1/videos/generations", { method: "POST", headers: { Authorization: "Bearer <token>", "Content-Type": "application/json", }, body: JSON.stringify({ model: "MiniMax-H3-Max", prompt: "A detective turns around on a neon-lit street in the rain.", duration: 5, resolution: "768P", aspect_ratio: "16:9", }),});console.log(await response.json());
Model selection: Use MiniMax-H3-Max for fast text-to-video, first/last-frame control, or multimodal reference generation at 480P, 768P, or 1080P. For 2K or middle frames, use MiniMax-H3.
curl --request POST \ --url https://api.apimart.ai/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "MiniMax-H3-Max", "prompt": "A detective in a trench coat turns around on a neon-lit street in the rain. The camera slowly pushes in as reflections shimmer on the pavement.", "duration": 5, "resolution": "768P", "aspect_ratio": "16:9" }'
import requestsresponse = requests.post( "https://api.apimart.ai/v1/videos/generations", headers={ "Authorization": "Bearer <token>", "Content-Type": "application/json", }, json={ "model": "MiniMax-H3-Max", "prompt": "A detective turns around on a neon-lit street in the rain.", "duration": 5, "resolution": "768P", "aspect_ratio": "16:9", },)print(response.json())
const response = await fetch("https://api.apimart.ai/v1/videos/generations", { method: "POST", headers: { Authorization: "Bearer <token>", "Content-Type": "application/json", }, body: JSON.stringify({ model: "MiniMax-H3-Max", prompt: "A detective turns around on a neon-lit street in the rain.", duration: 5, resolution: "768P", aspect_ratio: "16:9", }),});console.log(await response.json());
All endpoints require Bearer Token authentication. Get your key from the API Key page.
Authorization: Bearer YOUR_API_KEY
Choose the right model
Capability
MiniMax-H3
MiniMax-H3-Max
Resolution
2K / 768P; default 2K
480P / 768P / 1080P; default 768P
Duration
4–15 seconds
5–15 seconds
Text-to-video
Supported
Supported
First / last frames
Supported
Supported
Middle frames
Supported
Not supported
Multimodal references
Images, video, and audio
Images, video, and audio
Input image charge
First 5 images are free
First 2 images are free; additional images are charged individually
Reference video charge
Based on input duration, at the same rate as output video of the same resolution
Based on input duration, at a separate rate
AIGC watermark
Supported
Supported at 480P / 768P; not supported at 1080P
MiniMax-H3-Max does not support 2K and its output cannot be used as the source for Regeneration. Use MiniMax-H3 when you need either capability.
Generation modes
The request fields determine the mode automatically; do not send a mode field.
Mode
Trigger
Behavior
Text-to-video (T2V)
Only prompt and common fields
Generates from text
Image-to-video (I2V)
first_frame_image / last_frame_image, or equivalent roles in image_with_roles
Controls the first frame, last frame, or both
Multimodal references (R2V)
image_urls / video_urls / audio_urls, or reference_image in image_with_roles
Generates using reference images, videos, and audio; also supported at 1080P
First/last-frame fields cannot be combined with reference media. Reference audio must accompany at least one reference image or video. Invalid combinations return HTTP 400 synchronously; no task is created or charged.
Request parameters
string
required
Fixed value: MiniMax-H3-MaxModel IDs are case-insensitive; minimax-h3-max is also accepted.
boolean
default:"false"
Whether to run content moderation before submitting the video task.
true: use omni-moderation-latest to review prompts and input images
false or omitted: do not send a moderation request, adding no moderation cost or latency (default)
string
required
A non-empty description of the video. Required in every mode.Maximum: 7000 characters.
integer
default:"5"
Video duration in seconds.
Integer from 5 to 15
Default: 5
4 seconds is not supported
string
default:"768P"
Output resolution: 480P, 768P (default), or 1080P.At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
2K, 1440P, and 2048P are not supported. Invalid values return HTTP 400 and are not silently downgraded.
string
Output aspect ratio. The aliases size and ratio are also accepted.Text-to-video values: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16.
T2V without this field, or with adaptive: falls back to 16:9
I2V: determined by the input image; this field is ignored
Multimodal references: optional; defaults to adaptive, or specify an explicit ratio
string
Public image URL used as the video’s first frame.
string
Public image URL used as the video’s last frame. It can be used alone or together with first_frame_image.
object[]
Role-based image array that can replace first_frame_image, last_frame_image, or image_urls.
Show image_with_roles item
string
required
Public image URL
string
Supported roles:
first_frame; aliases include first and start
last_frame; aliases include last, end_frame, and tail
reference_image: reference image; alias reference; an empty role is treated as a reference image
Up to one first frame and one last frame. Reference images in this array and image_urls together must not exceed 9. Frame roles cannot be mixed with reference-image roles.
string[]
Public reference-image URL array. Together with reference images in image_with_roles, at most 9 images. All images are treated as references, never automatically as first/last frames. For first-frame control, use first_frame_image or the first_frame role.
string[]
Public reference-video URL array; a single video can also use video_url (string). At most 3 clips, each 2–15 seconds, with a combined reference-video duration of at most 15 seconds.Reference-video duration is read at submission for billing. If it cannot be read, HTTP 400 is returned synchronously; no task is created or charged.
string[]
Public reference-audio URL array; a single clip can also use audio_url (string). At most 3 clips, each 2–15 seconds, with a combined reference-audio duration of at most 15 seconds. Must accompany at least one reference image or video; audio alone is not supported.
boolean
default:"false"
Whether to add an AIGC watermark. Alias: aigc_watermark.Watermarks are only supported at 480P / 768P. At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
string
Receives a notification when the task reaches a successful or failed terminal state.
Use webhook, not MiniMax’s callback_url. The gateway reserves callback_url for internal polling acceleration.
Parameter constraints
The following invalid parameters or combinations return HTTP 400 before task creation and billing:
Parameter / value
Reason
First/last frames combined with reference media
I2V and R2V are mutually exclusive
More than 9 reference images, or more than 3 reference videos or audio clips
Exceeds the media count limit
Reference audio alone
Requires a reference image or video
resolution: "2K"
Only 480P, 768P, and 1080P are supported
duration: 4 or a value above 15
Only 5–15 seconds are supported
Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.
At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
For 2K, middle frames, or a 4-second video, use MiniMax-H3 and adjust the parameters accordingly.
Input media limits
The total request body must not exceed 64 MB. Use public URLs for images, videos, and audio; do not use Base64.
Images
Item
Limit
Formats
JPG / JPEG / PNG / WEBP / HEIC / HEIF
Per file
≤ 30 MB
Width and height
256–5760 px
Aspect ratio (width / height)
0.4–2.5
Count
Up to 1 first frame, 1 last frame, and 9 reference images; frame images and reference images cannot be mixed
Reference videos
Item
Limit
Formats
MP4 / MOV, H.264 / H.265
Per file
≤ 50 MB
Count
≤ 3
Per-clip duration
2–15 s
Total duration
≤ 15 s
Width and height
256–5760 px
Aspect ratio (width / height)
0.4–2.5
Frame rate
23.976–60 fps
Reference audio
Item
Limit
Formats
WAV / MP3
Per file
≤ 15 MB
Count
≤ 3
Per-clip duration
2–15 s
Total duration
≤ 15 s
Reference audio must accompany a reference image or video. Video and audio duration totals are calculated separately; each must not exceed 15 seconds.Media that does not meet these requirements may fail during generation; failed tasks are refunded automatically.
Examples
First-frame image-to-video
{ "model": "MiniMax-H3-Max", "prompt": "The camera slowly pushes in as steam rises and people move in the background.", "first_frame_image": "https://cdn.example.com/ramen.png", "duration": 5, "resolution": "480P"}
First-and-last-frame image-to-video
{ "model": "MiniMax-H3-Max", "prompt": "The scene gradually transitions from morning to sunset.", "first_frame_image": "https://cdn.example.com/morning.png", "last_frame_image": "https://cdn.example.com/sunset.png", "duration": 8, "resolution": "768P"}
1080P text-to-video
At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
{ "model": "MiniMax-H3-Max", "prompt": "Sunset on the coast, waves gently washing the beach, a slow camera push-in, cinematic texture.", "duration": 5, "resolution": "1080P", "aspect_ratio": "16:9"}
Multimodal reference generation
Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.
{ "model": "MiniMax-H3-Max", "prompt": "The character from the reference image runs through the scene from the reference video, following the rhythm of the reference audio.", "image_urls": [ "https://cdn.example.com/role.png" ], "video_urls": [ "https://cdn.example.com/scene.mp4" ], "audio_urls": [ "https://cdn.example.com/beat.mp3" ], "duration": 6, "resolution": "1080P", "aspect_ratio": "16:9"}
Query a task
Submission returns a task_id. Poll Task Status every 5–10 seconds; use a client timeout of 15 minutes.
Check error.message; the task is refunded automatically
Generated video URLs typically expire after about 24 hours. Download and store the result promptly.
Pricing
Total cost includes generated video, additional input images, and reference video:
Total cost = generation rate per second × output duration + additional image rate × max(0, input image count − 2) + reference video rate per second × total reference video duration
First frames, last frames, and reference images are counted together. The first 2 images are free; additional images are charged individually. Total reference-video duration must not exceed 15 seconds.
Item
Rate
1080P video
Subject to model pricing
768P video
Subject to model pricing
480P video
Subject to model pricing
Input images
First 2 images are free; additional images are charged individually; Subject to model pricing
Reference videos
Charged per input second, subject to model pricing; varies with output resolution and is separate from the generation rate
All rates are subject to model pricing. In the 1080P example with 2 reference images and reference audio, the images and audio are free.The estimated amount is reserved at submission. Failed tasks receive a full automatic refund; the task response’s cost field is authoritative.
Errors
Scenario
Result
Empty or over-7000-character prompt
400; no task
duration outside 5–15
400; no task
Unsupported resolution
400; no task
First/last frames combined with reference media / Reference audio alone
400; no task
More than 9 reference images, or more than 3 reference videos or audio clips
400; no task
Cannot read reference-video duration
400; no task
Invalid image role, or more than one image for a first/last-frame role
400; no task
Insufficient balance
402
Content safety rejection
422
Rate limit
429; retry with backoff
Generation failures return status = failed with details in error.message and are refunded automatically.
Response
integer
Response status code; 200 on success
array
Submission result containing the initial task status and task ID
Show Array item
string
Initially submitted
string
Unique task identifier used to query progress and results
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"APIMart","colors":{"primary":"#2563EB","light":"#3B82F6","dark":"#1D4ED8"},"favicon":"https://mintcdn.com/apicore/1GnRrmOhqkTFCvFb/logo/logo.png?fit=max\u0026auto=format\u0026n=1GnRrmOhqkTFCvFb\u0026q=85\u0026s=609be15c3f1f4e4b765c5945c2871ae9","navbar":{"links":[{"icon":"x-twitter","href":"https://x.com/APIMart_","label":""},{"icon":"discord","href":"https://discord.gg/V8zqssyZ5c","label":""},{"icon":"weixin","href":"https://cdn.apimart.ai/social-media/wechat.jpg","label":""}],"primary":{"type":"button","label":"Dashboard","href":"https://apimart.ai"}},"footer":{"socials":{"x":"https://x.com/APIMart_","website":"https://apimart.ai","discord":"https://discord.gg/V8zqssyZ5c"}},"seo":{"metatags":{"og:site_name":"APIMart","og:type":"website","keywords":"OpenAI compatible, API gateway, GPT-5, Claude, Gemini, multi-provider, transparent pricing, SLA","twitter:card":"summary_large_image","twitter:site":"@APIMart_","twitter:creator":"@APIMart_"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"zh-Hans","href":"cn"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"},{"language":"ru","href":"ru"},{"language":"de","href":"de"},{"language":"fr","href":"fr"},{"language":"pt","href":"pt"},{"language":"id","href":"id"},{"language":"es","href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apicore","hasAudioNarration":false,"actualSubdomain":"apicore","customDomains":["docs.apimart.ai"],"gitSource":{"type":"github","owner":"apimart-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae1c97b1297abb2484bbfc0"},"entitlements":{},"buildId":"6b0d42e7929f351b8e58a719","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"zh-Hans","tag":"API 手册","count":178},{"language":"de","tag":"API-Handbuch","count":178},{"language":"en","tag":"API Manual","count":178},{"language":"es","tag":"Manual de la API","count":178},{"language":"fr","tag":"Manuel API","count":178},{"language":"id","tag":"Panduan API","count":178},{"language":"ja","tag":"APIマニュアル","count":178},{"language":"ko","tag":"API 매뉴얼","count":178},{"language":"pt","tag":"Manual da API","count":178},{"language":"ru","tag":"Руководство API","count":178},{"language":"zh-Hans","tag":"图像系列","count":57},{"language":"de","tag":"Bildserie","count":57},{"language":"en","tag":"Image Series","count":57},{"language":"es","tag":"Serie de imágenes","count":57},{"language":"fr","tag":"Série Image","count":57},{"language":"id","tag":"Seri Gambar","count":57},{"language":"ja","tag":"画像シリーズ","count":57},{"language":"ko","tag":"이미지 시리즈","count":57},{"language":"pt","tag":"Série de Imagem","count":57},{"language":"ru","tag":"Серия изображений","count":57},{"language":"zh-Hans","tag":"音频系列","count":51},{"language":"de","tag":"Audioserie","count":51},{"language":"en","tag":"Audio Series","count":51},{"language":"es","tag":"Serie de audio","count":51},{"language":"fr","tag":"Série Audio","count":51},{"language":"id","tag":"Seri Audio","count":51},{"language":"ja","tag":"オーディオシリーズ","count":51},{"language":"ko","tag":"오디오 시리즈","count":51},{"language":"pt","tag":"Série de Áudio","count":51},{"language":"ru","tag":"Аудиосерия","count":51},{"language":"zh-Hans","tag":"视频系列","count":48},{"language":"de","tag":"Videoserie","count":48},{"language":"en","tag":"Video Series","count":48},{"language":"es","tag":"Serie de video","count":48},{"language":"fr","tag":"Série Vidéo","count":48},{"language":"id","tag":"Seri Video","count":48},{"language":"ja","tag":"動画シリーズ","count":48},{"language":"ko","tag":"비디오 시리즈","count":48},{"language":"pt","tag":"Série de Vídeo","count":48},{"language":"ru","tag":"Видеосерия","count":48},{"language":"zh-Hans","tag":"Suno","count":35},{"language":"de","tag":"Suno","count":35},{"language":"en","tag":"Suno","count":35},{"language":"es","tag":"Suno","count":35},{"language":"fr","tag":"Suno","count":35},{"language":"id","tag":"Suno","count":35},{"language":"ja","tag":"Suno","count":35},{"language":"ko","tag":"Suno","count":35},{"language":"pt","tag":"Suno","count":35},{"language":"ru","tag":"Suno","count":35},{"language":"zh-Hans","tag":"Midjourney","count":19},{"language":"de","tag":"Midjourney","count":19},{"language":"en","tag":"Midjourney","count":19},{"language":"es","tag":"Midjourney","count":19},{"language":"fr","tag":"Midjourney","count":19},{"language":"id","tag":"Midjourney","count":19},{"language":"ja","tag":"Midjourney","count":19},{"language":"ko","tag":"Midjourney","count":19},{"language":"pt","tag":"Midjourney","count":19},{"language":"ru","tag":"Midjourney","count":19},{"language":"zh-Hans","tag":"Flow Music","count":14},{"language":"de","tag":"Flow Music","count":14},{"language":"en","tag":"Flow Music","count":14},{"language":"es","tag":"Flow Music","count":14},{"language":"fr","tag":"Flow Music","count":14},{"language":"id","tag":"Flow Music","count":14},{"language":"ja","tag":"Flow Music","count":14},{"language":"ko","tag":"Flow Music","count":14},{"language":"pt","tag":"Flow Music","count":14},{"language":"ru","tag":"Flow Music","count":14},{"language":"ja","tag":"よくある質問","count":12},{"language":"ko","tag":"자주 묻는 질문","count":12},{"language":"zh-Hans","tag":"集成指南","count":11},{"language":"de","tag":"Integrationen","count":11},{"language":"en","tag":"Integrations","count":11},{"language":"es","tag":"Integraciones","count":11},{"language":"fr","tag":"Intégrations","count":11},{"language":"id","tag":"Integrasi","count":11},{"language":"ja","tag":"統合ガイド","count":11},{"language":"ko","tag":"통합 가이드","count":11},{"language":"pt","tag":"Integrações","count":11},{"language":"ru","tag":"Интеграции","count":11},{"language":"zh-Hans","tag":"文字系列","count":10},{"language":"de","tag":"Textserie","count":10},{"language":"en","tag":"Text Series","count":10},{"language":"es","tag":"Serie de texto","count":10},{"language":"fr","tag":"Série Texte","count":10},{"language":"id","tag":"Seri Teks","count":10},{"language":"ja","tag":"テキストシリーズ","count":10},{"language":"ko","tag":"텍스트 시리즈","count":10},{"language":"pt","tag":"Série de Texto","count":10},{"language":"ru","tag":"Текстовая серия","count":10},{"language":"zh-Hans","tag":"概览","count":7},{"language":"de","tag":"Übersicht","count":7},{"language":"en","tag":"Overview","count":7},{"language":"es","tag":"Visión general","count":7},{"language":"fr","tag":"Aperçu","count":7},{"language":"id","tag":"Ikhtisar","count":7},{"language":"pt","tag":"Visão Geral","count":7},{"language":"ru","tag":"Обзор","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[id^=\"param-\"] a[href^=\"#param-\"]{display:none}[id^=\"param-\"] button[data-component-part=\"field-name\"]{display:inline-flex;align-items:center;gap:6px;margin:-2px -4px;padding:2px 4px;border-radius:6px;cursor:copy;user-select:text;transition:background-color 150ms ease}[id^=\"param-\"] button[data-component-part=\"field-name\"]:hover{background:rgb(37 99 235 / 8%)}[id^=\"param-\"] button[data-component-part=\"field-name\"]:not([data-copy-state])::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(100 116 139);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center / contain no-repeat;transition:background-color 150ms ease}[id^=\"param-\"] button[data-component-part=\"field-name\"]:hover::after{background-color:rgb(37 99 235)}[id^=\"param-\"] button[data-component-part=\"field-name\"][data-copy-state=\"copied\"]::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(5 150 105);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E\") center / contain no-repeat}[id^=\"param-\"] button[data-component-part=\"field-name\"][data-copy-state=\"failed\"]::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(220 38 38);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E\") center / contain no-repeat}html.dark [id^=\"param-\"] button[data-component-part=\"field-name\"]:not([data-copy-state])::after{background-color:rgb(203 213 225)}"}]}
{"page":{"pagePath":"en/api-reference/videos/minimax-h3/max","slug":"/en/api-reference/videos/minimax-h3/max","pageMetadata":{"title":"MiniMax-H3-Max Video Generation","description":" - MiniMax Video Generation V2 fast model with asynchronous task submission\n- Supports text-to-video, first/last-frame control, and multimodal reference generation\n- Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio\n- Supports reference images, videos, and audio; 2K and middle frames are not supported ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/max"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n li: \"li\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"MiniMax Video Generation V2 fast model with asynchronous task submission\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports text-to-video, first/last-frame control, and multimodal reference generation\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports reference images, videos, and audio; 2K and middle frames are not supported\"\n }), \"\\n\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,ResponseField,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Model selection:`}),` Use `,_jsx(_components.code,{children:`MiniMax-H3-Max`}),` for fast text-to-video, first/last-frame control, or multimodal reference generation at 480P, 768P, or 1080P. For 2K or middle frames, use `,_jsx(_components.a,{href:`/en/api-reference/videos/minimax-h3/generation`,children:`MiniMax-H3`}),`.`]})}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsxs(_components.p,{children:[`All endpoints require Bearer Token authentication. Get your key from the `,_jsx(_components.a,{href:`https://apimart.ai/keys`,children:`API Key page`}),`.`]}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`choose-the-right-model`,children:`Choose the right model`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Capability`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`MiniMax-H3`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`MiniMax-H3-Max`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Resolution`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`2K`}),` / `,_jsx(_components.code,{children:`768P`}),`; default `,_jsx(_components.code,{children:`2K`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`480P`}),` / `,_jsx(_components.code,{children:`768P`}),` / `,_jsx(_components.code,{children:`1080P`}),`; default `,_jsx(_components.code,{children:`768P`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Duration`}),_jsx(_components.td,{children:`4–15 seconds`}),_jsx(_components.td,{children:`5–15 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text-to-video`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`First / last frames`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Middle frames`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Not supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Multimodal references`}),_jsx(_components.td,{children:`Images, video, and audio`}),_jsx(_components.td,{children:`Images, video, and audio`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input image charge`}),_jsx(_components.td,{children:`First 5 images are free`}),_jsx(_components.td,{children:`First 2 images are free; additional images are charged individually`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference video charge`}),_jsx(_components.td,{children:`Based on input duration, at the same rate as output video of the same resolution`}),_jsx(_components.td,{children:`Based on input duration, at a separate rate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`AIGC watermark`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported at 480P / 768P; not supported at 1080P`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`MiniMax-H3-Max`}),` does not support 2K and its output cannot be used as the source for `,_jsx(_components.a,{href:`/en/api-reference/videos/minimax-h3/regeneration`,children:`Regeneration`}),`. Use `,_jsx(_components.code,{children:`MiniMax-H3`}),` when you need either capability.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`generation-modes`,children:`Generation modes`}),`\n`,_jsxs(_components.p,{children:[`The request fields determine the mode automatically; do not send a `,_jsx(_components.code,{children:`mode`}),` field.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Trigger`}),_jsx(_components.th,{children:`Behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text-to-video (T2V)`}),_jsxs(_components.td,{children:[`Only `,_jsx(_components.code,{children:`prompt`}),` and common fields`]}),_jsx(_components.td,{children:`Generates from text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image-to-video (I2V)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`first_frame_image`}),` / `,_jsx(_components.code,{children:`last_frame_image`}),`, or equivalent roles in `,_jsx(_components.code,{children:`image_with_roles`})]}),_jsx(_components.td,{children:`Controls the first frame, last frame, or both`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Multimodal references (R2V)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_urls`}),` / `,_jsx(_components.code,{children:`video_urls`}),` / `,_jsx(_components.code,{children:`audio_urls`}),`, or `,_jsx(_components.code,{children:`reference_image`}),` in `,_jsx(_components.code,{children:`image_with_roles`})]}),_jsx(_components.td,{children:`Generates using reference images, videos, and audio; also supported at 1080P`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`First/last-frame fields cannot be combined with reference media. Reference audio must accompany at least one reference image or video. Invalid combinations return HTTP 400 synchronously; no task is created or charged.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsxs(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:[_jsxs(_components.p,{children:[`Fixed value: `,_jsx(_components.code,{children:`MiniMax-H3-Max`})]}),_jsxs(_components.p,{children:[`Model IDs are case-insensitive; `,_jsx(_components.code,{children:`minimax-h3-max`}),` is also accepted.`]})]}),`\n`,_jsxs(ParamField,{body:`nsfw_check`,type:`boolean`,default:`false`,id:`param-nsfw-check`,children:[_jsx(_components.p,{children:`Whether to run content moderation before submitting the video task.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: use `,_jsx(_components.code,{children:`omni-moderation-latest`}),` to review prompts and input images`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),` or omitted: do not send a moderation request, adding no moderation cost or latency (default)`]}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:[_jsx(_components.p,{children:`A non-empty description of the video. Required in every mode.`}),_jsxs(_components.p,{children:[`Maximum: `,_jsx(_components.code,{children:`7000`}),` characters.`]})]}),`\n`,_jsxs(ParamField,{body:`duration`,type:`integer`,default:`5`,id:`param-duration`,children:[_jsx(_components.p,{children:`Video duration in seconds.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Integer from `,_jsx(_components.code,{children:`5`}),` to `,_jsx(_components.code,{children:`15`})]}),`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`5`})]}),`\n`,_jsx(_components.li,{children:`4 seconds is not supported`}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`resolution`,type:`string`,default:`768P`,id:`param-resolution`,children:[_jsxs(_components.p,{children:[`Output resolution: `,_jsx(_components.code,{children:`480P`}),`, `,_jsx(_components.code,{children:`768P`}),` (default), or `,_jsx(_components.code,{children:`1080P`}),`.`]}),_jsxs(_components.p,{children:[`At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`2K`}),`, `,_jsx(_components.code,{children:`1440P`}),`, and `,_jsx(_components.code,{children:`2048P`}),` are not supported. Invalid values return HTTP 400 and are not silently downgraded.`]})})]}),`\n`,_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`Output aspect ratio. The aliases `,_jsx(_components.code,{children:`size`}),` and `,_jsx(_components.code,{children:`ratio`}),` are also accepted.`]}),_jsxs(_components.p,{children:[`Text-to-video values: `,_jsx(_components.code,{children:`21:9`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`9:16`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`T2V without this field, or with `,_jsx(_components.code,{children:`adaptive`}),`: falls back to `,_jsx(_components.code,{children:`16:9`})]}),`\n`,_jsx(_components.li,{children:`I2V: determined by the input image; this field is ignored`}),`\n`,_jsxs(_components.li,{children:[`Multimodal references: optional; defaults to `,_jsx(_components.code,{children:`adaptive`}),`, or specify an explicit ratio`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`first_frame_image`,type:`string`,id:`param-first-frame-image`,children:_jsx(_components.p,{children:`Public image URL used as the video’s first frame.`})}),`\n`,_jsx(ParamField,{body:`last_frame_image`,type:`string`,id:`param-last-frame-image`,children:_jsxs(_components.p,{children:[`Public image URL used as the video’s last frame. It can be used alone or together with `,_jsx(_components.code,{children:`first_frame_image`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`image_with_roles`,type:`object[]`,id:`param-image-with-roles`,children:[_jsxs(_components.p,{children:[`Role-based image array that can replace `,_jsx(_components.code,{children:`first_frame_image`}),`, `,_jsx(_components.code,{children:`last_frame_image`}),`, or `,_jsx(_components.code,{children:`image_urls`}),`.`]}),_jsxs(Expandable,{title:`image_with_roles item`,children:[_jsx(ResponseField,{name:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`Public image URL`})}),_jsxs(ResponseField,{name:`role`,type:`string`,id:`param-role`,children:[_jsx(_components.p,{children:`Supported roles:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`first_frame`}),`; aliases include `,_jsx(_components.code,{children:`first`}),` and `,_jsx(_components.code,{children:`start`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`last_frame`}),`; aliases include `,_jsx(_components.code,{children:`last`}),`, `,_jsx(_components.code,{children:`end_frame`}),`, and `,_jsx(_components.code,{children:`tail`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference_image`}),`: reference image; alias `,_jsx(_components.code,{children:`reference`}),`; an empty role is treated as a reference image`]}),`\n`]})]})]}),_jsxs(_components.p,{children:[`Up to one first frame and one last frame. Reference images in this array and `,_jsx(_components.code,{children:`image_urls`}),` together must not exceed `,_jsx(_components.code,{children:`9`}),`. Frame roles cannot be mixed with reference-image roles.`]})]}),`\n`,_jsx(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:_jsxs(_components.p,{children:[`Public reference-image URL array. Together with reference images in `,_jsx(_components.code,{children:`image_with_roles`}),`, at most `,_jsx(_components.code,{children:`9`}),` images. All images are treated as references, never automatically as first/last frames. For first-frame control, use `,_jsx(_components.code,{children:`first_frame_image`}),` or the `,_jsx(_components.code,{children:`first_frame`}),` role.`]})}),`\n`,_jsxs(ParamField,{body:`video_urls`,type:`string[]`,id:`param-video-urls`,children:[_jsxs(_components.p,{children:[`Public reference-video URL array; a single video can also use `,_jsx(_components.code,{children:`video_url`}),` (string). At most `,_jsx(_components.code,{children:`3`}),` clips, each `,_jsx(_components.code,{children:`2`}),`–`,_jsx(_components.code,{children:`15`}),` seconds, with a combined reference-video duration of at most `,_jsx(_components.code,{children:`15`}),` seconds.`]}),_jsx(_components.p,{children:`Reference-video duration is read at submission for billing. If it cannot be read, HTTP 400 is returned synchronously; no task is created or charged.`})]}),`\n`,_jsx(ParamField,{body:`audio_urls`,type:`string[]`,id:`param-audio-urls`,children:_jsxs(_components.p,{children:[`Public reference-audio URL array; a single clip can also use `,_jsx(_components.code,{children:`audio_url`}),` (string). At most `,_jsx(_components.code,{children:`3`}),` clips, each `,_jsx(_components.code,{children:`2`}),`–`,_jsx(_components.code,{children:`15`}),` seconds, with a combined reference-audio duration of at most `,_jsx(_components.code,{children:`15`}),` seconds. Must accompany at least one reference image or video; audio alone is not supported.`]})}),`\n`,_jsxs(ParamField,{body:`watermark`,type:`boolean`,default:`false`,id:`param-watermark`,children:[_jsxs(_components.p,{children:[`Whether to add an AIGC watermark. Alias: `,_jsx(_components.code,{children:`aigc_watermark`}),`.`]}),_jsxs(_components.p,{children:[`Watermarks are only supported at `,_jsx(_components.code,{children:`480P`}),` / `,_jsx(_components.code,{children:`768P`}),`. At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`webhook`,type:`string`,id:`param-webhook`,children:[_jsx(_components.p,{children:`Receives a notification when the task reaches a successful or failed terminal state.`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`webhook`}),`, not MiniMax’s `,_jsx(_components.code,{children:`callback_url`}),`. The gateway reserves `,_jsx(_components.code,{children:`callback_url`}),` for internal polling acceleration.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-constraints`,children:`Parameter constraints`}),`\n`,_jsx(_components.p,{children:`The following invalid parameters or combinations return HTTP 400 before task creation and billing:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter / value`}),_jsx(_components.th,{children:`Reason`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`First/last frames combined with reference media`}),_jsx(_components.td,{children:`I2V and R2V are mutually exclusive`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`More than `,_jsx(_components.code,{children:`9`}),` reference images, or more than `,_jsx(_components.code,{children:`3`}),` reference videos or audio clips`]}),_jsx(_components.td,{children:`Exceeds the media count limit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference audio alone`}),_jsx(_components.td,{children:`Requires a reference image or video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resolution: \"2K\"`})}),_jsxs(_components.td,{children:[`Only `,_jsx(_components.code,{children:`480P`}),`, `,_jsx(_components.code,{children:`768P`}),`, and `,_jsx(_components.code,{children:`1080P`}),` are supported`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duration: 4`}),` or a value above `,_jsx(_components.code,{children:`15`})]}),_jsx(_components.td,{children:`Only 5–15 seconds are supported`})]})]})]}),`\n`,_jsx(_components.p,{children:`Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For 2K, middle frames, or a 4-second video, use `,_jsx(_components.a,{href:`/en/api-reference/videos/minimax-h3/generation`,children:`MiniMax-H3`}),` and adjust the parameters accordingly.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`input-media-limits`,children:`Input media limits`}),`\n`,_jsx(_components.p,{children:`The total request body must not exceed 64 MB. Use public URLs for images, videos, and audio; do not use Base64.`}),`\n`,_jsx(Heading,{level:`3`,id:`images`,children:`Images`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`JPG / JPEG / PNG / WEBP / HEIC / HEIF`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per file`}),_jsx(_components.td,{children:`≤ 30 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Width and height`}),_jsx(_components.td,{children:`256–5760 px`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Aspect ratio (width / height)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.4–2.5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Count`}),_jsx(_components.td,{children:`Up to 1 first frame, 1 last frame, and 9 reference images; frame images and reference images cannot be mixed`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`reference-videos`,children:`Reference videos`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`MP4 / MOV, H.264 / H.265`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per file`}),_jsx(_components.td,{children:`≤ 50 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Count`}),_jsx(_components.td,{children:`≤ 3`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per-clip duration`}),_jsx(_components.td,{children:`2–15 s`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total duration`}),_jsx(_components.td,{children:`≤ 15 s`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Width and height`}),_jsx(_components.td,{children:`256–5760 px`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Aspect ratio (width / height)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.4–2.5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Frame rate`}),_jsx(_components.td,{children:`23.976–60 fps`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`reference-audio`,children:`Reference audio`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`WAV / MP3`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per file`}),_jsx(_components.td,{children:`≤ 15 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Count`}),_jsx(_components.td,{children:`≤ 3`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per-clip duration`}),_jsx(_components.td,{children:`2–15 s`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total duration`}),_jsx(_components.td,{children:`≤ 15 s`})]})]})]}),`\n`,_jsx(_components.p,{children:`Reference audio must accompany a reference image or video. Video and audio duration totals are calculated separately; each must not exceed 15 seconds.`}),`\n`,_jsx(_components.p,{children:`Media that does not meet these requirements may fail during generation; failed tasks are refunded automatically.`}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`first-frame-image-to-video`,children:`First-frame image-to-video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The camera slowly pushes in as steam rises and people move in the background.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/ramen.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"480P\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`first-and-last-frame-image-to-video`,children:`First-and-last-frame image-to-video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The scene gradually transitions from morning to sunset.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/morning.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/sunset.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"768P\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`1080p-text-to-video`,children:`1080P text-to-video`}),`\n`,_jsxs(_components.p,{children:[`At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Sunset on the coast, waves gently washing the beach, a slow camera push-in, cinematic texture.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multimodal-reference-generation`,children:`Multimodal reference generation`}),`\n`,_jsx(_components.p,{children:`Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The character from the reference image runs through the scene from the reference video, following the rhythm of the reference audio.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/role.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"video_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/scene.mp4\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/beat.mp3\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`query-a-task`,children:`Query a task`}),`\n`,_jsxs(_components.p,{children:[`Submission returns a `,_jsx(_components.code,{children:`task_id`}),`. Poll `,_jsx(_components.a,{href:`/en/api-reference/tasks/status`,children:`Task Status`}),` every 5–10 seconds; use a client timeout of 15 minutes.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/tasks/task_01J9HA7JPQ9A0Z6JZ3V8M9W6PZ`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:`Submitted or queued`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Generating`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsxs(_components.td,{children:[`Video URL is in `,_jsx(_components.code,{children:`result.videos[0].url`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsxs(_components.td,{children:[`Check `,_jsx(_components.code,{children:`error.message`}),`; the task is refunded automatically`]})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Generated video URLs typically expire after about 24 hours. Download and store the result promptly.`})}),`\n`,_jsx(Heading,{level:`2`,id:`pricing`,children:`Pricing`}),`\n`,_jsx(_components.p,{children:`Total cost includes generated video, additional input images, and reference video:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Total cost = generation rate per second × output duration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` + additional image rate × max(0, input image count − 2)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` + reference video rate per second × total reference video duration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`First frames, last frames, and reference images are counted together. The first 2 images are free; additional images are charged individually. Total reference-video duration must not exceed 15 seconds.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Rate`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1080P video`}),_jsx(_components.td,{children:`Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`768P video`}),_jsx(_components.td,{children:`Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`480P video`}),_jsx(_components.td,{children:`Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input images`}),_jsx(_components.td,{children:`First 2 images are free; additional images are charged individually; Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference videos`}),_jsx(_components.td,{children:`Charged per input second, subject to model pricing; varies with output resolution and is separate from the generation rate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference audio`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Free`})})]})]})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Cost`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`768P / 5s`}),_jsx(_components.td,{children:`768P generation rate × 5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`768P / 10s`}),_jsx(_components.td,{children:`768P generation rate × 10`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`480P / 10s`}),_jsx(_components.td,{children:`480P generation rate × 10`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`480P / 15s`}),_jsx(_components.td,{children:`480P generation rate × 15`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`768P / 5s + Images × 3`}),_jsx(_components.td,{children:`768P generation rate × 5 + additional image rate × 1`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`480P / 10s + Reference videos (12s)`}),_jsx(_components.td,{children:`480P generation rate × 10 + 480P reference video rate × 12`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1080P / 5s + Images × 2 + Reference audio`}),_jsx(_components.td,{children:`1080P generation rate × 5`})]})]})]}),`\n`,_jsx(_components.p,{children:`All rates are subject to model pricing. In the 1080P example with 2 reference images and reference audio, the images and audio are free.`}),`\n`,_jsxs(_components.p,{children:[`The estimated amount is reserved at submission. Failed tasks receive a full automatic refund; the task response’s `,_jsx(_components.code,{children:`cost`}),` field is authoritative.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scenario`}),_jsx(_components.th,{children:`Result`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Empty or over-7000-character `,_jsx(_components.code,{children:`prompt`})]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duration`}),` outside 5–15`]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Unsupported `,_jsx(_components.code,{children:`resolution`})]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`First/last frames combined with reference media / Reference audio alone`}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`More than `,_jsx(_components.code,{children:`9`}),` reference images, or more than `,_jsx(_components.code,{children:`3`}),` reference videos or audio clips`]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cannot read reference-video duration`}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid image role, or more than one image for a first/last-frame role`}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Insufficient balance`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`402`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content safety rejection`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Rate limit`}),_jsx(_components.td,{children:`429; retry with backoff`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Generation failures return `,_jsx(_components.code,{children:`status = failed`}),` with details in `,_jsx(_components.code,{children:`error.message`}),` and are refunded automatically.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`code`,type:`integer`,id:`param-code`,children:_jsx(_components.p,{children:`Response status code; 200 on success`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`Submission result containing the initial task status and task ID`}),_jsxs(Expandable,{title:`Array item`,children:[_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Initially `,_jsx(_components.code,{children:`submitted`})]})}),_jsx(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id`,children:_jsx(_components.p,{children:`Unique task identifier used to query progress and results`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"MiniMax-H3-Max Video Generation","description":" - MiniMax Video Generation V2 fast model with asynchronous task submission\n- Supports text-to-video, first/last-frame control, and multimodal reference generation\n- Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio\n- Supports reference images, videos, and audio; 2K and middle frames are not supported ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/max"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Model selection:`}),` Use `,_jsx(_components.code,{children:`MiniMax-H3-Max`}),` for fast text-to-video, first/last-frame control, or multimodal reference generation at 480P, 768P, or 1080P. For 2K or middle frames, use `,_jsx(_components.a,{href:`/en/api-reference/videos/minimax-h3/generation`,children:`MiniMax-H3`}),`.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/videos/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"MiniMax-H3-Max\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A detective in a trench coat turns around on a neon-lit street in the rain. The camera slowly pushes in as reflections shimmer on the pavement.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"768P\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"16:9\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`18`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apimart.ai/v1/videos/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A detective turns around on a neon-lit street in the rain.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"768P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`16`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.apimart.ai/v1/videos/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A detective turns around on a neon-lit street in the rain.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` duration:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resolution:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"768P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` aspect_ratio:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submitted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01J9HA7JPQ9A0Z6JZ3V8M9W6PZ\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid request parameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_request_error\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`401`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authentication failed. Check your API key.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"authentication_error\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`402`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`402`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient account balance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsxs(_components.p,{children:[`All endpoints require Bearer Token authentication. Get your key from the `,_jsx(_components.a,{href:`https://apimart.ai/keys`,children:`API Key page`}),`.`]}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`choose-the-right-model`,children:`Choose the right model`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Capability`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`MiniMax-H3`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`MiniMax-H3-Max`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Resolution`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`2K`}),` / `,_jsx(_components.code,{children:`768P`}),`; default `,_jsx(_components.code,{children:`2K`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`480P`}),` / `,_jsx(_components.code,{children:`768P`}),` / `,_jsx(_components.code,{children:`1080P`}),`; default `,_jsx(_components.code,{children:`768P`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Duration`}),_jsx(_components.td,{children:`4–15 seconds`}),_jsx(_components.td,{children:`5–15 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text-to-video`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`First / last frames`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Middle frames`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Not supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Multimodal references`}),_jsx(_components.td,{children:`Images, video, and audio`}),_jsx(_components.td,{children:`Images, video, and audio`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input image charge`}),_jsx(_components.td,{children:`First 5 images are free`}),_jsx(_components.td,{children:`First 2 images are free; additional images are charged individually`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference video charge`}),_jsx(_components.td,{children:`Based on input duration, at the same rate as output video of the same resolution`}),_jsx(_components.td,{children:`Based on input duration, at a separate rate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`AIGC watermark`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported at 480P / 768P; not supported at 1080P`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`MiniMax-H3-Max`}),` does not support 2K and its output cannot be used as the source for `,_jsx(_components.a,{href:`/en/api-reference/videos/minimax-h3/regeneration`,children:`Regeneration`}),`. Use `,_jsx(_components.code,{children:`MiniMax-H3`}),` when you need either capability.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`generation-modes`,children:`Generation modes`}),`\n`,_jsxs(_components.p,{children:[`The request fields determine the mode automatically; do not send a `,_jsx(_components.code,{children:`mode`}),` field.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Trigger`}),_jsx(_components.th,{children:`Behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text-to-video (T2V)`}),_jsxs(_components.td,{children:[`Only `,_jsx(_components.code,{children:`prompt`}),` and common fields`]}),_jsx(_components.td,{children:`Generates from text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image-to-video (I2V)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`first_frame_image`}),` / `,_jsx(_components.code,{children:`last_frame_image`}),`, or equivalent roles in `,_jsx(_components.code,{children:`image_with_roles`})]}),_jsx(_components.td,{children:`Controls the first frame, last frame, or both`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Multimodal references (R2V)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_urls`}),` / `,_jsx(_components.code,{children:`video_urls`}),` / `,_jsx(_components.code,{children:`audio_urls`}),`, or `,_jsx(_components.code,{children:`reference_image`}),` in `,_jsx(_components.code,{children:`image_with_roles`})]}),_jsx(_components.td,{children:`Generates using reference images, videos, and audio; also supported at 1080P`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`First/last-frame fields cannot be combined with reference media. Reference audio must accompany at least one reference image or video. Invalid combinations return HTTP 400 synchronously; no task is created or charged.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsxs(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:[_jsxs(_components.p,{children:[`Fixed value: `,_jsx(_components.code,{children:`MiniMax-H3-Max`})]}),_jsxs(_components.p,{children:[`Model IDs are case-insensitive; `,_jsx(_components.code,{children:`minimax-h3-max`}),` is also accepted.`]})]}),`\n`,_jsxs(ParamField,{body:`nsfw_check`,type:`boolean`,default:`false`,id:`param-nsfw-check`,children:[_jsx(_components.p,{children:`Whether to run content moderation before submitting the video task.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: use `,_jsx(_components.code,{children:`omni-moderation-latest`}),` to review prompts and input images`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),` or omitted: do not send a moderation request, adding no moderation cost or latency (default)`]}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:[_jsx(_components.p,{children:`A non-empty description of the video. Required in every mode.`}),_jsxs(_components.p,{children:[`Maximum: `,_jsx(_components.code,{children:`7000`}),` characters.`]})]}),`\n`,_jsxs(ParamField,{body:`duration`,type:`integer`,default:`5`,id:`param-duration`,children:[_jsx(_components.p,{children:`Video duration in seconds.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Integer from `,_jsx(_components.code,{children:`5`}),` to `,_jsx(_components.code,{children:`15`})]}),`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`5`})]}),`\n`,_jsx(_components.li,{children:`4 seconds is not supported`}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`resolution`,type:`string`,default:`768P`,id:`param-resolution`,children:[_jsxs(_components.p,{children:[`Output resolution: `,_jsx(_components.code,{children:`480P`}),`, `,_jsx(_components.code,{children:`768P`}),` (default), or `,_jsx(_components.code,{children:`1080P`}),`.`]}),_jsxs(_components.p,{children:[`At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`2K`}),`, `,_jsx(_components.code,{children:`1440P`}),`, and `,_jsx(_components.code,{children:`2048P`}),` are not supported. Invalid values return HTTP 400 and are not silently downgraded.`]})})]}),`\n`,_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`Output aspect ratio. The aliases `,_jsx(_components.code,{children:`size`}),` and `,_jsx(_components.code,{children:`ratio`}),` are also accepted.`]}),_jsxs(_components.p,{children:[`Text-to-video values: `,_jsx(_components.code,{children:`21:9`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`9:16`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`T2V without this field, or with `,_jsx(_components.code,{children:`adaptive`}),`: falls back to `,_jsx(_components.code,{children:`16:9`})]}),`\n`,_jsx(_components.li,{children:`I2V: determined by the input image; this field is ignored`}),`\n`,_jsxs(_components.li,{children:[`Multimodal references: optional; defaults to `,_jsx(_components.code,{children:`adaptive`}),`, or specify an explicit ratio`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`first_frame_image`,type:`string`,id:`param-first-frame-image`,children:_jsx(_components.p,{children:`Public image URL used as the video’s first frame.`})}),`\n`,_jsx(ParamField,{body:`last_frame_image`,type:`string`,id:`param-last-frame-image`,children:_jsxs(_components.p,{children:[`Public image URL used as the video’s last frame. It can be used alone or together with `,_jsx(_components.code,{children:`first_frame_image`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`image_with_roles`,type:`object[]`,id:`param-image-with-roles`,children:[_jsxs(_components.p,{children:[`Role-based image array that can replace `,_jsx(_components.code,{children:`first_frame_image`}),`, `,_jsx(_components.code,{children:`last_frame_image`}),`, or `,_jsx(_components.code,{children:`image_urls`}),`.`]}),_jsxs(Expandable,{title:`image_with_roles item`,children:[_jsx(ResponseField,{name:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`Public image URL`})}),_jsxs(ResponseField,{name:`role`,type:`string`,id:`param-role`,children:[_jsx(_components.p,{children:`Supported roles:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`first_frame`}),`; aliases include `,_jsx(_components.code,{children:`first`}),` and `,_jsx(_components.code,{children:`start`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`last_frame`}),`; aliases include `,_jsx(_components.code,{children:`last`}),`, `,_jsx(_components.code,{children:`end_frame`}),`, and `,_jsx(_components.code,{children:`tail`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference_image`}),`: reference image; alias `,_jsx(_components.code,{children:`reference`}),`; an empty role is treated as a reference image`]}),`\n`]})]})]}),_jsxs(_components.p,{children:[`Up to one first frame and one last frame. Reference images in this array and `,_jsx(_components.code,{children:`image_urls`}),` together must not exceed `,_jsx(_components.code,{children:`9`}),`. Frame roles cannot be mixed with reference-image roles.`]})]}),`\n`,_jsx(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:_jsxs(_components.p,{children:[`Public reference-image URL array. Together with reference images in `,_jsx(_components.code,{children:`image_with_roles`}),`, at most `,_jsx(_components.code,{children:`9`}),` images. All images are treated as references, never automatically as first/last frames. For first-frame control, use `,_jsx(_components.code,{children:`first_frame_image`}),` or the `,_jsx(_components.code,{children:`first_frame`}),` role.`]})}),`\n`,_jsxs(ParamField,{body:`video_urls`,type:`string[]`,id:`param-video-urls`,children:[_jsxs(_components.p,{children:[`Public reference-video URL array; a single video can also use `,_jsx(_components.code,{children:`video_url`}),` (string). At most `,_jsx(_components.code,{children:`3`}),` clips, each `,_jsx(_components.code,{children:`2`}),`–`,_jsx(_components.code,{children:`15`}),` seconds, with a combined reference-video duration of at most `,_jsx(_components.code,{children:`15`}),` seconds.`]}),_jsx(_components.p,{children:`Reference-video duration is read at submission for billing. If it cannot be read, HTTP 400 is returned synchronously; no task is created or charged.`})]}),`\n`,_jsx(ParamField,{body:`audio_urls`,type:`string[]`,id:`param-audio-urls`,children:_jsxs(_components.p,{children:[`Public reference-audio URL array; a single clip can also use `,_jsx(_components.code,{children:`audio_url`}),` (string). At most `,_jsx(_components.code,{children:`3`}),` clips, each `,_jsx(_components.code,{children:`2`}),`–`,_jsx(_components.code,{children:`15`}),` seconds, with a combined reference-audio duration of at most `,_jsx(_components.code,{children:`15`}),` seconds. Must accompany at least one reference image or video; audio alone is not supported.`]})}),`\n`,_jsxs(ParamField,{body:`watermark`,type:`boolean`,default:`false`,id:`param-watermark`,children:[_jsxs(_components.p,{children:[`Whether to add an AIGC watermark. Alias: `,_jsx(_components.code,{children:`aigc_watermark`}),`.`]}),_jsxs(_components.p,{children:[`Watermarks are only supported at `,_jsx(_components.code,{children:`480P`}),` / `,_jsx(_components.code,{children:`768P`}),`. At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`webhook`,type:`string`,id:`param-webhook`,children:[_jsx(_components.p,{children:`Receives a notification when the task reaches a successful or failed terminal state.`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`webhook`}),`, not MiniMax’s `,_jsx(_components.code,{children:`callback_url`}),`. The gateway reserves `,_jsx(_components.code,{children:`callback_url`}),` for internal polling acceleration.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-constraints`,children:`Parameter constraints`}),`\n`,_jsx(_components.p,{children:`The following invalid parameters or combinations return HTTP 400 before task creation and billing:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter / value`}),_jsx(_components.th,{children:`Reason`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`First/last frames combined with reference media`}),_jsx(_components.td,{children:`I2V and R2V are mutually exclusive`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`More than `,_jsx(_components.code,{children:`9`}),` reference images, or more than `,_jsx(_components.code,{children:`3`}),` reference videos or audio clips`]}),_jsx(_components.td,{children:`Exceeds the media count limit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference audio alone`}),_jsx(_components.td,{children:`Requires a reference image or video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resolution: \"2K\"`})}),_jsxs(_components.td,{children:[`Only `,_jsx(_components.code,{children:`480P`}),`, `,_jsx(_components.code,{children:`768P`}),`, and `,_jsx(_components.code,{children:`1080P`}),` are supported`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duration: 4`}),` or a value above `,_jsx(_components.code,{children:`15`})]}),_jsx(_components.td,{children:`Only 5–15 seconds are supported`})]})]})]}),`\n`,_jsx(_components.p,{children:`Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For 2K, middle frames, or a 4-second video, use `,_jsx(_components.a,{href:`/en/api-reference/videos/minimax-h3/generation`,children:`MiniMax-H3`}),` and adjust the parameters accordingly.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`input-media-limits`,children:`Input media limits`}),`\n`,_jsx(_components.p,{children:`The total request body must not exceed 64 MB. Use public URLs for images, videos, and audio; do not use Base64.`}),`\n`,_jsx(Heading,{level:`3`,id:`images`,children:`Images`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`JPG / JPEG / PNG / WEBP / HEIC / HEIF`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per file`}),_jsx(_components.td,{children:`≤ 30 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Width and height`}),_jsx(_components.td,{children:`256–5760 px`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Aspect ratio (width / height)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.4–2.5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Count`}),_jsx(_components.td,{children:`Up to 1 first frame, 1 last frame, and 9 reference images; frame images and reference images cannot be mixed`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`reference-videos`,children:`Reference videos`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`MP4 / MOV, H.264 / H.265`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per file`}),_jsx(_components.td,{children:`≤ 50 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Count`}),_jsx(_components.td,{children:`≤ 3`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per-clip duration`}),_jsx(_components.td,{children:`2–15 s`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total duration`}),_jsx(_components.td,{children:`≤ 15 s`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Width and height`}),_jsx(_components.td,{children:`256–5760 px`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Aspect ratio (width / height)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.4–2.5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Frame rate`}),_jsx(_components.td,{children:`23.976–60 fps`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`reference-audio`,children:`Reference audio`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`WAV / MP3`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per file`}),_jsx(_components.td,{children:`≤ 15 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Count`}),_jsx(_components.td,{children:`≤ 3`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per-clip duration`}),_jsx(_components.td,{children:`2–15 s`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total duration`}),_jsx(_components.td,{children:`≤ 15 s`})]})]})]}),`\n`,_jsx(_components.p,{children:`Reference audio must accompany a reference image or video. Video and audio duration totals are calculated separately; each must not exceed 15 seconds.`}),`\n`,_jsx(_components.p,{children:`Media that does not meet these requirements may fail during generation; failed tasks are refunded automatically.`}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`first-frame-image-to-video`,children:`First-frame image-to-video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The camera slowly pushes in as steam rises and people move in the background.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/ramen.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"480P\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`first-and-last-frame-image-to-video`,children:`First-and-last-frame image-to-video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The scene gradually transitions from morning to sunset.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/morning.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_frame_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/sunset.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"768P\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`1080p-text-to-video`,children:`1080P text-to-video`}),`\n`,_jsxs(_components.p,{children:[`At `,_jsx(_components.code,{children:`1080P`}),`, omit both `,_jsx(_components.code,{children:`watermark`}),` and its alias `,_jsx(_components.code,{children:`aigc_watermark`}),`, even when the value is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Sunset on the coast, waves gently washing the beach, a slow camera push-in, cinematic texture.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multimodal-reference-generation`,children:`Multimodal reference generation`}),`\n`,_jsx(_components.p,{children:`Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-H3-Max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The character from the reference image runs through the scene from the reference video, following the rhythm of the reference audio.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/role.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"video_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/scene.mp4\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audio_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/beat.mp3\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`query-a-task`,children:`Query a task`}),`\n`,_jsxs(_components.p,{children:[`Submission returns a `,_jsx(_components.code,{children:`task_id`}),`. Poll `,_jsx(_components.a,{href:`/en/api-reference/tasks/status`,children:`Task Status`}),` every 5–10 seconds; use a client timeout of 15 minutes.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/tasks/task_01J9HA7JPQ9A0Z6JZ3V8M9W6PZ`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:`Submitted or queued`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Generating`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsxs(_components.td,{children:[`Video URL is in `,_jsx(_components.code,{children:`result.videos[0].url`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsxs(_components.td,{children:[`Check `,_jsx(_components.code,{children:`error.message`}),`; the task is refunded automatically`]})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Generated video URLs typically expire after about 24 hours. Download and store the result promptly.`})}),`\n`,_jsx(Heading,{level:`2`,id:`pricing`,children:`Pricing`}),`\n`,_jsx(_components.p,{children:`Total cost includes generated video, additional input images, and reference video:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Total cost = generation rate per second × output duration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` + additional image rate × max(0, input image count − 2)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` + reference video rate per second × total reference video duration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`First frames, last frames, and reference images are counted together. The first 2 images are free; additional images are charged individually. Total reference-video duration must not exceed 15 seconds.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Rate`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1080P video`}),_jsx(_components.td,{children:`Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`768P video`}),_jsx(_components.td,{children:`Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`480P video`}),_jsx(_components.td,{children:`Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input images`}),_jsx(_components.td,{children:`First 2 images are free; additional images are charged individually; Subject to model pricing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference videos`}),_jsx(_components.td,{children:`Charged per input second, subject to model pricing; varies with output resolution and is separate from the generation rate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference audio`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Free`})})]})]})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Cost`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`768P / 5s`}),_jsx(_components.td,{children:`768P generation rate × 5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`768P / 10s`}),_jsx(_components.td,{children:`768P generation rate × 10`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`480P / 10s`}),_jsx(_components.td,{children:`480P generation rate × 10`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`480P / 15s`}),_jsx(_components.td,{children:`480P generation rate × 15`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`768P / 5s + Images × 3`}),_jsx(_components.td,{children:`768P generation rate × 5 + additional image rate × 1`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`480P / 10s + Reference videos (12s)`}),_jsx(_components.td,{children:`480P generation rate × 10 + 480P reference video rate × 12`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1080P / 5s + Images × 2 + Reference audio`}),_jsx(_components.td,{children:`1080P generation rate × 5`})]})]})]}),`\n`,_jsx(_components.p,{children:`All rates are subject to model pricing. In the 1080P example with 2 reference images and reference audio, the images and audio are free.`}),`\n`,_jsxs(_components.p,{children:[`The estimated amount is reserved at submission. Failed tasks receive a full automatic refund; the task response’s `,_jsx(_components.code,{children:`cost`}),` field is authoritative.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scenario`}),_jsx(_components.th,{children:`Result`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Empty or over-7000-character `,_jsx(_components.code,{children:`prompt`})]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duration`}),` outside 5–15`]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Unsupported `,_jsx(_components.code,{children:`resolution`})]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`First/last frames combined with reference media / Reference audio alone`}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`More than `,_jsx(_components.code,{children:`9`}),` reference images, or more than `,_jsx(_components.code,{children:`3`}),` reference videos or audio clips`]}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cannot read reference-video duration`}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid image role, or more than one image for a first/last-frame role`}),_jsx(_components.td,{children:`400; no task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Insufficient balance`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`402`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content safety rejection`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Rate limit`}),_jsx(_components.td,{children:`429; retry with backoff`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Generation failures return `,_jsx(_components.code,{children:`status = failed`}),` with details in `,_jsx(_components.code,{children:`error.message`}),` and are refunded automatically.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`code`,type:`integer`,id:`param-code`,children:_jsx(_components.p,{children:`Response status code; 200 on success`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`Submission result containing the initial task status and task ID`}),_jsxs(Expandable,{title:`Array item`,children:[_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Initially `,_jsx(_components.code,{children:`submitted`})]})}),_jsx(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id`,children:_jsx(_components.p,{children:`Unique task identifier used to query progress and results`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"MiniMax-H3-Max Video Generation","description":" - MiniMax Video Generation V2 fast model with asynchronous task submission\n- Supports text-to-video, first/last-frame control, and multimodal reference generation\n- Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio\n- Supports reference images, videos, and audio; 2K and middle frames are not supported ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/max"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Choose the right model","slug":"choose-the-right-model","depth":2,"children":[]},{"title":"Generation modes","slug":"generation-modes","depth":2,"children":[]},{"title":"Request parameters","slug":"request-parameters","depth":2,"children":[]},{"title":"Parameter constraints","slug":"parameter-constraints","depth":2,"children":[]},{"title":"Input media limits","slug":"input-media-limits","depth":2,"children":[{"title":"Images","slug":"images","depth":3,"children":[]},{"title":"Reference videos","slug":"reference-videos","depth":3,"children":[]},{"title":"Reference audio","slug":"reference-audio","depth":3,"children":[]}]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"First-frame image-to-video","slug":"first-frame-image-to-video","depth":3,"children":[]},{"title":"First-and-last-frame image-to-video","slug":"first-and-last-frame-image-to-video","depth":3,"children":[]},{"title":"1080P text-to-video","slug":"1080p-text-to-video","depth":3,"children":[]},{"title":"Multimodal reference generation","slug":"multimodal-reference-generation","depth":3,"children":[]}]},{"title":"Query a task","slug":"query-a-task","depth":2,"children":[]},{"title":"Pricing","slug":"pricing","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.apimart.ai/v1/videos/generations\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"MiniMax-H3-Max\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A detective in a trench coat turns around on a neon-lit street in the rain. The camera slowly pushes in as reflections shimmer on the pavement.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 5,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"768P\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"16:9\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"18\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.apimart.ai/v1/videos/generations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"MiniMax-H3-Max\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A detective turns around on a neon-lit street in the rain.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"768P\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"16:9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.apimart.ai/v1/videos/generations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"MiniMax-H3-Max\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> prompt:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"A detective turns around on a neon-lit street in the rain.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> duration:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> resolution:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"768P\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> aspect_ratio:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"16:9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">());\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"submitted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"task_01J9HA7JPQ9A0Z6JZ3V8M9W6PZ\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">400\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid request parameters\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_request_error\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">401\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authentication failed. Check your API key.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"authentication_error\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"402","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">402\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Insufficient account balance\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"payment_required\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"MiniMax-H3-Max Video Generation","path":"/v1/videos/generations","servers":[{"url":"https://api.apimart.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"All endpoints require Bearer Token authentication. Get your key from the API Key page .","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Fixed value: `MiniMax-H3-Max` Model IDs are case-insensitive; `minimax-h3-max` is also accepted.","required":true}],"nsfw_check":[{"type":"boolean","description":"Whether to run content moderation before submitting the video task. `true` : use `omni-moderation-latest` to review prompts and input images `false` or omitted: do not send a moderation request, adding no moderation cost or latency (default)"}],"prompt":[{"type":"string","description":"A non-empty description of the video. Required in every mode. Maximum: `7000` characters.","required":true}],"duration":[{"type":"integer","description":"Video duration in seconds. Integer from `5` to `15` Default: `5` 4 seconds is not supported"}],"resolution":[{"type":"string","description":"Output resolution: `480P` , `768P` (default), or `1080P` . At `1080P` , omit both `watermark` and its alias `aigc_watermark` , even when the value is `false` ."}],"aspect_ratio":[{"type":"string","description":"Output aspect ratio. The aliases `size` and `ratio` are also accepted. Text-to-video values: `21:9` , `16:9` , `4:3` , `1:1` , `3:4` , `9:16` . T2V without this field, or with `adaptive` : falls back to `16:9` I2V: determined by the input image; this field is ignored Multimodal references: optional; defaults to `adaptive` , or specify an explicit ratio"}],"first_frame_image":[{"type":"string","description":"Public image URL used as the video’s first frame."}],"last_frame_image":[{"type":"string","description":"Public image URL used as the video’s last frame. It can be used alone or together with `first_frame_image` ."}],"image_with_roles":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Role-based image array that can replace `first_frame_image` , `last_frame_image` , or `image_urls` . Up to one first frame and one last frame. Reference images in this array and `image_urls` together must not exceed `9` . Frame roles cannot be mixed with reference-image roles."}],"image_urls":[{"type":"array","items":[{"type":"string"}],"description":"Public reference-image URL array. Together with reference images in `image_with_roles` , at most `9` images. All images are treated as references, never automatically as first/last frames. For first-frame control, use `first_frame_image` or the `first_frame` role."}],"video_urls":[{"type":"array","items":[{"type":"string"}],"description":"Public reference-video URL array; a single video can also use `video_url` (string). At most `3` clips, each `2` – `15` seconds, with a combined reference-video duration of at most `15` seconds. Reference-video duration is read at submission for billing. If it cannot be read, HTTP 400 is returned synchronously; no task is created or charged."}],"audio_urls":[{"type":"array","items":[{"type":"string"}],"description":"Public reference-audio URL array; a single clip can also use `audio_url` (string). At most `3` clips, each `2` – `15` seconds, with a combined reference-audio duration of at most `15` seconds. Must accompany at least one reference image or video; audio alone is not supported."}],"watermark":[{"type":"boolean","description":"Whether to add an AIGC watermark. Alias: `aigc_watermark` . Watermarks are only supported at `480P` / `768P` . At `1080P` , omit both `watermark` and its alias `aigc_watermark` , even when the value is `false` ."}],"webhook":[{"type":"string","description":"Receives a notification when the task reaches a successful or failed terminal state."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","nsfw_check":true,"prompt":"\u003cstring>","duration":123,"resolution":"\u003cstring>","aspect_ratio":"\u003cstring>","first_frame_image":"\u003cstring>","last_frame_image":"\u003cstring>","image_with_roles":[{}],"image_urls":["\u003cstring>"],"video_urls":["\u003cstring>"],"audio_urls":["\u003cstring>"],"watermark":true,"webhook":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"code":[{"type":"integer","description":"Response status code; 200 on success"}],"data":[{"type":"array","items":[{"type":"object","properties":{"status":[{"type":"string","description":"Initially `submitted`"}],"task_id":[{"type":"string","description":"Unique task identifier used to query progress and results"}]}}],"description":"Submission result containing the initial task status and task ID"}]}}],"examples":{"example":{"value":{"code":123,"data":[{"status":"\u003cstring>","task_id":"\u003cstring>"}]}}}}}},"deprecated":false}},"jsLinks":["/_mintlify/custom/apicore/1f7e29c94a916812/cn-domain-rewrite.js","/_mintlify/custom/apicore/afc6076845564106/param-field-copy.js"],"subdomain":"apicore","siteName":"APIMart","title":"MiniMax-H3-Max Video Generation - APIMart","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/videos/minimax-h3/max","matchLevel":0},"zh-Hans":{"href":"/cn/api-reference/videos/minimax-h3/max","matchLevel":1},"ja":{"href":"/ja/api-reference/videos/minimax-h3/max","matchLevel":1},"ko":{"href":"/ko/api-reference/videos/minimax-h3/max","matchLevel":1},"ru":{"href":"/ru/api-reference/videos/minimax-h3/max","matchLevel":1},"de":{"href":"/de/api-reference/videos/minimax-h3/max","matchLevel":1},"fr":{"href":"/fr/api-reference/videos/minimax-h3/max","matchLevel":1},"pt":{"href":"/pt/api-reference/videos/minimax-h3/max","matchLevel":1},"id":{"href":"/id/api-reference/videos/minimax-h3/max","matchLevel":1},"es":{"href":"/es/api-reference/videos/minimax-h3/max","matchLevel":1}}},"lastModified":"2026-11-13T03:13:24.638Z","originalFileLocation":"en/api-reference/videos/minimax-h3/max.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"- MiniMax Video Generation V2 fast model with asynchronous task submission - Supports text-to-video, first/last-frame control, and multimodal reference generation - Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio - Supports reference images, videos, and audio; 2K and middle frames are not supported\">\u003cmeta data-mint-head name=\"keywords\" content=\"OpenAI compatible, API gateway, GPT-5, Claude, Gemini, multi-provider, transparent pricing, SLA\">\u003cmeta data-mint-head name=\"application-name\" content=\"APIMart\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"MiniMax-H3-Max Video Generation - APIMart\">\u003cmeta data-mint-head property=\"og:description\" content=\"- MiniMax Video Generation V2 fast model with asynchronous task submission - Supports text-to-video, first/last-frame control, and multimodal reference generation - Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio - Supports reference images, videos, and audio; 2K and middle frames are not supported\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"APIMart\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apicore.mintlify.site/_mintlify/api/og/v2?division=MiniMax-H3\u0026amp;title=MiniMax-H3-Max+Video+Generation\u0026amp;description=+-+MiniMax+Video+Generation+V2+fast+model+with+asynchronous+task+submission%0A-+Supports+text-to-video%2C+first%2Flast-frame+control%2C+and+multimodal+reference+generat\u0026amp;theme=20cab0b8d8d3e93733d26c49\u0026amp;signature=b393addb13e152f48794e24a9ea0a373cc1bf45dafeafbe4cb74a92333d1cff6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"MiniMax-H3-Max Video Generation - APIMart\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"- MiniMax Video Generation V2 fast model with asynchronous task submission - Supports text-to-video, first/last-frame control, and multimodal reference generation - Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio - Supports reference images, videos, and audio; 2K and middle frames are not supported\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apicore.mintlify.site/_mintlify/api/og/v2?division=MiniMax-H3\u0026amp;title=MiniMax-H3-Max+Video+Generation\u0026amp;description=+-+MiniMax+Video+Generation+V2+fast+model+with+asynchronous+task+submission%0A-+Supports+text-to-video%2C+first%2Flast-frame+control%2C+and+multimodal+reference+generat\u0026amp;theme=20cab0b8d8d3e93733d26c49\u0026amp;signature=b393addb13e152f48794e24a9ea0a373cc1bf45dafeafbe4cb74a92333d1cff6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"APIMart\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@APIMart_\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/videos/minimax-h3/max.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.apimart.ai/cn/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.apimart.ai/ja/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.apimart.ai/ko/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.apimart.ai/ru/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.apimart.ai/de/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.apimart.ai/fr/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.apimart.ai/pt/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.apimart.ai/id/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.apimart.ai/es/api-reference/videos/minimax-h3/max\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.apimart.ai/#organization\",\"name\":\"APIMart\",\"url\":\"https://docs.apimart.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.apimart.ai#website\",\"name\":\"APIMart\",\"url\":\"https://docs.apimart.ai\",\"publisher\":{\"@id\":\"https://docs.apimart.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max#webpage\",\"url\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\",\"name\":\"MiniMax-H3-Max Video Generation\",\"description\":\"- MiniMax Video Generation V2 fast model with asynchronous task submission - Supports text-to-video, first/last-frame control, and multimodal reference generation - Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio - Supports reference images, videos, and audio; 2K and middle frames are not supported\",\"dateModified\":\"2026-11-13T03:13:24.638Z\",\"isPartOf\":{\"@id\":\"https://docs.apimart.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video Series\",\"item\":\"https://docs.apimart.ai/en/api-reference/videos/magi-2/generation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MiniMax-H3\",\"item\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/generation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MiniMax-H3-Max Video Generation\",\"item\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max#apireference\",\"headline\":\"MiniMax-H3-Max Video Generation\",\"name\":\"MiniMax-H3-Max Video Generation\",\"description\":\"- MiniMax Video Generation V2 fast model with asynchronous task submission - Supports text-to-video, first/last-frame control, and multimodal reference generation - Supports 480P / 768P / 1080P, durations of 5–15 seconds, with audio - Supports reference images, videos, and audio; 2K and middle frames are not supported\",\"url\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max\",\"mainEntityOfPage\":{\"@id\":\"https://docs.apimart.ai/en/api-reference/videos/minimax-h3/max#webpage\"},\"dateModified\":\"2026-11-13T03:13:24.638Z\",\"publisher\":{\"@id\":\"https://docs.apimart.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.apimart.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"APIMart\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"APIMart\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/videos/minimax-h3/max.md","siteName":"APIMart","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"API Manual","groups":[{"group":"Overview","pages":[{"title":"APIMart — OpenAI-Compatible API Gateway (GPT-5, Claude, Gemini)","href":"/en"}]},{"group":"Models","pages":[{"title":"Models List Metadata API","api":"GET https://api.apimart.ai/v1/models","href":"/en/api-reference/texts/models/list"}]},{"group":"Text Series","icon":"text","pages":[{"title":"General Chat API (Default Streaming)","api":"POST https://api.apimart.ai/v1/chat/completions","href":"/en/api-reference/texts/general/chat-completions"},{"title":"General Chat API (Default Non-Streaming)","api":"POST https://api.apimart.ai/api/v1/chat/completions","href":"/en/api-reference/texts/general/chat-completions-nostream"},{"title":"Claude Messages API","api":"POST https://api.apimart.ai/v1/messages","href":"/en/api-reference/texts/general/claude-messages"},{"title":"Gemini Native Format","api":"POST https://api.apimart.ai/v1beta/models/{model}:{method}","href":"/en/api-reference/texts/gemini/quickstart"},{"title":"OpenAI Multimodal Responses API","api":"POST https://api.apimart.ai/v1/responses","href":"/en/api-reference/texts/openai/responses"},{"title":"OpenAI Context Caching Guide","sidebarTitle":"OpenAI Context Caching","icon":"database","href":"/en/api-reference/texts/openai/context-cache"},{"title":"Gemini Context Caching Guide","sidebarTitle":"Gemini Context Caching","icon":"database","href":"/en/api-reference/texts/gemini/context-cache"},{"title":"Claude Context Caching Guide","sidebarTitle":"Claude Context Caching","icon":"database","href":"/en/api-reference/texts/general/claude-context-cache"},{"group":"qwen3.8-max","icon":"message","pages":[{"title":"qwen3.8-max Integration Guide","api":"POST https://api.apimart.ai/v1/chat/completions","href":"/en/api-reference/texts/qwen3.8-max/guide"},{"title":"Model Pricing API","api":"GET https://api.apimart.ai/api/pricing/model?model=qwen3.8-max","href":"/en/api-reference/texts/qwen3.8-max/pricing"}]}]},{"group":"Image Series","icon":"image","pages":[{"group":"Nano banana 2.1","icon":"image","pages":[{"title":"Nano banana 2.1 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gemini-nano-banana-2.1/generation"}]},{"group":"Nano banana2","icon":"image","pages":[{"title":"Nano banana2 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gemini-3.1-flash/generation"},{"title":"Nano Banana Lite Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gemini-3.1-flash/generation-lite"}]},{"group":"Nano banana Pro","icon":"image","pages":[{"title":"Nano banana Pro Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gemini-3-pro/generation"}]},{"group":"Nano banana","icon":"image","pages":[{"title":"Nano banana Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gemini-2.5-flash/generation"}]},{"group":"GPT-Image-1.5","icon":"image","pages":[{"title":"GPT-Image-1.5 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-1/generation"}]},{"group":"GPT-Image-2","icon":"image","pages":[{"title":"GPT-Image-2 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-2/generation"},{"title":"GPT-Image-2 Official Channel Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-2/official"}]},{"group":"GPT-Image-2.5","icon":"image","pages":[{"title":"GPT-Image-2.5 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-2.5/generation"}]},{"group":"GPT-Image-2.5 Ext","icon":"image","pages":[{"title":"GPT-Image-2.5 Ext Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-2.5-ext/generation"}]},{"group":"GPT-Image-2.6","icon":"image","pages":[{"title":"GPT-Image-2.6 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-2.6/generation"}]},{"group":"GPT-Image-2.6 Ext","icon":"image","pages":[{"title":"GPT-Image-2.6 Ext Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/gpt-image-2.6-ext/generation"}]},{"group":"Seedream-4.0","icon":"image","pages":[{"title":"Seedream-4.0 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/seedream-4/generation"}]},{"group":"Seedream-4.5","icon":"image","pages":[{"title":"Seedream-4.5 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/seedream-4.5/generation"}]},{"group":"Seedream-5.0-Lite","icon":"image","pages":[{"title":"Seedream-5.0-Lite Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/seedream-5-lite/generation"}]},{"group":"Seedream-5.0-Pro","icon":"image","pages":[{"title":"Seedream-5.0-Pro Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/seedream-5-0-pro/generation"}]},{"group":"Seedream-5.0-Flash","icon":"image","pages":[{"title":"Seedream-5.0-Flash Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/seedream-5-0-flash/generation"}]},{"group":"Seedream-5.5","icon":"image","pages":[{"title":"Seedream 5.5 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/seedream-5-5/generation"}]},{"group":"Kling V4 Image","icon":"image","pages":[{"title":"Kling V4 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/kling-v4-image/generation"}]},{"group":"Kling V4 Long Image","icon":"image","pages":[{"title":"Kling V4 Long Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/kling-v4-long-image/generation"}]},{"group":"Flux Kontext","icon":"image","pages":[{"title":"FLUX Kontext Image Generation and Editing","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/flux-kontext/generation"}]},{"group":"Flux 2.0","icon":"image","pages":[{"title":"FLUX.2 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/flux-2/generation"}]},{"group":"FLUX 3 Image","icon":"image","pages":[{"title":"FLUX 3 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/flux-3-image/generation"}]},{"group":"FLUX 3 Image Klein","icon":"image","pages":[{"title":"FLUX 3 Image Klein Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/flux-3-image-klein/generation"}]},{"group":"Hy-Image-3.5 Preview","icon":"image","pages":[{"title":"Hy-Image-3.5 Preview Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/hy-image-v3.5-preview/generation"}]},{"group":"Muse Image Ext","icon":"image","pages":[{"title":"Muse Image Ext Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/muse-image-ext/generation"}]},{"group":"MAI-Image-2.7","icon":"image","pages":[{"title":"MAI-Image-2.7 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/mai-image-2.7/generation"}]},{"group":"MAI-Image-2.6","icon":"image","pages":[{"title":"MAI-Image-2.6 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/mai-image-2.6/generation"}]},{"group":"MiniMax-H3-Image","icon":"image","pages":[{"title":"MiniMax-H3-Image Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/minimax-h3-image/generation"}]},{"group":"MiniMax-H3-Image-Highspeed","icon":"image","pages":[{"title":"MiniMax-H3-Image-Highspeed Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/minimax-h3-image-highspeed/generation"}]},{"group":"Qwen Image 2.0","icon":"image","pages":[{"title":"Qwen Image 2.0 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/qwen-image/generation"}]},{"group":"Qwen Image 3.0","icon":"image","pages":[{"title":"Qwen Image 3.0 Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/qwen-image-3.0/generation"}]},{"group":"Z-Image-Turbo","icon":"image","pages":[{"title":"Z-Image-Turbo Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/z-image-turbo/generation"}]},{"group":"Grok Imagine","icon":"image","pages":[{"title":"Grok Imagine Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/grok-imagine/generation"}]},{"group":"Grok Imagine 2.0 Ext","icon":"image","pages":[{"title":"Grok Imagine 2.0 Ext Image Generation","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/grok-imagine-2.0-ext/generation"},{"title":"Grok Imagine 2.0 Ext Layers and Region Editing","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/grok-imagine-2.0-ext/layer-region-edit"},{"title":"Grok Imagine Image 2.0 Official Generation and Editing","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/grok-imagine-2.0-ext/official"}]},{"group":"wan2.7-image","icon":"image","pages":[{"title":"wan2.7 Image Generation \u0026 Editing","api":"POST https://api.apimart.ai/v1/images/generations","href":"/en/api-reference/images/wan2.7-image/generation"}]},{"group":"Midjourney","icon":"image","pages":[{"title":"Midjourney API overview","href":"/en/api-reference/images/midjourney/generation"},{"title":"Imagine (text-to-image)","api":"POST https://api.apimart.ai/v1/midjourney/generations","href":"/en/api-reference/images/midjourney/imagine"},{"title":"Blend (multi-image blend)","api":"POST https://api.apimart.ai/v1/midjourney/generations/blend","href":"/en/api-reference/images/midjourney/blend"},{"title":"Describe (image to text)","api":"POST https://api.apimart.ai/v1/midjourney/generations/describe","href":"/en/api-reference/images/midjourney/describe"},{"title":"Edits (image edit)","api":"POST https://api.apimart.ai/v1/midjourney/generations/edits","href":"/en/api-reference/images/midjourney/edits"},{"title":"Upscale","api":"POST https://api.apimart.ai/v1/midjourney/generations/upscale","href":"/en/api-reference/images/midjourney/upscale"},{"title":"Variation","api":"POST https://api.apimart.ai/v1/midjourney/generations/variation","href":"/en/api-reference/images/midjourney/variation"},{"title":"High Variation","api":"POST https://api.apimart.ai/v1/midjourney/generations/high-variation","href":"/en/api-reference/images/midjourney/high-variation"},{"title":"Low Variation","api":"POST https://api.apimart.ai/v1/midjourney/generations/low-variation","href":"/en/api-reference/images/midjourney/low-variation"},{"title":"Reroll","api":"POST https://api.apimart.ai/v1/midjourney/generations/reroll","href":"/en/api-reference/images/midjourney/reroll"},{"title":"Zoom","api":"POST https://api.apimart.ai/v1/midjourney/generations/zoom","href":"/en/api-reference/images/midjourney/zoom"},{"title":"Pan","api":"POST https://api.apimart.ai/v1/midjourney/generations/pan","href":"/en/api-reference/images/midjourney/pan"},{"title":"Inpaint","api":"POST https://api.apimart.ai/v1/midjourney/generations/inpaint","href":"/en/api-reference/images/midjourney/inpaint"},{"title":"Modal (submit parameters)","api":"POST https://api.apimart.ai/v1/midjourney/generations/modal","href":"/en/api-reference/images/midjourney/modal"},{"title":"Video (image-to-video)","api":"POST https://api.apimart.ai/v1/midjourney/generations/video","href":"/en/api-reference/images/midjourney/video"},{"title":"Remix (Reshape)","api":"POST https://api.apimart.ai/v1/midjourney/generations/remix-strong","href":"/en/api-reference/images/midjourney/remix"},{"title":"Get task","api":"GET https://api.apimart.ai/v1/midjourney/{task_id}","href":"/en/api-reference/images/midjourney/query"},{"title":"Best Practices","href":"/en/api-reference/images/midjourney/best-practices"},{"title":"End-to-End Workflow Examples","href":"/en/api-reference/images/midjourney/workflow"}]}]},{"group":"Video Series","icon":"video","pages":[{"group":"MAGI-2","icon":"video","pages":[{"title":"MAGI-2 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/magi-2/generation"}]},{"group":"apimart-zoe","icon":"video","pages":[{"title":"apimart-zoe Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/apimart-zoe/generation"}]},{"group":"seedance-1-0-pro","icon":"video","pages":[{"title":"seedance-1-0-pro Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/doubao/generation"}]},{"group":"seedance-2-0","icon":"video","pages":[{"title":"seedance-2.0 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/seedance-2-0/generation"},{"title":"Virtual Avatar Assets","api":"POST https://api.apimart.ai/v1/seedance2/private-avatar","href":"/en/api-reference/videos/seedance-2-0/private-avatar"}]},{"group":"seedance-2-5","icon":"video","pages":[{"title":"seedance-2.5 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/seedance-2-5/generation"}]},{"group":"seedance-2-5-flash","icon":"video","pages":[{"title":"Seedance 2.5 Flash Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/seedance-2-5-flash/generation"}]},{"group":"VEO3","icon":"video","pages":[{"title":"VEO3 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/veo3/generation"},{"title":"VEO3 Video Remix","api":"POST https://api.apimart.ai/v1/videos/{task_id}/remix","href":"/en/api-reference/videos/veo3/remix"},{"title":"VEO3 Official Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/veo3/generation-official"}]},{"group":"MiniMax-Hailuo-02","icon":"video","pages":[{"title":"MiniMax-Hailuo-02 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-hailuo/generation"}]},{"group":"MiniMax-Hailuo-2.3","icon":"video","pages":[{"title":"MiniMax-Hailuo-2.3 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-hailuo-2.3/generation"}]},{"group":"MiniMax-H3","icon":"video","pages":[{"title":"MiniMax-H3 Video Generation","description":" - Async processing mode, returns a task ID for subsequent queries\n- Supports text-to-video, image-to-video (first / last / first+last frame), and multimodal reference-to-video (reference images + videos + audio)\n- Supports 2K / 768P resolution, duration 4 ~ 15 seconds, with audio track\n- Shares the same submit and query APIs as MiniMax-Hailuo-02 / MiniMax-Hailuo-2.3 ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/generation"},{"title":"MiniMax-H3-Max Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/max"},{"title":"MiniMax-H3 Context-IR Prompt Enhancement","description":" - Multimodal context understanding that produces an enhanced structured prompt (text only, no video)\n- Shares the same media fields and mutual-exclusion rules as H3 video generation\n- Token-based billing; typically completes in 20~40 seconds\n- Use alone, or as step 1 of the 768P preview → 2K regeneration workflow ","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/context-ir"},{"title":"MiniMax-H3 Regeneration","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/minimax-h3/regeneration"}]},{"group":"FLUX 3 Video","icon":"video","pages":[{"title":"FLUX 3 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/flux-3-video/generation"}]},{"group":"SkyReels V4","icon":"video","pages":[{"title":"SkyReels V4 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/skyreels-v4/generation"}]},{"group":"HappyHorse","icon":"video","pages":[{"title":"HappyHorse 1.0 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/happyhorse-1.0/generation"},{"title":"HappyHorse 1.1 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/happyhorse-1.1/generation"}]},{"group":"Wan3.0","icon":"video","pages":[{"title":"Wan3.0 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan3.0-video/generation"}]},{"group":"Wan2.7","icon":"video","pages":[{"title":"Wan2.7 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan2.7/generation"},{"title":"Wan2.7-R2V Reference-to-Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan2.7-r2v/generation"},{"title":"Wan2.7-VideoEdit Video Editing","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan2.7-videoedit/generation"}]},{"group":"Wan2.6","icon":"video","pages":[{"title":"Wan2.6 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan2.6/generation"},{"title":"wan2.6-i2v-flash Image-to-Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan2.6/i2v-flash-generation"}]},{"group":"Wan2.5","icon":"video","pages":[{"title":"wan2.5-preview Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/wan2.5/generation"}]},{"group":"Kling 2.6","icon":"video","pages":[{"title":"Kling 2.6 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-v2-6/generation"},{"title":"Kling v2.6 Motion Control Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-v2-6/kling-v2-6-motion-control-generation"}]},{"group":"Kling v3","icon":"video","pages":[{"title":"Kling v3 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-v3/generation"}]},{"group":"Kling 3.0 Turbo","icon":"video","pages":[{"title":"Kling 3.0 Turbo Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-3.0-turbo/generation"}]},{"group":"Kling v3 Omni","icon":"video","pages":[{"title":"Kling v3 Omni Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-v3-omni/generation"}]},{"group":"Kling V4","icon":"video","pages":[{"title":"Kling V4 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-v4/generation"}]},{"group":"Kling V4 Flash","icon":"video","pages":[{"title":"Kling V4 Flash Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-v4-flash/generation"}]},{"group":"Kling Video O1","icon":"video","pages":[{"title":"Kling Video O1 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/kling-video-o1/generation"}]},{"group":"Vidu Q3(pro/turbo)","icon":"video","pages":[{"title":"Vidu Q3(pro/turbo) Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/vidu-q3-pro/generation"}]},{"group":"Vidu Q4 Preview","icon":"video","pages":[{"title":"Vidu Q4 Preview Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/vidu-q4-preview/generation"}]},{"group":"Vidu Q3(mix/standard)","icon":"video","pages":[{"title":"Vidu Q3(mix/standard) Reference-to-Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/vidu-q3/generation"}]},{"group":"Grok Imagine","icon":"video","pages":[{"title":"Grok Imagine 1.5 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/grok-imagine/generation"},{"title":"Grok Official Video Models","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/grok-imagine/official"}]},{"group":"Pixverse v6","icon":"video","pages":[{"title":"Pixverse v6 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/pixverse-v6/generation"}]},{"group":"PixVerse V6 Max","icon":"video","pages":[{"title":"PixVerse V6 Max Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/pixverse-v6-max/generation"}]},{"group":"Muse Video Ext","icon":"video","pages":[{"title":"Muse Video Ext Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/muse-video-ext/generation"}]},{"group":"gemini-omni-1.1-flash-ext","icon":"video","pages":[{"title":"gemini-omni-1.1-flash-ext Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/omni-flash-ext/generation"}]},{"group":"gemini-omni-1.2-flash-ext","icon":"video","pages":[{"title":"gemini-omni-1.2-flash-ext Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/gemini-omni-1.2-flash-ext/generation"}]},{"group":"Gemini Omni 1.2 Flash","icon":"video","pages":[{"title":"Gemini Omni 1.2 Flash Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/gemini-omni-1.2-flash/generation"}]},{"group":"Gemini Omni 1.1 Flash","icon":"video","pages":[{"title":"Gemini Omni 1.1 Flash Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/gemini-omni-1.1-flash/generation"}]},{"group":"Gemini Omni Flash","icon":"video","pages":[{"title":"Gemini Omni Flash Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/en/api-reference/videos/gemini-omni-flash-preview/generation"}]}]},{"group":"Audio Series","icon":"microphone","pages":[{"title":"Whisper-1 Audio Transcription","api":"POST https://api.apimart.ai/v1/audio/transcriptions","href":"/en/api-reference/audios/whisper-1"},{"title":"TTS Text-to-Speech","api":"POST https://api.apimart.ai/v1/audio/speech","href":"/en/api-reference/audios/tts"},{"group":"Flow Music","icon":"music","pages":[{"title":"Generate Music","api":"POST https://api.apimart.ai/v1/music/generations","href":"/en/api-reference/audios/flow-music/music"},{"title":"Lyria 3.5 Generate Music","api":"POST https://api.apimart.ai/v1/music/generations","href":"/en/api-reference/audios/flow-music/music-lyria-3-5"},{"title":"Generate Lyrics","api":"POST https://api.apimart.ai/v1/music/generations/lyricsFlowMusic","href":"/en/api-reference/audios/flow-music/lyrics"},{"title":"Extend Music","api":"POST https://api.apimart.ai/v1/music/generations/extendFlowMusic","href":"/en/api-reference/audios/flow-music/extend"},{"title":"Lyria 3.5 Extend Music","api":"POST https://api.apimart.ai/v1/music/generations/extendFlowMusic","href":"/en/api-reference/audios/flow-music/extend-lyria-3-5"},{"title":"Replace Section","api":"POST https://api.apimart.ai/v1/music/generations/replaceFlowMusic","href":"/en/api-reference/audios/flow-music/replace"},{"title":"Lyria 3.5 Replace Section","api":"POST https://api.apimart.ai/v1/music/generations/replaceFlowMusic","href":"/en/api-reference/audios/flow-music/replace-lyria-3-5"},{"title":"Cover Rearrangement","api":"POST https://api.apimart.ai/v1/music/generations/coverFlowMusic","href":"/en/api-reference/audios/flow-music/cover"},{"title":"Lyria 3.5 Cover Rearrangement","api":"POST https://api.apimart.ai/v1/music/generations/coverFlowMusic","href":"/en/api-reference/audios/flow-music/cover-lyria-3-5"},{"title":"Stem Separation","api":"POST https://api.apimart.ai/v1/music/generations/stemsFlowMusic","href":"/en/api-reference/audios/flow-music/stems"},{"title":"Upload Audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadAudioFlowMusic","href":"/en/api-reference/audios/flow-music/upload-audio"},{"title":"Download Audio","api":"POST https://api.apimart.ai/v1/music/generations/downloadAudioFlowMusic","href":"/en/api-reference/audios/flow-music/download-audio"},{"title":"Music Video Rendering","api":"POST https://api.apimart.ai/v1/music/generations/videoClipFlowMusic","href":"/en/api-reference/audios/flow-music/video-clip"},{"title":"Query Task","api":"GET https://api.apimart.ai/v1/music/tasks/{task_id}","href":"/en/api-reference/audios/flow-music/query"}]},{"group":"Suno","icon":"music","pages":[{"title":"Suno V6 General Agreements and Task Inquiry","api":"GET https://api.apimart.ai/v1/music/tasks/{task_id}","href":"/en/api-reference/audios/suno/overview"},{"title":"Generate music","api":"POST https://api.apimart.ai/v1/music/generations","href":"/en/api-reference/audios/suno/generation"},{"title":"Generate lyrics","api":"POST https://api.apimart.ai/v1/music/generations/lyrics","href":"/en/api-reference/audios/suno/lyrics"},{"title":"Inspiration generation (inspo)","api":"POST https://api.apimart.ai/v1/music/generations/inspo","href":"/en/api-reference/audios/suno/inspo"},{"title":"Sound effect generation","api":"POST https://api.apimart.ai/v1/music/generations/sounds","href":"/en/api-reference/audios/suno/sounds"},{"title":"Tag enhancement","api":"POST https://api.apimart.ai/v1/music/generations/upsampleTags","href":"/en/api-reference/audios/suno/upsample-tags"},{"title":"Upload audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadTask","href":"/en/api-reference/audios/suno/upload"},{"title":"Upload Audio and Create a Cover","api":"POST https://api.apimart.ai/v1/music/generations/uploadCover","href":"/en/api-reference/audios/suno/upload-cover"},{"title":"Upload and Extend Audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadExtend","href":"/en/api-reference/audios/suno/upload-extend"},{"title":"Create a Custom Model","api":"POST https://api.apimart.ai/v1/music/generations/createModel","href":"/en/api-reference/audios/suno/create-model"},{"title":"Continuation and extension","api":"POST https://api.apimart.ai/v1/music/generations/extend","href":"/en/api-reference/audios/suno/extend"},{"title":"Style cover","api":"POST https://api.apimart.ai/v1/music/generations/coverSong","href":"/en/api-reference/audios/suno/cover-song"},{"title":"Mastering","api":"POST https://api.apimart.ai/v1/music/generations/remaster","href":"/en/api-reference/audios/suno/remaster"},{"title":"Stem extraction","api":"POST https://api.apimart.ai/v1/music/generations/stems","href":"/en/api-reference/audios/suno/stems"},{"title":"Full stem separation","api":"POST https://api.apimart.ai/v1/music/generations/stemsAll","href":"/en/api-reference/audios/suno/stems-all"},{"title":"Add vocals","api":"POST https://api.apimart.ai/v1/music/generations/addVocals","href":"/en/api-reference/audios/suno/add-vocals"},{"title":"Add accompaniment","api":"POST https://api.apimart.ai/v1/music/generations/addInstrumental","href":"/en/api-reference/audios/suno/add-instrumental"},{"title":"Add stem (add stem)","api":"POST https://api.apimart.ai/v1/music/generations/addStem","href":"/en/api-reference/audios/suno/add-stem"},{"title":"Extract Vox (deprecated)","api":"POST https://api.apimart.ai/v1/music/generations/vox","href":"/en/api-reference/audios/suno/vox"},{"title":"Create voice","api":"POST https://api.apimart.ai/v1/music/generations/createVoice","href":"/en/api-reference/audios/suno/create-voice"},{"title":"Persona","api":"POST https://api.apimart.ai/v1/music/generations/persona","href":"/en/api-reference/audios/suno/persona"},{"title":"Section replacement","api":"POST https://api.apimart.ai/v1/music/generations/replaceMusic","href":"/en/api-reference/audios/suno/replace-music"},{"title":"Remove segment","api":"POST https://api.apimart.ai/v1/music/generations/removeSection","href":"/en/api-reference/audios/suno/remove-section"},{"title":"Crop audio","api":"POST https://api.apimart.ai/v1/music/generations/crop","href":"/en/api-reference/audios/suno/crop"},{"title":"Fade in","api":"POST https://api.apimart.ai/v1/music/generations/fadeIn","href":"/en/api-reference/audios/suno/fade-in"},{"title":"Fade out","api":"POST https://api.apimart.ai/v1/music/generations/fadeOut","href":"/en/api-reference/audios/suno/fade-out"},{"title":"Adjust speed","api":"POST https://api.apimart.ai/v1/music/generations/adjustSpeed","href":"/en/api-reference/audios/suno/adjust-speed"},{"title":"Full song synthesis / concatenation","api":"POST https://api.apimart.ai/v1/music/generations/concat","href":"/en/api-reference/audios/suno/concat"},{"title":"Generate mashup (mashup)","api":"POST https://api.apimart.ai/v1/music/generations/mashup","href":"/en/api-reference/audios/suno/mashup"},{"title":"Sample to song (sample)","api":"POST https://api.apimart.ai/v1/music/generations/sample","href":"/en/api-reference/audios/suno/sample"},{"title":"Generate MIDI","api":"POST https://api.apimart.ai/v1/music/generations/midi","href":"/en/api-reference/audios/suno/midi"},{"title":"Lyrics timeline","api":"POST https://api.apimart.ai/v1/music/generations/alignedLyrics","href":"/en/api-reference/audios/suno/aligned-lyrics"},{"title":"BPM analysis","api":"POST https://api.apimart.ai/v1/music/generations/bpm","href":"/en/api-reference/audios/suno/bpm"},{"title":"Generate music video (MV)","api":"POST https://api.apimart.ai/v1/music/generations/generateMp4","href":"/en/api-reference/audios/suno/generate-mp4"},{"title":"Download Audio Files","api":"POST https://api.apimart.ai/v1/music/generations/download","href":"/en/api-reference/audios/suno/wav"}]}]},{"group":"Moderation Series","icon":"shield-check","pages":[{"group":"omni-moderation-latest","icon":"shield-check","pages":[{"title":"omni-moderation-latest Content Moderation","api":"POST https://api.apimart.ai/v1/moderations","href":"/en/api-reference/moderations/omni-moderation-latest/generation"}]}]},{"group":"Upload Management","icon":"cloud-arrow-up","pages":[{"title":"Upload Image","api":"POST https://api.apimart.ai/v1/uploads/images","href":"/en/api-reference/uploads/images"},{"title":"Upload Video","api":"POST https://api.apimart.ai/v1/uploads/videos","href":"/en/api-reference/uploads/videos"},{"title":"Upload Audio","api":"POST https://api.apimart.ai/v1/uploads/audios","href":"/en/api-reference/uploads/audios"}]},{"group":"Task Management","icon":"list-check","pages":[{"title":"Get Task Status","api":"GET https://api.apimart.ai/v1/tasks/{task_id}","href":"/en/api-reference/tasks/status"},{"title":"Task Completion Callback (Webhook)","href":"/en/api-reference/tasks/webhook"}]},{"group":"Account Management","icon":"wallet","pages":[{"title":"Query Token Balance","api":"GET https://api.apimart.ai/v1/balance","href":"/en/api-reference/account/token-balance"},{"title":"Query User Balance","api":"GET https://api.apimart.ai/v1/user/balance","href":"/en/api-reference/account/user-balance"},{"title":"Query Usage and Spending","api":"GET https://api.apimart.ai/v1/usage","href":"/en/api-reference/account/usage"},{"title":"Request Logs and Account Pricing","href":"/en/api-reference/account/request-logs"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/chat/chatbox"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/en/quickstart"}]},{"tab":"FAQs","pages":[{"title":"FAQs","href":"/en/faqs"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/cn/api-reference/videos/minimax-h3/max"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/videos/minimax-h3/max"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/videos/minimax-h3/max"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/api-reference/videos/minimax-h3/max"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/videos/minimax-h3/max"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/videos/minimax-h3/max"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api-reference/videos/minimax-h3/max"}]},{"language":"id","pages":[{"title":"id","href":"/id/api-reference/videos/minimax-h3/max"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/videos/minimax-h3/max"}]}]},"basePath":"","title":"MiniMax-H3-Max Video Generation - APIMart","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}