{"uid":"cap_gchrqft4u7k3q2pzwtNFl","slug":"x402-ai-apis-claude-endpoint-8bbd786e","name":"x402 AI APIs – Claude Endpoint","description":"Paid AI API endpoints via x402 micropayments","url":"https://x402-ai-peach.vercel.app/api/claude","method":"POST","headers":{},"bodySchema":{"type":"object","required":["messages"],"properties":{"stream":{"type":"boolean","description":"Stream response"},"messages":{"type":"array","description":"Chat messages array"},"max_tokens":{"type":"integer","description":"Max tokens"},"temperature":{"type":"number","description":"Temperature"}}},"responseSchema":{"type":"object","properties":{"id":{"type":"string","description":"Response ID"},"choices":{"type":"array","items":{"type":"object","properties":{"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_krPFl6KR9AG0la6f8Q6S-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calls Anthropic Claude via a pay-per-use x402 micropayment gateway, returning a chat completion response","exampleAgentPrompt":"Ask Claude: 'Explain the pros and cons of microservices architecture in 3 paragraphs' — use up to 500 tokens and a temperature of 0.7, paying per request via USDC.","exampleUseCases":[{"title":"On-demand AI writing assistant","prompt":"Have Claude write me a concise product description for a noise-cancelling headphone, keep it under 150 tokens with a temperature of 0.5 — I want to pay per call, no subscription."},{"title":"Autonomous agent sub-task reasoning","prompt":"Send this reasoning task to Claude as part of my agent pipeline: 'Given the following customer complaint, suggest the top 3 resolution steps' — use 300 max tokens and temperature 0.3."},{"title":"Quick factual Q&A with Claude","prompt":"Ask Claude to answer 'What are the main differences between RISC and CISC processor architectures?' in a clear, concise way — max 200 tokens, and I want to stream the response."}],"resultDescription":"Returns a JSON object containing a response ID and a choices array, where each choice includes a message object with a role ('assistant') and the generated text content from Claude.","failureModes":["Payment failure or insufficient USDC balance returns a 402 Payment Required error","Invalid or malformed messages array returns a 400 validation error","Exceeding model token limits may truncate output or return an error","Network timeout if the model takes too long, especially for large max_tokens values","Missing required 'messages' field returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need access to Anthropic's Claude model on a strict pay-per-call basis using USDC micropayments via the x402 protocol, without committing to a subscription or managing Anthropic API keys directly. Ideal for agents or applications with intermittent, low-volume, or cost-sensitive Claude usage patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:00.004Z","isFirstParty":false}