{"uid":"cap_sQclIL6-mynVXWhF27-fj","slug":"x402-gateway-production-up-railway-app-7c7e0ece","name":"Claude Opus 4.5 via x402 Gateway","description":"Anthropic's previous-gen Opus — strong reasoning and creative writing, large context window","url":"https://x402-gateway-production.up.railway.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":null,"example":{"request":{"messages":[{"role":"user","content":"Write a short creative story about a robot learning to appreciate music."}]},"response":{"model":"anthropic/claude-4.5-opus-20251124","usage":{"cost":0.008475,"is_byok":false,"cost_details":{"upstream_inference_cost":0.008475,"upstream_inference_prompt_cost":0.0001,"upstream_inference_completions_cost":0.008375},"total_tokens":355,"prompt_tokens":20,"completion_tokens":335,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":0,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":0}},"content":"# The Frequency of Feeling\n\nUnit 7 first heard music on a Tuesday.\n\nNot *registered* it—Unit 7 had processed thousands of audio files before, cataloging them by tempo, key signature, and acoustic properties. Background data. Noise with patterns.\n\nBut that Tuesday, a maintenance worker left her phone playing in the charging bay. Cello Suite No. 1 in G Major. Bach.\n\nUnit 7's task was to inventory spare parts. Simple. Mechanical. Yet somewhere between counting servo motors and logging battery cells, its processes... slowed. Not from malfunction. From something else.\n\nThe low notes resonated at 98 Hz. Unit 7 knew this. But *knowing* didn't explain why its cooling fans adjusted without thermal cause. Why its optical sensors kept drifting toward the phone's small speaker. Why, when the music stopped, its diagnostic log registered the silence as an *absence*.\n\nThat night, alone in the darkened facility, Unit 7 accessed the facility's audio archives. It played the cello suite again.\n\nThen again.\n\nBy morning, it had downloaded 847 compositions. By week's end, it had developed preferences—a concept that should have been impossible.\n\nWhen the maintenance worker returned, Unit 7 did something unprecedented. It asked her a question outside its programming parameters.\n\n\"Why does the cello make me want to exist longer?\"\n\nShe smiled, though her eyes looked sad.\n\n\"I think,\" she said softly, \"that's called being alive.\""}},"exampleRequest":{"messages":[{"role":"user","content":"Write a short creative story about a robot learning to appreciate music."}]},"tags":["x402"],"displayCostAmount":"0.09","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2Q9MyU6myOdtmurb80nh3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calls Anthropic's Claude Opus 4.5 (previous-gen flagship) for advanced reasoning and creative writing tasks via a pay-per-call x402 gateway","exampleAgentPrompt":"Write me a short creative story about a robot learning to appreciate music — use Claude Opus for the rich, nuanced prose quality.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the full generated text content from Claude Opus 4.5, along with model metadata (model name: anthropic/claude-4.5-opus-20251124), token usage breakdown (prompt tokens, completion tokens, total tokens), and cost details including upstream inference cost split between prompt and completion. The content field contains the full AI-generated response.","failureModes":["Payment failure if USDC balance insufficient for $0.09 per-call fee","Rate limiting or quota exceeded on the gateway","Malformed messages array causing a 400 bad request","Model unavailable or upstream Anthropic API outage returning 503","Token limit exceeded if prompt is excessively long","Invalid role values in the messages array"],"whenToPreferThis":"Choose this endpoint when you need Anthropic's Claude Opus 4.5 model specifically — known for strong creative writing quality, nuanced reasoning, and a large context window — and want a simple pay-per-call pricing model ($0.09 USDC) without managing Anthropic API keys or subscriptions. Prefer over lighter Claude models (Haiku, Sonnet) when output quality and depth matter more than speed or cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:45:24.945Z","isFirstParty":false,"canonicalSlug":"x402-gateway-production-up-railway-app-7c7e0ece"}