Models
ChatOpenAIreasoningtools1m-context

GPT-6 Astra

OpenAI GPT-6 Astra: the most capable GPT-6 tier for hard reasoning, coding and agents. 1.05M context.

Model ID: gpt-6-astra

Playground

Price · Vercel AI Gateway
1M input tokens$9
1M output tokens$45

Credits for max_tokens are held first, then settled to the actual usage.

Start a conversation. Replies stream in and are billed by actual token usage.

Pricing by provider

Prices are per unit; requests without a provider are routed to the cheapest provider that supports your parameters.

ProviderOptionPrice (USD)Credits
Vercel AI GatewayPrompt ≥ 272,001 tokens$2010% off$18 / 1M input tokens4500 / 1M input tokens
All options$5010% off$45 / 1M output tokens11250 / 1M output tokens
All options$1010% off$9 / 1M input tokens2250 / 1M input tokens
Prompt ≥ 272,001 tokens$7510% off$67.5 / 1M output tokens16875 / 1M output tokens
OpenRouterAll options$5010% off$45 / 1M output tokens11250 / 1M output tokens
Prompt ≥ 272,001 tokens$2010% off$18 / 1M input tokens4500 / 1M input tokens
All options$1010% off$9 / 1M input tokens2250 / 1M input tokens
Prompt ≥ 272,001 tokens$7510% off$67.5 / 1M output tokens16875 / 1M output tokens

API reference

Endpoints

Base URL: https://01router.com/api/v1

POST/chat/completionsChat completion (OpenAI-compatible, stream or not)

Authentication

Send your API key as a Bearer token. Requests are billed to the key owner's credits.

Authorization: Bearer sk_xxxxxxxxxxxxxxxx
Get an API key

Request body

NameTypeRequiredDescription
modelstringYes"gpt-6-astra"
providerstringNoPin a provider; omit to auto-route to the cheapest. One of: vercel | openrouter
messagesarrayYesOpenAI-format messages, each with role and content.
streambooleanNotrue returns an SSE stream.
max_tokensintegerNoOutput token cap; credits are pre-held for it (default 4096).

Example request

curl https://01router.com/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6-astra",
    "provider": "vercel",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": false
  }'

Response

Chat models (GPT, Claude, Gemini, Grok, DeepSeek…) use the OpenAI Chat Completions format, so the official OpenAI SDKs work with base URL https://01router.com/api/v1. Set "stream": true for server-sent events. Credits for the prompt plus max_tokens (4,096 when unset) are held first, then settled to the real token usage once the reply ends; the same request id appears in the X-Gateway-Request-Id header and the task log.

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "model": "gpt-6-astra",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 8,
    "total_tokens": 17
  }
}

Auth, routing, billing and error codes are covered in Gateway API reference