gpt-6-astra — API, Pricing & Context Window | Vivgrid
Run OpenAI's gpt-6-astra on Vivgrid: the flagship gpt-6 coding model with a 1.05M-token context window, geo-distributed acceleration, and a unified API.
gpt-6-astra opens OpenAI's gpt-6 generation and succeeds gpt-5.6-sol. It pairs a 1.05M-token context window with a step up in multi-step reasoning and tool use, built for whole-repository refactors, long-running agents, and workflows where output quality outweighs token cost.
On Vivgrid, gpt-6-astra is served through a single OpenAI-compatible endpoint with geo-distributed acceleration across AMER, EMEA, and APAC, so requests are routed to the nearest compute region for lower latency. You can switch your agent to gpt-6-astra from the Console without changing a line of application code.
It is available on both OpenAI surfaces — Chat Completions (/chat/completions) and the Responses API (/responses) — so coding CLIs that expect the Responses wire format, such as Codex and Pi, work against the same key.
Specifications
| Provider | OpenAI |
| Model ID | gpt-6-astra |
| Best for | Coding |
| Available on | Chat Completions, Vibe coding |
| Context window | 1,050,000 tokens |
| Max output | 128,000 tokens |
| Modalities | Text, Image |
| Tool / function calling | Yes |
| Knowledge cutoff | 2026-06 |
| Acceleration | ⚡ Geo-Distributed — AMER, EMEA, APAC |
Pricing
Pricing in USD per 1M tokens, matching the provider's rates.
| Input | Cached input | Output |
|---|---|---|
| $10.00 | $1.00 | $50.00 |
What one request costs
The rates above applied to a 20K-token prompt with a 2K-token reply — a typical single agent turn, small enough that every request is billed at the base rate.
| Request | Cost |
|---|---|
| Cold prompt, nothing cached | $0.3000 |
| Warm prompt, 90% of the input served from cache | $0.1380 |
Prompt caching is billed at $12.50 per 1M cache-write tokens, with cached reads at $1.00.
Requests beyond 272K input tokens are billed at the long-context rate: $20.00 input / $2.00 cached input / $25.00 cache write / $75.00 output per 1M tokens.
Use gpt-6-astra in your coding agent
gpt-6-astra works with the same Vivgrid key and https://api.vivgrid.com/v1 endpoint as every other model in the catalog. Grab your API key from the Vivgrid Console, then drop one of the configurations below into your agent of choice.
Codex
Install Codex:
npm i -g @openai/codexAdd Vivgrid as a provider and make gpt-6-astra the default model in ~/.codex/config.toml. Codex talks to Vivgrid over the Responses API:
model = "gpt-6-astra"
model_provider = "vivgrid"
preferred_auth_method = "apikey"
forced_login_method = "api"
[features]
streamable_shell = true
unified_exec = true
shell_snapshot = true
[model_providers.vivgrid]
name = "Vivgrid"
base_url = "https://api.vivgrid.com/v1"
wire_api = "responses"
experimental_bearer_token = "viv-xxxxxxxxxxxxx"Then start Codex in your project:
codexAlready using another Vivgrid model in Codex? Switch for a single run with codex -m gpt-6-astra. See the full Codex tutorial.
OpenCode
OpenCode has Vivgrid built in, so you can use gpt-6-astra without writing any config: open /models, search for vivgrid, paste your API key and pick the model. The OpenCode tutorial walks through it step by step.
Prefer to configure it by hand? Install OpenCode:
npm i -g opencode-aiDeclare gpt-6-astra under the Vivgrid provider in your global OpenCode config, ~/.config/opencode/opencode.json. The @ai-sdk/openai provider talks to Vivgrid over the Responses API (/v1/responses):
{
"$schema": "https://opencode.ai/config.json",
"model": "vivgrid/gpt-6-astra",
"provider": {
"vivgrid": {
"npm": "@ai-sdk/openai",
"name": "Vivgrid",
"options": {
"baseURL": "https://api.vivgrid.com/v1",
"apiKey": "{env:VIVGRID_API_KEY}"
},
"models": {
"gpt-6-astra": {
"name": "gpt-6-astra",
"tool_call": true,
"attachment": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 1050000, "output": 128000 }
}
}
}
}
}Export your key and launch OpenCode:
export VIVGRID_API_KEY="viv-xxxxxxxxxxxxx"
opencodeUse /models to switch between gpt-6-astra and other Vivgrid models mid-session. See the full OpenCode tutorial.
Pi
Install Pi:
npm install -g --ignore-scripts @earendil-works/pi-coding-agentAdd gpt-6-astra to the Vivgrid provider in ~/.pi/agent/models.json. The provider defaults to Chat Completions, and gpt-6-astra overrides api at the model level to use the Responses API (/v1/responses):
{
"providers": {
"vivgrid": {
"baseUrl": "https://api.vivgrid.com/v1",
"apiKey": "viv-xxxxxxxxxxxxx",
"api": "openai-completions",
"models": [
{
"id": "gpt-6-astra",
"api": "openai-responses",
"input": ["text", "image"],
"contextWindow": 1050000,
"maxTokens": 128000
}
]
}
}
}Make it the model Pi starts with in ~/.pi/agent/settings.json:
{
"defaultProvider": "vivgrid",
"defaultModel": "gpt-6-astra"
}Then verify and start Pi:
pi --list-models vivgrid
piOr run a one-shot prompt without entering the TUI:
pi -p "explain the auth flow in this repo" --model vivgrid/gpt-6-astraSee the full Pi tutorial.
API surfaces
The Vivgrid Console catalogs gpt-6-astra on 2 surfaces, all behind the same API key. The endpoint shown is the one the Console previews for that surface.
| Surface | Primary endpoint | Use it for |
|---|---|---|
| Chat Completions | /chat/completions | Agent projects, where Vivgrid injects the model, system prompt and tools server-side, and Model API calls that name the model per request. |
| Vibe coding | /chat/completions | Coding CLIs and IDE agents that drive the model themselves — point the tool at Vivgrid and keep your own loop. |
| Vibe coding | /responses | Coding CLIs and IDE agents that drive the model themselves — point the tool at Vivgrid and keep your own loop. |
Quick start
Get an API key from the Vivgrid Console, then call gpt-6-astra directly.
/chat/completions
curl https://api.vivgrid.com/v1/chat/completions \
-H "Authorization: Bearer $VIVGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-astra",
"messages": [
{ "role": "user", "content": "Say hello in English, Chinese and Spanish." }
],
"stream": true
}'/responses
curl https://api.vivgrid.com/v1/responses \
-H "Authorization: Bearer $VIVGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-astra",
"input": "Refactor this function and explain the change.",
"stream": true
}'Choosing within the gpt-6 family
Prices are USD per 1M tokens at the base rate. Rows marked this page are the model described here.
| Model | Context | Max output | Input | Output |
|---|---|---|---|---|
gpt-6-astra — this page | 1,050,000 | 128,000 | $10.00 | $50.00 |
gpt-6.1-sol | 1,050,000 | 128,000 | $2.00 | $10.00 |
gpt-6-sol | 1,050,000 | 128,000 | $2.00 | $10.00 |
gpt-6-luna | 1,050,000 | 128,000 | $0.10 | $0.50 |
Ideal use cases
- Frontier coding agents and CLI tools (Codex, OpenCode, Claude Code-style flows)
- Whole-codebase reads and edits in a single 1.05M-token pass
- High-stakes reasoning where answer quality outweighs token cost
- Long agent traces that chain many tool calls across a session
Related models
- gpt-6.1-sol — the balanced gpt-6 model at a fifth of the price
- gpt-6-luna — the fast, low-cost gpt-6 model
- claude-fable-5-1 — Anthropic's most capable model
claude-haiku-4-5
claude-haiku-4-5 on Vivgrid: Anthropic's fast, low-cost Haiku model with a 200K context window, Messages API, and geo-distributed acceleration.
gpt-6.1-sol
Run OpenAI's gpt-6.1-sol on Vivgrid: the latest balanced gpt-6 model with a 1.05M-token context window, 128K max output, geo-distributed acceleration, and a unified API.