Posts tagged “Ai-gateway”
New features, fixes and improvements to Netlify, as they ship.
-
Google’s Gemini 4 Neon 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 Neon model:
import { GoogleGenAI } from '@google/genai';export default async () => {const ai = new GoogleGenAI({});const response = await ai.models.generateContent({model: 'gemini-4-neon',contents: 'How can AI improve my coding?'});return Response.json(response);};Gemini 4 Neon is available in Netlify Functions, including Scheduled and Background Functions, and in Edge Functions. In Agent Runners, you can select it as the model for Google Antigravity. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation and Agent Runners documentation.
-
OpenAI’s GPT-6.2 Astra and GPT-6.2 Sol models are now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically. Here’s an example using GPT-6.2 Astra with the Responses API:
import OpenAI from 'openai';export default async () => {const openai = new OpenAI();const response = await openai.responses.create({model: 'gpt-6.2-astra',input: 'Give a concise explanation of how AI works.',});return Response.json(response);};And here’s the same request using GPT-6.2 Sol:
import OpenAI from 'openai';export default async () => {const openai = new OpenAI();const response = await openai.responses.create({model: 'gpt-6.2-sol',input: 'Give a concise explanation of how AI works.',});return Response.json(response);};GPT-6.2 Astra and GPT-6.2 Sol are also available across Scheduled Functions, Background Functions, and Edge Functions. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation and Agent Runners documentation.
-
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.
-
Google’s Gemini 4 Carbon 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 Carbon model:
import { GoogleGenAI } from '@google/genai';export default async () => {const ai = new GoogleGenAI({});const response = await ai.models.generateContent({model: 'gemini-4-carbon',contents: 'How can AI improve my coding?'});return Response.json(response);};Gemini 4 Carbon 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.
-
Anthropic’s Claude Fable 5.2 model is now available through Netlify’s AI Gateway with zero configuration required. Use
claude-fable-5-2alongside the other Claude models already available in AI Gateway.Use the Anthropic SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically. Here’s an example using Claude Fable 5.2 with the Messages API:
import Anthropic from '@anthropic-ai/sdk';export default async () => {const anthropic = new Anthropic();const response = await anthropic.messages.create({model: 'claude-fable-5-2',max_tokens: 4096,messages: [{ role: 'user', content: 'How can AI improve my coding?' }]});return Response.json(response);};Claude Fable 5.2 also works in Scheduled Functions, Background Functions, and Edge Functions, with Netlify’s caching, rate limiting, and authentication infrastructure available automatically.
Learn more in the AI Gateway documentation.
-
Meta’s Muse Ember 1.0 model is now available through Netlify’s AI Gateway with zero configuration required. Use
muse-ember-1.0alongside the Muse Spark and Muse Wonder models already available in AI Gateway.Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway takes care of the setup automatically. Here’s an example using Muse Ember with the Responses API:
import OpenAI from 'openai';export default async () => {const meta = new OpenAI();const response = await meta.responses.create({model: 'muse-ember-1.0',input: 'How can AI improve my coding?'});return Response.json(response);};This Meta model also works in Scheduled Functions, Background Functions, and Edge Functions, with Netlify’s caching, rate limiting, and authentication infrastructure available automatically.
Learn more in the AI Gateway documentation and explore the models on Meta’s developer site.
-
OpenAI’s GPT Image 2.6 Sunburst (
gpt-image-2.6-sunburst) and GPT Image 2.6 Flare (gpt-image-2.6-flare) models are now available through Netlify’s AI Gateway with zero configuration required.Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically.
GPT Image 2.6 Sunburst and GPT Image 2.6 Flare are also available across Scheduled Functions, Background Functions, and Edge Functions. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation.
-
OpenAI’s GPT-6.1 Terra model is now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically. Here’s an example using GPT-6.1 Terra with the Responses API:
import OpenAI from 'openai';export default async () => {const openai = new OpenAI();const response = await openai.responses.create({model: 'gpt-6.1-terra',input: 'Give a concise explanation of how AI works.',});return Response.json(response);};GPT-6.1 Terra is also available across Scheduled Functions, Background Functions, and Edge Functions. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation and Agent Runners documentation.
-
MiniMax’s M3.1 Flash model is now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
Use the OpenRouter SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically. Here’s an example using MiniMax M3.1 Flash:
import { OpenRouter } from '@openrouter/sdk';export default async () => {const client = new OpenRouter();const response = await client.chat.send({chatRequest: {model: 'minimax/minimax-m3.1-flash',messages: [{ role: 'user', content: 'How can AI improve my coding?' }],maxTokens: 400,},});return Response.json(response);};MiniMax M3.1 Flash is also available across Scheduled Functions, Background Functions, and Edge Functions. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation and Agent Runners documentation.