Skip to main content
POST
cURL

Authorizations

X-Api-Key
string
header
required

Your Pikzels API key (prefix: pkz_)

Body

application/json
image_url
string
required

Reference image, as an HTTPS URL or a base64 data URL.

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
prompt
string

Optional instructions of up to 3000 characters, ignored by pkz_2. Prompts over 750 characters may be shortened. Links (anything containing "http") aren't allowed.

Required string length: 1 - 3000
support_image_urls
string[]

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

Maximum array length: 3
image_weight
enum<string>
default:medium

Reference image weight, used only by pkz_2.

Available options:
low,
medium,
high
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