# BlockRun Solana AI Chat Completions

> BlockRun Solana AI Chat Completions is a paid API for AI agents from blockrun-sol-vbsbhh7lea-uc.a.run.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Pay-per-request AI chat completions API billed in USDC on Solana via x402 micropayments

## Facts

- Endpoint: POST https://blockrun-sol-vbsbhh7lea-uc.a.run.app/api/v1/chat/completions
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-solana-ai-chat-completions-36a04a87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E3UToFqZt2SdirJZvj474

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 blockrun-solana-ai-chat-completions-36a04a87 -d '<json body>'
```

Example prompt: Using the BlockRun Solana pay-per-request chat API, send this message to openai/gpt-4o with temperature 0.7 and max 500 tokens: 'Explain the concept of zero-knowledge proofs in simple terms.'

## When to prefer this

Choose this endpoint when you need AI chat completions with crypto-native, pay-per-request billing using USDC on Solana — ideal for agents or apps that want to avoid subscription fees and pay on-chain via x402. Prefer over traditional OpenAI API when the use case requires decentralized, per-call micropayments without API key management.

## Known failure modes

- Insufficient USDC balance or failed x402 payment — payment required/declined error
- Invalid model ID — model not found or not supported
- Malformed messages array — missing role or content fields
- Exceeding token limits — max_tokens too high for the selected model
- Network or cloud run timeout — service unavailable or 5xx error
- Stream mode errors if streaming is not supported or connection drops mid-response

## How this service works

AI chat completions API - pay per request with USDC on Solana

## Output

A chat completion response containing the assistant's generated message content, similar to the OpenAI chat completions format, returned after a per-request USDC micropayment is processed on Solana via x402.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Model ID (e.g. openai/gpt-4o)"
  },
  "stream": {
   "type": "boolean"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "number"
  },
  "temperature": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-solana-ai-chat-completions-36a04a87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun-sol-vbsbhh7lea-uc.a.run.app](https://www.zero.xyz/host/blockrun-sol-vbsbhh7lea-uc.a.run.app/llms.txt)
