curl --location --request POST 'https://api.pikzels.com/v1/recreate' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_url": "https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0",
"model": "pkz-2",
"image_weight": "medium"
}'
{
"output": "https://media.pikzels.com/temp/recreated_5f6e7d8c9b0a.jpeg"
}
Recreate images with enhancement and creative modifications
curl --location --request POST 'https://api.pikzels.com/v1/recreate' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_url": "https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0",
"model": "pkz-2",
"image_weight": "medium"
}'
{
"output": "https://media.pikzels.com/temp/recreated_5f6e7d8c9b0a.jpeg"
}
pkz-2, pkz-3low, medium, highcurl --location --request POST 'https://api.pikzels.com/v1/recreate' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_url": "https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0",
"model": "pkz-2",
"image_weight": "medium"
}'
{
"output": "https://media.pikzels.com/temp/recreated_5f6e7d8c9b0a.jpeg"
}
{
"error": {
"code": "ERROR_CODE_HERE",
"message": "Human readable message",
"details": "Additional context"
}
}
| Status Code | Code | Description |
|---|---|---|
| 400 | BAD_REQUEST | Invalid or missing fields |
| 400 | CONTENT_POLICY_VIOLATION | Request violates content policy |
| 401 | INVALID_AUTH_HEADER | Invalid API Key |
| 402 | INSUFFICIENT_BALANCE | Not enough credits |
| 429 | CONCURRENT_LIMIT_EXCEEDED | Too many concurrent requests |
| 500 | INTERNAL_ERROR | Server problem |
| 503 | MAINTENANCE_ACTIVE | Under maintenance |