NewSnapHTML has an MCP server now

Generate customer-ready PDFs and images without owning the render stack

SnapHTML renders raw HTML, URLs, or saved templates in a real browser and returns the finished PDF, PNG, WebP, or JPG as a binary response. Ship invoices, receipts, reports, previews, and share images without running your own rendering workers.

POST /v1/render
await fetch("https://api.snhtml.com/v1/render", {
  method: "POST",
  headers: {
    "authorization": "Bearer snhtml_...",
    "content-type": "application/json"
  },
  body: JSON.stringify({
    html: "<main><h1>Invoice #1842</h1></main>",
    format: "png",
    width: 1024,
    height: 900,
    fullPage: false,
    fileName: "invoice-1842"
  })
});

Built for app-generated files

Send the document once. Control the browser and output in the same request.

Use the page source you already have

Post existing markup and styles or send a URL. No duplicate PDF layout, no separate document builder, no rendering worker to maintain.

Return the format your workflow needs

Generate PDFs for documents and PNG, WebP, or JPG images for previews, invoices, cards, social images, and visual exports from the same API.

Control every render

Set viewport size, image quality, full-page capture, media mode, timing, scale, and file names per request.

Keep rendering out of your codebase

Send JSON from your server and get bytes back. No SDK, browser automation, queue tuning, or Playwright cleanup.

Add file generation without adding a rendering stack.

Use SnapHTML from billing systems, CRMs, email pipelines, dashboards, and background jobs. Your app owns the data, page, or markup; SnapHTML handles the browser render and returns a file.

1

Create an API key in the dashboard.

2

Send raw HTML, a URL, or a saved template with render settings.

3

Store, stream, or attach the returned PDF, PNG, WebP, or JPG.

For AI agents

Your agent writes HTML. SnapHTML renders it.

Connect SnapHTML to Claude, Cursor, or any MCP client and rendering becomes a tool call. Sign-in is browser OAuth, so you never paste an API key into an agent — and you can revoke its access without rotating a key.

https://api.snhtml.com/mcp

Renders come back as a URL rather than inline image bytes, so a full-page capture does not eat the agent's context. Usage counts against the same monthly quota as the HTTP API.

Connect your agent
render_html

HTML in, a hosted PDF, PNG, WebP, or JPG back.

render_template

A saved template with its variables filled in.

capture_url

Screenshot any publicly reachable page.

list_templates

Template ids and the variables each one expects.

get_usage

Renders used this month and what the plan allows.

Documentation

Every endpoint, option, and error in one place.

Authentication, both render routes, the full request body reference, saved templates, plan limits, and what to do when a render comes back wrong.

Pricing

Start free. Upgrade when generated files become part of your product.

Free

Free

Test real files before you pay.

  • 100 renders / month
  • No credit card required
  • PDF and image output
  • Direct binary response

Builder

$9/mo

For products that generate customer files every day.

  • 2,000 renders / month
  • PDF and image output
  • Direct binary response

Pro

$29/mo

For growing render volume and background jobs.

  • 10,000 renders / month
  • PDF and image output
  • Direct binary response

Max

$99/mo

For high-volume document and image generation.

  • 50,000 renders / month
  • PDF and image output
  • Direct binary response

Get started

Stop maintaining render workers. Ship the file.

Create a free account, generate an API key, and test a real PDF, PNG, WebP, or JPG from raw HTML, a URL, or a saved template in the dashboard sandbox.

Try for free