News for hackers. Stuff that matters.
Re:Getting AI to write good SQL by reacharavindh on Saturday May 17, 2025 @06:50AM (#44013381)
I use Gemini2.5 Pro through work and it is excellent. However, I use Claude 3.7 Sonnet via API for personal use using money added to their account.

I couldn’t find a way to use Gemini like a prepaid plan. I ain’t giving my credit card to Google for an LLM that can easily charge me hundreds or thousands of EUR.

Re:Getting AI to write good SQL by b0ringdeveloper on Saturday May 17, 2025 @08:26AM (#44013778)
Try OpenRouter. Load up with $20 of credits and use their API for a variety of models across providers, including Gemini. I think you pay ~5% extra for the OpenRouter service.
Re:Getting AI to write good SQL by belter on Saturday May 17, 2025 @10:35AM (#44014629)
Do you work for OpenRouter?
Re:Getting AI to write good SQL by calmoo on Sunday May 18, 2025 @07:35PM (#44025116)
Why ask that? OpenRouter is very popular.
Re:Getting AI to write good SQL by belter on Monday May 19, 2025 @07:01AM (#44028444)
So popular it was worth of finally create a HN account for the post?
Re:Getting AI to write good SQL by Workaccount2 on Saturday May 17, 2025 @11:28AM (#44015005)
Just a heads up, at least with Vertex you can set a hard cap on spending.