Generate Pattern
Authentication
string
required
Bearer token. Example:
Bearer px_live_your_keyRequest body
string
Base64-encoded image data. Provide either
image or image_url, not both.string
URL of the image to process. Provide either
image or image_url, not both.string
required
Target niche ID. Use
GET /api/v1/niches to see available options.number
required
Target width in centimeters (10–1000).
number
required
Target height in centimeters (10–1000).
number
Width of each unit in cm. Defaults to the niche’s default.
number
Height of each unit in cm. Defaults to the niche’s default.
number
Maximum number of colors in the palette. If set, the palette is trimmed to this count.
string
Color catalog to use. Currently:
"default" or "custom" (uses your API key’s custom colors).