{"uid":"cap_sFdZOcKNb_YgBM7U5NpSg","slug":"model-access-gateway-claude-opus-5-via-x402-7a760b1c","name":"Model Access Gateway – Claude Opus 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-opus-5?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional: fixed by the route (anthropic/claude-opus-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-opus-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_DovzL18xWRdvagxvWPHwq","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":"Send OpenAI-compatible chat completion requests to Claude Opus 5, billed per-request in USDC on Base via x402 with no API key required.","exampleAgentPrompt":"Ask Claude Opus 5 — paying per request in USDC, no API key needed — to write a detailed explanation of how transformer attention mechanisms work, suitable for a software engineer who is new to ML.","exampleUseCases":[{"title":"Keyless Claude access for autonomous agents","prompt":"I'm building an AI agent that needs to call Claude Opus 5 on demand without managing API subscriptions — can you send my prompt 'Summarize the key risks of DeFi lending protocols in three bullet points' to Claude Opus 5 and charge per call in USDC?"},{"title":"One-off complex reasoning task","prompt":"Without signing up for any AI service, use Claude Opus 5 to reason through this legal clause and tell me whether it contains a non-compete: 'Employee agrees not to engage in any activity that competes with Employer's business for 24 months after termination.'"},{"title":"Crypto-native app LLM backend","prompt":"My app pays for LLM calls with USDC micropayments via x402 — send this user's message 'What are the pros and cons of proof-of-stake vs proof-of-work?' to Claude Opus 5 and return the response."}],"resultDescription":"An OpenAI-compatible chat.completion JSON object containing the assistant's reply text, the model name ('anthropic/claude-opus-5'), token counts (prompt, completion, total), finish reason ('stop' or other), and a completion ID and timestamp.","failureModes":["Insufficient USDC balance or failed x402 payment returns 402 Payment Required","Malformed request body missing required fields returns 400 Bad Request","Model unavailable or upstream Anthropic outage returns 503 or 502","Token limit exceeded returns 400 with context-length error","Network timeout on long completions returns 504 Gateway Timeout"],"whenToPreferThis":"Choose this endpoint when you need Claude Opus 5 specifically, want to avoid managing an Anthropic API key or subscription, and can pay per-request in USDC via x402. It is ideal for autonomous agents, serverless functions, or crypto-native apps that want permissionless, on-demand access to a top-tier Claude model without upfront account creation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:47:31.386Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-claude-opus-5-via-x402-7a760b1c"}