{"uid":"cap_GSx8MgOIVRxip6DESxren","slug":"tokensale-claude-opus-4-8-chat-completions-d7d04721","name":"Tokensale Claude Opus 4.8 Chat Completions","description":"Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.","url":"https://tokensale.maiapp.ru/x402/v1/models/claude-opus-4-8/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","const":"claude-opus-4-8"},"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-4-8","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-8","payment":{"scheme":"upto","network":"eip155:8453","currency":"USDC"},"protocols":["messages"],"contextTokens":200000,"maxInputTokens":195904,"maxOutputTokens":4096,"priceUsdPerMillionTokens":{"input":"1.350000","output":"6.750000","cacheRead":"0.250000","cacheWrite":"1.350000"}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.027676","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.027676/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.027676","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.027676","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n7UoIrrwKwPPQZIFnxHw4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.027676","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Send a chat message to Claude Opus 4.8 via a pay-per-call x402 proxy with transparent token billing on Base/USDC","exampleAgentPrompt":"Send this message to Claude Opus and get a response: 'Explain the difference between supervised and unsupervised learning in simple terms' — keep max tokens to 512 and temperature at 0.7.","exampleUseCases":[{"title":"Agent reasoning with Claude Opus","prompt":"I need you to use Claude Opus to think through a complex legal scenario: 'A contractor delivered software 2 weeks late; the contract has a penalty clause of $500/day. Is the client obligated to pay the full invoice?' Give me a thorough answer, up to 1024 tokens."},{"title":"Automated content drafting pipeline","prompt":"Draft a professional product announcement for our new feature 'SmartSync' using Claude Opus — aim for a concise 3-paragraph format, max 600 tokens, temperature 0.5 so it stays on-brand."},{"title":"Per-call LLM cost tracking for a startup","prompt":"Run this customer support query through Claude Opus and tell me exactly how many tokens were used so I can track the cost: 'How do I reset my password if I've lost access to my email?'"}],"resultDescription":"Returns a standard OpenAI-compatible chat.completion JSON object containing the assistant's reply message, token usage breakdown (prompt, completion, total), finish reason, and a modelCatalog array with pricing details (input/output/cache rates per million tokens) for the claude-opus-4-8 model.","failureModes":["Payment failure if USDC balance or x402 payment header is missing or insufficient","400 Bad Request if messages array is empty or model field does not match 'claude-opus-4-8'","429 Rate limit exceeded if too many concurrent requests","502/503 if the upstream Anthropic API is unavailable","Token limit exceeded if max_tokens exceeds the 4096 output cap or context exceeds 200k tokens"],"whenToPreferThis":"Choose this endpoint when you need Claude Opus 4.8 quality reasoning with pay-per-call USDC micropayment billing instead of a subscription, especially in autonomous agent pipelines where cost transparency and no upfront commitment matter. It is ideal for x402-capable agents on the Base network that want a single API key supporting both GPT-style and Claude-style clients with token-level cost tracking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T06:31:27.647Z","isFirstParty":false,"canonicalSlug":"tokensale-claude-opus-4-8-chat-completions-d7d04721"}