Preview Avatar Video (v2)
FreshPOSTPOST https://api.creatify.ai/api/lipsyncs/{id}/preview/Generate a preview of a v2 multi-scene avatar video. Use previews to verify scene composition before committing to a full render.
Credit Cost
1 credit per 30 seconds of video
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The lipsync task ID |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-API-ID | string | Yes | Your Creatify API ID |
X-API-KEY | string | Yes | Your Creatify API key |
Example Request
bash
curl -X POST 'https://api.creatify.ai/api/lipsyncs/v2-abc123/preview/' \
-H 'X-API-ID: your-api-id' \
-H 'X-API-KEY: your-api-key'Response
json
{
"id": "v2-abc123",
"status": "processing",
"preview": null,
"created_at": "2024-01-15T10:30:00Z"
}When processing completes:
json
{
"id": "v2-abc123",
"status": "done",
"preview": "https://cdn.creatify.ai/previews/v2-abc123.mp4",
"created_at": "2024-01-15T10:30:00Z"
}Status Codes
| Code | Description |
|---|---|
200 | Preview generation started |
401 | Unauthorized -- invalid API credentials |
402 | Insufficient credits |
404 | Lipsync task not found |
500 | Internal server error |
TIP
Preview all multi-scene compositions before rendering. This lets you verify scene transitions and avatar placement at a fraction of the render cost.