Docs

POST /v1/images

Use POST /v1/images when you need a png, jpeg, or webp screenshot of HTML or a public URL — not a PDF. Same Chromium engine as POST /v1/pdf. Failed screenshots are not billed.

Provide exactly one of html or url. Same Chromium engine as POST /v1/pdf. Failed screenshots are not billed.

Body fields

One source plus optional image options.

FieldRequiredDescription
html / urlexactly oneSource
filenamenoMust match type (.png, .jpg/.jpeg, .webp)
responsenobinary (default), url, or async
options.typenopng (default), jpeg, or webp
options.fullPagenoDefault false
options.omitBackgroundnoDefault false
options.qualityno1–100 for jpeg/webp
options.viewportnowidth, height, optional deviceScaleFactor
options.clipnox, y, width, height
options.waitUntil / timeoutnoSame as PDF

Example

Full-page PNG of a public URL.

POST /v1/images
{
  "url": "https://example.com",
  "options": {
    "type": "png",
    "fullPage": true
  }
}