Apple

Recognize text in an image

On-device text recognition using Apple's Vision framework. Always available — no model downloads required. Supports 20+ languages, handwriting, and document layouts.

post/v1/apple/ocr

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/apple/ocr
  • Auth: HTTP bearer

Request body

imagestring required

Base64-encoded image data (PNG, JPEG, TIFF, HEIC)

recognition_level'fast' | 'accurate'

Recognition quality — "fast" for speed, "accurate" for quality

language_correctionboolean

Whether to apply post-processing language correction

languagesstring[]

BCP 47 language hints (e.g. ["en-US", "fr-FR"])

max_candidatesinteger

Number of text candidates per observation

Response

Recognized text with per-line observations

textstring required

All recognized text joined by newlines

recognition_level'fast' | 'accurate' required
language_correctionboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.