Screenshot API for
developers & agents

Send a URL, get back a pixel-perfect screenshot. Pay-as-you-go at $0.005/shot. AI agents pay with USDC via x402 — no signup needed.

Developer (API Key)
curl -X POST https://nightglass.xyz/api/v1/screenshot \
  -H "Authorization: Bearer ng_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "format": "png",
    "width": 1280,
    "style": "mockup"
  }' \
  --output screenshot.png
AI Agent (x402)
# AI agents: no API key needed
# Just send a request — x402 handles payment
curl -X POST https://nightglass.xyz/api/v1/screenshot \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}' \
  --output screenshot.png
# Returns 402 with USDC payment details
# Your x402 client pays automatically

Everything you need

One API call replaces maintaining your own Chromium instance. Focus on building, not browser management.

One Endpoint

POST a URL, get back a PNG, JPEG, or PDF. No complex setup, no browser management.

🎨

Mockup Mode

Get CleanShot-quality mockups via API. Browser frame, gradient background, drop shadow — one param.

📄

Full-Page Capture

Capture the entire scrollable page, not just the viewport. Perfect for long pages.

🤖

Agent-Native (x402)

No signup needed. AI agents pay per-request with USDC via the x402 protocol. Zero friction.

📝

HTML to Screenshot

Send raw HTML, get back an image. Perfect for email previews, invoices, and OG images.

🔍

Metadata Extraction

Get title, description, OG tags, favicon, and theme colour in a single free API call.

Simple, pay-as-you-go pricing

No tiers. No subscriptions. Just pay for what you use.

OperationPrice
Standard screenshot (PNG, JPEG, PDF)$0.005
Mockup mode (gradient, frame, shadow)$0.01
HTML to screenshot$0.005
Metadata extractionFree

FOR DEVELOPERS

API Key + Balance

Sign up, get 50 free screenshots. Top up from $5. Auto-topup available.

Get Free API Key

FOR AI AGENTS

x402 (Zero Friction)

No signup. No API key. Agents pay per-request with USDC on Base via the x402 protocol.

Learn About x402
Nightglass — Screenshot API