Skip to content

Screenshot API

Send a public URL or your own HTML and get a PNG or JPEG back. Set the viewport, capture the entire page, clip a region, or render at a higher pixel density. It runs on headless Chromium.

POSThttps://api.aiipworld.com/v1/render

The output is the real file our engine returned for this request (page 1 for PDFs). HTML shortened for display; the full request is below.

In one sentence

A render API that takes a public web address or your own HTML and returns a PNG or JPEG screenshot, using headless Chromium.

Key facts

  • Endpoint: POST https://api.aiipworld.com/v1/render with an API key as a Bearer token; send url or html with output png or jpeg.
  • Options: viewport (100 to 4000 px), full_page, clip, device_scale_factor 1 to 3, JPEG quality, transparent background for PNG, colour scheme, wait conditions.
  • Pricing: a screenshot costs 1 credit. A full page screenshot costs 2 credits for an image up to 5,000 px tall, plus 1 credit for each further 5,000 px (or part of), up to 16,384 px (5 credits at most). Height is counted in output pixels, so device_scale_factor 2 doubles it. The job is reserved at 2 credits and settled on the real image height. Results beyond 5 MB cost more; credits for failed jobs are returned.
  • Plans: Free 100 credits a month; Starter $19 a month for 2,750; Pro $59 for 10,000; Business $149 for 30,000; Scale $299 for 75,000; credit pack $10 for 1,400 credits that do not expire.
  • Rate limits per minute: Free 30, Starter 60, Pro 180, Business 600, Scale 600. Not available yet: webhooks, templates and WebP output.

What it does

  • URL or HTML in, PNG or JPEG out, with one request to POST /v1/render.
  • Viewport, full-page capture, clipping, transparent background and pixel density are options.
  • The same engine behind the free website screenshot, HTML to image and OG image tools.
  • Each job gets a fresh browser context in a resource-limited worker container, with a hard timeout; requests to private networks are blocked.
  • Jobs are asynchronous: submit, poll, then fetch the image from a short-lived signed link.

Example: full page capture of an HTML page

Set AIIPWORLD_API_KEY to a key from your dashboard. The request below produced the example output further down.

curl -X POST https://api.aiipworld.com/v1/render \
  -H "Authorization: Bearer $AIIPWORLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html":"<!doctype html><html><head><meta charset=\"utf-8\"><style>\nbody{margin:0;font-family:Helvetica,Arial,sans-serif;color:#1a1a1a}\nsection{height:560px;padding:40px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}\nh1{margin:0 0 12px;font-size:40px}p{font-size:20px;margin:0;max-width:560px;line-height:1.5}\n.a{background:#eef1ff}.b{background:#fff6e0}.c{background:#e6f7ee}\n</style></head><body>\n<section class=\"a\"><h1>Top of the page</h1><p>This sample page is about three screens tall. A normal screenshot would stop at the bottom of the first screen.</p></section>\n<section class=\"b\"><h1>Middle</h1><p>With full_page set to true (an API option) the capture continues down the page.</p></section>\n<section class=\"c\"><h1>Bottom</h1><p>The whole page is in one image.</p></section>\n</body></html>","output":"png","options":{"viewport":{"width":800,"height":600},"full_page":true}}'

# returns {"job_id": "...", "status": "queued"}; then poll:
curl https://api.aiipworld.com/v1/jobs/JOB_ID -H "Authorization: Bearer $AIIPWORLD_API_KEY"

Example: a 1200 x 630 image for link previews

curl -X POST https://api.aiipworld.com/v1/render \
  -H "Authorization: Bearer $AIIPWORLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html":"<!doctype html>\n<html><head><meta charset=\"utf-8\">\n<style>\n  * { box-sizing: border-box; }\n  html, body { margin: 0; width: 1200px; height: 630px; }\n  body { font-family: Helvetica, Arial, \"Noto Sans\", \"Noto Sans CJK SC\", sans-serif; color: #ffffff;\n    background: linear-gradient(135deg, #1e2a78, #2f4bff); display: flex; flex-direction: column; justify-content: center;\n    padding: 80px 90px; position: relative; text-align: left; align-items: flex-start; overflow: hidden; }\n  .bar { width: 96px; height: 10px; background: #ffd166; border-radius: 5px; margin-bottom: 36px; }\n  h1 { margin: 0; font-size: 84px; line-height: 1.12; font-weight: 800; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }\n  p { margin: 28px 0 0; font-size: 34px; line-height: 1.3; opacity: .88; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n  .site { position: absolute; left: 90px; right: 90px; bottom: 52px; font-size: 28px; font-weight: 600; color: #ffd166; text-align: left; }\n</style></head><body>\n<div class=\"bar\"></div>\n<h1>How to ship a faster website</h1>\n<p>Five changes that cut load time without a rewrite</p>\n<div class=\"site\">aiipworld.com</div>\n</body></html>","output":"png","options":{"viewport":{"width":1200,"height":630}}}'

# returns {"job_id": "...", "status": "queued"}; then poll:
curl https://api.aiipworld.com/v1/jobs/JOB_ID -H "Authorization: Bearer $AIIPWORLD_API_KEY"

Example output

Full page capture of a three-section sample page
Result of the full_page request shown below (800 x 1680 px). Generated by this site's own engine. Open the file (or select the picture) to see it at full size.

Options

Options go in the options object and are passed to the engine, which rejects unknown names.

OptionWhat it does
viewportWindow width and height, 100 to 4000 px each (1280 x 800 by default).
full_pageCapture the whole page. Limited to 16384 px of output height; a taller page is cut and the result says truncated. Costs more for tall pages, see Pricing below.
clipCapture a rectangle: x, y, width, height.
device_scale_factorPixel density from 1 to 3.
qualityJPEG quality (80 by default).
omit_backgroundTransparent background for PNG, where the page does not paint its own.
color_scheme, mediaPreferred colour scheme; the media type (screen by default).
wait_until, wait_for_selector, delay_msWhen to consider the page ready; an extra delay up to 10 seconds.
javascript, headers, user_agentTurn scripts off; up to 20 request headers; user agent.

Pricing

One credit pool covers every tool and the API. A screenshot costs 1 credit. A full page screenshot costs 2 credits for an image up to 5,000 px tall, plus 1 credit for each further 5,000 px (or part of), up to 16,384 px (5 credits at most). Height is counted in output pixels, so device_scale_factor 2 doubles it. The job is reserved at 2 credits and settled on the real image height. Results beyond 5 MB cost more. Credits for failed jobs are returned. Apart from the full page rule, credit costs are provisional until launch.

Free

$0

100 credits per month

Starter

$19 / month

2,750 credits per month

about $0.0069 per simple render

Pro

$59 / month

10,000 credits per month

about $0.0059 per simple render

Business

$149 / month

30,000 credits per month

about $0.0050 per simple render

Scale

$299 / month

75,000 credits per month

about $0.0040 per simple render

Per-render prices are plan price / credits x credits per render, for a plan used in full and billed monthly. See the full table on pricing.

Credit pack: $10 for 1,400 credits that do not expire. Rate limits and result retention depend on the plan: see pricing.

How the screenshot API works

The screenshot API runs as a job. You send a POST request to /v1/render with a url or an html value, and you choose png or jpeg as the output. The API replies with status 202 and a job_id.

Then check the job. Send a GET request to /v1/jobs/ followed by your job_id, and keep checking until the status is succeeded, failed or timeout. A successful job returns a download_url. That link is signed and short-lived, so download the file as soon as the job succeeds.

Each job gets a fresh browser context. Cookies and cache from one job are not shared with the next. Rendering runs in headless Chromium inside a resource-limited worker container with a hard timeout.

The free web tools use the same engine. The website screenshot tool covers a single URL, and the HTML to image tool renders markup you paste. Both work without an account, after a human check that signed-in users skip.

Viewport, full page and clip

The viewport is the size of the browser window, in pixels. Set width and height to any value from 100 to 4000. The default is 1280 x 800.

Set full_page to true to capture the whole page instead of the top of the window. The output height is capped at 16,384 px, measured as CSS height times device_scale_factor. A taller page is cut at the cap, and the job result says it was truncated. Full page captures cost more credits than a normal screenshot.

Use clip to save one region of the page. Pass x, y, width and height in pixels, and only that area is kept.

Set device_scale_factor from 1 to 3 when you need a denser image. A value of 2 doubles the width and height in pixels, while the layout stays the same.

The free full-page screenshot tool captures a tall window from the top, up to 2000 px. Real full_page capture needs an API key or a signed-in account.

PNG, JPEG and transparent images

Use png for lossless output. It is the default. Use jpeg when file size matters more than exact detail, such as for photographic pages. Set quality to control JPEG compression. The default is 80.

Set omit_background to true to get a transparent PNG. Transparency applies only where the page does not paint a background. Areas that the page colours stay coloured.

The HTML to image tool also has a transparent background option for PNG output.

Pages that load content late

By default the API waits for the load event. Set wait_until to change this. You can choose load, domcontentloaded, networkidle or commit. The networkidle choice waits until the network has been quiet for a while, which suits pages that fetch data after they open.

Use wait_for_selector to wait until one element appears on the page. Use delay_ms to add a fixed pause after the page is ready. The pause can be up to 10000 ms.

JavaScript runs by default, so pages that build their content in the browser render fully. Turn javascript off only if you want the static HTML.

For dark mode, set color_scheme to dark. Sites that support dark mode switch to it, and other sites look the same. Set media to print to use print styles. The default is screen.

Screenshots of your own HTML

Send html instead of url to render markup you wrote. If the HTML links to files by relative paths, set base_url so those links resolve.

This is the usual way to make social cards, email banners and Open Graph images. For an Open Graph image, use a 1200 x 630 viewport and output png.

The render server includes Noto fonts, including the CJK fonts, Noto Color Emoji and Liberation 2. Fonts on your own computer are not on the server. To use another font, load it with @font-face from a public URL or a data URL.

If you do not want to write the markup yourself, the OG image tool on this site builds a 1200 x 630 PNG from a form.

Python screenshots, and Playwright or Puppeteer compared

The script below is a Python screenshot through the render API: one HTTP call, then a poll, then a download. It sends your HTML to POST /v1/jobs with the operation screenshot and a viewport of 800 x 400 px. It then polls the job until it ends, and saves the result as hello.png. The script reuses the small aiipworld_pdf.py client from the HTML to PDF in Python guide, which retries on 429 responses and polls with growing pauses.

screenshot.py
from aiipworld_pdf import call, wait, download, RenderError

html = """<!doctype html>
<html>
  <body style="font-family: sans-serif; padding: 24px">
    <h1>Hello from aiipworld.com</h1>
    <p>This page was rendered to a PNG by the render API.</p>
  </body>
</html>"""

# POST /v1/jobs with op=screenshot. Send params.html or params.url, never both.
r = call("POST", "/v1/jobs", json={
    "op": "screenshot",
    "params": {
        "html": html,
        "type": "png",  # or "jpeg"
        "viewport": {"width": 800, "height": 400},
    },
})
if r.status_code != 202:
    body = r.json()
    raise RenderError(r.status_code, body.get("message") or body["error"])

job = wait(r.json()["job_id"])  # polls GET /v1/jobs/:id until it has ended
size = download(job, "hello.png")
print(job["status"], size, "bytes")

In our run on 2026-10-11 (Python 3.11, requests 2.34.2, local gateway), the job succeeded and produced an 800 x 400 px PNG of 10,879 bytes. The screenshot_url.py example takes a public address instead, sending https://aiipworld.com/ to POST /v1/render with output png. In our run it produced a 1280 x 800 px PNG of 261,179 bytes.

If you want a Playwright screenshot from Python on your own machine, Playwright for Python is one option, and you can also take a screenshot in Python with it. It needs a browser installed with playwright install. It is licensed under Apache-2.0. The example below launches Chromium, sets the page content, and saves a PNG.

playwright_screenshot.py
from playwright.sync_api import sync_playwright

html = "<h1>Hello from Playwright</h1><p>Rendered on this machine.</p>"

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page(viewport={"width": 800, "height": 400})
    page.set_content(html, wait_until="load")
    page.screenshot(path="self-hosted.png")
    browser.close()

Our run with Playwright for Python 1.63.0 on Python 3.11.3 wrote an 800 x 400 px PNG. With a self-run browser, you maintain the browser install and its updates, the timeouts, the fonts, and clean-up of the browser process.

Puppeteer is a JavaScript library that controls Chrome or Firefox, headless by default. It is licensed under Apache-2.0. Running npm i puppeteer downloads a compatible Chrome during installation. The puppeteer-core package does not download one.

The wait option names differ between the two. Puppeteer's waitUntil accepts load, domcontentloaded, networkidle0, and networkidle2. The API's wait_until option accepts load, domcontentloaded, networkidle, and commit, with load as the default. Do not copy a value from one into the other.

This section does not cover Selenium. The same trade-off applies to any tool where you run the browser yourself.

Choosing between them depends on what your pages need:

  • A self-run browser fits when you need internal or private addresses, pages behind a login, clicks or typing before the shot, or cookies. Your pages stay on your network and there is no per-image cost. You install and maintain the browser, fonts, timeouts, and clean-up.
  • The API fits when you want one HTTP request, with no browser to install or update. The hard timeout and clean-up run on our side. Each simple screenshot costs 1 credit, and accounts get 100 free credits a month.
  • The API accepts only public http and https addresses. Private networks, localhost, and cloud metadata addresses are blocked, including after redirects.
  • There is no cookie option. Custom headers and user agent are possible, up to 20 headers. Click and type steps are not supported, and there are no webhooks or batch endpoint. WebP output is not supported.
  • For a full-page capture, set full_page to true. The output height is capped at 16,384 px. See the pricing rule: A full page screenshot costs 2 credits for an image up to 5,000 px tall, plus 1 credit for each further 5,000 px (or part of), up to 16,384 px (5 credits at most). Height is counted in output pixels, so device_scale_factor 2 doubles it. The job is reserved at 2 credits and settled on the real image height..

Authentication and rate limits

Create an API key in the dashboard. Send it with every request in the Authorization header, using the word Bearer followed by the key. The x-api-key header also works.

Each plan has its own limit on requests per minute. The Free plan has the lowest limit and Business has the highest. Check your plan limit before you send many requests in a loop.

Queue priority also follows the plan. Requests from Business are handled first, then Pro, Starter and Free.

What is not available yet

These features are not in the API today. Do not build on them until they are released.

  • WebP output. Asking for WebP returns an error.
  • Templates. The template_id and JSON data fields are reserved, and sending them returns an error.
  • Webhooks. Check the job status by polling instead.
  • Batch requests. There is no batch endpoint, so send one request for each document.
  • Cookies. There is no option to send cookies with a job.

Errors and returned credits

Credits for failed and timed-out jobs are returned. When a job fails, the status is failed and the result includes an error class from this list.

  • invalid_input: a value in the request is not valid.
  • ssrf_blocked: the address is not allowed, for example a private network address.
  • navigation_failed: the page could not be loaded.
  • output_limit: the output is over a limit.
  • memory_limit: the page used too much memory while rendering.
  • timeout: the job ran past its time limit. Long waits and heavy pages use up that time.

Test a capture before you write code

Before you write code for a website screenshot API call, check the page with the free website screenshot tool on this site. Enter a public URL, pick a preset such as Desktop, Laptop, Tablet or Phone, and look at the image. If the page fills in late, add a short extra wait.

If your markup is the source, paste it into the HTML to image tool first. Set the width and height in pixels, pick PNG or JPEG, and fix any CSS problems you see before you send that markup to the html to image api.

A common case is a link preview. Send a small HTML template for each page, then save the PNG that comes back. Used this way, the API works as an og image api for your own site.

Screenshot API for AI agents

An AI agent that can send HTTP requests can use this screenshot API as a tool. The agent POSTs a url to /v1/render with output png, polls GET /v1/jobs/:id until the job succeeds, and downloads the image from download_url. What the agent does with the file is up to your code, for example saving it or passing it to a model that reads images.

A few points matter when an agent makes the calls. Keep the API key in your own server code and do not put it in a prompt. The job is asynchronous, so the tool wrapper has to poll. Set wait_until or wait_for_selector for pages that fill in late, and add a pause with delay_ms. A page behind a login shows its login screen, because there is no cookie option.

Each request costs 1 credit and each plan has its own limit per minute, so an agent that loops should slow down when it receives a 429 answer. Credits for failed and timed-out jobs are returned.

Web screenshot API and screenshot automation

A web screenshot API is the same engine as the web tool, called from code. Screenshot automation here means that your own program sends the requests: there is no built-in scheduler, so run the calls from a cron job, a CI step or your backend and poll each job until it succeeds.

Questions

How do I take a full page screenshot?

Set full_page to true in options. Captures are limited to 16,384 px of output height; a taller page is cut there and the job result says truncated. A full page screenshot costs 2 credits for an image up to 5,000 px tall, plus 1 credit for each further 5,000 px (or part of), up to 16,384 px (5 credits at most). Height is counted in output pixels, so device_scale_factor 2 doubles it. The job is reserved at 2 credits and settled on the real image height.

Which formats can I get?

PNG and JPEG. WebP is not supported yet and the API returns an error if you ask for it. JPEG quality is an option (80 by default).

Can I use it to generate Open Graph images?

Yes. Send your own HTML at a 1200 x 630 viewport with output png. The OG image generator on this site does exactly that. Templates with JSON data are not available yet.

How much does a screenshot cost?

1 credit for a normal screenshot. A full page screenshot costs 2 credits for an image up to 5,000 px tall, plus 1 credit for each further 5,000 px (or part of), up to 16,384 px (5 credits at most). Height is counted in output pixels, so device_scale_factor 2 doubles it. The job is reserved at 2 credits and settled on the real image height. Results over 5 MB cost one more credit for each further 5 MB. Credits for failed jobs are returned. The 5 MB surcharge is provisional until launch.

Can I capture pages behind a login?

You can send custom request headers (up to 20) and a custom user agent. There is no cookie option. Only capture pages you are allowed to copy.

What stops it from reaching private servers?

Every request, including redirects and sub-resources, is checked and private, local and cloud metadata addresses are blocked.

Is there a free tier?

Yes. A free account includes 100 credits a month. The free web tools work without an account within per-visitor limits.

How do I get an API key?

Create an API key in the dashboard. Send it with every request in the Authorization header, using the word Bearer followed by the key. The x-api-key header also works. Do not share the key.

Is there a rate limit?

Yes. Each plan has its own limit on requests per minute. The Free plan has the lowest limit and Business the highest. Queue priority follows the plan too, so Business requests are handled before Pro, Starter and Free.

Can I screenshot a mobile site?

Yes. Set the viewport to a narrow width and a tall height, and responsive sites switch to their mobile layout. Through the API you can also send a custom user_agent. The Phone preset in the website screenshot tool sets the window size only.

How long are screenshots stored?

API results are kept for 1 day on the Free plan, 7 days on Starter and Pro, and 30 days on Business and Scale. Download links are short-lived, so fetch the file soon after the job succeeds. Web tool results are deleted after 10 minutes. A record of each job is kept, and signed-in users can see their jobs in the dashboard.

Can my app use a screenshot as a service?

Yes. Your app sends the job, polls it until the status is succeeded, and downloads the image. Results are kept for the period in your plan, so save the file if you need it for longer.

Can I turn a URL into an image with the url to image API?

Yes. Send a public http or https address in the url field, choose png or jpeg as the output, and poll the job until it succeeds. Private and local addresses are blocked, so the page must be reachable from the public internet.

Can an AI agent use the screenshot API?

Yes, through ordinary HTTP. The agent sends a url to POST /v1/render with output png, polls the job, and downloads the image from download_url. Keep the API key on your server, expect to poll, and remember that pages behind a login show the login screen. This works for any agent framework that can call an HTTP endpoint.

How do I take a screenshot in Python?

Send a POST request to /v1/jobs with the op screenshot and your url or html in params, poll GET /v1/jobs/:id until the status is succeeded, then download the PNG from download_url. The Python screenshot example on this page does exactly that with the requests library.

Should I use Playwright, Puppeteer or the screenshot API?

It depends on what your pages need. Playwright and Puppeteer run a browser that you install and maintain, which suits internal addresses, logins and scripted clicks. The API needs no browser but takes only public addresses and has no click steps. Both give you a PNG or JPEG.

Related tools