OCRRouter

Grok 4 OCR online

xAI's flagship model (July 2025) with image input.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?
Model ID
xai/grok-4
Type
Vision model
Price
14 credits / page ($14.00 per 1,000 pages)
Typical speed
2.5 s / page
Inputs
images
Languages
Multilingual
Max pages per request
50
Output
Markdown, JSON
Supports
TablesMathMultilingual
curl https://api.ocrrouter.ai/v1/ocr \
  -H "Authorization: Bearer $OCRROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4",
    "file_url": "https://example.com/invoice.pdf",
    "format": "markdown"
  }'

Grok 4 speed and reliability

Loading…

Measured on our own traffic over the last 7 days.

Grok 4 pricing

Grok 4 costs 14 credits per page. One dollar buys 1,000 credits, so 1,000 pages cost $14.00. You only pay for pages that return a result.

New accounts get 50 free credits, enough for about 3 pages with this model. See pricing for credit packs.

Similar models

All Grok 4 alternativesBest OCR models by use case

Compare Grok 4

Questions