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, fino a 25MB.
I formati supportati vanno oltre l’insieme dei documenti strutturati. L’endpoint accetta:
- Documenti — PDF, EPUB, DOCX, PPTX, XLSX, XLS
- Testo semplice e dati — testo semplice, Markdown, CSV, JSON, YAML, TOML, XML e qualsiasi MIME type
text/* - Codice sorgente — circa 140 estensioni riconosciute, tra cui
.py,.ts,.js,.go,.rs,.c,.cpp,.java,.ps1,.sh,.sql, oltre a file senza estensione comeDockerfileeMakefile
.doc e .ppt non sono accettati — convertili prima in .docx o .pptx. Il formato legacy .xls è accettato.response_format su json (predefinito) per un output strutturato con il testo estratto e il conteggio dei token, oppure text per il testo estratto in chiaro.
Privacy: Il parsing del testo viene eseguito interamente in memoria sull’infrastruttura di Venice con zero data retention. I tuoi documenti vengono elaborati e immediatamente scartati — nessun contenuto viene memorizzato o registrato.
Prezzo: $0,01 per richiesta.
Esempio (cURL)
Autorizzazioni
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corpo
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