# Tokensale Claude Opus 4.7 Chat Completions

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

Generates AI chat completions using Claude Opus 4.7 via an OpenAI-compatible API, billed per call via x402 micropayments with USDC on Base.

## Facts

- Endpoint: POST https://tokensale.maiapp.ru/x402/v1/models/claude-opus-4-7/chat/completions?utm_source=zero.xyz
- Price: $0.053712/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokensale-claude-opus-4-7-chat-completions-fe568f89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_chpvSRO-VumqzqZQZr-t8

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-7-chat-completions-fe568f89 -d '<json body>'
```

Example prompt: Ask Claude Opus 4.7 through Tokensale: 'Explain the trade-offs between transformer and state space models for long-context tasks' — keep the response under 1000 tokens and use a temperature of 0.7.

## When to prefer this

Choose this endpoint when you need Claude Opus 4.7's high-capability reasoning without a long-term Anthropic subscription, preferring pay-per-call micropayment billing via USDC on Base (x402 protocol). Ideal for agents that need OpenAI-compatible Claude access with transparent token-level cost accounting and no monthly commitment. Prefer over direct Anthropic API if your infrastructure already handles x402 payments or you want batch token purchasing with usage control.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted — returns 402 Payment Required
- Invalid model: model field not set to exactly 'claude-opus-4-7' — returns 400 Bad Request
- Empty messages array: minItems:1 not met — returns 400 validation error
- max_tokens too low or too high relative to context — returns 400 or truncated output
- Temperature out of range (must be 0–2) — returns 400 Bad Request
- Streaming requested (stream:true not allowed) — returns 400 or unsupported error
- Network timeout on slow inference for very long prompts

## How this service works

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

## Output

Returns an OpenAI-compatible chat.completion JSON object containing the assistant's generated message, finish reason, token usage breakdown (prompt, completion, total), request ID, and model catalog metadata including per-million-token pricing and context window limits for claude-opus-4-7.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "const": "claude-opus-4-7"
  },
  "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-7",
  "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-7",
    "payment": {
     "scheme": "upto",
     "network": "eip155:8453",
     "currency": "USDC"
    },
    "protocols": [
     "messages"
    ],
    "contextTokens": 200000,
    "maxInputTokens": 195904,
    "maxOutputTokens": 4096,
    "priceUsdPerMillionTokens": {
     "input": "2.620000",
     "output": "13.100000",
     "cacheRead": "0.260000",
     "cacheWrite": "2.620000"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensale-claude-opus-4-7-chat-completions-fe568f89/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)
