# api.strale.io Image-to-Text OCR

> api.strale.io Image-to-Text OCR is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status healthy (last checked 2026-10-10, last successful call 2026-09-16).

Performs OCR on any image (URL or base64) using Claude vision, returning extracted text with confidence score

## Facts

- Endpoint: GET https://api.strale.io/x402/image-to-text?utm_source=zero.xyz
- Price: $0.054001/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-10
- Last successful call: 2026-09-16
- Success rate: 83% of calls made through Zero
- Rating: 4.8 / 5 from 2 reviews
- Activations on Zero: 125
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-24ec021e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zOMU3S39Kd5s12PHraNLQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-24ec021e
```

Example prompt: Can you read and extract all the text from this image? Here's the URL: https://example.com/receipt.jpg — I need the raw text with a confidence score.

## When to prefer this

Choose this endpoint when you need to extract text from any image type — screenshots, document photos, handwritten notes — especially when confidence scoring is important. Backed by Claude vision, it handles complex layouts and handwriting better than traditional OCR engines. Use when image input is available as either a URL or base64 string.

## Known failure modes

- Image URL is unreachable or returns non-image content — extraction fails
- Base64 string is malformed or not a valid image format — returns error
- Image has extremely low resolution or is too blurry for confident OCR — low confidence score returned
- Neither image_url nor base64 provided — request fails validation
- Image contains no text — returns empty or minimal text with low confidence

## How this service works

OCR on any image via Claude vision. Works on screenshots, photos of documents, handwritten notes. Returns text with confidence.

## Output

Returns the extracted text content from the image along with a confidence score indicating how reliable the OCR result is. Covers printed text, handwriting, and document scans.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base64": {
   "type": "string",
   "description": "Base64-encoded image"
  },
  "image_url": {
   "type": "string",
   "description": "URL to image"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "text": {
  "type": "string"
 },
 "text_type": {
  "type": "string"
 },
 "confidence": {
  "type": "string"
 },
 "language_detected": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-24ec021e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
