client.documents.parse(...) uploads files to POST /documents/parse and returns extracted text and structure.
Parse a document
Multiple files
(filename, bytes, content_type) tuples when files are already in memory.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Parse documents with the Pawa AI Python SDK.
client.documents.parse(...) uploads files to POST /documents/parse and returns extracted text and structure.
from pawa_ai import PawaAI
client = PawaAI()
response = client.documents.parse(
documents=["invoice.pdf"],
model="pawa-v1-parser-20250809",
)
print(response)
response = client.documents.parse(
documents=["report.pdf", "notes.docx"],
model="pawa-v1-parser-20250809",
)
print(response)
(filename, bytes, content_type) tuples when files are already in memory.