GPT-5.2 and GPT-5.2-Pro now available in AI Gateway and Agent Runners

December 11, 2025

OpenAI’s GPT-5.2 and GPT-5.2-Pro are now available through AI Gateway and Agent Runners. You can call these models from Netlify Functions without configuring API keys; the AI Gateway provides the connection to OpenAI for you.

Example usage in a Function:

import { OpenAI } from "openai";
export default async () => {
const openai = new OpenAI();
const response = await openai.chat.completions.create({
model: "gpt-5.2",
messages: [
{ role: "user", content: "What are the key improvements in GPT-5.2?" }
]
});
return new Response(JSON.stringify(response), {
headers: { "Content-Type": "application/json" }
});
};

These models work across any function type and are compatible with other Netlify primitives such as caching and rate limiting, giving you control over request behavior across your site.

See the AI Gateway documentation for details.

Agent Runners support the same models, enabling AI to complete long-running coding tasks. You can learn more in the Agent Runners documentation.