OpenAIResponses

GPT-6.2 Astra API

OpenAI's most capable model for demanding projects and reasoning.

On this page

GPT-6.2 Astra API pricing

92% less than OpenAI’s API for 1,000 input and 500 output tokens, before caching.

USD per 1 million tokens
Token typeRouterHubOpenAIOfficial API
Input$0.5979$8.00
Output$2.99$40.00
Cached input$0.0299$0.40
Cache write$0.7474$10.00

OpenAI pricing source · Checked 2026-11-18

Compatible with the tools you already use

One key, one base URL. OpenAI and Anthropic compatible.

GPT-6.2 Astra uses Responses. See the tools that support this model.

Start for free

Plus up to $5 bonus credit on your first top-up.

Context window and API compatibility

GPT-6.2 Astra uses the OpenAI-compatible Responses API over POST /v1/responses and has a context window of 1,050,000 tokens. Use model ID gpt-6.2-astra in requests.

Exact model ID
gpt-6.2-astra
Provider
OpenAI
Variant
Standard
Supported API
OpenAI-compatible Responses API (/v1/responses)
Availability
Preview
Context window
1,050,000 tokens
Maximum input
922,000 tokens
Maximum output
128,000 tokens
Input types
text and images
Coding tools
OpenCode, Codex CLI, VS Code + Continue

Make your first API request

Set ROUTERHUB_API_KEY locally, then send a request with the exact model ID below.

cURL
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/responses \
  -H "Authorization: Bearer $ROUTERHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6.2-astra","input":"Write a short noir scene set in a lighthouse.","max_output_tokens":256}'

Python: install openai with pip. This example requests 256 output tokens and disables automatic retries. Check Usage before resending a paid request.

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ROUTERHUB_API_KEY"],
    base_url="https://routerhub.si/v1",
    timeout=600.0,
    max_retries=0,
)
response = client.responses.create(
    model="gpt-6.2-astra",
    input="Write a short noir scene set in a lighthouse.",
    max_output_tokens=256,
)
print(response.output_text)

Common questions

What is GPT-6.2 Astra?

GPT-6.2 Astra is an OpenAI language model served through RouterHub using the OpenAI-compatible Responses API. Its exact API model ID is gpt-6.2-astra.

How much does GPT-6.2 Astra cost?

RouterHub charges $0.5979 input, $0.0299 cached input and $2.99 output per million tokens (prices as of 2026-11-22). A typical chat message of about 1,000 input and 500 output tokens costs about 0.21¢. Usage is billed against your prepaid balance.

What is the GPT-6.2 Astra context window?

Context window: 1,050,000 tokens. Maximum input: 922,000 tokens. Maximum output: 128,000 tokens.

Which API does GPT-6.2 Astra support?

Use the OpenAI-compatible Responses API at https://routerhub.si/v1/responses with the exact model ID gpt-6.2-astra and your RouterHub API key (Authorization: Bearer header).

Which coding tools work with GPT-6.2 Astra?

OpenCode, Codex CLI, VS Code + Continue. These tools support this model’s Responses endpoint with the configurations in their setup guides.

Can I try GPT-6.2 Astra for free?

GPT-6.2 Astra needs a free RouterHub account with prepaid credits. New accounts get $5 free on their first top-up of $20 or more.

Related models and guides