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
{
"data": {
"number": "INV-0042",
"buyer": { "name": "Acme Design" },
"items": [{
"description": "Design consultation",
"quantity": 3,
"unit_price": 85
}]
},
"format": "pdf"
}Acme Design
Illustrative output. Run a request in the Playground to generate your own.
Try this in the PlaygroundWhat will you build?
Choose a use case to see it in action.
Try it in the Playground.
Pick an example to open it in the Playground. Change anything and run it yourself.
Endpoints
Full reference/v1/documents/preset/invoiceGenerate an invoicePOST/v1/documents/preset/receiptGenerate a receiptPOST/v1/documents/preset/certificateGenerate a certificatePOST/v1/documents/preset/letterGenerate a letterPOST/v1/documents/preset/reportGenerate a reportPOST/v1/einvoice/createCreate an e-invoicePOST/v1/einvoice/validateValidate an e-invoiceShow all 12 endpoints 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)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.
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 handlingFAQ
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.



