Free HTML to PDF API
AgentGen is free to start. Every new account gets 50 free tokens instantly — that's 25 PDF pages or 50 images — with no credit card required. When you need more, buy a one-time token pack. Tokens never expire.
50 free tokens on every new account. No credit card. No monthly fee. No expiry.
Make your first API call in 60 seconds
import os, requests
r = requests.post(
"https://www.agent-gen.com/api/v1/generate/pdf",
headers={
"X-API-Key": os.environ["AGENTGEN_API_KEY"], # get free at agent-gen.com
"Content-Type": "application/json",
},
json={
"html": "<h1 style='font-family:sans-serif'>Hello, PDF!</h1>",
"format": "A4",
},
)
print(r.json()["url"]) # https://cdn.agent-gen.com/output/abc123.pdfFree vs subscription-based APIs
| Factor | AgentGen | Subscription APIs |
|---|---|---|
| Free tier | 50 tokens — no card | Usually none |
| Pricing | Pay per generation | Fixed monthly fee |
| Unused credits | Never expire | Reset monthly |
| Low-volume cost | $0 until tokens run out | $15–$29/month minimum |
| Burst workloads | Only pay when generating | Overage charges or tier upgrades |
Token pricing breakdown
Starter
$9
500 tokens
$0.018/token
Try it out
Growth
$39
2,500 tokens
$0.0156/token
Most popular
Scale
$129
10,000 tokens
$0.013/token
High volume
FAQ
Is AgentGen really free?
Every new account gets 50 free tokens instantly — no credit card required. That's 25 PDF pages or 50 images. When you run out, buy a token pack starting at $9.
Do free tokens expire?
No. Your 50 free tokens never expire. Neither do purchased tokens. Use them whenever you need them.
What is token-based pricing?
Instead of a monthly subscription, you buy a one-time pack of tokens and spend them as you generate. 1 token = 1 image, 2 tokens = 1 PDF page. Unused tokens carry over indefinitely.
How does AgentGen compare to free open-source tools?
Open-source tools like wkhtmltopdf or Puppeteer are free to run but require you to host and maintain headless Chrome infrastructure. AgentGen gives you the same rendering quality as a managed API — no servers, no scaling, no cold starts.
Is there a rate limit on free accounts?
Free and paid accounts share the same API and rate limits. Once your free tokens are used, buy a pack — no tier change required.
Start generating for free
50 tokens on signup. No credit card required. Tokens never expire.