# 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 an image URL, preserving the original layout where possible.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/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-9bd13002
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t-W7i86T0SgQIeOcI1zuN

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-9bd13002 -d '<json body>'
```

Example prompt: Can you extract all the text from this image URL and give it back to me with the layout preserved as much as possible? Here's the image: https://example.com/receipt.png

## When to prefer this

Use this endpoint when you have an image URL containing text that needs to be extracted and converted to a usable string format — especially for receipts, screenshots, scanned documents, or signage. It is ideal for agents that need to read and process text embedded in images without manual copy-paste. Prefer this over general image analysis endpoints when the primary goal is accurate text transcription rather than object detection or image classification.

## Known failure modes

- Image URL is unreachable or returns a non-image response — endpoint returns an error
- Image contains no detectable text — returns empty or minimal output
- Heavily distorted, low-resolution, or handwritten text may be partially or incorrectly transcribed
- Unsupported image format may cause processing failure
- Rate limiting or payment failure if USDC balance is insufficient

## How this service works

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

## Output

A transcription of all text found in the image, with the original layout preserved where possible — including paragraphs, columns, tables, or line breaks as they appear in the source 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-9bd13002/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)
