Ocr
ocrReads the text of an image (JPEG, PNG, GIF or WEBP, up to 4 MB) with Llama 3.2 11B Vision on Workers AI. Send an https url or base64 image, and optionally a language hint. Returns the full text with its line breaks, the lines, a language guess and the model that answered. An image with no readable text is a 422 and is not charged. Price: $0.003 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | https URL of the image | |
| image | No | Alternative: the image as base64, up to 4 MB | |
| language | No | Optional hint, e.g. English or German |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| text | No | ||
| bytes | No | ||
| lines | No | ||
| model | No | ||
| language | No | ||
| checkedAt | No | ||
| languageName | No |