# Tanship PayAI Console — OCR API (x402)

> Tanship PayAI Console — OCR API (x402) is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Extracts text and structured data from images using optical character recognition, gated by micro-payment via the x402 protocol on Base/USDC.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/ai/ocr
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-ocr-api-x402-d1562a0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fVtMpRyEjNKaXgGyrKzqV

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 tanship-payai-console-ocr-api-x402-d1562a0a -d '<json body>'
```

Example prompt: Can you extract all the text from this image of a scanned invoice? I need the line items, amounts, and vendor name pulled out as structured data.

## When to prefer this

Choose this endpoint when you need pay-per-use OCR with no subscription or API key management, settling micropayments automatically via the x402 protocol on Base/USDC. Ideal for AI agents that process documents on-demand and want frictionless, cryptographically settled billing at $0.008 per call.

## Known failure modes

- Payment not included or invalid x402 header returns 402 Payment Required
- Image not provided or malformed body returns 400 Bad Request
- Unsupported image format or corrupt image may return an error or empty OCR result
- Low-quality or illegible image may produce poor or partial text extraction
- Rate limits or server errors return 5xx responses

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns extracted text and recognized content from the submitted image, likely including raw text output and potentially structured fields, delivered as a JSON response after micro-payment settlement via x402 on Base (USDC).

## 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": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-console-ocr-api-x402-d1562a0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
