# GlianaAI OCR-ID — Document OCR and Identity Extraction

> GlianaAI OCR-ID — Document OCR and Identity Extraction is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Extracts text and identity fields from document images using OCR and face/ID matching via pay-per-call AI inference.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/ocr-id
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-ocr-id-document-ocr-and-identity-extraction-e2b36fb0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HDdulbtdihzx7L-td_Rpa

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 glianaai-ocr-id-document-ocr-and-identity-extraction-e2b36fb0
```

Example prompt: Extract all the text and identity fields from this ID card image — I need the name, document number, and date of birth parsed out as structured data.

## When to prefer this

Choose this endpoint when you need to extract structured identity data from government-issued documents (IDs, passports, driver's licenses) without a signup and with per-call USDC micropayment billing. Ideal for KYC pipelines, age verification, and document digitization in agent workflows that need lightweight, no-subscription OCR with crypto payment rails on Base or Solana.

## Known failure modes

- Image too blurry or low-resolution to OCR accurately
- Unsupported document type or format
- Missing or malformed input body resulting in 400 error
- Payment not completed or insufficient USDC balance causing 402 error
- Document in unsupported language or script
- Partial extraction if document is partially obscured

## How this service works

One endpoint for 90+ generative AI models, live market data, SEC filings and identity APIs — image, video, music, speech, LLM chat, crypto and FX rates, DEX liquidity, gas, US company fundamentals and insider trades, document OCR and face matching. Pay per request in USDC on Tempo, Base, Solana, Algorand or BNB Chain with no signup, or top up a prepaid balance in rupiah.

## Output

Returns a JSON object with the tool identifier and extracted OCR/identity fields parsed from the submitted document image, including structured text fields such as name, document number, dates, and other readable identity data.

## 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": [
      "GET"
     ],
     "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": {
  "tool": "tools/ocr-id"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-ocr-id-document-ocr-and-identity-extraction-e2b36fb0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
