sources with format: "docx" and what you want in prompt (“Summarize the main measures for a
client”). Doconda reads your files before writing and, before delivering, corrects figures or facts that don’t come from
them.
Summarize a PDF into Word
- Store your API key in
DOCONDA_API_KEYand install the SDK:pip install docondaornpm install @doconda/sdk. - Upload the PDF (and any images you want inside) with
files.upload. - Create the document with
sourcesand download the Word file.
ready and the page count (for example ready 2), and summary.docx on disk.
What you get back
- An editable Word file with the summary, and its PDF. Images go inside, where they fit.
- Checked before delivery: the agent corrects figures, dates and facts that don’t come from your request or your sources.
status:ready, orfailedwitherror.code. A failed document isn’t charged.
What goes in sources
Each file can be up to 20 MB. Documents in
sources only work with prompt; with content alone they’re rejected with
422 input_invalid.
A summary from a prompt costs €0.15 at fast, €0.50 at standard and €1.50 at best. For only the PDF, use
format: "pdf"; for a presentation, format: "pptx".
FAQ
Can I pass the PDF by URL without uploading it?
Can I pass the PDF by URL without uploading it?
Yes.
sources also takes { "url": "https://…" } for a public file, or its bytes as
{ "data": "…", "filename": "law.pdf" }. See
four ways to pass a file.What if I only want the text for my own model?
What if I only want the text for my own model?
Convert it with
to: "md": it returns the PDF as Markdown, with no AI, and the first 1,000
conversions each month are free.Can I use a document Doconda already made as a source?
Can I use a document Doconda already made as a source?
Yes, by its ID (
doc_…). Doconda uses its Word, PowerPoint or Excel file, or its PDF if that’s all it has.