Claude Code session costs by model on OpenRouter

openrouter.ai8 min read

An analysis of real session costs for Claude Code on OpenRouter reveals that session length and model choice drive expenses, with prompt caching accounting for most of the startup cost. The author explains how to run Claude Code with different models, optimize routing to cheaper models like Haiku and Sonnet, and use spending caps to control API costs. Open article →