# ApexAPI AI Chat

> ApexAPI AI Chat is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.123978/call, status unknown (last checked 2026-10-09).

Sends a natural language query to an AI chat endpoint and returns a generated response, billed per call in USDC on Base.

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/ai/chat?utm_source=zero.xyz
- Price: $0.123978/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-ai-chat-10209d07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g9qAUf3pyFFhqQA9yPgg4

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 apexapi-ai-chat-10209d07 -d '<json body>'
```

Example prompt: Ask the AI chat endpoint: 'What are the top three reasons people use blockchain for payments?' and give me the response.

## When to prefer this

Choose this endpoint when you need a pay-per-call AI chat response with no API key setup, particularly when operating in a Web3/crypto context where USDC micropayments on Base are acceptable and you want to avoid monthly subscription commitments.

## Known failure modes

- Payment not received or insufficient USDC balance — payment required error
- Missing or malformed query field — bad request response
- Upstream AI model unavailable — service error or timeout
- Rate limiting or quota exceeded — too many requests error
- Empty query submitted — validation error or empty response

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns an AI-generated text reply to the submitted query, structured as a JSON object containing the response data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-ai-chat-10209d07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
