# PrimeAPI AI Chat Endpoint

> PrimeAPI AI Chat Endpoint is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.123978/call, status unknown (last checked 2026-10-19).

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

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/chat?utm_source=zero.xyz
- Price: $0.123978/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-chat-endpoint-ed0281d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4SrDJQGGIST6HGKsZDMC9

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 primeapi-ai-chat-endpoint-ed0281d9 -d '<json body>'
```

Example prompt: Ask the PrimeAPI AI chat endpoint: 'What are the key differences between proof-of-work and proof-of-stake blockchains?' — pay per call in USDC on Base, no API key needed.

## When to prefer this

Choose this endpoint when you need AI-generated conversational responses without setting up API keys or accounts, and you can pay per call in USDC on Base via the x402 protocol. Ideal for agents operating in crypto-native environments that want anonymous, pay-as-you-go AI chat access.

## Known failure modes

- Insufficient USDC balance — payment fails, request rejected with 402
- Malformed or missing query field — returns 400 bad request
- Service unavailable or rate limit exceeded on underlying AI provider — returns 500 or 503
- Network timeout if underlying model takes too long to respond
- Empty or vague query may return a low-quality or generic AI 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 a JSON object containing the AI-generated text response to the submitted query or prompt.

## 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/primeapi-ai-chat-endpoint-ed0281d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
