Make a picture of a person speak your audio
generate_lipsyncTakes a picture of a person and an audio file and generates a video of THAT person speaking or singing the audio, lip-synced. Returns the new job's id immediately; the result is exactly as long as the audio. WHEN: the user wants a talking avatar, a presenter or a voiceover on a face. The picture supplies the person; the audio supplies the performance AND the length. The whole flow: get_recipe talking-avatar. CONSENT: only a picture of the user, of someone who gave their permission, or of a fictional or AI-generated character; never a real person without their permission, and never a public figure or celebrity (decline and offer a generated character). THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: this spends the user's tokens: the AUDIO's length times a per-second rate that depends on resolution. The server measures the audio's length, rounded UP to the next whole second: that measurement is the price. An external url costs one media-ingest slot: quote and create from the SAME url to pay it once. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"character_image": "<character_image>",
"source_audio": "<source_audio>",
"resolution": "<resolution>"
},
"name": "generate_lipsync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Optional direction for the performance (a mood or manner). It does not change what is said: the words come from the audio. | |
| resolution | Yes | Output resolution; 1080p costs exactly twice 720p per second of audio. REQUIRED: use `720p` unless the user asked for `1080p`, and name the choice in the priced ask; never carried over from an earlier request. | |
| source_audio | Yes | The audio to lip-sync to: the id `generate_audio` returned, or its url. It must be audio generated on THIS account: an external url or a local file is not accepted, so make it with `generate_audio` first. | |
| estimate_only | No | Price only; creates nothing. | |
| character_image | Yes | URL of the picture of the person who should speak (a clear, front-facing portrait works best; see CONSENT). A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused. | |
| idempotency_key | No | Retry key (IDEMPOTENCY). |