Prerequisites
Tutorial: Parse a Document
- Python
- TypeScript
- cURL
1
Set the API key as an environment variable
The library reads your API key from the
VISION_AGENT_API_KEY environment variable.2
Install the Python library
Install the ade-python library.
3
Create your code
The
wait method polls the job for you and returns it once it reaches a terminal state. Save the code block below as parse.py.4
Run your code
Run the file you created. The script saves the parsed Markdown to
markdown-kyc-form.md in the current directory.Use the Markdown
Openmarkdown-kyc-form.md. It holds the form as reading-order Markdown, ready for a RAG application, a search index, or an LLM prompt. To pull named fields out of it instead, pass it to Extract.
What’s Next
How Parse Works
Understand the response shape in depth: pages, blocks, and grounding.
Extract Data
Pull named fields out of this Markdown with a schema.
Credit Consumption
See how credit usage is calculated per page.
Troubleshoot
Status codes, errors, and how to resolve them.