GPT-6.2 Astra and GPT-6.2 Sol are in AI Gateway, and Astra got cheaper
Shipped by Nijiko Yonskai and Jarod Clark
OpenAI’s two newest models are in AI Gateway. GPT-6.2 Astra (openai/gpt-6.2-astra) is for demanding reasoning and coding. GPT-6.2 Sol (openai/gpt-6.2-sol) is for everyday coding and agent work. Pay with your ngrok credits, or attach your own OpenAI key and let OpenAI bill you.
Astra costs 20% less than GPT-6 Astra. Sol costs the same as GPT-6.1 Sol:
A prompt over 272K input tokens costs more: $16 input and $60 output per 1M tokens on Astra, and $4 and $15 on Sol. OpenAI’s pricing page lists every rate.
Both models have a 1.05M-token context window and return up to 128K tokens. They read text, images, and files, and images bill at the text input rate.
Try Sol first
Say your rate limiter should allow 10 requests per second with a burst of 20. A client calls it every 30 ms for a minute, so you expect 620 calls to get through. Only 520 do. The limiter resets its clock on every refill, so it throws away the extra 20 ms each time and earns a token every 120 ms instead of every 100 ms.
We showed both models that limiter, from the example below, five times each. Both answered 520 in every run and named the lost 20 ms. Only the bill was different:
Astra cost about four times as much for the same answer. Start with Sol, and save Astra for the problems Sol gets wrong.
Check your requests before you switch
OpenAI returns a 400 error for two kinds of request to these models, and AI Gateway passes the error back to you:
- Set
reasoning_efforttolow,medium,high, orxhigh. Both models rejectnoneandmax. - Send function tools to the Responses API (
/v1/responses). On chat completions, OpenAI rejects function tools for these models.
The gateway removes temperature, top_p, logprobs, and top_logprobs, which these models don’t take, and runs the rest of the request. The Ngrok-AIG-Removed-Params response header names each field it removed.
Get started
Both models accept OpenAI chat completions and Responses requests. These steps use chat completions and the OpenAI SDK. To try the limiter before you write code, paste it into the playground.
Get an access key
Create an ngrok account or sign in. Create an access key that allows OpenAI and the GPT-6.2 models. Confirm your account has credits, or attach your own OpenAI key.
Install the OpenAI SDK
The setup guide shows the same steps when you select OpenAI and TypeScript. Install the OpenAI SDK and TypeScript runner:
Save your access key
Save your ngrok access key in
.env.local. Keep this file out of version control:Save the example
Use an ES module project (
"type": "module"inpackage.json) for top-levelawait. Save this example asindex.ts:Run it
Run the example from your project directory:
It prints the count, a one-sentence explanation, and the reasoning token count. One run on Sol printed:
The wording varies between runs. The answer is in
choices[0].message.content, andusage.completion_tokens_details.reasoning_tokenscounts the reasoning tokens, which bill as output. The OpenAI SDK guide covers the rest of the SDK.Check the request in Activity
Open Activity, find the request, and inspect its model, provider, status, token usage, and cost. Then change
modelto"openai/gpt-6.2-astra", run the example again, and compare the two costs.