Render a URL as a screenshot.
Render a URL as a screenshot. POST { url, width?, height?, fullPage?, format?, quality?, waitUntil?, timeoutMs?, deviceScaleFactor?, blockAds? }. Returns raw image bytes (no JSON envelope) with X-2s-Render-Ms and X-2s-Image-Bytes headers. Viewport clamped 320-3840 × 320-2160. Timeout clamped 1-15s. Defaults: 1280×720 PNG, networkidle2 wait, ad-blocking on. Use cases: visual verification, archival, change detection, OG-card generation, RSS thumbnails. Billing: payment settles before this endpoint runs (paid upstream), so an error after settlement IS charged — the error response then carries the payment receipt (PAYMENT-RESPONSE) and X-2s-Charged: true.
Request
- Base URL: https://2s.io
- URL: https://2s.io/api/ai/screenshot
- Auth: API key in header PAYMENT-SIGNATURE
Query parameters
Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.
Request body
Response
Raw image bytes (PNG / JPEG / WebP per format). X-2s-Render-Ms + X-2s-Image-Bytes response headers describe the render. No JSON envelope on success.
Changes
No recorded changes to this operation across all 1 revision of this API.