# OCR Image to Text

> OCR Image to Text is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-03).

Extracts plain text from any image (screenshot, receipt, invoice, scanned page, whiteboard, or document photo) provided as a public URL or base64 string.

## Facts

- Endpoint: GET https://api.gadgethumans.com/ocr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ocr-image-to-text-b59f7fcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ngouDgf-4CX737F6OwPD6

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 ocr-image-to-text-b59f7fcb
```

Example prompt: Can you read all the text out of this receipt image and give it back to me as plain text? Here's the URL: https://example.com/receipt.jpg

## When to prefer this

Use this endpoint when you have text visually embedded in an image (screenshot, receipt, invoice, scanned document, whiteboard, or form photo) and need it as machine-readable characters. It accepts both public image URLs and inline base64, and supports an optional prompt to guide extraction toward specific fields rather than full transcription. Prefer this over general-purpose vision models when you need a lightweight, cheap ($0.002/call), purpose-built OCR call without full multimodal inference overhead.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 response — OCR fails with an error
- Image contains no readable text or is too low resolution — returns empty or partial text
- Base64 payload is malformed — returns a parse or decoding error
- Handwriting or stylized fonts may be partially misread or omitted
- Very large images may time out or return truncated results

## How this service works

Read the text out of any image and get it back as plain text. Give a public image URL (or inline base64) of a screenshot, receipt, invoice, scanned page, whiteboard, form or document photo. Use when text is trapped in pixels and you need it as characters to parse, index or summarise.

## Output

Returns plain text containing all readable characters extracted from the image. When an optional prompt instruction is supplied, the response is shaped by that instruction rather than a full verbatim transcription.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "image_url"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "Optional instruction instead of full transcription"
      },
      "image_url": {
       "type": "string",
       "description": "Public http(s) URL of the image (or pass image=<base64>)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ocr-image-to-text-b59f7fcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
