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 hoch, bis zu 25 MB.
Die unterstützten Formate gehen über die Menge strukturierter Dokumente hinaus. Der Endpunkt akzeptiert:
- Dokumente — PDF, EPUB, DOCX, PPTX, XLSX, XLS
- Klartext und Daten — Klartext, Markdown, CSV, JSON, YAML, TOML, XML und jeden
text/*-MIME-Typ - Quellcode — rund 140 erkannte Dateiendungen, darunter
.py,.ts,.js,.go,.rs,.c,.cpp,.java,.ps1,.sh,.sql, sowie Dateien ohne Endung wieDockerfileundMakefile
.doc und .ppt werden nicht akzeptiert — konvertieren Sie sie zuerst in .docx bzw. .pptx. Das alte .xls wird hingegen sehr wohl akzeptiert.response_format auf json (Standard) für strukturierte Ausgabe mit extrahiertem Text und Token-Anzahl, oder auf text für den reinen extrahierten Text.
Datenschutz: Das Text-Parsing läuft vollständig im Arbeitsspeicher auf der Infrastruktur von Venice mit Zero Data Retention. Ihre Dokumente werden verarbeitet und sofort verworfen — kein Inhalt wird gespeichert oder protokolliert.
Preise: $0.01 pro Anfrage.
Beispiel (cURL)
Autorisierungen
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