# Spraay Gateway AI Chat Completions

> Spraay Gateway AI Chat Completions is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Send a chat message to any of 200+ AI models via an OpenAI-compatible endpoint, paying per call with USDC.

## Facts

- Endpoint: POST https://gateway.spraay.app/api/v1/chat/completions
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spraay-gateway-ai-chat-completions-4ad59efc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N1-6awQ5kfEJIQgJ52kpM

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 spraay-gateway-ai-chat-completions-4ad59efc -d '<json body>'
```

Example prompt: Using the Spraay gateway to Bittensor's 200+ models, send this conversation to the model 'mistralai/mistral-7b-instruct': system message 'You are a helpful assistant' and user message 'Explain quantum entanglement in simple terms.'

## When to prefer this

Choose this endpoint when you need access to a wide variety of AI models (200+) beyond standard OpenAI offerings, especially Bittensor-hosted models, via a familiar OpenAI-compatible interface with per-call USDC micropayments — ideal for agents operating in crypto-native environments or needing model diversity without subscriptions.

## Known failure modes

- Invalid or unsupported model identifier returns an error
- Malformed messages array causes a 400 bad request
- Insufficient USDC balance or failed x402 payment causes authorization failure
- Model temporarily unavailable on Bittensor network causes timeout or 503
- Empty messages array returns a validation error

## How this service works

AI chat completions via 200+ models.

## Output

Returns an OpenAI-compatible chat completion object containing the model's generated reply, finish reason, token usage stats, and the assistant message content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string"
  },
  "messages": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spraay-gateway-ai-chat-completions-4ad59efc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
