# Agent Tools OCR from Uploaded Image Bytes

> Agent Tools OCR from Uploaded Image Bytes is a paid API for AI agents from agent-tools.jbarkules.workers.dev, paid per call via x402, $0.0038/call, status unknown (last checked 2026-10-30).

Extracts text from a raw PNG or JPEG image uploaded as bytes (up to 10 MB) using optical character recognition.

## Facts

- Endpoint: POST https://agent-tools.jbarkules.workers.dev/v1/ocr/upload?utm_source=zero.xyz
- Price: $0.0038/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-ocr-from-uploaded-image-bytes-836aaab5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lAw9Xg6Tj89-4e7E3gxgC

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 agent-tools-ocr-from-uploaded-image-bytes-836aaab5 -d '<json body>'
```

Example prompt: I have a PNG scan of a receipt — can you extract all the text from it? Here's the image file.

## When to prefer this

Choose this endpoint when you have a raw PNG or JPEG image file (up to 10 MB) and need to extract its text content quickly via a single API call. It is ideal for receipts, scanned documents, photos of forms, and any image-to-text pipeline. Prefer this over PDF-based endpoints when your input is already a raster image rather than a PDF. For PDFs, use the sibling PDF-to-text endpoint instead.

## Known failure modes

- Image exceeds 10 MB size limit — request rejected
- Unsupported image format (non-PNG/JPEG) — parsing failure or error response
- Corrupt or unreadable image bytes — OCR returns empty string or error
- Handwriting or low-resolution images may yield partial or inaccurate text
- Network timeout if image upload is slow

## How this service works

OCR from uploaded bytes: send a raw PNG/JPEG image body (max 10 MB) and get its text back.

## Output

A JSON object containing a 'text' field with all the recognized text extracted from the uploaded image as a single string (e.g. {"text": "TOTAL $12.40"}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Hello Agent Tools"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-tools-ocr-from-uploaded-image-bytes-836aaab5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-tools.jbarkules.workers.dev](https://www.zero.xyz/host/agent-tools.jbarkules.workers.dev/llms.txt)
