Create character (actor)
create_characterCreate a new saved character/actor for UGC video — the API equivalent of adding an actor in the dashboard. Supply ONE of: fromLibraryId (clone a preset from list_character_library into the user's saved actors — FREE, name/voice default to the preset's); imageUrl (a public/hosted image — use import_asset_from_url or create_upload first if you only have raw bytes — saved for FREE); or a text prompt to AI-generate a 9:16 portrait (SPENDS 1 credit). Returns characterId to pass as the UGC characterId on create_video. Optionally set defaultVoiceId. NOTE: a library preset can already be used directly as a UGC characterId — only clone it here when the user wants their own editable copy (e.g. a custom voice).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for the actor (optional when cloning a library preset) | |
| prompt | No | Text prompt to AI-generate the actor portrait if no fromLibraryId/imageUrl is given (spends 1 credit) | |
| imageUrl | No | Public/hosted image URL to save as the actor (free; used when no fromLibraryId) | |
| fromLibraryId | No | Clone a preset actor (id from list_character_library) into the user's saved actors (free) | |
| defaultVoiceId | No | Optional default ElevenLabs voice id for this actor |