Minimax H3 Text To Video LoRA API Documentation
Playground
Try it on WaveSpeedAI!MiniMax H3 Open Weights Text to Video with custom LoRA support generates coherent videos from text prompts, with 480P / 540P / 768P output, native stereo audio, 5-15 second duration, flexible aspect ratios, and per-second billing. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
MiniMax H3 Text-to-Video LoRA Open Weights runs the open-weights edition of MiniMax H3 with LoRA support on WaveSpeedAI. This endpoint is separate from the official minimax/h3 API and uses its own 480p / 768p / 1080p resolution options and per-second pricing.
MiniMax H3 generates video and native stereo audio in a single pass. Describe both the visuals and the sound in one prompt, and the model produces an MP4 with synchronized dialogue, sound effects, music, or ambience.
Why Choose This?
-
Open-weights MiniMax H3 workflow
Use the open-weights edition of MiniMax H3 through WaveSpeedAI-hosted infrastructure. -
Native stereo audio
Generate visuals and synchronized stereo audio together in one pass. -
LoRA support
Load up to 3 LoRA weights per request, each with its own scale. -
Text-to-video generation
Generate complete videos directly from text prompts. -
Prompt-controlled soundtrack
Use anAudio:line in the prompt to guide music, dialogue, ambience, and sound effects. -
Flexible aspect ratios
Supports landscape, vertical, square, classic, and cinematic aspect ratios.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Scene, action, camera movement, timing, and an Audio: line for soundtrack guidance. |
| aspect_ratio | No | Output aspect ratio: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, or 9:21. Default: 16:9. |
| resolution | No | Output resolution: 480p, 540p, 768p, or 1080p. Default: 480p. |
| duration | No | Output duration in seconds. Range: 3–15. Default: 5. |
| seed | No | Fixed seed for reproducible output. |
| loras | No | Up to 3 LoRA weights. Each item uses {path, scale}, where path is a LoRA file URL. |
How to Use
- Write the prompt — Describe the visual scene, timeline, camera movement, and audio direction.
- Choose aspect ratio — Select the format that matches your target platform or composition.
- Choose resolution — Use
480pfor lower-cost generation,540pfor a mid-price step up,768pfor higher-resolution output, or1080pfor full-HD output. - Set duration — Choose a duration from
3to15seconds. - Add LoRAs optional — Provide up to 3 LoRA files with individual scale values.
- Set seed optional — Use a fixed seed when reproducibility is needed.
- Submit — Generate the final MP4 with native stereo audio.
Pricing
Pricing is based on generated video duration and selected resolution.
| Resolution | Per second | 5s | 15s |
|---|---|---|---|
| 480p | $0.05 | $0.25 | $0.75 |
| 540p | $0.075 | $0.375 | $1.125 |
| 768p | $0.10 | $0.50 | $1.50 |
| 1080p | $0.20 | $1.00 | $3.00 |
Duration is capped at 15 seconds for pricing. LoRA loading does not add a separate charge.
Best Use Cases
- LoRA-guided video generation — Apply custom visual styles, subjects, or concepts with LoRA weights.
- Text-to-video creation — Generate complete videos directly from natural-language prompts.
- Music and audio-driven scenes — Create videos with native stereo sound, ambience, dialogue, or music.
- Character and style testing — Use LoRAs to guide consistent looks across prompt variations.
- Creative prototyping — Test visual timing, camera movement, and soundtrack direction quickly.
- Social video content — Generate short clips for landscape, vertical, square, or cinematic formats.
Pro Tips
- Write prompts as a timeline with clear timestamped beats.
- Include an
Audio:line to guide soundtrack, ambience, voice, and effects. - Use action verbs instead of only describing mood or visual style.
- Keep the first test short, then increase duration once the scene direction works.
- Use a fixed
seedwhen comparing LoRA scale or prompt variations. - Start LoRA
scalearound0.8–1.0, then adjust based on how strongly the LoRA affects the result. - Use a short negative list such as
no subtitles,no extra text, orno extra peoplewhen needed.
Related Models
- MiniMax H3 Text-to-Video Open Weights — Generate video with native stereo audio directly from a text prompt.
- MiniMax H3 Image-to-Video Open Weights — Animate a first-frame image with prompt-guided motion and audio.
- MiniMax H3 Reference-to-Video Open Weights — Generate video from image, video, or audio references with prompt guidance.
Reference
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "16:9",
"resolution": "480p",
"duration": 5
}
JSON
)
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/minimax-h3/text-to-video-lora" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}")
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}")
RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneParameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | Text description of the video scene, action, camera movement, and the desired soundtrack. Audio is generated natively together with the video. | |
| aspect_ratio | string | No | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 | Output aspect ratio. |
| resolution | string | No | 480p | 480p, 540p, 768p, 1080p | Output video resolution. 768p is the model's native canvas; 480p is a faster, lower-cost tier; 540p is a mid tier at 1.5x the 480p price. 1080p is the highest-quality full-HD tier at 2x the 768p price (generation takes longer). |
| duration | integer | No | 5 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | Output video duration in seconds. |
| loras | array<object> | No | 0 ~ 3 items | List of LoRAs to apply (max 3). | |
| seed | integer | No | - | - | The random seed to use for the generation. -1 means a random seed will be used. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Task status. completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses. |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Status: completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |