{"uid":"cap_IBHusKsl6uOp-ETA-Jy_P","slug":"tokensale-claude-opus-4-chat-completions-bbd035ee","name":"Tokensale Claude Opus 4 Chat Completions","description":"Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.","url":"https://tokensale.maiapp.ru/x402/v1/models/claude-opus-4-6/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"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"}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05121","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.05121/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05121","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05121","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1ZtvksgPpDlm2LgivXgi1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05121","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate chat completions using Claude claude-opus-4-6 via a pay-per-use x402 micropayment gateway with transparent token billing","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"On-demand AI writing assistant","prompt":"Use Claude Opus through Tokensale to rewrite this product description in a more persuasive tone, keeping it under 300 words — set max_tokens to 400 and temperature to 0.7."},{"title":"Automated customer support drafting","prompt":"I need Claude Opus to draft a polite response to this customer complaint email. Use the Tokensale pay-per-call endpoint with max 512 tokens and temperature 0.5 so I only pay for what I use."},{"title":"Code review and explanation","prompt":"Send this Python function to Claude Opus via Tokensale and ask it to explain what the code does and identify any bugs — allow up to 1024 output tokens."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T07:04:52.206Z","isFirstParty":false,"canonicalSlug":"tokensale-claude-opus-4-chat-completions-bbd035ee"}