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, com até 25 MB.
Os formatos suportados vão além do conjunto de documentos estruturados. O endpoint aceita:
- Documentos — PDF, EPUB, DOCX, PPTX, XLSX, XLS
- Texto simples e dados — texto simples, Markdown, CSV, JSON, YAML, TOML, XML e qualquer tipo MIME
text/* - Código-fonte — cerca de 140 extensões reconhecidas, incluindo
.py,.ts,.js,.go,.rs,.c,.cpp,.java,.ps1,.sh,.sql, além de arquivos sem extensão comoDockerfileeMakefile
.doc e .ppt não são aceitos — converta-os para .docx ou .pptx primeiro. O legado .xls é aceito.response_format como json (padrão) para uma saída estruturada com o texto extraído e a contagem de tokens, ou text para o texto bruto extraído.
Privacidade: A extração de texto é executada inteiramente em memória na infraestrutura da Venice, com retenção zero de dados. Seus documentos são processados e descartados imediatamente — nenhum conteúdo é armazenado ou registrado.
Preço: US$ 0,01 por requisição.
Exemplo (cURL)
Autorizações
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