Skip to content

Create Custom Avatar (v1)

FreshPOST
POST https://api.creatify.ai/api/personas/

Create a new custom avatar (v1). Upload a video or image of a person to create a reusable AI avatar.

Request Body

NameTypeRequiredDescription
namestringYesName for the custom avatar
video_urlstringConditionalURL to a video of the person. Required if image_url is not provided
image_urlstringConditionalURL to an image of the person. Required if video_url is not provided

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key
Content-TypestringYesapplication/json

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/personas/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Company Spokesperson",
    "video_url": "https://example.com/spokesperson-video.mp4"
  }'

Response

json
{
  "id": "persona-001",
  "name": "Company Spokesperson",
  "status": "processing",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
201Avatar creation started
400Bad request -- invalid parameters
401Unauthorized -- invalid API credentials
402Insufficient credits
429Rate limit exceeded
500Internal server error

TIP

For best results, use a video with clear facial features, good lighting, and minimal background movement. The person should face the camera directly.

WARNING

Consider using v2 avatars (POST /api/personas_v2/) for improved quality and consent verification support.