GPT-6.2 Astra on OpenAI API

GPT-6.2 · OpenAI

Serverless

Last refreshed 2026-11-17. Next refresh: weekly.

Why use GPT-6.2 Astra on OpenAI API?

OpenAI API offers GPT-6.2 Astra with pay-as-you-go pricing at $8.00/1M input tokens. OpenAI is a leading AI research and deployment company dedicated to developing safe and beneficial artificial general intelligence (AGI) for humanity.

Compare GPT-6.2 Astra across 4 providers to find the best fit for your use case
Input / 1M
$8.00
Output / 1M
$40.00
Cache
read $0.40
Batch
-50% · in $4.00 / out $20.00

Setup recipe

Python + curl
Install
pip install openai
Auth
export OPENAI_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
Model ID
gpt-6.2-astra

Request example

import os
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
    model="gpt-6.2-astra",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".
  • The examples expect OPENAI_API_KEY; rename it only if your application config maps the new variable.

Compare GPT-6.2 Astra Across Providers

ProviderInput (per 1M)Output (per 1M)
OpenAI API$8.00$40.00
OpenRouter$8.00$40.00
Vercel AI Gateway$8.00$40.00
Azure OpenAI——

Pricing

TypePrice (per 1M)
Input tokens$8.00
Output tokens$40.00

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt CachingBatch API

About GPT-6.2 Astra

GPT-6.2 Astra (API id gpt-6.2-astra) is OpenAI's GPT-6.2 frontier model for demanding professional work, announced November 17, 2026 together with GPT-6.2 Sol. OpenAI positions it for complex coding, frontend and 3D work, computer use, and slides, spreadsheets, and documents that follow provided templates and field conventions. First-party docs list a 1,050,000-token context window, 922,000 max input tokens, 128,000 max output tokens, a May 18, 2026 knowledge cutoff, and text and image input with text output.

Get Started

Model Specs

Released2026-11-17
Context1.05M
Knowledge cutoff2026-05

Related Models on OpenAI API