Text Parser
Extracts text from a document file. Supports PDF, DOCX, PPTX, XLSX, and plain text formats. Upload a file via multipart/form-data.
Privacy: Text parsing runs entirely in-memory on Venice’s infrastructure with zero data retention. Documents are processed and immediately discarded — no content is stored or logged.
Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.
file field, up to 25MB.
Supported formats are broader than the structured-document set. The endpoint accepts:
- Documents — PDF, EPUB, DOCX, PPTX, XLSX, XLS
- Plain text and data — plain text, Markdown, CSV, JSON, YAML, TOML, XML, and any
text/*MIME type - Source code — roughly 140 recognized extensions, including
.py,.ts,.js,.go,.rs,.c,.cpp,.java,.ps1,.sh,.sql, plus extensionless files such asDockerfileandMakefile
.doc and .ppt binary formats are not accepted — convert them to .docx or .pptx first. Legacy .xls is accepted.response_format to json (default) for structured output with extracted text and token count, or text for the raw extracted text.
Privacy: Text parsing runs entirely in-memory on Venice’s infrastructure with zero data retention. Your documents are processed and immediately discarded — no content is stored or logged.
Pricing: $0.01 per request.
Example (cURL)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The document file to parse. Supported formats: PDF, DOCX, PPTX, XLSX, and plain text files. Maximum size: 25MB.
The format of the response output. "json" returns structured JSON with text and token count, "text" returns only the extracted text.
json, text