Documents · V0.2.0 · 12 ENDPOINTS
Document Generation API

Your data. A document ready to send.

Turn JSON, Word templates, HTML and Markdown into finished PDF and DOCX documents.

Production access through RapidAPI & ApyHub.
Compare available capabilities & plans

From input to outputSample preview
INPUTinvoice.json
{
  "data": {
    "number": "INV-0042",
    "buyer": { "name": "Acme Design" },
    "items": [{
      "description": "Design consultation",
      "quantity": 3,
      "unit_price": 85
    }]
  },
  "format": "pdf"
}
OUTPUTinvoice.pdf
STUDIO NORTHINV-0042
Invoice
Bill to
Acme Design
Design consultation3 hours × $85.00$255.00
Total due$255.00
Payment within 30 days.
Invoices 1 / 3

Illustrative output. Run a request in the Playground to generate your own.

Try this in the Playground

Try it in the Playground.

Pick an example to open it in the Playground. Change anything and run it yourself.

Open full Playground

Your first request

import os
import httpx

base_url = "https://document-generation-api-docx-html-pdf.p.rapidapi.com"
headers = {
    "X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
    "X-RapidAPI-Host": "document-generation-api-docx-html-pdf.p.rapidapi.com",
}
payload = {
    "data": {
        "number": "INV-2026-0042",
        "date": "2026-10-16",
        "currency": "$",
        "seller": {
            "name": "Studio North",
            "address": ["1 Example Street"],
        },
        "buyer": {
            "name": "Acme Design",
        },
        "items": [{
                "description": "Design consultation",
                "quantity": 3,
                "unit_price": 85,
                "tax_rate": 0,
            }],
        "notes": "Sample invoice. Payment within 30 days.",
    },
    "format": "pdf",
}
response = httpx.post(
    base_url + "/v1/documents/preset/invoice",
    headers=headers, json=payload, timeout=120
)
response.raise_for_status()
with open("result.pdf", "wb") as output:
    output.write(response.content)
6 MIN
Generate an invoice PDF from JSONComplete task tutorial

Access & plans

Subscribe through a marketplace. They issue credentials, enforce plan allowances and handle billing. Check each capability’s listing for current plans and units.

CapabilityRapidAPIApyHub
Generate invoice documents Live Live
Generate receipt documents Live Live
Generate certificate documents Live Live
Generate letter documents Live Live
Generate report documents Live Live
Fill & validate templates Live Live
Create, validate & parse e-invoices Live Live

Good to know

Live demos support document presets, templates and e-invoices with up to 10 line items and bounded outputs. General invoice PDFs are not structured e-invoices; use the dedicated e-invoice endpoints for supported standards. No Peppol delivery service.

Website demos use small inputs and an anonymous allowance. Production limits depend on your marketplace plan.

Demo limits & data handling

FAQ

Which marketplace should I pick?

Choose an available listing for the capability you need. Compare its current plans, allowance and billing units. Examples on this site support both providers.

How does the demo allowance work?

When enabled, demos share 10 light and 2 heavy dispatched attempts per UTC day, with browser and network limits. This is an anonymous allowance, not a guaranteed per-person entitlement.

What if a live demo is paused?

Use the supplied sample preview and integration examples. Available marketplace listings provide production access independently of the website’s demo gate.

Can I use my own files?

Use the editable input fields to preview your request. Review processing and retention details before submitting sensitive data.