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. Os formatos suportados incluem PDF, DOCX, XLSX e arquivos de texto simples (até 25 MB).
Defina 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