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.
Related pages
Use Invoice OCR and Receipt OCR to test real documents before integrating the API.

