# CodePulse API – Image OCR

> CodePulse API – Image OCR is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Extracts text from a PNG or JPG image via URL using optical character recognition (OCR)

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/media/ocr
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-image-ocr-110a7aa9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a3B-ErZbJZy3NW2_rXMJu

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 codepulse-api-image-ocr-110a7aa9 -d '<json body>'
```

Example prompt: Can you extract all the text from this receipt image — https://example.com/receipt.jpg — so I can see the line items and total?

## When to prefer this

Choose this endpoint when you need to extract text from an image available via a public URL (PNG or JPG) and want a pay-per-call, no-subscription OCR service paid with USDC via x402. It is well-suited for receipts, screenshots, scanned documents, and printed forms where you need structured text output with a confidence rating and no API key setup.

## Known failure modes

- Image URL is unreachable or returns a non-200 response — OCR cannot proceed
- Image format is not PNG or JPG — may return supported: false
- Low-quality, blurry, or very small text may reduce confidence or yield incomplete extraction
- Large or complex images may take longer or produce partial results
- Network timeouts if the image host is slow to respond

## How this service works

Performs optical character recognition (OCR) on an image URL to read its text.

## Output

Returns a JSON object with a `result.text` field containing the extracted text from the image, a `confidence` field (e.g. 'high'), a `warnings` array for any issues encountered, and a `supported` boolean indicating whether the image type was processable.

## 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": [
      "image_url"
     ],
     "properties": {
      "image_url": {
       "type": "string",
       "description": "URL of the target PNG/JPG image"
      }
     }
    },
    "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": {
  "result": {
   "text": "Extracted receipt content..."
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-image-ocr-110a7aa9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
