No description available
Grok 4.5 APIActive
AI Code With channel availability
The same model is billed by channel discount. Copy a channel code to set your preference.
Related Models
More models from xAI
Grok 4.5 API: price, model ID, and how to call it
Call Grok 4.5 through AI Code With. Use model ID grok-4.5 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.
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).
Cost calculator
Estimate at the cheapest live channel: $0.4000 / $1.20 per 1M tokens, cache read $0.0600, cache write $0. Billed usage follows your prepaid balance.
cURL example
Set model to grok-4.5. 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.5",
"messages": [
{ "role": "user", "content": "What is the meaning of life?" }
]
}'FAQ
What is the Grok 4.5 model ID?
Send model "grok-4.5" in the API request. The page path /grok-4.5 is only the URL, not the model parameter.
How do I call the Grok 4.5 API?
Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions, and set model to grok-4.5. Supported protocols: OpenAI Chat Completions. See See integration guides.
How is Grok 4.5 priced?
Grok 4.5 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.5 context window?
Grok 4.5 has about 200K input context and up to 65.54K output tokens. Treat that as capacity, not a reason to fill every request.