/generate/pixelate

Advanced pixelization of an image.

Query Params
string

If set to true, returns the original asset without transformation

string
Body Params
string
required

The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") to pixelate.

number
required

The size of the pixel grid in the output image. Should be 16, 32, 64, 128, or 256.

boolean
required

Reduce pixel art artifacts.

boolean
Defaults to false

Remove the background from the image.

colorPalette
array of arrays of numbers

The color palette to use for the pixel art.

colorPalette
number

If no colorPalette is provided, you can provide a palette size. Value should be between 2 and 256.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json