Regenerate Product Image
FreshPOSTPOST 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
| 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/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
| Code | Description |
|---|---|
200 | Regeneration started |
401 | Unauthorized -- invalid API credentials |
402 | Insufficient credits |
404 | Task not found |
500 | Internal 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.