# Tokensale Claude Opus 4 Chat Completions

> Tokensale Claude Opus 4 Chat Completions is a paid API for AI agents from tokensale.maiapp.ru, paid per call via x402, $0.05121/call, status unknown (last checked 2026-11-19).

Generate chat completions using Claude claude-opus-4-6 via a pay-per-use x402 micropayment gateway with transparent token billing

## Facts

- Endpoint: POST https://tokensale.maiapp.ru/x402/v1/models/claude-opus-4-6/chat/completions?utm_source=zero.xyz
- Price: $0.05121/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokensale-claude-opus-4-chat-completions-bbd035ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IBHusKsl6uOp-ETA-Jy_P

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 tokensale-claude-opus-4-chat-completions-bbd035ee -d '<json body>'
```

Example prompt: Ask Claude Opus to write me a concise executive summary of the following quarterly report text, with up to 1024 output tokens and a temperature of 0.3 — bill it through the Tokensale USDC micropayment system.

## When to prefer this

Choose this endpoint when you need pay-per-call access to Claude Opus without a long-term Anthropic subscription, want transparent per-token USDC billing on Base network via x402 micropayments, or are building agents that need GPT/Claude-compatible chat completion APIs with batch token purchasing and access control. Prefer it over self-managed Anthropic API keys when you want usage-based micropayments rather than prepaid credits.

## Known failure modes

- Payment failure or insufficient USDC balance causes 402 Payment Required
- Invalid or missing messages array returns 400 Bad Request
- Exceeding max_tokens or context length (195,904 input tokens) causes truncation or error
- stream:true is not supported (const false) — setting it will fail
- Temperature outside 0–2 range causes validation error
- Model field mismatch (must be exactly 'claude-opus-4-6') returns 422

## How this service works

Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.

## Output

A JSON chat completion response conforming to the OpenAI/Anthropic-compatible format, including the assistant's reply message, finish reason (e.g. 'stop'), and a token usage breakdown (prompt_tokens, completion_tokens, total_tokens). Also includes a modelCatalog array with pricing details (input/output/cache per million tokens) and payment metadata (USDC on Base network).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "const": "claude-opus-4-6"
  },
  "stream": {
   "type": "boolean",
   "const": false
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  },
  "max_completion_tokens": {
   "type": "integer",
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "x402-request",
  "model": "claude-opus-4-6",
  "usage": {
   "total_tokens": 2,
   "prompt_tokens": 1,
   "completion_tokens": 1
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello back"
    },
    "finish_reason": "stop"
   }
  ],
  "modelCatalog": [
   {
    "id": "claude-opus-4-6",
    "payment": {
     "scheme": "upto",
     "network": "eip155:8453",
     "currency": "USDC"
    },
    "protocols": [
     "messages",
     "responses"
    ],
    "contextTokens": 200000,
    "maxInputTokens": 195904,
    "maxOutputTokens": 4096,
    "priceUsdPerMillionTokens": {
     "input": "2.490000",
     "output": "12.490000",
     "cacheRead": "0.250000",
     "cacheWrite": "2.490000"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensale-claude-opus-4-chat-completions-bbd035ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tokensale.maiapp.ru](https://www.zero.xyz/host/tokensale.maiapp.ru/llms.txt)
