GPT-6 Astra API

Call GPT-6 Astra with one TokenMilo API key. OpenAI GPT-6 family, from the flagship Astra down to the lightweight Luna. Billed per token at 91% below the official OpenAI price.

Get an API key

Model IDgpt-6-astra
ProviderOpenAI
FamilyGPT-6
Discount91% off official

GPT-6 Astra pricing

USD per 1M tokens. Prices updated 2026-11-13.

TokenMiloOfficial OpenAIYou save
Input$0.855$10−91%
Output$4.28$50−91%
Cache read$0.086——
Cache write (5 min)$1.07——
Cache write (1 hour)$1.07——

OpenAI cache pricing varies by model, so no official figure is shown for cache rows. 1-hour cache writes are billed at the same price as 5-minute writes.

What it costs in practice

WorkloadTokenMiloOfficialYou save
1,000 requests × 2,000 in / 500 out tokens$3.85$45.00$41.15
1,000 requests × 50,000 in / 2,000 out tokens$51.30$600$549

GPT-6 price comparison: TokenMilo vs official

ModelTokenMilo in / outOfficial in / outSaved
GPT-6 Astra (this page)$0.855 / $4.28$10 / $50−91%
GPT-6 Sol$0.171 / $0.855$2 / $10−91%
GPT-6 Luna$0.0081 / $0.043$0.1 / $0.5−91%

GPT-6 Astra use cases

General assistants

Astra for the hardest conversations, Sol for balanced everyday use.

Coding and tool calling

Agentic coding in Codex CLI and other OpenAI-compatible tools.

Summarisation and writing

Reports, emails and content generation.

Cheap high-volume work

Luna is priced for classification, extraction and batch jobs at very large scale.

Supported endpoints

OpenAI Chat Completions · recommendedPOST https://api.tokenmilo.com/v1/chat/completions
OpenAI Responses · recommendedPOST https://api.tokenmilo.com/v1/responses
Anthropic MessagesPOST https://api.tokenmilo.com/v1/messages

Base URL and API key are the same for every format. API guide →

Code examples

curl

curl https://api.tokenmilo.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENMILO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-6-astra",
    "messages": [{"role": "user", "content": "Hello, GPT-6 Astra!"}]
  }'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.tokenmilo.com/v1",
    api_key=os.environ["TOKENMILO_API_KEY"],
)
res = client.responses.create(
    model="gpt-6-astra",
    input="Explain prompt caching in one paragraph.",
)
print(res.output_text)

Use GPT-6 Astra in your tools

More OpenAI models

Common GPT-6 Astra API errors and how to fix them

Most errors come from the key, the base URL or the model ID. Check these first:

401 Unauthorized / invalid API key

Cause: The key is wrong, has an extra space or line break, was deleted, or is an official Anthropic/OpenAI key instead of a TokenMilo key.

Fix: Copy the key again from the Tokens page of the console (it starts with sk-). In Claude Code, set it as ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY — not both with different values.

The response is an HTML page, or "Unexpected token <" / JSON parse error

Cause: The base URL points at the website instead of the API, or has a typo.

Fix: Use https://api.tokenmilo.com/v1 as the base URL for OpenAI SDKs, Codex CLI and most tools. If a tool asks for a single URL, https://api.tokenmilo.com/v1 works everywhere.

model_not_found / "no available channel for model"

Cause: The model name is misspelled, has the wrong case, or includes a vendor prefix.

Fix: Use the exact model ID gpt-6-astra — lowercase, with no prefix such as anthropic/ or openai/.

Insufficient quota / balance

Cause: Your account balance is used up, or the key has its own spending limit that has been reached.

Fix: Top up in the console, or edit the key and raise or remove its quota limit.

Connection error, timeout, ECONNRESET or "fetch failed"

Cause: A local proxy (for example Clash in fake-ip mode) or a firewall is intercepting the connection.

Fix: Set api.tokenmilo.com to DIRECT in your proxy rules, or turn the proxy off. TokenMilo does not need a proxy.

429 Too Many Requests

Cause: Too many concurrent requests in a short time.

Fix: Retry with exponential backoff and lower the concurrency of batch jobs.

Context too long ("prompt is too long" / context_length_exceeded)

Cause: The conversation plus attached files exceeds the model’s context window.

Fix: Start a new session or run /compact in Claude Code, attach fewer files, and trim long tool outputs.

400 Unsupported parameter: max_tokens / temperature

Cause: Reasoning models reject some legacy Chat Completions parameters.

Fix: Use max_completion_tokens instead of max_tokens, remove temperature/top_p, or switch to the Responses API.

400 Invalid value for reasoning_effort

Cause: The tool sent a reasoning level the model doesn’t accept.

Fix: Use low, medium or high. In Codex CLI, set model_reasoning_effort in config.toml accordingly.

500 / 502 / 503 upstream error

Cause: A temporary error from the upstream model provider.

Fix: Retry after a few seconds. If it keeps failing for several minutes, contact support with the time and request ID.

Still stuck? Ask in our Telegram support group and we will help, including remote setup. Telegram →

FAQ

Is this the real GPT-6 Astra?

Yes. Requests with model ID gpt-6-astra are served by the genuine OpenAI model — no quantized, swapped or downgraded variant. Response quality is the same as calling OpenAI directly.

How much does GPT-6 Astra cost on TokenMilo?

$0.855 per 1M input tokens and $4.28 per 1M output tokens, compared with $10 / $50 officially — 91% less. There is no subscription or monthly minimum.

Which API format should I use for GPT-6 Astra?

Use the OpenAI Chat Completions or Responses API at https://api.tokenmilo.com/v1. Codex CLI and most OpenAI SDK-based tools work by changing only the base URL and key.

Does GPT-6 Astra support prompt caching?

Yes. Cache reads are billed at $0.086 per 1M tokens, which makes long system prompts and coding-agent sessions much cheaper.

Start using GPT-6 Astra

Sign up, top up, create a key — and point your SDK at TokenMilo.

Get an API key All models Full pricing