Posts tagged "Agent-runners"

Subscribe to feed
  • GPT-5.1-Codex-Max now available in AI Gateway and Agent Runners

    OpenAI’s GPT-5.1-Codex-Max 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. The AI Gateway handles everything automatically. Here’s an example using the GPT-5.1-Codex-Max model:

    import OpenAI from 'openai';
    export default async () => {
    const openai = new OpenAI();
    const response = await openai.responses.create({
    model: 'gpt-5.1-codex-max',
    input: 'What improvements are in GPT‑5.1-Codex-Max?'
    });
    return new Response(JSON.stringify(response), {
    headers: { 'Content-Type': 'application/json' }
    });
    };

    GPT-5.1-Codex-Max is available across Background Functions, Scheduled Functions, and Edge Functions. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.

    Learn more in the AI Gateway documentation.

    You can also leverage GPT-5.1-Codex-Max with Agent Runners to build powerful AI-powered workflows, including expanded tool use and support for long-running agent tasks. Learn more in the Agent Runners documentation.

    Permalink to GPT-5.1-Codex-Max now available in AI Gateway and Agent Runners
  • Claude Opus 4.5 now live in AI Gateway, plus latest Claude Code via Agent Runners

    Anthropic’s Claude Opus 4.5 model is now available through Netlify’s AI Gateway with zero configuration required.

    Use the Anthropic SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the Claude Opus 4.5 model:

    import Anthropic from "@anthropic-ai/sdk";
    export default async () => {
    const anthropic = new Anthropic();
    const response = await anthropic.messages.create({
    model: "claude-opus-4-5-20251101",
    max_tokens: 4096,
    messages: [
    {
    role: "user",
    content: "Give me pros and cons of using claude-opus-4-5-20251120 over other models."
    },
    ],
    });
    return new Response(JSON.stringify(response), {
    headers: { "Content-Type": "application/json" }
    });
    }

    Claude Opus 4.5 is available across Background Functions, Scheduled Functions, and Edge Functions. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.

    Learn more in the AI Gateway documentation.

    You can also access the newest Claude Code capabilities via Agent Runners, including expanded tool use and support for long-running agent workflows. Learn more in the Agent runner documentation.

    Permalink to Claude Opus 4.5 now live in AI Gateway, plus latest Claude Code via Agent Runners
  • Gemini 3 now available in AI Gateway and Agent Runners

    Google’s Gemini 3 Pro Preview 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 3 Pro Preview model:

    import { GoogleGenAI } from "@google/genai";
    export default async (request: Request, context: Context) => {
    const ai = new GoogleGenAI({});
    const response = await ai.models.generateContent({
    model: "gemini-3-pro-preview",
    contents: "Explain why gemini 3 is better than other models",
    });
    return new Response(JSON.stringify({ answer: response.text }), {
    headers: { "Content-Type": "application/json" }
    });
    };

    Gemini 3 is available across Background Functions, Scheduled Functions, 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.

    Permalink to Gemini 3 now available in AI Gateway and Agent Runners