Skip to main content
POST
https://api.pikzels.com
/
v1
/
thumbnail
curl --location --request POST 'https://api.pikzels.com/v1/thumbnail' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "cat",
  "format": "16:9",
  "model": "pkz-2"
}'
{
  "output": "https://media.pikzels.com/temp/pikzels_1234567890.jpeg"
}
prompt
string
required
Text prompt describing the desired thumbnail
format
string
required
Aspect ratio format. Options: 16:9, 9:16, 1:1
model
string
required
AI model to use for generation. Options: pkz-1, pkz-2, pkz-3
persona
string
Optional persona ID from custom training for consistent character generation
style
string
Optional style ID from custom training to apply specific artistic styles
curl --location --request POST 'https://api.pikzels.com/v1/thumbnail' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "cat",
  "format": "16:9",
  "model": "pkz-2"
}'
{
  "output": "https://media.pikzels.com/temp/pikzels_1234567890.jpeg"
}

Common Errors

All errors return this JSON structure:
{
  "error": {
    "code": "ERROR_CODE_HERE",
    "message": "Human readable message",
    "details": "Additional context"
  }
}
Status CodeCodeDescription
400BAD_REQUESTInvalid or missing fields
400CONTENT_POLICY_VIOLATIONRequest violates content policy
401INVALID_AUTH_HEADERInvalid API Key
402INSUFFICIENT_BALANCENot enough credits
429CONCURRENT_LIMIT_EXCEEDEDToo many concurrent requests
500INTERNAL_ERRORServer problem
503MAINTENANCE_ACTIVEUnder maintenance