API-First Document Generation
Documents for developers
Generate professional PDFs, Word documents, and PowerPoint presentations with a single API call. Send structured data or let our AI agents handle the rest.
import { Foliaro } from '@foliaro/sdk'; const foliaro = new Foliaro({ apiKey: 'fol_k8x2...' }); const { data } = await foliaro.documents.generate({ template: 'invoice', variables: { company: 'Acme Corp', invoiceNumber: 'INV-2026-042', items: [ { description: 'Consulting', qty: 10, rate: 150 }, { description: 'Development', qty: 40, rate: 200 }, ], }, }); // → https://docs.foliaro.com/d/abc123.pdf
< 200ms
Average render time
3 formats
PDF, DOCX, PPTX
10 free
Documents per month
How It Works
Three steps to beautiful documents
01
Get your API key
Sign up with GitHub, grab your key, and start generating. Just like Stripe or Resend — one key, instant access.
02
Call the API
Send structured data or let our AI agents handle messy content. TypeScript SDK, Python SDK, or raw REST.
03
Documents delivered
Professional PDF in under 200ms. Or download as editable Word and PowerPoint for your team to customize.
AI-Assisted
From messy data to polished documents
Don't have structured fields? Send raw content and intent — our specialist agents extract the structure, select the right template, and generate the document automatically.
Financial Agent
Invoices, receipts, expense reports, P&Ls
Presentations Agent
Pitch decks, quarterly reviews, board decks
Reports Agent
Research papers, status reports, analytics
const { data } = await foliaro.documents.create({ content: `\n Q4 revenue was $4.2M, up 23% YoY.\n Customer count reached 1,247.\n Operating margin improved to 28.5%.\n Key wins: Acme deal ($400K ARR)...\n `, intent: 'report', quality: 'standard', }); // Agent detects intent → selects template // → structures KPIs → renders to PDF data.url // PDF ready data.confidence // 0.94 data.template // "report"
Multi-Format
Generate once. Download everywhere.
Every document renders as a pixel-perfect PDF. Pro users can download editable DOCX and PPTX — native Office formats, not lossy conversions.
Invoice INV-2026-042
Generated Feb 24, 2026 · 2 pages · react-pdf
Acme Corp
Invoice INV-2026-042
Features
Everything you need to ship documents
Dual Rendering Engines
react-pdf for lightweight speed (< 200ms). Chromium for full CSS fidelity. Choose per template.
AI-Assisted Generation
Specialist agents turn raw, unstructured content into schema-compliant template data automatically.
Multi-Format Output
PDF, DOCX, PPTX. Native OOXML generation — fully editable in Word, PowerPoint, and Google Workspace.
OSS Template Library
@foliaro/templates on npm. Invoice, report, pitch deck, and more. React components with typed props.
Type-Safe SDKs
TypeScript and Python. The { data, error } pattern you know from Resend and Stripe. Full IntelliSense.
MCP Server
Let AI agents generate documents natively via Model Context Protocol. Free, open-source, npm install.
Pricing
Simple, usage-based pricing
Start free. Scale as you grow. No surprises.
Free
Test the API, see the quality
- 10 documents / month
- PDF format only
- 5 AI-assisted docs
- Built-in templates
- Community support
Pro
For production applications
- 50 documents / month
- PDF + DOCX + PPTX
- 25 AI-assisted docs
- Custom templates & themes
- Priority support
Scale
For growing teams
- 500 documents / month
- All formats
- 100 AI-assisted docs
- Premium AI quality
- Dedicated support
Business
For enterprise workloads
- 5,000 documents / month
- All formats
- 1,000 AI-assisted docs
- All AI quality tiers
- SLA + SSO + onboarding
Start generating documents
Free tier. No credit card required. Beautiful, professional documents in minutes.
foliaro