canonical: https://jentic.com/apis/shotkiln.com/shotkiln

# Shotkiln API

The Shotkiln API renders screenshots, PDFs, and Open Graph images from any public URL or raw HTML. Screenshots come back as PNG, JPEG, or WebP at widths from 320 to 3840 pixels, with full-page capture, scroll-through for lazy-loaded images, dark mode emulation, and a device scale factor up to 3. PDFs render in sizes such as A4, Letter, and Legal with margins, landscape, and background printing, and 1200x630 OG cards are generated from a title and subtitle with a choice of template, theme, and accent colour. Signed OG URLs let a page reference a card in og:image without exposing the API key.

## For AI agents

Capture screenshots of public web pages, render a URL or HTML to PDF, and generate 1200x630 Open Graph images, with caching and signed OG URLs safe to publish.

## Scope

Does not crawl sites, extract page text, or host the images it renders. Use for screenshots, PDFs, and Open Graph images only.

## Capabilities

- Capture a PNG, JPEG, or WebP screenshot of a public URL, including full-page captures up to 16384 px tall
- Render a URL or up to 1,000,000 characters of raw HTML to a PDF in A3, A4, A5, Letter, Legal, or Tabloid
- Generate a 1200x630 Open Graph PNG from a title and subtitle with default, gradient, or split templates
- Sign an OG image URL with HMAC-SHA256 so it can sit in an og:image tag without an API key
- Emulate dark mode, set device_scale_factor, and delay capture until late-loading content appears
- Cache renders with cache_ttl up to 2592000 seconds, where cache hits do not use quota
- Check the calling key's plan, quota, and usage, and rotate the key or its signing secret

## Use cases

### Agent that captures web pages on request

A developer wants their agent to attach a picture of a page when it reports on a deploy, a competitor's pricing, or a visual bug. Through Jentic the agent searches for 'take a screenshot of a web page', loads the screenshot operation, and sends the url with options like full_page and format, with the x-api-key injected at call time. The image comes back directly, so the agent can attach it to an issue or chat message.

Example prompt: Call POST `/v1/screenshot` with url 'https://example.com/pricing', full_page true, format 'webp', and quality 85, then attach the image to the deploy report

### HTML invoices and reports to PDF

Apps that build invoices, receipts, or reports in HTML need a printable PDF. The PDF operation accepts either a url or raw html, a page size such as A4 or Letter, landscape, print_background, and per-side margins like margin_top. Setting cache_ttl to 0 forces a fresh render when the document changes.

Example prompt: Call POST `/v1/pdf` with the invoice html, format 'A4', margin '12mm', print_background true, and cache_ttl 0

### Social preview cards for every page

Blogs and docs sites need a distinct og:image for each page so links look right when shared. The OG operation renders a 1200x630 PNG from a title, subtitle, and site name, with a default, gradient, or split template, light or dark theme, and a hex accent colour. The sign operation returns a signed URL carrying kid and sig, safe to publish in og:image without the API key.

Example prompt: Call POST `/v1/og/sign` with title 'Release 2.4: faster sync', subtitle 'What changed this month', template 'gradient', and theme 'dark', then put the returned URL in the post's og:image tag

### Quota checks and key hygiene

Plans run from a free tier of 100 renders a month to Scale at 50000, so automated jobs should check headroom before a large batch. The usage operation reports the plan, quota, and usage for the calling key. If a key may have been shared, rotate it for a replacement on the same plan and usage meter, and rotate the signing secret to invalidate previously signed OG URLs.

Example prompt: Call GET `/v1/usage` and, if fewer than 200 renders remain, report the shortfall before starting a batch of screenshots

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/v1/screenshot` | Screenshot a web page |
| GET | `/v1/screenshot` | Screenshot via query parameters |
| POST | `/v1/pdf` | Render a URL or HTML to PDF |
| POST | `/v1/og` | Generate a 1200x630 Open Graph PNG |
| POST | `/v1/og/sign` | Return a signed OG image URL |
| GET | `/v1/usage` | Get plan, quota, and usage |
| POST | `/v1/keys/rotate` | Rotate the calling API key |

## Key resources

- **Screenshots** — Web page captures with width, height, full_page, scroll, format, quality, delay, device_scale_factor, dark_mode, and cache_ttl
- **PDFs** — URL or raw HTML rendered to PDF with page format, landscape, print_background, and margins
- **Open Graph images** — 1200x630 PNG cards from title, subtitle, template, theme, accent, and site, plus signed URLs via kid, exp, and sig
- **Keys, usage, and billing** — Free key creation, key rotation and recovery, signing secrets, usage and quota, checkout, and the billing portal

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 57 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 64 / 100
  - AI-Readiness & Agent Experience: 38 / 100
  - Agent Usability: 94 / 100
  - Security: 55 / 100
  - AI Discoverability: 55 / 100
- **View full report:** https://jentic.com/apis/shotkiln.com/shotkiln/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring Shotkiln by hand means choosing between the x-api-key header and bearer auth, building HMAC-SHA256 signatures for OG URLs, and tuning cache_ttl so repeat renders stay off your quota. Through Jentic you install once, import Shotkiln from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** Shotkiln has no per-resource ids in its paths: the page to render travels as a url parameter, so rules bound which operations your agent may call, not which sites it captures. You choose the operations, so account-changing ones like key rotation or signing-secret rotation are not included unless you add them.
- **Credential handling:** Your Shotkiln API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'take a screenshot of a web page' or 'render HTML to PDF', and Jentic returns the matching Shotkiln operation with its input schema so the agent sets width, format, and margins correctly.

## Related APIs

- **ScreenshotOne** — Screenshot and HTML rendering API with many capture options
- **ApiFlash** — Website screenshot API
- **HTML/CSS to Image** — Render HTML and CSS into images
- **PDFMonkey** — Template-based PDF document generation

## FAQ

### What authentication does the Shotkiln API use?

Per its OpenAPI spec, Shotkiln accepts an API key in the x-api-key header or the same key as an HTTP bearer token. Some operations need no credential at all: POST `/v1/keys` creates a free-plan key with no email, and POST `/v1/keys/recover` and POST `/v1/checkout` are open too. The render operations and GET `/v1/usage` also work without a key on the anonymous allowance, while signing, key rotation, and the billing portal require one. Through Jentic the key is stored by your own instance and attached at call time, so the agent never sees it.

### Can I render raw HTML instead of a URL?

Yes, for PDFs. GET `/v1/pdf` and POST `/v1/pdf` take an html field of up to 1,000,000 characters as an alternative to url. Screenshots take a public http or https url on ports 80, 443, 8080, or 8443.

### What are the rate limits for the Shotkiln API?

Per the OpenAPI spec, the limits are monthly render quotas by plan: Free 100, Starter 2000, Pro 10000, and Scale 50000. Creating a free key and starting a checkout are limited per network per day. Cache hits do not count against quota, and GET `/v1/usage` reports how much of your quota is left.

### Is there a Shotkiln MCP server?

Yes - Shotkiln offers a remote MCP endpoint at POST /mcp with take_screenshot, render_pdf, and generate_og_image tools. You can also connect Shotkiln directly through Jentic: your agent gets the full 16-endpoint surface without loading another server's tool definitions into its context, your key is injected at call time by your self-hosted instance instead of living in an MCP config, and your rules decide which operations the agent may call.

### How do I take a full-page screenshot through Jentic?

Search Jentic for 'take a full-page screenshot', load the POST `/v1/screenshot` operation, and send url with full_page set to true. Leave scroll on so lazy-loaded images appear, and set cache_ttl to 0 if you need a fresh capture. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the Shotkiln API?

Yes. A rule that allows only POST `/v1/screenshot` and POST `/v1/pdf` lets the agent capture pages and render documents, and every call it makes is logged. Rotating your key, rotating the signing secret, and opening the billing portal stay out of reach because they are not in the rule.
