Call it
curl https://api.peume.com/v1/call/happyhorse-1-0 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "example/happyhorse-1.0",
"prompt": "A paper boat crosses a quiet pond at sunrise.",
"duration": 3,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}'const res = await fetch("https://api.peume.com/v1/call/happyhorse-1-0", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "example/happyhorse-1.0",
"prompt": "A paper boat crosses a quiet pond at sunrise.",
"duration": 3,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/happyhorse-1-0",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "example/happyhorse-1.0",
"prompt": "A paper boat crosses a quiet pond at sunrise.",
"duration": 3,
"resolution": "720p",
"aspect_ratio": "16:9"
}
},
)
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: happyhorse-1-0.
Parameters
modelRequiredstringalibaba/happyhorse-1.0
Example: example/happyhorse-1.0
promptRequiredstringExample: A paper boat crosses a quiet pond at sunrise.
durationintegerExample: 3
resolutionstring720p · 1080p
Example: 720p
aspect_ratiostring16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9 · 9:21
Example: 16:9
