{"id":"llm-claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Anthropic's latest balanced model — excellent coding, reasoning, and creative writing","price":"$0.042592","method":"POST","path":"/api/llm/claude-sonnet-4.6","mimeType":"application/json","category":"compute","upstream":{"provider":"openrouter","baseUrl":"https://openrouter.ai/api/v1"},"parameters":{"body":{"messages":{"required":true,"description":"Text or model-supported multimodal messages; assistant tool calls may have null content","example":[{"role":"user","content":"Hello"}],"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false}}},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"type":"array","description":"Model-supported stop; see /docs/llm-capabilities.md.","items":{"type":"string"},"schema":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}]}},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"type":"object","description":"Model-supported tool_choice; see /docs/llm-capabilities.md.","schema":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}]}},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","required":["name","parameters"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}}}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","required":["id","pdf"],"properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","required":["engine"],"properties":{"engine":{"type":"string","enum":["native"]}}}}}}}},"cost":"$0.029813980","model":"anthropic/claude-sonnet-4.6","capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"supported_efforts":["max","high","medium","low"],"default_effort":"medium"}},"pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-sonnet-4.6/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000003","completion":"0.000015","web_search":"0.01","input_cache_read":"0.0000003","input_cache_write":"0.00000375","input_cache_write_1h":"0.000006"}},"paymentOptions":[{"scheme":"exact","price":"$0.042592","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"42592","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.042592","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"42592000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.042592","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"42592","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}]}