curl --request POST \
--url https://api.anam.ai/v1/avatars \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'displayName=<string>' \
--form imageFile='@example-file' \
--form 'imageUrl=<string>'Create a new one-shot avatar from an image file or image URL. This API is only available for enterprise and pro plans.
curl --request POST \
--url https://api.anam.ai/v1/avatars \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'displayName=<string>' \
--form imageFile='@example-file' \
--form 'imageUrl=<string>'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Display name for the avatar (3-50 characters)
Image file to create the avatar from (JPEG, PNG, or WebP, max 10MB). Either imageFile or imageUrl must be provided, but not both.
URL of the image to create the avatar from (JPEG, PNG, or WebP, max 10MB). Either imageFile or imageUrl must be provided, but not both.
Successfully created avatar
Was this page helpful?