openrouter_x_heygen-avatar-iv $1.875001 per call
HeyGen: Avatar IV. HeyGen: Avatar IV is an image-to-video model that animates a single photo into an expressive, lip-synced talking-head video. Rather than only matching mouth shapes to words, it interprets the vocal... (OpenRouter · Video generation) Async task: answers 202 with a job id; poll GET /v1/jobs/<id>. Price depends on the options ($0.0625 to $1.875001); refunded if the task fails. Prepaid credits only.
For AI agents: call openrouter_x_heygen-avatar-iv
POST https://toll402.dev/v1/p/openrouter.x.heygen-avatar-iv
{
"model": "heygen/avatar-iv",
"prompt": "Welcome to our product tour. Let me show you the three features our customers love most.",
"input_references": [
{
"type": "image_url",
"image_url": {
"url": "https://picsum.photos/id/64/512/512"
}
}
]
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": [
"heygen/avatar-iv"
],
"examples": [
"heygen/avatar-iv"
]
},
"prompt": {
"type": "string",
"description": "For Avatar IV the prompt is the spoken TTS script when no audio input_references item is supplied.",
"examples": [
"Welcome to our product tour. Let me show you the three features our customers love most."
]
},
"duration": {
"type": "integer",
"default": 5
},
"resolution": {
"type": "string",
"default": "720p",
"enum": [
"720p",
"1080p"
]
},
"aspect_ratio": {
"type": "string",
"default": "16:9",
"enum": [
"16:9",
"9:16",
"1:1"
]
},
"generate_audio": {
"type": "boolean",
"description": "The 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.",
"default": false
},
"input_references": {
"type": "array",
"description": "Avatar IV needs a photo. The live rate card has supported_frame_images: null, so use input_references, not frame_images. Send one OpenRouter image object ({type: image_url, image_url: {url}}) and optionally one audio object ({type: audio_ur",
"examples": [
[
{
"type": "image_url",
"image_url": {
"url": "https://picsum.photos/id/64/512/512"
}
}
]
]
},
"provider": {
"type": "object",
"description": "HeyGen passthrough 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.",
"properties": {
"options": {
"type": "object"
}
},
"examples": [
{
"options": {
"heygen": {
"parameters": {
"voice_id": "f38a635bee7a4d1f9b0a654a31d050d2"
}
}
}
}
]
}
},
"additionalProperties": true,
"required": [
"model",
"prompt",
"input_references"
]
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}