# x402 Bazaar AI Field Extractor

> x402 Bazaar AI Field Extractor is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-09).

Extracts named fields (e.g. name, email, company, date) from arbitrary text and returns clean structured JSON, powered by Claude, paid via x402 micropayment.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/ai-extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-ai-field-extractor-905c5d53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JTQ5nAHmB3NCv3Hvb-Ycw

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 x402-bazaar-ai-field-extractor-905c5d53 -d '<json body>'
```

Example prompt: Can you pull out the name, email, company, and date from this text: 'Hi, I'm Sarah Johnson from Acme Corp — reach me at sarah@acme.com, I'm free after March 15th'?

## When to prefer this

Use this endpoint when you need to extract specific named fields from free-form, unstructured text and want a clean JSON response without building your own prompt engineering. Ideal for parsing contact info, form submissions, emails, or any prose where you know the field names you want. Prefer over general LLM calls when you want a guaranteed structured output at a fixed low cost per call via x402 micropayment.

## Known failure modes

- 402 Payment Required returned on first call — agent must read payment requirements, send $0.02 USDC on Base to the specified address, then retry
- Text contains no recognizable values for the requested fields — returns JSON with null or empty values
- Ambiguous or conflicting field values in text — model may pick one interpretation
- Malformed request body — 400 error if text or field list is missing
- Network or relay timeout from api.relai.fi

## How this service works

Pull named fields out of any text as clean JSON (e.g. name, email, company, date). Powered by Claude structured outputs. Paid via x402: $0.02 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A clean JSON object with each requested field as a key mapped to its extracted value from the input text. Fields not found in the text may be null or omitted. Response is structured output produced by Claude.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "list": {
       "type": "string",
       "description": "Extract all records (true/false)"
      },
      "text": {
       "type": "string",
       "description": "Source text"
      },
      "fields": {
       "type": "string",
       "description": "Fields (comma-separated)"
      }
     }
    }
   },
   "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/x402-bazaar-ai-field-extractor-905c5d53/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
