Skip to content

Grok 4.6

Dynamic pricingReasoningxAI

xAI's strongest Grok for coding, knowledge work and agents.

Input
$0.50
per 1M tokens
Output
$1.50
per 1M tokens
Context window
500K
tokens
Max output
128K
tokens

Pricing

Prices are in USD per 1M tokens. Cached input is billed at the cache read price.

Input
$0.50/ 1M
Output
$1.50/ 1M
Cache read
$0.125/ 1M

Tiered prices

Price depends on prompt length or time of day. Every tier is listed below.

Price per tier, per 1M tokens
Applies toInputOutputCache read
Prompts up to 200K tokens$0.50$1.50$0.125
Prompts over 200K tokens$1.00$3.00$0.25

Use it from code

The samples read your key from the ORYNX_API_KEY environment variable.

curl https://api.orynx.dev/v1/chat/completions \
  -H "Authorization: Bearer $ORYNX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.6",
    "messages": [{"role": "user", "content": "Explain what an API gateway does in one sentence."}]
  }'

Use it in your tools

Minimal configuration for popular coding agents. Replace sk-orynx-... with your key.

Codex CLI

Full guide
~/.codex/config.toml
model = "grok-4.6"
model_provider = "orynx"

[model_providers.orynx]
name = "ORYNX"
base_url = "https://api.orynx.dev/v1"
env_key = "ORYNX_API_KEY"
wire_api = "responses"
Cursor Settings → Models
OpenAI API Key:            sk-orynx-...
Override OpenAI Base URL:  https://api.orynx.dev/v1
Custom model name:         grok-4.6

OpenCode

Full guide
opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "orynx": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "ORYNX",
      "options": {
        "baseURL": "https://api.orynx.dev/v1",
        "apiKey": "{env:ORYNX_API_KEY}"
      },
      "models": {
        "grok-4.6": {
          "name": "Grok 4.6",
          "limit": {
            "context": 500000,
            "output": 128000
          }
        }
      }
    }
  }
}
Grok 4.5Dynamic pricing
grok-4.5

Frontier Grok model for coding and knowledge work.

Input
$0.50/ 1M
Output
$1.50/ 1M
OpenAI ChatOpenAI Responses500K ctx
OperationalGrok family100.0%Details