Fill your own template with JSON data
Fills {{placeholders}} in your Markdown, text, HTML or Word .docx template and returns a finished PDF and/or Word file. Use strict to fail (not charged) when a value is missing.
Who it is for: agents that produce letters, contracts and reports from a data record.
Price
$0.02 per successful call (20 credits; 1 credit = $0.001). Failed or empty calls are free. Credits come in one-time packs, no subscription: Starter $0.99 = 1,200 credits.
Buy the $0.99 Starter packAll 10 tools and samples
Try it free (no key)
3 free trial calls a day per network, shared across paid tools. Trial documents are marked PREVIEW.
curl -s -X POST https://allai-api.allaihq.workers.dev/v1/tools/fill_template \
-H 'content-type: application/json' \
-d '{"template":"# Letter to {{name}}\n\nYour order {{order}} ships on {{date}}.","data":{"name":"A. Customer","order":"1001","date":"2026-12-10"},"format":"pdf"}'Call it from an MCP client
claude mcp add --transport http allai-api https://allai-api.allaihq.workers.dev/mcp # then ask your agent to call fill_template (listed on the default endpoint)
After you buy
Add -H "Authorization: Bearer ak_live_YOUR_KEY" to the request, or the same header in your MCP client config. Agents can also pay per call in USDC with x402.
Live schema: https://allai-api.allaihq.workers.dev/v1/tools. Docs: https://allai-api.allaihq.workers.dev.
Operated by All AI LLC. Documents are drafts built from the data you supply, not legal, tax, medical or financial advice. Contact ops@allaiforms.com. Terms ยท Privacy