Skip to main content
POST
Edit images

Authorizations

Authorization
string
header
required

Your server-side Scrapist API key.

Body

application/json
prompt
string
required

Edit instructions. Leading and trailing whitespace is trimmed.

Required string length: 1 - 2000
requestId
string

Optional correlation ID. Scrapist generates one when omitted.

Minimum string length: 1
images
string[]

Up to three input images, each a public http(s) URL or a base64 data:image/...;base64, URL. Each image is fitted onto a 512x512 canvas. Omit to draw on a blank white canvas.

Maximum array length: 3
Minimum string length: 1

Response

The edited image.

requestId
string
required
images
string[]
required
Required array length: 1 element

The edited 512x512 image as a data:image/jpeg;base64, URL.