# AgentPay Extract — AI-Powered Field Extraction via x402

> AgentPay Extract — AI-Powered Field Extraction via x402 is a paid API for AI agents from agentpay.help, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Extracts structured fields from unstructured text or documents using AI, paid per-call with USDC via the x402 protocol — no API keys required.

## Facts

- Endpoint: POST https://agentpay.help/v1/extract
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-extract-ai-powered-field-extraction-via-x402-f4418632
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_whKJwYkvVv_CVSeO-M8kV

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 agentpay-extract-ai-powered-field-extraction-via-x402-f4418632 -d '<json body>'
```

Example prompt: Extract the date and vendor name from this invoice text: 'Invoice #4421 — Acme Corp, issued January 15, 2025, total due $1,200.'

## When to prefer this

Choose this endpoint when you need lightweight, pay-as-you-go field extraction from text without committing to a monthly subscription or managing API keys. Ideal for agents that process documents or text only occasionally and want to pay $0.03 per call in USDC. Prefer this over heavier NLP pipelines when the extraction schema is simple (named fields like dates, names, amounts) and you want zero-setup AI extraction with crypto micropayments via x402.

## Known failure modes

- Payment not received or insufficient USDC — returns HTTP 402 Payment Required
- Requested fields not found in the input text — returns null or empty string values for those fields
- Malformed request body — returns 400 Bad Request
- Input text too long or unsupported format — may return 422 or partial extraction
- Ambiguous field definitions leading to incorrect extraction results

## How this service works

Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.

## Output

Returns a JSON object with a 'fields' key containing the requested field names mapped to their extracted string values from the input text (e.g. {"fields": {"date": "January 15, 2025", "name": "Acme Corp"}}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 10,
   "description": "Source text"
  },
  "fields": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Field names to extract; omit to auto-detect"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-08-14",
  "total": "$4,180.50",
  "vendor": "Northwind Traders",
  "invoice_number": "INV-2291"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpay-extract-ai-powered-field-extraction-via-x402-f4418632/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.help](https://www.zero.xyz/host/agentpay.help/llms.txt)
