{"uid":"cap_chpvSRO-VumqzqZQZr-t8","slug":"tokensale-claude-opus-4-7-chat-completions-fe568f89","name":"Tokensale Claude Opus 4.7 Chat Completions","description":"Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.","url":"https://tokensale.maiapp.ru/x402/v1/models/claude-opus-4-7/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"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"}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.053712","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.053712/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053712","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053712","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_91b42txZZ637lkBf8mq6w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.053712","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI chat completions using Claude Opus 4.7 via an OpenAI-compatible API, billed per call via x402 micropayments with USDC on Base.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"AI-powered legal document summarization","prompt":"Use Claude Opus to summarize this 10-page contract into bullet points covering key obligations, deadlines, and risk clauses — keep the output under 800 tokens."},{"title":"Automated customer support reply drafting","prompt":"I need Claude Opus to draft a polite, professional reply to this customer complaint about a delayed shipment, keeping the tone empathetic and the response under 300 tokens."},{"title":"Complex coding problem explanation","prompt":"Have Claude Opus 4.7 explain why this Python asyncio deadlock is happening and suggest a fix — set temperature to 0 for a precise technical answer."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T12:38:50.041Z","isFirstParty":false,"canonicalSlug":"tokensale-claude-opus-4-7-chat-completions-fe568f89"}