Call it
curl https://api.peume.com/v1/call/avatar-iv \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "example/avatar-iv",
"prompt": "Welcome to our product tour. Let me show you the three features our customers love most.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}
}'const res = await fetch("https://api.peume.com/v1/call/avatar-iv", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "example/avatar-iv",
"prompt": "Welcome to our product tour. Let me show you the three features our customers love most.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/avatar-iv",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "example/avatar-iv",
"prompt": "Welcome to our product tour. Let me show you the three features our customers love most.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": False
}
},
)
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: avatar-iv.
Parameters
modelRequiredstringheygen/avatar-iv
Example: example/avatar-iv
promptRequiredstringFor Avatar IV the prompt is the spoken TTS script when no audio input_references item is supplied.
Example: Welcome to our product tour. Let me show you the three features our customers love most.
durationintegerExample: 5
resolutionstring720p · 1080p
Example: 720p
aspect_ratiostring16:9 · 9:16 · 1:1
Example: 16:9
generate_audiobooleanThe live rate card marks generate_audio: false for this model. Speech comes from the prompt script (TTS) or an audio input_references item, not this flag.
Example: false
input_referencesRequiredarrayAvatar IV needs a photo. The live rate card has supported_frame_images: null, so use input_references, not frame_images. Send one image object ({type: image_url, image_url: {url}}) and optionally one audio object ({type: audio_url, audio_url: {url}}) to lip-sync a supplied track.
Example: [{"type":"image_url","image_url":{"url":"https://picsum.photos/id/64/512/512"}}]
providerobjectpassthrough at provider.options.heygen.parameters. Live allowed_passthrough_parameters: voice_id (TTS voice), voice_settings, motion_prompt, expressiveness (performance), fit, remove_background, background, caption, title.
Example: {"options":{"example":{"parameters":{"voice_id":"f38a635bee7a4d1f9b0a654a31d050d2"}}}}
