create_avatar
Save a reusable face identity for talking-avatar and face-swap videos. Provide a portrait image URL or describe a face to generate one, and optionally set a default voice.
Instructions
Save a reusable AVATAR (a face identity) so it can be reused by name across talking-avatar and face-swap videos (then it shows in list_avatars). Provide a name plus EITHER image_url (a ready front-facing head-and-shoulders portrait — FREE: stored + face-checked) OR portrait_prompt (the server GENERATES a portrait, ~200-500 tokens — two-step: call WITHOUT confirmed for a cost preview, then again with confirmed=true). Optional voice sets the avatar's default cloned voice (used automatically later). The image must show ONE person facing the camera; a full-body photo drags clothing into face-swaps. Returns {id, name, voice}. Same avatar store as the avots app / Telegram; limit 20 per account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A short label for this avatar, used to reference it later, e.g. "Artur". Best kept unique per account. | |
| style | No | Optional portrait style for generate mode: "photo" (default), "cinema", "3d", "anime". | |
| voice | No | Optional default voice for this avatar (a preset name or one of the user's cloned voices). Auto-used by generate_talking_avatar when no voice is passed. | |
| confirmed | No | Required to generate+save when using portrait_prompt (it charges). Not needed for image_url (free). Omit for a cost preview. | |
| image_url | No | Public https:// URL (or avots /v1/files/<uuid>) of a ready front-facing head-and-shoulders portrait of ONE person. FREE — stored + face-checked. Provide this OR portrait_prompt. | |
| portrait_prompt | No | Describe a face to GENERATE and save, e.g. "a young woman with brown hair and blue eyes, warm smile". Charges for one image gen (~200-500 tokens) and needs confirmed=true. Provide this OR image_url. |