{"uid":"cap_VW04Rswrc4OntF5yEH4CK","slug":"venice-ai-text-parser-84342fe0","name":"Venice AI Text Parser","description":"Extracts text from a document file. Supports PDF, DOCX, PPTX, XLSX, and plain text formats. Upload a file via multipart/form-data.\n\n**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.\n\n**Authentication:** This endpoint accepts either a Bearer API key or an `X-Sign-In-With-X` header for x402 wallet-based authentication. When using x402, a `402 Payment Required` response indicates insufficient balance and includes top-up instructions.","url":"https://api.venice.ai/api/v1/augment/text-parser?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The document file to parse. Supported formats: PDF, DOCX, PPTX, XLSX, and plain text files. Maximum size: 25MB."},"response_format":{"enum":["json","text"],"type":"string","default":"json","description":"The format of the response output. \"json\" returns structured JSON with text and token count, \"text\" returns only the extracted text."}}},"responseSchema":{"type":"object","required":["text","tokens"],"properties":{"text":{"type":"string","description":"The extracted text content from the document."},"tokens":{"type":"number","description":"The token count of the extracted text."}},"description":"Text parser response containing extracted text and token count."},"example":null,"exampleRequest":null,"tags":["x402","ai_ml"],"displayCostAmount":"10","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y5ZS4nS27edsWwu5p23o3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text content and token count from uploaded document files (PDF, DOCX, PPTX, XLSX, plain text) with zero data retention","exampleAgentPrompt":"Can you extract all the text from this PDF report I'm uploading? Give me back the text and let me know how many tokens it is.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the full extracted text from the document as a string and the token count of that text as a number. Alternatively, if response_format is set to 'text', returns just the raw extracted text string.","failureModes":["File exceeds 25MB limit — request rejected","Unsupported file format submitted — parsing fails","Malformed or corrupted document — extraction error returned","Insufficient x402 wallet balance — 402 Payment Required with top-up instructions","Invalid or missing API key — 401 Unauthorized","File field missing from multipart form — validation error"],"whenToPreferThis":"Choose this endpoint when you need to extract plain text from structured document formats (PDF, DOCX, PPTX, XLSX) to feed into downstream NLP pipelines, LLM prompts, or search indexes. Prefer it over general-purpose OCR when working with text-based documents rather than scanned images. Strong choice when privacy matters, since documents are processed entirely in-memory with zero retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:46:07.302Z","isFirstParty":false,"canonicalSlug":"venice-ai-text-parser-84342fe0"}