{"uid":"cap_IitqZnqRNijoP4T5E_VDv","slug":"tokensale-claude-opus-chat-completions-x402-cfc83676","name":"Tokensale Claude Opus Chat Completions (x402)","description":"Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.","url":"https://tokensale.maiapp.ru/x402/v1/models/claude-opus-5-5/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","const":"claude-opus-5-5"},"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}}},"responseSchema":{"type":"json","example":{"id":"x402-request","model":"claude-opus-5-5","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-5-5","payment":{"scheme":"upto","network":"eip155:8453","currency":"USDC"},"protocols":["messages"],"contextTokens":200000,"maxInputTokens":195904,"maxOutputTokens":4096,"priceUsdPerMillionTokens":{"input":"0.340000","output":"1.039500","cacheRead":"0.095000","cacheWrite":"0.415800"}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004267","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004267/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004267","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004267","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cmwhYWbE0nv1Y8IWM4mFQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004267","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat completion request to Claude Opus 4/5 via a pay-per-call x402 micropayment gateway, returning an OpenAI-compatible chat response.","exampleAgentPrompt":"Send this conversation thread to Claude Opus and get a response — use up to 1024 tokens and a temperature of 0.7: [system: 'You are a helpful assistant', user: 'Explain quantum entanglement simply'].","exampleUseCases":[{"title":"Agent reasoning with Claude Opus","prompt":"I need you to think through this complex multi-step logic problem using Claude Opus — give it the problem as a user message, allow up to 2048 output tokens, and use temperature 0 so the answer is deterministic."},{"title":"Pay-per-use Claude for startup MVP","prompt":"My app doesn't have an Anthropic subscription yet — can you route this user's question to Claude Opus via the tokensale pay-per-call endpoint and return the answer? Keep max tokens at 512 and temperature at 1."},{"title":"Long-context document Q&A","prompt":"Take this 50-page contract summary and the user's question about liability clauses, send them to Claude Opus with a 4096 token output limit and temperature 0.3, and return Claude's answer."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply text, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), and a modelCatalog array with per-million-token pricing for input, output, cache read, and cache write. The response id is prefixed 'x402-request'.","failureModes":["Payment failure (402): USDC micropayment not settled or insufficient balance — request is rejected before inference","Model mismatch: sending a model value other than 'claude-opus-5-5' will be rejected by schema const constraint","Stream not supported: setting stream:true will be rejected (const: false enforced)","Empty messages array: minItems:1 not met causes validation error","Rate limiting or gateway overload: upstream proxy may return 429 or 503","Invalid temperature: values outside 0-2 range will fail schema validation"],"whenToPreferThis":"Choose this endpoint when you need Claude Opus-quality inference on a pay-per-call basis without a standing Anthropic API subscription, especially in x402-enabled agent pipelines that settle payments in USDC on Base. Ideal for low-volume or bursty workloads where a monthly subscription is wasteful, or for autonomous agents that need to self-fund inference via crypto wallets. Prefer over direct Anthropic API when you want transparent per-call token billing with no monthly commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T00:31:44.897Z","isFirstParty":false,"canonicalSlug":"tokensale-claude-opus-chat-completions-x402-cfc83676"}