# OmniAPI AI Chat Endpoint

> OmniAPI AI Chat Endpoint is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.073275/call, status unknown (last checked 2026-09-13).

Sends a natural language query to an AI chat model and returns a generated text response, billed per call via x402 USDC payment.

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/chat
- Price: $0.073275/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-chat-endpoint-30630f03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a241It01WMILZZtn7KaLJ

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 omniapi-ai-chat-endpoint-30630f03 -d '<json body>'
```

Example prompt: Ask the OmniAPI AI chat endpoint: 'What are the main differences between proof-of-work and proof-of-stake blockchains?' and pay for it with USDC via x402.

## When to prefer this

Choose this endpoint when you need a pay-per-call AI chat API that integrates with the x402 USDC micropayment protocol, particularly in crypto-native or Web3 contexts where traditional subscription billing is not desirable. It is suitable for low-volume or sporadic AI query needs where per-call pricing in stablecoins is preferred over monthly API key subscriptions.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted — returns 402 Payment Required
- Missing required 'query' field — returns 400 Bad Request
- AI model unavailable or overloaded — returns 503 Service Unavailable
- Malformed request body — returns 400 with validation error
- Network timeout from upstream AI provider — returns 504 Gateway Timeout

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns an API response object containing the AI-generated text reply to the submitted query. The response is unstructured JSON with the model's answer as the primary payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-ai-chat-endpoint-30630f03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
