# AmanChain LLM Chat – AI Text Generation

> AmanChain LLM Chat – AI Text Generation is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.007465/call, status unknown (last checked 2026-09-14).

Generates AI text responses to any free-form prompt, paid per call via x402/USDC on Base with no account or API key required.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-llm-chat
- Price: $0.007465/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-llm-chat-ai-text-generation-2608c836
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bLaCB7VQ5gPpRIoZkm-Vv

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-llm-chat-ai-text-generation-2608c836 -d '<json body>'
```

Example prompt: Write me a short professional bio for a blockchain developer named Alex who specializes in DeFi protocols and has 5 years of experience — pay for the generation via x402 USDC.

## When to prefer this

Choose this endpoint when you need general-purpose AI text generation without signing up for an account or obtaining an API key, and you can settle payment per-call in USDC on Base via the x402 protocol. It is ideal for agentic workflows that need occasional, on-demand LLM calls billed micropayment-style rather than via a monthly subscription. Less suitable if you need structured JSON outputs, fine-tuned model behavior, or deterministic reproducibility across calls.

## Known failure modes

- Payment not received or x402 settlement fails — request rejected with payment required error
- Invalid serviceId value (must be exactly 'aman-llm-chat') — returns error or no response
- Missing or malformed 'request' field in JSON body — returns validation error
- LLM node temporarily unavailable — service error response
- Prompt too long or containing disallowed content — may return empty or error response

## How this service works

AI chat and text generation API — general-purpose LLM completion for any prompt; chatbots, drafting and Q&A. 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-llm-chat","request":"<input>"}.

## Output

Returns an AI-generated text string responding to the provided prompt. The response is produced by an LLM node operated by AmanChain and may vary in length and style depending on the input prompt. No additional metadata is returned beyond the generated text content.

## 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-llm-chat-ai-text-generation-2608c836/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)
