Yesterday's Top Poster

Google Gemini 4 Hydrogen now available in AI Gateway and Agent Runners

  • Thread starter Thread starter Netlify
  • Start date Start date
Google’s Gemini 4 Hydrogen model is now available through Netlify’s AI Gateway and Agent Runners with zero configuration required. Use the Google GenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the Gemini 4 Hydrogen model: import { GoogleGenAI } from '@google/genai'; export default async () => { const ai = new GoogleGenAI({}); const response = await ai.models.generateContent({ model: 'gemini-4-hydrogen', contents: 'How can AI improve my coding?' }); return Response.json(response); }; Gemini 4 Hydrogen is available for all Function types and Agent Runners. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure. Learn more in the AI Gateway documentation and Agent Runners documentation.

Continue reading...
 
Back
Top