News for hackers. Stuff that matters.
Re:Google Gemini has the worst LLM API by Deathmax on Saturday May 03, 2025 @08:37PM (#43883544)
> You can’t just attach an image to your request.

You can? Google limits HTTP requests to 20MB, but both the Gemini API and Vertex AI API support embedded base64-encoded files and public URLs. The Gemini API supports attaching files that are uploaded to their Files API, and the Vertex AI API supports files uploaded to Google Cloud Storage.

Re:Google Gemini has the worst LLM API by rafram on Saturday May 03, 2025 @11:12PM (#43884180)
Their JavaScript library didn’t support that as of whenever I tried.
Re:Google Gemini has the worst LLM API by simonw on Saturday May 03, 2025 @11:22PM (#43884230)
I got their most recent JavaScript API library to work for images here: https://tools.simonwillison.net/gemini-mask

Here's the code: https://github.com/simonw/tools/blob/main/gemini-mask.html