curl --location --request POST 'https://api.pikzels.com/v1/edit' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "make the cat blue",
"image_url": "https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba"
}'
{
"output": "https://media.pikzels.com/temp/edited_7f8a9b2c3d4e.jpeg"
}
Transform existing images with smart modifications
curl --location --request POST 'https://api.pikzels.com/v1/edit' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "make the cat blue",
"image_url": "https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba"
}'
{
"output": "https://media.pikzels.com/temp/edited_7f8a9b2c3d4e.jpeg"
}
curl --location --request POST 'https://api.pikzels.com/v1/edit' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "make the cat blue",
"image_url": "https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba"
}'
{
"output": "https://media.pikzels.com/temp/edited_7f8a9b2c3d4e.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 |