# GlianaAI — Document & Data Extraction (tools/extract)

> GlianaAI — Document & Data Extraction (tools/extract) is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Extracts structured data from documents, URLs, or content using AI — part of GlianaAI's pay-per-call inference platform supporting 90+ models.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-document-data-extraction-tools-extract-34c29da6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9SocVLVxDjsfj9cfBmifJ

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-document-data-extraction-tools-extract-34c29da6
```

Example prompt: Can you extract the key fields — like vendor name, total amount, and date — from this invoice URL using the GlianaAI extract tool? Pay per call in USDC, no signup needed.

## When to prefer this

Choose this endpoint when you need to extract structured fields from unstructured documents, URLs, or text using AI inference on a pay-per-call basis with no subscription or signup. It is well-suited for lightweight, one-off extraction tasks billed in USDC. Prefer alternatives if you need batch document processing at scale, native OCR with bounding boxes, or extraction from locally-stored files not accessible via HTTP.

## Known failure modes

- Missing required 'input' field returns a validation error
- Unsupported HTTP method (only GET is allowed) returns an error
- Invalid bodyType enum value causes schema rejection
- Inaccessible or private URL results in extraction failure
- Insufficient USDC balance or failed x402 payment returns a 402 Payment Required response
- Malformed JSON body returns a parse error
- Empty or ambiguous document content may yield incomplete extraction

## How this service works

GlianaAI - pay-per-call AI, market data and identity APIs, no signup, USDC. This resource: tools/extract. Input: { url, schema, prompt? }. https://ai.glianalabs.com

## Output

Returns a JSON object with a 'tool' field set to 'tools/extract' and extracted structured data from the provided content source, parsed by an AI model. Fields vary based on the input document and prompt.

## 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/extract"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-document-data-extraction-tools-extract-34c29da6/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)
