News for hackers. Stuff that matters.
Re:Getting a Gemini API key is an exercise in frustration by CSMastermind on Thursday December 11, 2025 @12:06AM (#46227894)
Some other fun things you'll find:

- The models perform differently when called via the API vs in the Gemini UI.

- The Gemini API will randomly fail about 1% of the time, retry logic is basically mandatory.

- API performance is heavily influenced by the whims of the Google we've observed spreads between 30 seconds and 4 minutes for the same query depending on how Google is feeling that day.

Re:Getting a Gemini API key is an exercise in frustration by DANmode on Thursday December 11, 2025 @12:55AM (#46228137)
So, not something for a production app yet.
Re:Getting a Gemini API key is an exercise in frustration by ianberdin on Thursday December 11, 2025 @01:31AM (#46228315)
Even funnier, when Pro 3 answers to a previous message in my chat. Just making a duplicate answer with different words. Retry helps, but…
Re:Getting a Gemini API key is an exercise in frustration by specproc on Thursday December 11, 2025 @01:48AM (#46228398)
I have also had some super weird stuff in my output (2.5-flash).

I'm passing docs for bulk inference via Vertex, and a small number of returned results will include gibberish in Japanese.

Re:Getting a Gemini API key is an exercise in frustration by walthamstow on Thursday December 11, 2025 @04:04AM (#46229168)
I had this last night from flash lite! My results were interspersed with random snippets of legible, non-gibberish English language. It was like my results had got jumbled with somenone else's.
Re:Getting a Gemini API key is an exercise in frustration by ashwindharne on Thursday December 11, 2025 @04:40AM (#46229398)
I get this a lot too, have made most of the Gemini models essentially unusable for agent-esque tasks. I tested with 2.5 pro and it still sometimes devolved into random gibberish pretty frequently.
Re:Getting a Gemini API key is an exercise in frustration by gfdvgfffv on Friday December 12, 2025 @09:40PM (#46251512)
I’ve gotten Arabic randomly in Claude Code. Programming is becoming more and more like magic.
Re:Getting a Gemini API key is an exercise in frustration by hobofan on Thursday December 11, 2025 @04:17AM (#46229268)
> The Gemini API will randomly fail about 1% of the time, retry logic is basically mandatory.

That is sadly true across the board for AI inference API providers. OpenAI and Anthropic API stability usually suffers around launch events. Azure OpenAI/Foundry serving regularly has 500 errors for certain time periods.

For any production feature with high uptime guarantees I would right now strongly advise for picking a model you can get from multiple providers and having failover between clouds.

Re:Getting a Gemini API key is an exercise in frustration by downsplat on Thursday December 11, 2025 @05:12AM (#46229583)
Yeah at $WORK we use various LLM APIs to analyze text; it's not heavy usage in terms of tokens but maybe 10K calls per day. We've found that response times vary a lot, sometimes going over a minute for simple tasks, and random fails happen. Retry logic is definitely mandatory, and it's good to have multiple providers ready. We're abstracting calls across three different APIs (openai, gemini and mistral, btw we're getting pretty good results with mistral!) so we can switch workloads quickly if needed.
Re:Getting a Gemini API key is an exercise in frustration by jwillp on Thursday December 11, 2025 @10:59AM (#46233006)
I've been impressed by ollama running locally for my work, involving grouping short text snippets by semantic meaning, using embeddings, as well as summarization tasks. Depending on your needs, a local GPU can sometimes beat the cloud. (I get no failures and consistent response times with no extra bill.) Obviously YMMV, and not ideal for scaling up unless you love hardware.
Re:Getting a Gemini API key is an exercise in frustration by duckmysick on Thursday December 11, 2025 @12:34PM (#46234393)
Which models have you been using?
Re:Getting a Gemini API key is an exercise in frustration by phantasmish on Thursday December 11, 2025 @02:58PM (#46236332)
It'd be kinda nice if they exposed whatever queuing is going on behind the scenes, so you could at least communicate that to your users.
Re:Getting a Gemini API key is an exercise in frustration by aamoscodes on Saturday December 13, 2025 @11:40AM (#46255856)
IIRC this is almost exactly the use case for OpenRouter, down to provider fallback https://openrouter.ai/docs/guides/best-practices/uptime-opti...
Re:Getting a Gemini API key is an exercise in frustration by halflings on Thursday December 11, 2025 @05:14AM (#46229595)
"The models perform differently when called via the API vs in the Gemini UI."

This shouldn't be surprised, e.g. the model != the product. The same way GPT4o behaves differently than the ChatGPT product when using GPT4o.

Re:Getting a Gemini API key is an exercise in frustration by te_chris on Thursday December 11, 2025 @05:31AM (#46229724)
The way the models behave in Vertex AI Studio vs the API is unforgivable. Totally different.
Re:Getting a Gemini API key is an exercise in frustration by akhilnchauhan on Thursday December 11, 2025 @07:32AM (#46230597)
> The models perform differently when called via the API vs in the Gemini UI.

This difference between API vs UI responses being different is common across all the big players (Claude, GPT models, etc.)

The consumer chat interfaces are designed for a different experience than a direct API call, even if pinging the same model.