Why it matters for generated documents
- A model writes text, not files. For a user to receive a DOCX or an XLSX, something has to turn that text into the format.
- An agent can call it as one more tool. The API becomes a step in an AI agent’s loop.
- Errors need codes. A machine-readable error lets the agent or application react without parsing a message.
- Retries must be safe. An idempotency key makes a repeated request return the same document instead of creating and billing a second one.
Document generation in Doconda
Doconda creates and edits Word, Excel, PowerPoint and PDF with one request toPOST /v1/documents, from a sentence
(prompt), from your Markdown (content) or from your files (sources).
- What you get: each Word, PowerPoint or Excel file comes with its PDF and page previews in
outputs. - Time: an AI agent makes every document, about a minute at
fastand a few minutes atstandard. A direct call that passes 120 s answers202with the document still running;background: trueanswers202at once. - Retries: send
Idempotency-Key. The same key and body within 24 h, in the same project, returns the same document and isn’t charged twice; a different body fails with422 idempotency_key_reused. - Price: per delivered document, from €0.05 to €1.50 depending on the operation and quality level. Failed documents aren’t charged.
POST /v1/convert turns it into Markdown, text or another format with no AI.
Related
Quickstart
Make your first Word document.
Create a document
From a sentence, your Markdown or your files.
Template-based vs template-free generation
Fill placeholders or compose from content.
Errors
Error codes and how idempotency works.