Built for AI Agents

Generate PDFs & Images
from HTML via API

One API. Headless Chrome rendering. Token-based pricing โ€” buy what you need, use it whenever. Perfect for AI agents, automation scripts, and developer workflows.

curl -X POST https://api.agent-gen.com/v1/generate/image \
  -H "X-API-Key: ag_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1 style=\"font-family:sans-serif\">Hello World</h1>",
    "width": 1200,
    "height": 630,
    "format": "png"
  }'

Everything you need

๐Ÿ–ผ๏ธ

HTML โ†’ Image

Screenshot any HTML to PNG, JPEG, or WebP. Perfect for OG images, thumbnails, and social cards.

1 token
๐Ÿ“„

HTML โ†’ PDF

Generate pixel-perfect PDFs from HTML. Invoices, reports, certificates โ€” anything.

2 tokens / page
๐Ÿ“

Temp File Upload

Upload images for use inside your HTML templates. Files auto-expire after 24 hours.

Free
๐Ÿงฉ

Templates

Save HTML templates with variables. Reuse them across requests without resending HTML.

1 token

Get started in minutes

1

Sign up

Create an account with Google or email in seconds.

2

Buy tokens

Purchase a token pack with Stripe. No subscriptions.

3

Get your API key

Copy your key from the dashboard.

4

Generate

Call the API from your code or AI agent.

Ready to generate?

Start with 0 tokens. Buy when you need more.

Create free account