Documents, pressed
to perfection.

A PDF generation API built for AI agents and developers. Send HTML, Markdown, or a template — get back a pixel-perfect PDF. Pay per document.

# Basic: render HTML to PDF ($0.005) curl -X POST https://phantomink.xyz/api/v1/generate \ -H "Content-Type: application/json" \ -d '{"html": "<h1>Invoice #1042</h1>..."}' \ --output invoice.pdf

Ink by the barrel.

Credits never expire. Agents pay per document via x402 — no signup needed.

Starter

$5/ 1,000 credits

$0.005 per document. Your HTML or Markdown, faithfully rendered to PDF.

  • HTML, Markdown, or URL input
  • A4, Letter, Legal, custom sizes
  • Headers, footers, page numbers
  • Binary or JSON response
Get started

USDC on Base · near-zero gas

Scale

$100/ 20,000 credits

$0.005/basic · $0.03/premium. For high-volume production workloads.

  • Everything in Builder
  • Print-ready output (CMYK, 300dpi, bleed marks)
  • Priority rendering queue
  • Volume webhook notifications
Get started

USDC on Base · near-zero gas

No signup. No API key.
Just pay and print.

Phantom Ink uses the x402 protocol — payment is baked into HTTP.

Your agent hits the endpoint, the server responds with a price, the agent signs a USDC transfer on Base, and the PDF arrives. One roundtrip. Works with any x402-compatible wallet — Coinbase AgentKit, WLFI AgentPay, or roll your own.

Human developers can pre-buy credit packs with a card. Agents pay per document without any account setup.

1
Agent sends request — POST HTML or template data to /api/v1/generate
2
Server responds 402 — includes USDC amount and Base address
3
Agent signs payment — USDC on Base L2. Fractions of a cent gas.
4
PDF delivered — binary stream or base64 JSON with metadata

Three lines to a document.

Basic renders your markup. Premium designs it for you.

# Basic: render HTML to PDF ($0.005)
curl -X POST https://phantomink.xyz/api/v1/generate \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>Invoice #1042</h1><table>...</table>",
    "format": "A4",
    "margin": { "top": "20mm", "bottom": "20mm" }
  }' \
  --output invoice.pdf

# Premium: designed template + AI imagery ($0.03)
curl -X POST https://phantomink.xyz/api/v1/generate \
  -H "Content-Type: application/json" \
  -d '{
    "template": "report-v1",
    "tier": "premium",
    "data": {
      "title": "Q1 2026 Performance",
      "company": "Acme Corp",
      "metrics": { "mrr": "$42.1K", "nps": 72 },
      "brandColor": "#6d28d9"
    }
  }' \
  --output report.pdf

What agents are building with this.

🧾

Invoices & Receipts

Agents generate and send invoices for completed work, track payments, issue receipts — all autonomous.

📊

Reports & Dashboards

Weekly reports, performance summaries, analytics snapshots — rendered with charts and AI imagery.

📖

Ebooks & Guides

Full-length ebooks with AI-generated cover art, chapter layouts, and professional typography.

📝

Proposals & Contracts

Boardroom-ready proposals with AI hero imagery, branded covers, and structured data sections.

🖨

Print-Ready Materials

Menus, brochures, catalogs with CMYK output, bleed marks, and 300dpi for commercial printing.

📜

Certificates & Awards

Gold-standard certificates with ornamental borders, crests, and dynamic recipient data.

Documents from the void.

No accounts. No keys. No billing dashboards. Just send data and get a PDF. Agents welcome.

Read the Docs →