LLM Pricing
← All models

grok-4-latest

xai · chat model

Input
$3.0000 / 1M tokens
Output
$15.0000 / 1M tokens
Cached input
N/A
Context
256.0K

Pricing

Item Raw value (per token) Normalized
Input 0.000003 $3.0000 / 1M tokens
Output 0.000015 $15.0000 / 1M tokens
Embedding 0.000003 $3.0000 / 1M tokens

Token limits

Context window
256.0K
Max input tokens
256.0K
Max output tokens
256.0K
Max tokens
256.0K

Capabilities

Capability Supported
Vision No
Function calling Yes
Parallel function calling No
Tool choice Yes
Prompt caching Yes
Reasoning No
Response schema No
System messages No
Audio input No
Audio output No
Web search Yes
PDF input No
Video input No

Similar models

Models with comparable pricing in the same mode (chat).

Model Provider Input Output Context Coding Features
anthropic.claude-3-5-sonnet-20240620-v1:0 Bedrock $3.0000 / 1M tokens $15.0000 / 1M tokens 4.1K N/A Vision Tools
anthropic.claude-3-5-sonnet-20241022-v2:0 Bedrock $3.0000 / 1M tokens $15.0000 / 1M tokens 8.2K N/A Vision Tools Cache
anthropic.claude-3-7-sonnet-20250219-v1:0 bedrock_converse $3.0000 / 1M tokens $15.0000 / 1M tokens 8.2K N/A Vision Tools Cache Reasoning
anthropic.claude-3-sonnet-20240229-v1:0 Bedrock $3.0000 / 1M tokens $15.0000 / 1M tokens 4.1K N/A Vision Tools
anthropic.claude-sonnet-4-6 bedrock_converse $3.0000 / 1M tokens $15.0000 / 1M tokens 64.0K N/A Vision Tools Cache Reasoning
global.anthropic.claude-sonnet-4-6 bedrock_converse $3.0000 / 1M tokens $15.0000 / 1M tokens 64.0K N/A Vision Tools Cache Reasoning

Sources

Pricing source LiteLLM model cost map
Synced at 2026-05-27
Manual review Not reviewed
Raw LiteLLM fields
{
  "input_cost_per_token": 0.000003,
  "input_cost_per_token_above_128k_tokens": 0.000006,
  "litellm_provider": "xai",
  "max_input_tokens": 256000,
  "max_output_tokens": 256000,
  "max_tokens": 256000,
  "mode": "chat",
  "output_cost_per_token": 0.000015,
  "output_cost_per_token_above_128k_tokens": 0.00003,
  "source": "https://docs.x.ai/docs/models",
  "supports_function_calling": true,
  "supports_prompt_caching": true,
  "supports_tool_choice": true,
  "supports_web_search": true
}