serpยทbase API Documentation

๐Ÿ“„ OCR & Documents

Read text from images and PDFs. Multilingual โ€” no language setting needed.

from $3.00 / 1,000 POST /v1/query USDC on Base ยท x402

What you get

Tools in this group

ToolWhat it doesDocs
ocr_documentText from imagesFull docs โ†’
ocr_pdfText from PDFsFull docs โ†’

Request

curl -X POST https://api.serp-base.com/v1/query \
  -H "Content-Type: application/json" \
  -d '{"tool": "ocr_document", "image": "<base64-encoded-image>"}'

Key parameters

FieldDescription
image / pdfBase64-encoded file
pagesPage range for PDF

Response

{
  "text": "INVOICE #1047 ...",
  "pages": 1,
  "language": "auto"
}
Payment: pay per request with USDC on Base via the x402 protocol. Gas is covered by the facilitator. Charged only when data is returned. Test the whole flow free on Base Sepolia.
Read full API docs โ†’ Get API key

Pay-per-request data APIs. Built for agents and developers.