Skip to main content
POST
cURL

Authorizations

X-Api-Key
string
header
required

Your Pikzels API key (prefix: pkz_)

Body

application/json
prompt
string
required

What the thumbnail should show, up to 3000 characters. Prompts over 750 characters may be shortened. Links (anything containing "http") aren't allowed.

Required string length: 1 - 3000
model
enum<string>
required

Model that generates the thumbnail. See Models for what each supports.

Available options:
pkz_2,
pkz_3,
pkz_4,
pkz_4_5
format
enum<string>
required

Aspect ratio of the thumbnail.

Available options:
16:9,
9:16,
1:1
support_image_urls
string[]

Up to 3 support images, in order, each an HTTPS URL or a base64 data URL.

Maximum array length: 3
personas
string[]

Up to 3 persona IDs from List personas and styles, each listed once, combined in the same thumbnail.

Maximum array length: 3
style
string
async
boolean

Set true to get a request ID at once and fetch the result later. See Async Requests.

Response

Success

model
string
required

The model that generated this thumbnail.

output
string
required

URL of the generated thumbnail.

prompt_compacted
boolean
required

True when the prompt was shortened before generation.

request_id
string
required