send files, image URLs, or Base64 payloads and receive normalized OCR text, Markdown, page blocks, and Processing Credit usage.
Endpoint: POST /api/v1/ocr
This page summarizes the developer workflow: create a Developer API Key, submit OCR input, receive normalized output, monitor usage, and keep billing predictable with Processing Credits.
Use multipart file upload, image_url, or Base64 payloads from your backend.
Receive success, text, markdown, pages, elapsed_ms, and usage.credits.
Processing Credits are checked before OCR and deducted after successful recognition.
Valid-key calls record status, latency, Processing Credits, source type, IP, and user agent.
Pick the workflow that matches your integration depth.
| Capability | OCR API Automated | Web OCR Manual review | DIY OCR service Build and operate |
|---|---|---|---|
| Integration | |||
| Server-side calls | |||
| Developer API Key authentication | Custom | ||
| File, URL, Base64 inputs | File and URL | Custom | |
| Operations | |||
| Usage logs | History | Custom | |
| Processing Credit billing | Custom | ||
| Error mapping | Custom | ||
The response contract is designed for direct product integration.
success: true, data.markdown, data.text, data.pages, elapsed_ms, usage.credits
pages[0].blocks can include type, text, confidence, bbox, and page metadata.
401 invalid key, 402 insufficient credits, 429 limit exceeded, and structured OCR errors.
Authentication, billing, and response behavior.
Create a key, send a test request, and monitor usage while your integration scales.