curl --location --request GET 'https://api.pikzels.com/v1/style?id=xyz789ghi012' \
--header 'X-Api-Key: YOUR_API_KEY'
{
"id": "xyz789ghi012",
"created": 1704067200,
"name": "Cyberpunk Aesthetic",
"status": "Ready",
"progress": 100,
"temp_portrait_url": "https://media.pikzels.com/temp/style_preview_abc123.jpg"
}
Get details about a created Style
curl --location --request GET 'https://api.pikzels.com/v1/style?id=xyz789ghi012' \
--header 'X-Api-Key: YOUR_API_KEY'
{
"id": "xyz789ghi012",
"created": 1704067200,
"name": "Cyberpunk Aesthetic",
"status": "Ready",
"progress": 100,
"temp_portrait_url": "https://media.pikzels.com/temp/style_preview_abc123.jpg"
}
Queued
Analyzing
Training
Ready
temp_portrait_url is only available for 12 hours after training completes. Download and host this image yourself if you want to keep it permanently.curl --location --request GET 'https://api.pikzels.com/v1/style?id=xyz789ghi012' \
--header 'X-Api-Key: YOUR_API_KEY'
{
"id": "xyz789ghi012",
"created": 1704067200,
"name": "Cyberpunk Aesthetic",
"status": "Ready",
"progress": 100,
"temp_portrait_url": "https://media.pikzels.com/temp/style_preview_abc123.jpg"
}
{
"prompt": "epic battle scene",
"format": "16:9",
"model": "pkz-3",
"style": "xyz789ghi012"
}
{
"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 |
| Status Code | Code | Description |
|---|---|---|
| 404 | NOT_FOUND | Model does not exist or is not available |