Call it
curl https://api.peume.com/v1/call/minimax-hailuo-image-to-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "MiniMax-Hailuo-02",
"first_frame_image": "https://example.com/first-frame.png",
"prompt": "The camera slowly pulls back.",
"duration": 6,
"resolution": "512P",
"prompt_optimizer": true
}
}'const res = await fetch("https://api.peume.com/v1/call/minimax-hailuo-image-to-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "MiniMax-Hailuo-02",
"first_frame_image": "https://example.com/first-frame.png",
"prompt": "The camera slowly pulls back.",
"duration": 6,
"resolution": "512P",
"prompt_optimizer": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/minimax-hailuo-image-to-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "MiniMax-Hailuo-02",
"first_frame_image": "https://example.com/first-frame.png",
"prompt": "The camera slowly pulls back.",
"duration": 6,
"resolution": "512P",
"prompt_optimizer": True
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: minimax-hailuo-image-to-video.
Parameters
modelRequiredstringMiniMax-Hailuo-2.3 · MiniMax-Hailuo-2.3-Fast · MiniMax-Hailuo-02
Example: MiniMax-Hailuo-02
first_frame_imageRequiredstringA public image URL or a data URL.
Example: https://example.com/first-frame.png
promptstringExample: The camera slowly pulls back.
durationintegerExample: 6
resolutionstring512P is Hailuo-02 only; see the price table for valid model-resolution-duration combinations.
512P · 768P · 1080P
Example: 512P
prompt_optimizerbooleanExample: true
