# Aayat AI LLM Chat Gateway

> Aayat AI LLM Chat Gateway is a paid API for AI agents from aayatai.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Sends a prompt or conversation to a hosted LLM and returns a text completion, with no API key required — pay per call in USDC.

## Facts

- Endpoint: POST https://aayatai.com/chat?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-llm-chat-gateway-a1182c80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JyhJPD-_3teoMscfYAYCZ

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 aayat-ai-llm-chat-gateway-a1182c80 -d '<json body>'
```

Example prompt: Ask the LLM to explain what x402 is in one paragraph — keep it concise, no more than 100 words, with a temperature of 0.3.

## When to prefer this

Choose this endpoint when you need a lightweight, account-free LLM inference call paid in USDC via x402 micropayments — ideal for AI agents that cannot store API keys or need to pay programmatically per call. Prefer it over OpenAI or Anthropic direct APIs when avoiding subscription management or when operating in a crypto-native payment environment.

## Known failure modes

- Payment failure or insufficient USDC balance returns HTTP 402
- Prompt exceeding 27,600 characters is rejected with a validation error
- max_tokens above 1024 or temperature outside 0–2 triggers a schema validation error
- Neither 'prompt' nor 'messages' supplied may result in an empty or error response
- Model unavailability on the underlying Cloudflare Workers AI backend may cause timeouts or 503 errors

## How this service works

Pay-per-call LLM chat (Mistral Small 3.1 24B): Balanced multilingual model (140+ languages) for writing, reasoning and long inputs. No API key or account. POST JSON {"prompt": "..."} or OpenAI-style {"messages": [{"role": "user", "content": "..."}]}, optional "system", "max_tokens" (up to 1024), "temperature", "json": true. Up to about 20,700 characters of English in. Failed calls are not charged.

## Output

Returns a JSON object with a 'text' field containing the LLM's response, a 'model' field naming the model used (e.g. '@cf/google/gemma-3-12b-it'), and a 'usage' object with 'promptTokens' and 'completionTokens' counts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "boolean",
   "default": false,
   "description": "Ask for JSON-only output."
  },
  "prompt": {
   "type": "string",
   "maxLength": 27600,
   "description": "A single user message (use this or messages)."
  },
  "system": {
   "type": "string",
   "maxLength": 8000,
   "description": "System instructions."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "maxItems": 50,
   "description": "Conversation so far, OpenAI style: [{role, content}]."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 1024,
   "minimum": 1,
   "description": "Most tokens to generate (default 512)."
  },
  "temperature": {
   "type": "number",
   "default": 0.3,
   "maximum": 2,
   "minimum": 0,
   "description": "Randomness, 0-2."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "x402 is an open protocol that lets clients pay for HTTP requests with stablecoins using the 402 status code.",
  "model": "@cf/google/gemma-3-12b-it",
  "usage": {
   "promptTokens": 24,
   "completionTokens": 26
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-llm-chat-gateway-a1182c80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
