Skip to main content
Post

GPT-6.2 Astra and GPT-6.2 Sol now available in AI Gateway and Agent Runners

Netlify made OpenAI's GPT-6.2 Astra and GPT-6.2 Sol available through AI Gateway and Agent Runners, with no configuration needed.

In a Netlify Function, you can use the OpenAI SDK directly without managing API keys or authentication, because AI Gateway handles that for you. Create the client with new OpenAI(), call the Responses API, and set the model to gpt-6.2-astra or gpt-6.2-sol. Netlify's example sends the input "Give a concise explanation of how AI works." and returns the response as JSON.

Both models also work in Scheduled Functions, Background Functions, and Edge Functions. Requests go through Netlify's caching, rate limiting, and authentication infrastructure automatically.

Loading replies