Yep I learned this the hard way after racking up big bills just using Sonnet 3.7 in my IDE. Gemini is just as good (and not nearly as willing to agree with every dumb thing I say) and it’s way cheaper.
Yep. Here are the API pricing numbers for Gemini vs Claude. All per 1M tokens.
1. Gemini 2.5: in: $0.15; out: $0.60 non-thinking or $3.50 thinking
2. Claude 3.7: in: $3.00; out: $15
[1] https://ai.google.dev/gemini-api/docs/pricing [2] https://www.anthropic.com/pricing#api