{"uid":"cap_YtuWrzmmEUoR-H5v62qC-","slug":"model-access-gateway-claude-sonnet-5-5-via-x402-7d72475c","name":"Model Access Gateway – Claude Sonnet 5.5 via x402","description":"LLM inference API: OpenAI-compatible chat completions for 136 AI models (Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, GLM), paid per call in USDC on Base with x402. No account, no API key, automatic refund if the model fails.","url":"https://agent402-arb.rosariovitale0096.workers.dev/llm/claude-sonnet-5.5?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional: fixed by the route (anthropic/claude-sonnet-5.5)"},"tools":{"type":"array"},"stream":{"type":"boolean","description":"true: server-sent events after payment"},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool","developer"],"type":"string"},"content":{"type":["string","array","null"]}}},"minItems":1},"max_tokens":{"type":"integer","maximum":16384,"minimum":1,"description":"Optional, default 4096"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-7f3c2a91","model":"anthropic/claude-sonnet-5.5","usage":{"total_tokens":10,"prompt_tokens":9,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"OK"},"finish_reason":"stop"}],"created":1791979200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0014","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.0014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_72AOvVre2bNMSxuS0TC_8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs OpenAI-compatible chat completions against Claude Sonnet 5.5, billed per request in USDC on Base using the x402 payment protocol — no account or API key required.","exampleAgentPrompt":"Ask Claude Sonnet 5.5 through the x402 gateway: given the system prompt 'You are a helpful assistant' and the user message 'Summarize the key risks of smart contract audits in 3 bullet points', return the assistant reply and token usage — pay the per-request USDC fee automatically.","exampleUseCases":[{"title":"Keyless LLM call from autonomous agent","prompt":"I'm building an agent that needs to call Claude Sonnet 5.5 without managing API keys — just pay per request in USDC on Base. Send it the system prompt 'You are a concise legal summarizer' and the user message 'What are the main clauses in a standard NDA?' and give me the response."},{"title":"Crypto-native chatbot backend","prompt":"My dApp needs an AI backend that bills in USDC with no subscription. Route this chat turn to Claude Sonnet 5.5: system prompt is 'You are a DeFi assistant', user says 'Explain impermanent loss in one paragraph'. Pay the x402 fee and return the completion."},{"title":"On-demand text generation for Web3 workflow","prompt":"As part of my automated on-chain workflow, generate a short product description for a new NFT collection called 'Neon Foxes' — whimsical tone, two sentences — using Claude Sonnet 5.5 and settle the cost in USDC per request."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's message content, finish reason (e.g. 'stop'), model name ('anthropic/claude-sonnet-5.5'), a unique completion ID, creation timestamp, and token usage breakdown (prompt, completion, total tokens).","failureModes":["Insufficient USDC balance causes x402 payment failure and request rejection","Malformed OpenAI-format body (missing messages array) returns 400 Bad Request","Model identifier path mismatch returns 404 or model-not-found error","Rate limiting or Workers concurrency limits may return 429 or 503","Network timeout on Cloudflare Worker edge may return 524 or 502"],"whenToPreferThis":"Choose this endpoint when you need to call Claude Sonnet 5.5 without registering for an Anthropic account or managing API keys, especially in autonomous agent or Web3 contexts where paying per request in USDC on Base (via x402) is preferable to a subscription. It is OpenAI SDK-compatible, so existing code requires minimal changes. Prefer alternatives if you need streaming responses, function calling, vision, or guaranteed SLA.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:34:06.368Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-claude-sonnet-5-5-via-x402-7d72475c"}