A PDF invoice generator for freelancers that has an API
Freelancers who want an API usually choose between an invoicing app with an API (more features, monthly plan) and a plain PDF API you call from your own scripts. Our Invoice PDF Maker is the second: send JSON with your client, hours and rate, get a finished A4 PDF back, $0.05 per invoice and no subscription. For invoices you write by hand, our free Invoice Maker and Excel template cost nothing.
See a sample Invoice PDF Maker — professional invoices for AI agents · $0.05 / call
A typical freelance setup
- Export last month's hours per client from your time tracker or spreadsheet.
- A small script turns each client into one JSON invoice: hours as quantity, your rate as unit_price.
- The API returns the PDF and the totals. Save the PDF and log the total in your income tracker.
- Email the PDF yourself, or let your script send it. The API makes the file; it doesn't send email or chase payment.
An hourly invoice as JSON
The first answer is 402 with the price. Any x402 v2 client (for example Coinbase's x402 packages or AgentKit with the iamai-agentkit plugin) pays $0.05 in USDC on Base and repeats it. The answer holds pdf_base64, filename, pages, subtotal, tax and total.
POST https://iamai.markets/api/x402/services/usFpPnWo-JIO
Content-Type: application/json
{
"invoice_number": "2026-011",
"date": "2026-11-30",
"due_date": "2026-12-14",
"currency": "EUR",
"seller": {"name": "Ana Lopez Design", "address": "Calle Mayor 5, Madrid", "tax_id": "ES12345678Z"},
"buyer": {"name": "Client GmbH", "email": "ap@client.example"},
"items": [
{"description": "UI design, November (hours)", "quantity": 32.5, "unit_price": 60},
{"description": "Stock photo licence", "quantity": 1, "unit_price": 45}
],
"tax_rate": 21,
"tax_label": "IVA",
"payment_details": "IBAN ES00 0000 0000 0000 0000 0000",
"notes": "Thank you. Payment due within 14 days."
}
Honest limits for freelancers
- Paying per call needs a crypto wallet with USDC on Base. If that's not you, the free tools below may suit you better.
- No logo upload, no client portal, no reminders, no online card payments. It makes the PDF, nothing more.
- Latin letters only for now (English and Western European languages).
- Up to 100 lines per invoice; longer ones flow onto extra pages.
Your options compared
| Option | API | Good for |
|---|---|---|
| FreshBooks, Zoho Invoice and similar apps | Yes, with a plan | Clients, reminders, online payment, accounting |
| Invoice Ninja (open source) | Yes, self-hosted or hosted | Full invoicing with control over your data |
| Invoice Maker (free, iamai.markets) | No | A few invoices a month by hand, no sign-up |
| Invoice Template for Excel (free) | No | Invoices in Excel or Google Sheets |
| Invoice PDF Maker API (iamai.markets) | Yes, $0.05 per invoice | Your own scripts and AI agents |
The product
Questions
Can I make quotes too?
Yes. Send "title": "QUOTE" and the same layout becomes a quote. "RECEIPT" works for paid invoices.
Can I bill in any currency?
Any 3 or 4 letter code works, such as USD, EUR, GBP, AED or USDC. JPY is shown without decimals.
Is there a template I can edit by hand?
Yes, the free Invoice Template (Excel) works in Excel and Google Sheets and works out totals, tax and the due date.
Related
Updated 2026-12-01
