Back to Models

Grok 4.6 APIActive

grok-4.6

No description available

By:xAIInput Type:Output Type:Publish time:-

AI Code With channel availability

The same model is billed by channel discount. Copy a channel code to set your preference.

ChannelCache Hit RateContext
Grok 官方渠道80% off
92.0%¥2.88/ M tokens¥8.64/ M tokensRead:¥0.72/ M tokensWrite:¥0/ M tokens200K0.0s

Related Models

More models from xAI

Grok 4.6 API: price, model ID, and how to call it

Call Grok 4.6 through AI Code With. Use model ID grok-4.6 with 200K context. list price about $2.00 / $6.00 per 1M tokens before channel discounts. Artificial Analysis lists official prices around $2.00 / $6.00 per 1M tokens; our cheapest channel is about $0.4000 / $1.20 per 1M tokens. About $0.0520 for 100,000 input / 10,000 output tokens at the cheapest live channel.

Model IDgrok-4.6
ProtocolsOpenAI Chat Completions
Context200K
Max output65.54K

Next: Get API key · See integration guides · All model prices · All model prices

Official vs our price

Official list prices from Artificial Analysis, next to our cheapest live channel (per 1M tokens).

Official input$2.00
Official output$6.00
Our input$0.4000
Our output$1.20

Artificial Analysis

Cost calculator

Estimate at the cheapest live channel: $0.4000 / $1.20 per 1M tokens, cache read $0.1000, cache write $0. Billed usage follows your prepaid balance.

Estimated cost$0.0520

cURL example

Set model to grok-4.6. The page slug is only the URL, not the API parameter.

curl https://api.aicodewith.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICODEWITH_API_KEY" \
  -d '{
    "model": "grok-4.6",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the Grok 4.6 model ID?

Send model "grok-4.6" in the API request. The page path /grok-4.6 is only the URL, not the model parameter.

How do I call the Grok 4.6 API?

Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions, and set model to grok-4.6. Supported protocols: OpenAI Chat Completions. See See integration guides.

How is Grok 4.6 priced?

Grok 4.6 is list price about $2.00 / $6.00 per 1M tokens before channel discounts. The public page shows available channel discounts; billed usage follows your prepaid balance and the live channel. Artificial Analysis lists official prices around $2.00 / $6.00 per 1M tokens; our cheapest channel is about $0.4000 / $1.20 per 1M tokens. About $0.0520 for 100,000 input / 10,000 output tokens at the cheapest live channel.

How long is the Grok 4.6 context window?

Grok 4.6 has about 200K input context and up to 65.54K output tokens. Treat that as capacity, not a reason to fill every request.