AI to Word

Build document generation into your product

A single authenticated endpoint that turns Markdown into a .docx. No SDK required — plain HTTP.

Authentication

Every request needs an X-API-Key header. Keys are issued per account and never stored in plain text on our side.

X-API-Key: YOUR_API_KEY

Endpoint

POST https://api.aitoword.app/api/v1/b2b/convert
Content-Type: multipart/form-data

Form fields

markdownthe Markdown source (required)
templatecatalog template ID, or omit for the clean default
titledocument title (used if not already in frontmatter)
authordocument author (used if not already in frontmatter)
filenameoutput filename, without extension

Example request

curl -X POST https://api.aitoword.app/api/v1/b2b/convert \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "markdown=# Quarterly Report

Revenue is up **12%** this quarter.

| Metric | Status |
|---|---|
| Uptime | PASS |
| Latency | FAIL |
" \
  -F "filename=quarterly-report" \
  -o quarterly-report.docx

Response

A binary .docx file (Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document), ready to save or stream to your users.

API pricing

API B2B

€19.00 / month

+ €0.05 per conversion over your monthly quota

  • Server-to-server endpoint (X-API-Key)
  • For third-party software integrators
  • No per-seat pricing
  • Usage-based billing, cancel anytime

Want access?

Tell us about your use case and we'll set you up with a key.

Get API access