DOCX to PDF. Excel to CSV. HTML to Word. 50 free conversions per month.
Free tier: 50 conversions/month. No credit card. No watermark.
# Convert a DOCX file to PDF curl -X POST https://n8n.myaibuffet.com/webhook/pdfapi \ -H "Content-Type: application/json" \ -H "x-api-key: pk_your_api_key_here" \ -d '{ "file_base64": "UEsDBBQAAAAIAG1...", "filename": "invoice.docx", "output_format": "pdf" }' # Response: { "success": true, "output_base64": "JVBERi0xLjQK...", "output_format": "pdf", "input_format": "docx", "mime_type": "application/pdf", "size_bytes": 24310, "duration_ms": 1843, "usage": { "used": 1, "limit": 50, "plan": "free" } }
Most conversions finish in under 2 seconds. No queue, no waiting.
Send a file with its filename and the API detects the format. Or set input_format manually.
Documents, spreadsheets, presentations, images, text. Convert between any supported pair.
Even on the free tier. Your files, your brand. Nothing added.
Send files as base64, get results as base64. Decode and save. No multipart hassle.
Every response includes your current usage count and limit. No surprises.
Convert a file between any supported format.
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | REQUIRED |
| x-api-key | pk_your_key | REQUIRED |
| Param | Type | Description |
|---|---|---|
| html or content | string | Text/HTML content to convert. Use for text-based input. Max 500KB. |
| file_base64 or base64 | string | Base64-encoded file content. Use for binary files (DOCX, XLSX, PPTX, images, etc.) |
| filename | string | Original filename with extension, e.g. "report.docx". Used for format detection. |
| input_format | string | Override auto-detected input format. e.g. "docx", "xlsx", "html" |
| output_format | string | Desired output format. Default: pdf. e.g. "pdf", "docx", "csv", "png" |
| margin | object | {"top": 20, "right": 15, "bottom": 20, "left": 15} in mm. HTML to PDF only. |
| landscape | boolean | Landscape orientation. Default: false. HTML to PDF only. |
| page_size | string | Page size: Letter, A4, Legal. Default: Letter. HTML to PDF only. |
You must provide either html/content or file_base64/base64. If sending a binary file, include filename for auto-detection or set input_format explicitly.
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the conversion succeeded |
| output_base64 | string | Base64-encoded output file |
| output_format | string | The output format produced, e.g. "pdf" |
| input_format | string | The detected or specified input format |
| mime_type | string | MIME type of the output file |
| size_bytes | integer | Output file size in bytes |
| duration_ms | integer | Conversion time in milliseconds |
| usage | object | {"used": 1, "limit": 50, "plan": "free"} |
| Status | Meaning |
|---|---|
| 401 | Missing or invalid API key |
| 400 | Missing input content, unsupported format, or payload exceeds 500KB |
| 429 | Usage limit reached for your plan |
| 500 | Conversion failed (server error) |
Create a free API key. No credit card needed.
curl -X POST https://n8n.myaibuffet.com/webhook/pdfapi-signup \ -H "Content-Type: application/json" \ -d '{ "email": "you@example.com" }' # Response: { "api_key": "pk_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345", "plan": "free", "usage": { "used": 0, "limit": 50 } }