01
Send HTML or a URL
POST JSON to /api/v1/render. Set format to png, jpeg, or pdf.
Screenshot & PDF API
把公开 URL 或 HTML 渲染成 PNG、JPEG 或 PDF。
ShotAPI is an HTTP API. Send a public URL or a piece of HTML and get an image or a PDF back. Authorize with an API key. ShotAPI Pro is $19/month.
curl -sS -X POST https://shot-api.com/api/v1/render \
-H "authorization: Bearer sk_demo_local_dev_only" \
-H "content-type: application/json" \
-o shot.png \
-d '{"html":"<h1>Hello</h1>","format":"png","viewport":{"width":1280,"height":720}}'01
POST JSON to /api/v1/render. Set format to png, jpeg, or pdf.
02
Send Authorization: Bearer or X-API-Key. The server stores a hash of the secret.
03
Each success increments that key's UTC month. Response headers show usage, limit, and plan.
Two monthly quotas. Upgrade the key that calls the API by starting checkout.
DEMO
PRO
POST /api/v1/billing/checkout with your API key returns a Creem URL. The key moves to Pro when the webhook confirms payment. Published price: $19/month.
The public preview form is off. Mint a key with SHOTAPI_ADMIN_TOKEN, then call POST https://shot-api.com/api/v1/render. The request shape is in the docs.
ALLOW_PRIVATE_URLS=1.Auth, the render fields, billing, and rate limits are in the API docs.