|Docs

Create avatar API

Imported API route: POST /v1/avatars

Creates a reusable avatar identity and returns an avatar ID immediately. Use the avatar ID after the avatar is ready to generate UGC videos. For guidance on choosing between prompt, photo, and props avatars, see Create Avatar.

Poll Get avatar until the avatar is ready, or include webhook_url to receive a completion webhook.

This endpoint reserves Sume credits before the avatar job is accepted. If the API key's workspace or owner account does not have enough credits, the request returns 402 insufficient_credits and no provider generation is started. Generation requests are also rate limited per API key. See Rate limits for the default limits and 429 response shape.

Request fields

FieldTypeRequiredDescription
typestringYesprompt, photo, or props.
namestringYesHuman-readable avatar name.
promptstringRequired for promptAvatar description.
file.typestringRequired for photoUse url.
file.urlstringRequired for photoPortrait image URL.
ethnicitystringRequired for propsAsian, South Asian, Southeast Asian, Black, Hispanic, Middle Eastern, White, or Wasian.
sexstringRequired for propsmale or female.
ageintegerRequired for propsMust be at least 20.
webhook_urlstringNoHTTPS URL that receives avatar.ready or avatar.failed when the job reaches a terminal state.

Prompt request

webhook_url is optional. When provided, Sume sends avatar.ready or avatar.failed after the job reaches a terminal state. See Webhooks for payloads, signatures, and retry behavior.

Photo request

Props request

Response

Insufficient credits