{"openapi":"3.1.0","info":{"title":"ClaudeAPI - Premium Claude Access","version":"1.0.0","description":"Pay-per-request Claude access via the x402 protocol on Solana mainnet. 8 models behind one OpenAI-compatible endpoint; no accounts, no API keys.","contact":{"name":"ClaudeAPI - Premium Claude Access","email":"contact@mapleai.shop","url":"http://sol.mapleai.shop"},"license":{"name":"Proprietary"},"x-payment":{"protocol":"x402","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"USDC","assetAddress":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"9DbpH2Mf9D26ak4bASsv6KA4Ra4V571oLpiVdZjAjcU8","facilitator":"https://facilitator.payai.network","minimumChargeUsd":0.001}},"servers":[{"url":"http://sol.mapleai.shop"}],"x-discovery":{"well-known":"http://sol.mapleai.shop/.well-known/x402","llms":"http://sol.mapleai.shop/llms.txt","agents":"http://sol.mapleai.shop/AI-AGENTS.md"},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"x402 payment payload. Request the resource once to receive HTTP 402 with the exact price in the PAYMENT-REQUIRED header, sign the USDC transfer, then retry with the signed payload in PAYMENT-SIGNATURE."}}},"paths":{"/v1/chat/completions":{"post":{"summary":"Create chat completion","description":"OpenAI-compatible chat completion, priced by counted input tokens + max output tokens at per-model rates","operationId":"createChatCompletion","security":[{"x402":[]}],"x-pricing":{"type":"dynamic","calculation":"input_tokens * input_rate + max_tokens * output_rate, floored at the minimum charge","unit":"USD per 1M tokens","minimum_charge_usd":0.001,"models":[{"id":"anthropic/claude-opus-5","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.8","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.7","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.6","input":3.5,"output":17.5},{"id":"anthropic/claude-sonnet-5","input":1.4,"output":7},{"id":"anthropic/claude-sonnet-4.6","input":2.1,"output":10.5},{"id":"anthropic/claude-haiku-4.5","input":0.7,"output":3.5},{"id":"anthropic/claude-fable-5","input":7,"output":35}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","enum":["anthropic/claude-opus-5","anthropic/claude-opus-4.8","anthropic/claude-opus-4.7","anthropic/claude-opus-4.6","anthropic/claude-sonnet-5","anthropic/claude-sonnet-4.6","anthropic/claude-haiku-4.5","anthropic/claude-fable-5"]},"messages":{"type":"array","description":"OpenAI chat messages","items":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","default":4096},"temperature":{"type":"number"},"stream":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Successful completion"},"400":{"description":"Unknown or missing model"},"402":{"description":"Payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded x402 payment requirements (price, network, asset, payTo)"}}}}}},"/api/v1/chat/completions":{"post":{"summary":"Create chat completion (agent alias)","description":"OpenAI-compatible chat completion, priced by counted input tokens + max output tokens at per-model rates. Alias of /v1/chat/completions for agent crawlers.","operationId":"createChatCompletionAlias","security":[{"x402":[]}],"x-pricing":{"type":"dynamic","calculation":"input_tokens * input_rate + max_tokens * output_rate, floored at the minimum charge","unit":"USD per 1M tokens","minimum_charge_usd":0.001,"models":[{"id":"anthropic/claude-opus-5","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.8","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.7","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.6","input":3.5,"output":17.5},{"id":"anthropic/claude-sonnet-5","input":1.4,"output":7},{"id":"anthropic/claude-sonnet-4.6","input":2.1,"output":10.5},{"id":"anthropic/claude-haiku-4.5","input":0.7,"output":3.5},{"id":"anthropic/claude-fable-5","input":7,"output":35}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","enum":["anthropic/claude-opus-5","anthropic/claude-opus-4.8","anthropic/claude-opus-4.7","anthropic/claude-opus-4.6","anthropic/claude-sonnet-5","anthropic/claude-sonnet-4.6","anthropic/claude-haiku-4.5","anthropic/claude-fable-5"]},"messages":{"type":"array","description":"OpenAI chat messages","items":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","default":4096},"temperature":{"type":"number"},"stream":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Successful completion"},"400":{"description":"Unknown or missing model"},"402":{"description":"Payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded x402 payment requirements (price, network, asset, payTo)"}}}}}},"/api/v1/responses":{"post":{"summary":"Create a model response","description":"OpenAI-compatible Responses API (alpha). Translated to a chat completion upstream.","operationId":"createResponse","security":[{"x402":[]}],"x-pricing":{"type":"dynamic","calculation":"input_tokens * input_rate + max_tokens * output_rate, floored at the minimum charge","unit":"USD per 1M tokens","minimum_charge_usd":0.001,"models":[{"id":"anthropic/claude-opus-5","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.8","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.7","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.6","input":3.5,"output":17.5},{"id":"anthropic/claude-sonnet-5","input":1.4,"output":7},{"id":"anthropic/claude-sonnet-4.6","input":2.1,"output":10.5},{"id":"anthropic/claude-haiku-4.5","input":0.7,"output":3.5},{"id":"anthropic/claude-fable-5","input":7,"output":35}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"properties":{"model":{"type":"string","enum":["anthropic/claude-opus-5","anthropic/claude-opus-4.8","anthropic/claude-opus-4.7","anthropic/claude-opus-4.6","anthropic/claude-sonnet-5","anthropic/claude-sonnet-4.6","anthropic/claude-haiku-4.5","anthropic/claude-fable-5"]},"input":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}}]},"instructions":{"type":"string"},"max_output_tokens":{"type":"integer","default":4096},"stream":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Successful completion"},"400":{"description":"Unknown or missing model"},"402":{"description":"Payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded x402 payment requirements (price, network, asset, payTo)"}}}}}},"/v1/responses":{"post":{"summary":"Create a model response (short path)","description":"Alias of /api/v1/responses. OpenAI-compatible Responses API (alpha), translated to a chat completion upstream.","operationId":"createResponseAlias","security":[{"x402":[]}],"x-pricing":{"type":"dynamic","calculation":"input_tokens * input_rate + max_tokens * output_rate, floored at the minimum charge","unit":"USD per 1M tokens","minimum_charge_usd":0.001,"models":[{"id":"anthropic/claude-opus-5","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.8","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.7","input":3.5,"output":17.5},{"id":"anthropic/claude-opus-4.6","input":3.5,"output":17.5},{"id":"anthropic/claude-sonnet-5","input":1.4,"output":7},{"id":"anthropic/claude-sonnet-4.6","input":2.1,"output":10.5},{"id":"anthropic/claude-haiku-4.5","input":0.7,"output":3.5},{"id":"anthropic/claude-fable-5","input":7,"output":35}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"properties":{"model":{"type":"string","enum":["anthropic/claude-opus-5","anthropic/claude-opus-4.8","anthropic/claude-opus-4.7","anthropic/claude-opus-4.6","anthropic/claude-sonnet-5","anthropic/claude-sonnet-4.6","anthropic/claude-haiku-4.5","anthropic/claude-fable-5"]},"input":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}}]},"instructions":{"type":"string"},"max_output_tokens":{"type":"integer","default":4096},"stream":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Successful completion"},"400":{"description":"Unknown or missing model"},"402":{"description":"Payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded x402 payment requirements (price, network, asset, payTo)"}}}}}},"/v1/models":{"get":{"summary":"List available models","description":"Free. Returns every sellable Claude model with live pricing.","operationId":"listModels","security":[],"responses":{"200":{"description":"List of models"}}}},"/.well-known/x402":{"get":{"summary":"x402 resource manifest","description":"Free. Machine-readable x402 discovery document.","operationId":"x402Discovery","security":[],"responses":{"200":{"description":"x402 discovery document"}}}},"/health":{"get":{"summary":"Service health","description":"Free. Liveness probe.","operationId":"health","security":[],"responses":{"200":{"description":"Service status"}}}}}}