Slices
Screenshots
Styled screenshots of web pages, as an image URL, on Chirio.The screenshots slice films web pages on Chirio
and hands you a PNG: the bare page, or the page inside a 3D mockup with
browser chrome. It is an add-on by Dopler. No surface requires it, so it is
asked for by name:
It adds no dependency. The server calls Chirio over global fetch.
/api/screenshot serves the image, so a screenshot is just an image URL:
Query parameters: url (required), theme (light or dark), chrome
(none, light or dark) and style (a mockup style id from Chirio's
gallery). The image is cached for a day at the edge, so a page is paid for
once a day at most, not once per visitor.
The route films only the app's own host (from baseURL) and the hosts in
SCREENSHOT_ALLOWED_HOSTS (comma-separated). Anything else answers 403, so
a visitor cannot spend your plan on other sites. A page Chirio has never
filmed can take a minute; until then the route answers 202 with
retry-after.
Last updated November 1, 2026- Sign in at chirio.dev and create an API key under Settings → API keys.
- Set CHIRIO_API_KEY. The same key serves the feedback and publish slices.
- Optional: SCREENSHOT_ALLOWED_HOSTS=docs.your-app.com,partner.com.
Edit this page on GitHub