curl --location --request POST 'https://api.pikzels.com/v1/persona' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Character",
"training_data": "https://example.com/training-images.zip"
}'
{
"status": "queued",
"id": "abc123def456"
}
Create a custom Persona
curl --location --request POST 'https://api.pikzels.com/v1/persona' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Character",
"training_data": "https://example.com/training-images.zip"
}'
{
"status": "queued",
"id": "abc123def456"
}
curl --location --request POST 'https://api.pikzels.com/v1/persona' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Character",
"training_data": "https://example.com/training-images.zip"
}'
{
"status": "queued",
"id": "abc123def456"
}
{
"prompt": "epic adventure scene",
"format": "16:9",
"model": "pkz-3",
"persona": "abc123def456"
}
{
"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 |
|---|---|---|
| 400 | INVALID_TRAINING_DATA | Corrupted zip, wrong format, or inaccessible URL |