Generate Product Video
FreshPOSTPOST https://api.creatify.ai/api/product_to_videos/{id}/gen_video/Generate a video from a product video task. Requires a generated image (from gen_image) to exist first.
Credit Cost
3 credits per request
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The product video 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/product_to_videos/ptv-001/gen_video/' \
-H 'X-API-ID: your-api-id' \
-H 'X-API-KEY: your-api-key'Response
json
{
"id": "ptv-001",
"status": "processing",
"video_url": null,
"created_at": "2024-01-15T10:30:00Z"
}When processing completes:
json
{
"id": "ptv-001",
"status": "done",
"video_url": "https://cdn.creatify.ai/product/ptv-001.mp4",
"created_at": "2024-01-15T10:30:00Z"
}Status Codes
| Code | Description |
|---|---|
200 | Video generation started |
401 | Unauthorized -- invalid API credentials |
402 | Insufficient credits |
404 | Task not found |
409 | Image not yet generated -- run gen_image first |
500 | Internal server error |
WARNING
You must generate the product image (gen_image) before generating the video. Calling this endpoint without a generated image will return a 409 error.