Skip to main content
OCRFastStandard

Text Extract OCR

Simple, massively-used OCR (91M+ runs) โ€” extracts text from an image with a single input and returns plain text. Great default for receipts, screenshots, and scanned documents at just 1 credit.

1 credits
per image
One input, plain-text output
91M+ runs โ€” battle-tested
1 credit per image โ€” ideal for bulk
Works on receipts, screenshots, documents

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "abiruyt/text-extract-ocr",
  "input": {
    "image": "https://example.com/receipt.jpg"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringYes-Image to extract text from

How to Provide File Input

There are 3 ways to provide files for the image parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=abiruyt/text-extract-ocr" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "abiruyt/text-extract-ocr",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Receipt OCR

Extract all text from a receipt photo

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "abiruyt/text-extract-ocr",
  "input": {
    "image": "https://example.com/receipt.jpg"
  }
}'

Tips & Best Practices

1At 1 credit per image, run it across entire archives cheaply
2Best on clear, high-contrast text; retake blurry photos for better results
3For structured questions about an image (not just raw text), use moondream2 or BLIP

Use Cases

Receipt and invoice digitization
Screenshot text extraction
Scanned document processing
Data entry automation
Search indexing of image text