Goal: Upload a PDF and get perfectly formatted Markdown – all from your terminal in under 5 minutes.

1 Install the SDK

pip install doctly

2 Initialize the client

from doctly import Client
client = Client(api_key="YOUR_API_KEY")

Grab your key from the Doctly dashboard.

3 Process a document

content = client.process('path/to/your/file.pdf')

4 Save the output to a file

# Save the processed content to a file
echo "$CONTENT" > output.md

What’s Next?

Now that you’ve processed your first document, explore our detailed guides:

For ThisGo Here
SDK features & optionsSDK Guide
REST API endpointsAPI Reference

Common Issues