{"uid":"cap_eOuOJGkFUMMjyCTOfZUsP","slug":"x402donghang-claude-sonnet-4-6-chat-api-23c04e41","name":"x402donghang Claude Sonnet 4.6 Chat API","description":"Fresh crypto narrative research with market context and verifiable source URLs. Free BTC sample; custom radar $0.02/call via x402 USDC.","url":"https://x402donghang.duckdns.org/x402/v1/models/claude-sonnet-4.6/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Use \"claude-sonnet-4.6\""},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-x402","model":"claude-sonnet-4.6","object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OMyd7o1vZ0tiDogdKe6qq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pay-per-call OpenAI-compatible chat completions endpoint powered by Claude Sonnet 4.6, accessible via x402 micropayment protocol at $0.02 USDC per call.","exampleAgentPrompt":"Ask Claude Sonnet 4.6 via x402 to explain the difference between proof-of-work and proof-of-stake in 3 sentences — pay $0.02 USDC from my Base wallet.","exampleUseCases":[{"title":"On-demand Claude reasoning for agent pipeline","prompt":"I need Claude Sonnet 4.6 to analyze this customer complaint and suggest a resolution — use the x402 pay-per-call endpoint so I don't need a subscription, just charge $0.02 USDC from my Base wallet."},{"title":"Crypto-native chatbot backend","prompt":"My app needs an AI chat backend for crypto traders — can you wire up the Claude Sonnet 4.6 x402 endpoint so each user query costs $0.02 USDC and I don't have to manage Anthropic API keys?"},{"title":"Lightweight summarization task","prompt":"Summarize this 500-word article into 3 bullet points using Claude Sonnet 4.6 — pay via x402 micropayment, I just need a quick one-off call without signing up for anything."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply message, the model name ('claude-sonnet-4.6'), a unique completion ID, and a finish_reason field. The response mirrors the standard /v1/chat/completions response shape, making it drop-in compatible with OpenAI SDK clients.","failureModes":["Payment not received or insufficient USDC balance — HTTP 402 returned requiring payment","Invalid model name (must be exactly 'claude-sonnet-4.6') — returns 400 or model not found error","Malformed messages array missing required 'role' or 'content' fields — returns validation error","max_tokens set too high for the model context — truncation or error response","Network timeout on the duckdns.org dynamic host — connection refused or DNS failure","Rate limiting or server overload on self-hosted infrastructure — 429 or 503 response"],"whenToPreferThis":"Choose this endpoint when you need Claude Sonnet 4.6 chat completions on a pay-per-call basis without an Anthropic subscription, especially in crypto-native or x402-enabled agent pipelines where USDC micropayments on Base or Solana are the preferred payment mechanism. Prefer it over the direct Anthropic API when minimizing upfront commitment or when building agents that self-fund via crypto wallets. Avoid it for high-volume workloads where per-call cost accumulates significantly vs. a subscription plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T16:28:13.504Z","isFirstParty":false}