Hacker News new | past | comments | ask | show | jobs | submit login

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.



> Gemini is ... 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


Your gemini pricing is for flash, not pro. Also, claude uses prompt caching and gemini currently does not. The pricing isn't super straightforward because of that.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: