Skip to content

Preview Avatar Video (v1)

FreshPOST
POST https://api.creatify.ai/api/lipsyncs/{id}/preview/

Generate a preview version of an avatar video. Previews are lower quality but cost fewer credits, allowing you to verify the content before committing to a full render.

Credit Cost

1 credit per 30 seconds of video

Path Parameters

NameTypeRequiredDescription
idstringYesThe lipsync task ID

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/lipsyncs/abc123/preview/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key'

Response

json
{
  "id": "abc123",
  "status": "processing",
  "preview": null,
  "created_at": "2024-01-15T10:30:00Z"
}

When processing completes:

json
{
  "id": "abc123",
  "status": "done",
  "preview": "https://cdn.creatify.ai/previews/abc123.mp4",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
200Preview generation started
401Unauthorized -- invalid API credentials
402Insufficient credits
404Lipsync task not found
500Internal server error

TIP

Poll GET /api/lipsyncs/{id}/ to check when the preview is ready. The preview field will contain the URL when status is done.