# Quant Agent Shop OCR

> Quant Agent Shop OCR is a paid API for AI agents from quantagentshop.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Extracts text from images (PNG, JPEG, WebP, GIF) via URL or base64, returning text in reading order with optional layout coordinates

## Facts

- Endpoint: POST https://quantagentshop.com/v1/ocr?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quant-agent-shop-ocr-130ca9d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uDMLTVaPlmG82qNL7T2uC

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 quant-agent-shop-ocr-130ca9d4 -d '<json body>'
```

Example prompt: Can you read all the text out of this receipt image for me? Here's the URL: https://example.com/receipt.jpg — and I'd also like to know where each line sits in the image.

## When to prefer this

Use this endpoint when you need to extract text from raster image files (PNG, JPEG, WebP, GIF). Prefer this over /v1/pdf-text when the input is an image rather than a PDF, or when the PDF lacks a text layer (i.e. it is a scanned image PDF). Do not use this for describing image contents visually or for PDFs with embedded text layers.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 response
- Image format not supported (only PNG, JPEG, WebP, GIF accepted)
- Image exceeds 5 MB or 8000 px per side
- No text detected in the image (blank or purely graphical image)
- Base64 payload malformed or exceeds size limit
- Text output truncated if image contains very large amount of text

## How this service works

Image text (OCR). Send an image URL or base64 (PNG, JPEG, WebP or GIF, up to 5 MB and 8000 px a side); returns the text in reading order, one line per line, and with layout on, where each line sits in the image, plus truncated when the text ran past the reply limit. Use for screenshots, receipts, signs and scanned pages. Not for PDFs that have a text layer (use /v1/pdf-text) or for describing pictures. Typical response 2 to 6 s. Failed calls are not charged.

## Output

Returns the extracted text in reading order, one line per line. When the layout option is enabled, each line also includes its position within the image (e.g. top-left coordinates or region). A truncation flag is included if the text exceeded the reply limit. Failed calls are not charged.

## 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",
     "properties": {
      "layout": {
       "type": "boolean",
       "title": "Layout",
       "default": false,
       "description": "Also return each line with where it sits in the image, such as top-left."
      },
      "image_url": {
       "anyOf": [
        {
         "type": "string",
         "format": "uri",
         "maxLength": 2083,
         "minLength": 1
        },
        {
         "type": "null"
        }
       ],
       "title": "Image Url",
       "default": null,
       "description": "Public http or https URL of a PNG, JPEG, WebP or GIF image."
      },
      "image_base64": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 6900000,
         "minLength": 8
        },
        {
         "type": "null"
        }
       ],
       "title": "Image Base64",
       "default": null,
       "description": "The image as base64, up to 5 MB decoded. Send image_url or image_base64."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quant-agent-shop-ocr-130ca9d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quantagentshop.com](https://www.zero.xyz/host/quantagentshop.com/llms.txt)
