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.

Model minimax-h3Base URL https://www.salpx.com/v1Auth Bearer API Key

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.

Production default: 576P · 5 s · 10 steps · 16:9 (1024x576). One flat price all day; on the default group that is ¥0.07 per output second, so 5 s at 10 steps costs about ¥0.35.

Pricing

These are SalpX list prices in CNY per output second, before the group multiplier. The actual charge is whatever the page and the API return before you submit.

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 window576P (CNY / output second)768P (CNY / output second)
Flat price, all day¥0.07¥0.116667
Billing parameterValue
Output duration5–15 s, charged on the requested output seconds
VideosCurrently 1 per run
StepInteger 10–20, default 10; 20 steps costs 2× the 10-step price for the same spec
Group multiplierApplied per the user group; the table above is pre-discount

Cost examples (default group)

ResolutionDurationStepCost
576P5 s10CNY 0.35
768P5 s10about 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 · t2va
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 · fl2va
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 · ref2va
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.

Unconfirmed submit: if the API returns HTTP 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 · check the task
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 · download the MP4
curl --fail "https://www.salpx.com/v1/videos/$VIDEO_ID/content" \
  -H "Authorization: Bearer $SALPX_API_KEY" \
  -o video.mp4

Request parameters

FieldNotes
modelRequired, always minimax-h3
promptRequired, 1–7000 characters
secondsRequired, 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
sizeOptional, 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
modeOptional 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
countMay be omitted; fixed at 1
stepsOptional, integer 10–20, default 10; cost scales with steps ÷ 10
seedOptional, integer 0–4294967295
client_request_idRecommended; reuse the same id when retrying the same request, never across different videos
ResolutionLandscape 16:9Portrait 9:16Square 1:1
576P1024x576576x1024576x576
768P1344x768768x1344768x768

Reference asset limits

  • ref2va All 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. startFrame is required, endFrame is 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. referenceImages twice, in upload order; never rewrite it as referenceImages[].
  • 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_id concurrently; wait for the first response, then poll the task.
  • A timeout or a submission_unknown does 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.