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 to change, up to 3000 characters. Prompts over 750 characters may be shortened. Links (anything containing "http") aren't allowed.

Required string length: 1 - 3000
image_url
string
required

Image to edit, as an HTTPS URL or a base64 data URL.

format
enum<string>
required

Aspect ratio of the thumbnail.

Available options:
16:9,
9:16,
1:1
mask_url
string

Mask of the area to edit, as an HTTPS URL or a base64 data URL.

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