Skip to content

Generate Product Video

FreshPOST
POST 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

NameTypeRequiredDescription
idstringYesThe product video 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/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

CodeDescription
200Video generation started
401Unauthorized -- invalid API credentials
402Insufficient credits
404Task not found
409Image not yet generated -- run gen_image first
500Internal 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.