{"uid":"cap_ZIK7_hwQGk0ayuuQiFTJ-","slug":"claude-opus-4-5-via-x402engine-pay-per-call-de748e3e","name":"Claude Opus 4.5 via x402engine (Pay-per-call)","description":"x402engine — Anthropic's previous-gen Opus — strong reasoning and creative writing, large context window","url":"https://x402engine.app/api/llm/claude-opus-4.5?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"type":"object","required":["messages"],"properties":{"stop":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":4}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tools":{"type":"array","items":{"type":"object","required":["function"],"properties":{"type":{"enum":["function"],"type":"string"},"function":{"type":"object","properties":{"name":{"type":"string"},"strict":{"type":"boolean"},"parameters":{"type":"object"},"description":{"type":"string"}}}}},"description":"Client-executed function definitions; return results using role=tool and tool_call_id."},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"plugins":{"type":"array","items":{"type":"object","required":["pdf"],"properties":{"id":{"enum":["file-parser"],"type":"string"},"pdf":{"type":"object","properties":{"engine":{"enum":["native"],"type":"string"}}}}},"description":"Optional native PDF parser only; automatically enabled for file inputs."},"messages":{"type":"array","items":{"type":"object","anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"required":["role"],"properties":{"name":{"type":"string"},"role":{"enum":["system","developer","user","assistant","tool"],"type":"string"},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","items":{"type":"object","required":["type"],"properties":{"type":{"enum":["text","file","image_url"],"type":"string"}},"additionalProperties":true},"maxItems":100,"minItems":1}]},"refusal":{"type":["string","null"]},"reasoning":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}},"tool_call_id":{"type":"string"},"cache_control":{"type":"object"},"reasoning_details":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"maxItems":100,"minItems":1,"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"max_tokens":{"type":"integer","example":1024,"description":"Total output budget, including reasoning. Use this or max_completion_tokens."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"enum":["auto","none","required"],"type":"string"},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."}}}}}}},"responseSchema":{"type":"json","example":{"model":"anthropic/claude-opus-4.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.070034","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.109004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.109004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.109004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MQmxyr8HboPHgWFPFcpxd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.109004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs inference on Anthropic's Claude Opus 4.5 model via a pay-per-call HTTP 402 micropayment API, returning OpenAI-compatible chat completions.","exampleAgentPrompt":"Using Claude Opus 4.5, help me analyze this legal contract and identify any unusual liability clauses — stream the response back as it comes in and pay the $0.07 per call fee with USDC on Base.","exampleUseCases":[{"title":"Agentic tool-calling reasoning task","prompt":"I need Claude Opus 4.5 to work through a multi-step coding problem using tool calls — define a function called run_tests that takes a code string, and have Claude decide when to invoke it. Pay the fee with USDC on Base."},{"title":"One-off complex document analysis","prompt":"Can you send this 10-page research paper to Claude Opus 4.5 and ask it to summarize the key findings and any methodological weaknesses? Use the PDF parser plugin and stream the answer back."},{"title":"Streaming creative writing generation","prompt":"Ask Claude Opus 4.5 to write a detailed 800-word short story about a detective on Mars, streaming the output so I can see it as it's generated — pay per call with USDC."}],"resultDescription":"Returns an OpenAI-compatible JSON object with a choices array containing the assistant message, finish_reason ('stop', 'tool_calls', etc.), and the model name ('anthropic/claude-opus-4.5'). When streaming is enabled, delivers server-sent events (SSE) in real time after payment settlement.","failureModes":["402 Payment Required if no valid x402 payment header is provided or USDC balance is insufficient","400 Bad Request if the messages array is missing or malformed","413 if message array exceeds token limits for Claude Opus 4.5","Tool call schema errors if function definitions do not match the required format","Stream interruption if connection drops before SSE completes","Timeout on very long completions if the client does not support streaming"],"whenToPreferThis":"Choose this endpoint when you need Claude Opus 4.5 specifically — Anthropic's most capable model — without committing to a monthly Anthropic API subscription. Ideal for AI agents that pay per inference using USDC on Base, USDm on MegaETH, or USDC on Solana. Prefer over other LLM endpoints when the task demands Claude's advanced reasoning, long context, or nuanced instruction-following, and when you want OpenAI-compatible chat completion format with optional function/tool calling and streaming.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T12:12:10.549Z","isFirstParty":false,"canonicalSlug":"claude-opus-4-5-via-x402engine-pay-per-call-de748e3e"}