Minimax H3 Text To Video LoRA API Documentation

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 an Audio: 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

ParameterRequiredDescription
promptYesScene, action, camera movement, timing, and an Audio: line for soundtrack guidance.
aspect_ratioNoOutput aspect ratio: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, or 9:21. Default: 16:9.
resolutionNoOutput resolution: 480p, 540p, 768p, or 1080p. Default: 480p.
durationNoOutput duration in seconds. Range: 3–15. Default: 5.
seedNoFixed seed for reproducible output.
lorasNoUp to 3 LoRA weights. Each item uses {path, scale}, where path is a LoRA file URL.

How to Use

  1. Write the prompt — Describe the visual scene, timeline, camera movement, and audio direction.
  2. Choose aspect ratio — Select the format that matches your target platform or composition.
  3. Choose resolution — Use 480p for lower-cost generation, 540p for a mid-price step up, 768p for higher-resolution output, or 1080p for full-HD output.
  4. Set duration — Choose a duration from 3 to 15 seconds.
  5. Add LoRAs optional — Provide up to 3 LoRA files with individual scale values.
  6. Set seed optional — Use a fixed seed when reproducibility is needed.
  7. Submit — Generate the final MP4 with native stereo audio.

Pricing

Pricing is based on generated video duration and selected resolution.

ResolutionPer second5s15s
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 seed when comparing LoRA scale or prompt variations.
  • Start LoRA scale around 0.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, or no extra people when needed.


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
done

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-Text description of the video scene, action, camera movement, and the desired soundtrack. Audio is generated natively together with the video.
aspect_ratiostringNo16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21Output aspect ratio.
resolutionstringNo480p480p, 540p, 768p, 1080pOutput 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).
durationintegerNo53, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Output video duration in seconds.
lorasarray<object>No0 ~ 3 itemsList of LoRAs to apply (max 3).
seedintegerNo--The random seed to use for the generation. -1 means a random seed will be used.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayOutput values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.statusstringTask status. completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses.
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction
data.modelstringModel ID used for the prediction
data.outputsarray<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.urlsobjectObject containing related API endpoints
data.statusstringStatus: completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses
data.created_atstringISO timestamp of when the request was created
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2026 WaveSpeedAI. All rights reserved.