content.markdown and describe the look in style
(“Lora font, blue headings, with page numbers”) with format: "docx". Doconda lays the text out as is, applies the
style to the Word styles (Normal, Heading 1…) and returns the editable .docx and its PDF.
Steps
- Create an API key in the dashboard, under API keys, and store it in
DOCONDA_API_KEY. - Install the SDK:
pip install docondaornpm install @doconda/sdk. - Call
documents.createwith your Markdown and the style, and download the Word file.
 for the first image in sources).
What you get back
- An editable
.docx: the look lives in the document’s styles, so whatever you add later follows the same design. - Its PDF, with the font embedded (
download(id, "pdf")). style_applied: how the style was understood (font, colors, alignment…), so you can check it.style_unsupported: whatever you asked for that couldn’t be applied. It is never silently ignored.status:ready,ready_with_warnings,needs_revieworfailed(not charged).
Limits
- The text is used as is: Doconda doesn’t rewrite it. If you want it written for you, use
promptinstead ofcontent. - With
quality: "fast"you get the basic style: font, size, colors, alignment, margins, cover page, table of contents, header and footer. Anything else comes back instyle_unsupported. - Copying the design of one of your files needs
standardorbest.
FAQ
Which fonts can I use?
Which fonts can I use?
Any Google Fonts family, plus Calibri, Cambria, Arial, Times New Roman and Courier New. See
Style.
Can I use the API without the SDK?
Can I use the API without the SDK?
Yes. It’s a
POST https://api.eu.doconda.com/v1/documents with the same body. See the Quickstart.Is it cheaper than creating from a sentence?
Is it cheaper than creating from a sentence?
Yes. With your Markdown Doconda only lays it out, so it is faster and cheaper. See
pricing.
Can I get only the PDF?
Can I get only the PDF?
Yes, with
format: "pdf".Keep reading
- Create and Style.
- Quickstart.