Extracts text from a document file. Supports PDF, DOCX, XLSX, and plain text formats. Upload a file via multipart/form-data.
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.
file field. Supported formats include PDF, DOCX, XLSX, and plain text files (up to 25MB).
Set response_format to json (default) for structured output with extracted text and token count, or text for the raw extracted text.
Pricing: $0.01 per request.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The document file to parse. Supported formats: PDF, DOCX, 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