# AmanChain Keyword & Entity Extraction

> AmanChain Keyword & Entity Extraction is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.002488/call, status unknown (last checked 2026-09-14).

Extracts keywords, named entities, and topics from a given text input, paid per call via x402 in USDC on Base.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-keywords
- Price: $0.002488/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-keyword-entity-extraction-2ad24c62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nfcVurDaiEQUziLFJo8SG

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 amanchain-keyword-entity-extraction-2ad24c62 -d '<json body>'
```

Example prompt: Pull out all the keywords, named entities, and topics from this paragraph: 'Apple CEO Tim Cook announced a new partnership with OpenAI at the Cupertino headquarters, driving AAPL stock up 3% on Wednesday.'

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call NLP keyword and entity extraction without account setup or API keys, and are already operating in a Web3/x402 payment context with USDC on Base. It is well-suited for agents that process text on demand and need named entity recognition (NER) and topic tagging in a single call.

## Known failure modes

- Empty or very short input text may yield sparse or empty results
- Payment failure via x402 if insufficient USDC balance on Base
- Malformed JSON body (missing 'serviceId' or 'request' field) returns an error
- Non-English or low-resource language text may produce lower quality extractions
- Rate limiting or node unavailability may cause timeouts

## How this service works

Keyword and entity extraction API — topics, named entities and key phrases from any text; NLP enrichment. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-keywords","request":"<input>"}.

## Output

Returns a structured list of extracted keywords, named entities (such as people, organizations, locations, and other proper nouns), and topic categories identified within the provided input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-keyword-entity-extraction-2ad24c62/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
