Python SDK for the MiniMax H3 API on Muapi. Generate video from text, animate a still image, or create a controlled transition between first and last frames with one API key.
- Open-Generative-AI — open-source studio and model hub for generative image and video workflows.
- awesome-ai-video-models — compare leading AI video models, API access, and pricing.
- Seedance-2-API — Python SDK for ByteDance Seedance text-to-video and image-to-video workflows.
- Veo-4-API — Python SDK for Google Veo video-generation workflows.
- Flux-3-Dev-API — unified image and video SDK for the FLUX 3 family.
- Generative-Media-Skills — agent-ready skills for building generative-media pipelines.
- muapi-cli — CLI and MCP access to Muapi generation tasks.
- Text-to-video generation
- Image-to-video animation
- First-and-last-frame video transitions
- Submit, poll, and webhook-ready asynchronous workflow
- Simple Python client built on
requests
pip install minimax-h3-apiOr install from source:
git clone https://github.com/Anil-matcha/MiniMax-H3-API.git
cd MiniMax-H3-API
pip install -e .Set your Muapi API key:
export MUAPI_API_KEY=your_muapi_api_keyfrom minimax_h3_api import MiniMaxH3API
api = MiniMaxH3API()
task = api.text_to_video(
"A cinematic tracking shot of a silver sports car driving through a rain-soaked city at night"
)
result = api.wait_for_completion(task["request_id"])
print(result["outputs"][0])task = api.text_to_video(
prompt="A lone astronaut walking through a field of bioluminescent flowers, slow camera dolly in"
)task = api.image_to_video(
prompt="The camera slowly pushes in as a warm breeze moves through the subject's hair",
image_url="https://example.com/source-image.jpg",
)task = api.first_last_frame(
prompt="A smooth orbit around the subject as daylight shifts into a cinematic sunset",
first_frame_image="https://example.com/first-frame.jpg",
last_frame_image="https://example.com/last-frame.jpg",
)| Workflow | Endpoint |
|---|---|
| Text to Video | POST /api/v1/minimax-h3-text-to-video |
| Image to Video | POST /api/v1/minimax-h3-image-to-video |
| First & Last Frame | POST /api/v1/minimax-h3-first-last-frame |
| Poll task | GET /api/v1/predictions/{request_id}/result |
See the full MiniMax H3 API guide and Muapi documentation.
MIT
