OCR API Integration Guide

Jun 13, 2026

The OCR API is designed for product workflows that need text extraction without opening the web UI. Read the full endpoint reference on OCR API.

Minimal request

curl -X POST https://your-domain.com/api/v1/ocr \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" \
  -F "mode=formatted"

JSON request with an image URL

{
  "image_url": "https://example.com/scan.png",
  "mode": "simple"
}

Response shape

{
  "success": true,
  "data": {
    "markdown": "...",
    "text": "...",
    "pages": [],
    "usage": { "credits": 10 }
  }
}

Operational notes

API calls use the same credit rules as the web product. Valid-key requests are logged with status, latency, source type, and consumed credits. Review Pricing before sending large batches.

Use Invoice OCR and Receipt OCR to test real documents before integrating the API.

Image to Text Team

Image to Text Team

OCR API Integration Guide | Blog