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. 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 audio must be a generate_audio result on this account (pass its id or url). An external audio url is not accepted, so audio from elsewhere has to be made with generate_audio first. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. 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 (a two-minute voiceover costs many times a ten-second one; 1080p costs twice 720p). The audio's length is MEASURED BY THE SERVER from the file, never taken from anything you say: that measurement, rounded UP to the next whole second, is the price. Audio it cannot measure is REFUSED with nothing charged. There is no length argument. 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, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).
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 audio url or a local file is not accepted. | |
| 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-safety key (IDEMPOTENCY). |