{"uid":"cap_OwkOdH52CeWWKyz55A5vr","slug":"anthropic-claude-via-locus-x402-90557f46","name":"Anthropic Claude via Locus x402","description":"Claude AI models — chat completions, vision, document processing, extended thinking, and tool use.","url":"https://anthropic.x402.paywithlocus.com/anthropic/chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string"},"tools":{"type":"array","items":{}},"top_k":{"type":"number"},"top_p":{"type":"number"},"stream":{"type":"boolean"},"system":{"anyOf":[{"type":"string"},{"type":"array","items":{}}]},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"name":{"type":"string"},"role":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","required":["type"],"properties":{"text":{"type":"string"},"type":{"type":"string"},"image_url":{"type":"object","required":["url"],"properties":{"url":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}},{"type":"null"}]},"tool_calls":{"type":"array","items":{"type":"object","additionalProperties":true}},"tool_call_id":{"type":"string"}},"additionalProperties":true}},"thinking":{"type":"object","additionalProperties":true},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"tool_choice":{"type":"object","additionalProperties":true},"stop_sequences":{"type":"array","items":{"type":"string"}}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Km9rEHxV2xtPqaLAkYt2_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Proxies requests to Anthropic's Claude models (chat, vision, tool use, extended thinking) with per-call USDC micropayment settlement via x402.","exampleAgentPrompt":"Ask Claude Sonnet to read this base64-encoded screenshot and extract all the line items as JSON — use extended thinking with a 10,000-token budget and limit the output to 4096 tokens.","exampleUseCases":[{"title":"Vision-based receipt data extraction","prompt":"I have a photo of a restaurant receipt — send it to Claude as a base64 image and ask it to pull out every line item, its price, and the total, returning the result as structured JSON. Use claude-haiku-4-5 to keep costs low."},{"title":"Agentic coding assistant with tool use","prompt":"Set up a Claude Opus session with my 'run_python' and 'read_file' tool definitions, system prompt 'You are a senior engineer', and ask it to debug the stack trace I'm pasting — let it call tools automatically until it finds the fix."},{"title":"Extended thinking for complex reasoning","prompt":"I need Claude to work through a multi-step legal argument for me — enable extended thinking with a 20,000-token budget, set temperature to 0, use claude-opus-4-7, and ask: 'Is this non-compete clause enforceable in California given these facts: [facts]?'"}],"resultDescription":"Returns a JSON object with a 'data' field containing the full Anthropic API response (content blocks, stop reason, usage), a 'payment' object showing settled and authorized USDC amounts, a 'request' object with a UUID and status URL for tracking, and a 'success' boolean. The nested Anthropic response follows the standard Messages API format with role, content array, and token usage counts.","failureModes":["Insufficient USDC balance or failed x402 payment — request rejected before reaching Claude","Invalid or unsupported model ID — service returns an error listing supported model IDs","Token limit exceeded — x402 enforces per-model max_tokens caps (128k Opus, 64k Sonnet/Haiku)","Malformed messages array — missing required role or content fields causes a validation error","Extended thinking requested on a model that doesn't support it — returns upstream Anthropic error","Image data too large or wrong media type — base64 image rejected by Anthropic's vision API","Rate limits from the underlying Anthropic API — transient 529 overload responses"],"whenToPreferThis":"Choose this endpoint when you need Claude specifically (not GPT or Gemini) and want pay-per-call micropayment billing in USDC rather than a monthly subscription or API key management. It is ideal for agentic systems that need Claude's extended thinking, multi-step tool use, or vision capabilities on an unpredictable or low-volume basis where prepaying for a subscription is wasteful. Prefer it over direct Anthropic API access when your agent architecture relies on x402 payment headers for autonomous cost management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-09-17T02:27:18.579Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:33:17.000Z","isFirstParty":false,"canonicalSlug":"anthropic-claude-via-locus-x402-90557f46"}