Skip to content

Regenerate Product Image

FreshPOST
POST https://api.creatify.ai/api/product_to_videos/{id}/regen_image/

Regenerate the AI product image with a different variation. Use this when the initial generated image does not meet your requirements.

Credit Cost

1 credit 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/regen_image/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key'

Response

json
{
  "id": "ptv-001",
  "status": "processing",
  "image_url": null,
  "created_at": "2024-01-15T10:30:00Z"
}

When processing completes:

json
{
  "id": "ptv-001",
  "status": "done",
  "image_url": "https://cdn.creatify.ai/product/ptv-001-regen.jpg",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
200Regeneration started
401Unauthorized -- invalid API credentials
402Insufficient credits
404Task not found
500Internal server error

TIP

Each regeneration produces a different variation. You can regenerate multiple times until you find an image you are satisfied with, at 1 credit per attempt.