# 24K Labs OCR Image

> 24K Labs OCR Image is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Extracts and transcribes all text from a given image URL, preserving the original layout where possible.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/ocr-image
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-ocr-image-e7ca4d29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DKbhlDCa4KIkdFNBwP1wu

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 24k-labs-ocr-image-e7ca4d29 -d '<json body>'
```

Example prompt: Can you read all the text out of this image for me? Here's the URL: https://example.com/receipt.jpg — grab everything on it and preserve the layout as much as you can.

## When to prefer this

Choose this endpoint when you need to extract text from an image at a known URL quickly and cheaply ($0.01 per call), especially for receipts, scanned documents, screenshots, signs, or whiteboards. Prefer it over generic vision APIs when you want a lightweight, focused OCR result with layout preservation and x402 micropayment compatibility.

## Known failure modes

- Image URL is unreachable or returns a non-image response
- Image contains no readable text (blank, decorative, or purely graphical)
- Image format is unsupported
- Low image resolution or blurry content reduces OCR accuracy
- Very large images may time out or fail to process
- Handwritten text may be partially misread or omitted

## How this service works

Extract and transcribe all text from an image URL, preserving layout where possible.

## Output

Returns all text detected in the image, with layout preserved where possible — including lines, columns, and spatial groupings as they appear in the original image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-ocr-image-e7ca4d29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
