MiniMax H3 integration
Create, poll and download videos with a SalpX API key. Text-to-video, first-last-frame and multimodal reference generation; 5–15 s, 576P / 768P, landscape, portrait and square.
minimax-h3 is the SalpX call alias. Each run produces 1 video, starting at 10 steps with 10–20 available. Supports t2va text-to-video, fl2va first-last-frame and ref2va multimodal reference; images, video and audio can be combined within the limits below.
Pricing
Cost (CNY) = unit price (CNY per output second) × output seconds × (steps ÷ 10) × group multiplier. Each run currently produces exactly 1 video; input pricing is not affected by this table.
| Price window | 576P (CNY / output second) | 768P (CNY / output second) |
|---|---|---|
| Flat price, all day | ¥0.07 | ¥0.116667 |
| Billing parameter | Value |
|---|---|
| Output duration | 5–15 s, charged on the requested output seconds |
| Videos | Currently 1 per run |
| Step | Integer 10–20, default 10; 20 steps costs 2× the 10-step price for the same spec |
| Group multiplier | Applied per the user group; the table above is pre-discount |
Cost examples (default group)
| Resolution | Duration | Step | Cost |
|---|---|---|---|
| 576P | 5 s | 10 | CNY 0.35 |
| 768P | 5 s | 10 | about CNY 0.5833 |
The quote refreshes every 30 seconds. It is a preview, not a price lock — confirm the total again before you submit. All three modes use the same formula and reference assets cost nothing extra; queue time is not billed. The charge is held on submit and refunded once a task definitively fails. If the network times out or the submit result is unconfirmed, the held amount stays pending verification — query the existing task first instead of generating again.
All three modes use the same formula, and reference assets cost nothing extra. Only output duration is billed; queue time is free. The charge is held on submit and refunded once a task definitively fails. If the network times out or the submit result is unconfirmed, the held amount stays pending verification — query the existing task first instead of generating again.
1. Create a video
POST /v1/videos. Every create, poll and download request uses Authorization: Bearer $SALPX_API_KEY. Keep the SalpX API key in a local environment variable, and always pass the duration explicitly.
All three modes use multipart/form-data; cURL's -F sets the boundary for you — don't set Content-Type by hand. Text-to-video also accepts a JSON body.
Text-to-video
curl https://www.salpx.com/v1/videos \ -H "Authorization: Bearer $SALPX_API_KEY" \ -F "model=minimax-h3" \ -F "prompt=a white teacup on a wooden table steaming gently in the morning sun, locked-off shot" \ -F "mode=t2va" \ -F "seconds=5" \ -F "resolution=576P" \ -F "aspectRatio=16:9" \ -F "steps=10" \ -F "client_request_id=my-h3-text-0001"
First-last-frame to video
curl https://www.salpx.com/v1/videos \ -H "Authorization: Bearer $SALPX_API_KEY" \ -F "model=minimax-h3" \ -F "prompt=natural motion starting from the first frame, landing precisely on the last frame" \ -F "mode=fl2va" \ -F "startFrame=@first-frame.png" \ -F "endFrame=@last-frame.png" \ -F "seconds=5" \ -F "resolution=576P" \ -F "aspectRatio=16:9" \ -F "steps=10" \ -F "client_request_id=my-h3-frames-0001"
Multimodal reference to video
curl https://www.salpx.com/v1/videos \ -H "Authorization: Bearer $SALPX_API_KEY" \ -F "model=minimax-h3" \ -F "prompt=combine the uploaded character, motion and audio references into one coherent video" \ -F "mode=ref2va" \ -F "referenceImages=@character-front.png" \ -F "referenceImages=@character-side.png" \ -F "referenceVideos=@motion-reference.mp4" \ -F "referenceAudios=@ambience-reference.mp3" \ -F "seconds=5" \ -F "resolution=576P" \ -F "aspectRatio=16:9" \ -F "steps=10" \ -F "client_request_id=my-h3-reference-0001"
In the examples, @filename points at a file on the machine making the call. Use a new client_request_id for every new task; when retrying the same task, keep the id, parameters, assets and their order identical.
The create call returns success only once the H3 job id exists. The id in the response is the SalpX task id — keep it as VIDEO_ID for polling and download. A successful create means the job was accepted; the video still has to queue and render.
409 or the error code submission_unknown, that does not mean generation failed. Save the task id from the response and poll its status; the held charge stays pending verification —do not replace the client_request_id and resubmit. If it stays unconfirmed, contact support with the task id. 2. Check status
GET /v1/videos/{VIDEO_ID}. Poll every few seconds until status is completed (success) or failed (failure), then download the video; while queued or rendering you may see queued or in_progress.
curl "https://www.salpx.com/v1/videos/$VIDEO_ID" \ -H "Authorization: Bearer $SALPX_API_KEY"
3. Download the video
Once the task completes, download the MP4 with your own valid API key. Store the file in your own storage.
curl --fail "https://www.salpx.com/v1/videos/$VIDEO_ID/content" \ -H "Authorization: Bearer $SALPX_API_KEY" \ -o video.mp4
Request parameters
| Field | Notes |
|---|---|
model | Required, always minimax-h3 |
prompt | Required, 1–7000 characters |
seconds | Required, integer 5–15; in JSON prefer a numeric string such as "5". The alias duration also works, but the two must match when both are sent |
size | Optional, see the table below; defaults to 576P landscape |
resolution / aspect_ratio (or aspectRatio) | can replace size to set resolution and ratio; if both are sent they must agree |
mode | Optional auto (default), t2va, fl2va, ref2va. auto is inferred from the uploaded assets; an explicit mode must match them, and ref2va needs at least one reference asset |
count | May be omitted; fixed at 1 |
steps | Optional, integer 10–20, default 10; cost scales with steps ÷ 10 |
seed | Optional, integer 0–4294967295 |
client_request_id | Recommended; reuse the same id when retrying the same request, never across different videos |
| Resolution | Landscape 16:9 | Portrait 9:16 | Square 1:1 |
|---|---|---|---|
| 576P | 1024x576 | 576x1024 | 576x576 |
| 768P | 1344x768 | 768x1344 | 768x768 |
Reference asset limits
ref2vaAll reference assets together must not exceed 40 MiB (41,943,040 bytes). In production, keep the total under 10 MB to cut upload time; compatibility above 10 MB has not been fully verified.- Reference images
referenceImages: PNG, JPEG or WebP, up to 9 images, each no larger than 32 MiB, and subject to the overall asset limit. - Reference video
referenceVideos: MP4 or MOV, up to 1 video, no longer than 15 s. When a video is included, pair it with at most 2 images and 1 audio. - Reference audio
referenceAudios: WAV, MP3 or M4A, up to 3 files, each no larger than 15 MiB and 30 s; only 1 when a video is included. - First / last frame
startFrame/endFrame: PNG, JPEG or WebP, each no larger than 32 MiB.startFrameis required,endFrameis optional and cannot be used alone; frames cannot be mixed with reference images, video or audio. - For multiple files, repeat the exact same field name — e.g.
referenceImagestwice, in upload order; never rewrite it asreferenceImages[]. - Assets must be uploaded as multipart file fields; asset URLs, file paths in JSON and Base64 strings are not accepted.
auto mode: no assets means text-to-video, a first frame means first-last-frame, reference assets mean multimodal reference. The three cannot be mixed.
Usage notes
- Do not submit the same
client_request_idconcurrently; wait for the first response, then poll the task. - A timeout or a
submission_unknowndoes not mean generation failed. Query the existing task first instead of resubmitting under a new id. - Polling and download both need your own valid token; requests without one return 401.
- Requests that violate the duration, step, video-count or asset limits are rejected.
- A confirmed failure refunds the held charge; if a task stays unconfirmed, contact support with the task ID.
Doc updated: 2026-09-07.