Skip to main content
Send your Markdown in content.markdown, the look in style and format: "docx" to POST /v1/documents. Doconda lays out your text as is, puts the style on the Word styles (Normal, Heading 1…) and returns an editable .docx plus its PDF.

Convert Markdown to a styled Word file

  1. Create an API key in the dashboard, under API keys, and store it in DOCONDA_API_KEY.
  2. Install the SDK: pip install doconda or npm install @doconda/sdk.
  3. Send the Markdown and the style, then download the Word file.
You should see ready standard, and note.docx on disk. documents.create waits until the document finishes, even past the API’s 120 s direct-call limit. The Markdown supports headings, paragraphs, lists, tables, bold and italics, links, page breaks and images. Point to an uploaded image with ![Caption](img:1) (the first image in sources) or to a public one with ![Caption](https://…).

What you get back

  • The .docx: the look lives in the document’s styles, so text you add later in Word follows the same design.
  • Its PDF, with the font embedded: download(id, "pdf").
  • style_applied: the style the file ended up with (font, colors, align, page_numbers…), to check it.
  • status: ready, or failed with error.code. A failed document isn’t charged.

Price and time

From your Markdown, quality: "auto" (the default) always uses standard. The same document written from a prompt costs €0.15, €0.50 or €1.50. See pricing.

Behavior to be aware of

  • Your text is used as is: Doconda doesn’t rewrite it. To have it written, send prompt instead of content.
  • Send exactly one of prompt or content. Sending both is rejected with 422 input_invalid.
  • content.markdown takes up to 500,000 characters.
  • Copying the design of one of your files needs a prompt that asks for it, so it isn’t available from Markdown alone. Describe the look in style instead.

FAQ

Any Google Fonts family, plus Calibri, Cambria, Arial, Times New Roman and Courier New. A font Doconda can’t render is replaced by the closest one. See Style.
Yes: POST https://api.eu.doconda.com/v1/documents with the same JSON body and Authorization: Bearer with your key. The call answers 202 if the document isn’t finished after 120 s; follow it with GET /v1/documents/{id}.
Yes, with format: "pdf". With docx you get the Word file and its PDF.
For every option of a create request, see Create.