Posts tagged "Ai-gateway"
-
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.
-
TypeSafe’s Jev 1.14.0 model is now available through Netlify’s AI Gateway with zero configuration required.
Install
@typesafe-ai/sdkand use it directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles credentials automatically, and usage is billed to your Netlify credits.Jev answers typed questions about your application state. Here’s an example using
jev-1.14.0to categorize a support ticket as a bug, feature request, or question:import { choice, TypeSafeClient } from '@typesafe-ai/sdk';export default async () => {const typesafe = new TypeSafeClient();const response = await typesafe.systemOne({model: 'jev-1.14.0',state: { issue: 'App crashes when I click Save.' },questions: {label: choice('Categorize this ticket', {bug: null,feature: null,question: null,}),},});return Response.json(response);};Jev 1.14.0 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 the TypeSafe documentation.
-
Google’s Gemini 4 Argon 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 Argon model:
import { GoogleGenAI } from '@google/genai';export default async () => {const ai = new GoogleGenAI({});const response = await ai.models.generateContent({model: 'gemini-4-argon',contents: 'How can AI improve my coding?'});return Response.json(response);};Gemini 4 Argon 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.