Upload and analyze PDF documents directly. Extract text, understand layouts, answer questions, and summarize content from any PDF.
Extract all text content while preserving structure
Understand and extract data from tables
Analyze charts, graphs, and images within PDFs
Ask questions about the document content
Generate concise summaries of lengthy documents
Find specific information within large documents
from mythicdot import MythicDot
import base64
client = MythicDot()
# Option 1: Upload file first
file = client.files.create(
file=open("report.pdf", "rb"),
purpose="user_data"
)
response = client.responses.create(
model="mythic-4",
input=[
{
"type": "input_file",
"file_id": file.id
},
{
"type": "input_text",
"text": "Summarize the key findings from this report"
}
]
)
# Option 2: Base64 inline
with open("report.pdf", "rb") as f:
pdf_data = base64.standard_b64encode(f.read()).decode()
response = client.responses.create(
model="mythic-4",
input=[
{
"type": "input_file",
"file_data": f"data:application/pdf;base64,{pdf_data}"
},
{
"type": "input_text",
"text": "What are the main conclusions?"
}
]
)
print(response.output_text)
Extract key terms, obligations, and dates from legal documents
Analyze quarterly reports, extract metrics, compare periods
Summarize academic papers, extract citations and methodology
Extract data from applications, invoices, and standardized forms
Upload any PDF and let AI extract the insights.