Upload, analyze, and extract insights from PDF documents. Perfect for contracts, reports, and technical documentation.
import base64
from mythicdot import MythicDot
client = MythicDot()
# Read and encode PDF
with open("document.pdf", "rb") as f:
pdf_data = base64.standard_b64encode(f.read()).decode("utf-8")
# Analyze the PDF
response = client.messages.create(
model="mythic-4",
max_tokens=4096,
messages=[
{
"role": "user",
"content": [
{
"type": "document",
"source": {
"type": "base64",
"media_type": "application/pdf",
"data": pdf_data
}
},
{
"type": "text",
"text": "Summarize the key findings in this document."
}
]
}
]
)
print(response.content[0].text)
Analyze contracts, identify key clauses, compare terms across documents, and flag potential issues.
Extract insights from financial reports, research papers, and business documents automatically.
Process clinical documentation, extract patient data, and support healthcare workflows.
Analyze research papers, extract citations, and synthesize findings across multiple sources.
| Limit | Value | Notes |
|---|---|---|
| Max file size | 32 MB | Per document |
| Max pages | 100 pages | Per document |
| Documents per request | 5 | Compare multiple docs |
| Supported formats | Standard PDFs (scanned + native) |
Learn more about document processing and integrations.