Grok 4.5
Grok 4.5 is SpaceXAI's frontier model built for coding, agentic tasks, and knowledge work. It was trained in SpaceXAI's data centers in Memphis with new datasets spanning science, engineering, and math.
byxAIInput TypetextimageOutput TypetextContext Window500KMax Output500K
Providers
This model is available from multiple providers. Select one to see its pricing and sample code.
xAIDefault
$1.4 / $4.2 / R:$0.35 · tiered/ 1M tokens0.70× base price
Supported formatsOpenAI Chat CompletionsOpenAI ResponsesAnthropic Messages
Official channels of xAI
Grok Lite
$0.2 / $0.6 / R:$0.05 · tiered/ 1M tokens0.10× base price
Supported formatsOpenAI Chat CompletionsOpenAI ResponsesAnthropic Messages
Reverse Grouping of Grok
Pricing
Transparent pay-as-you-go pricing by token usage — no subscriptions or hidden fees.
Per 1M tokens
Tier / Input lengthInput / 1MOutput / 1MCache read / 1MCache write / 1M
standard
≤ 200,000 input tokens
long_context
> 200,000 input tokens
Code
Copy an example below to start calling this model in minutes.
API / request example
Sample Code & API
from openai import OpenAI
client = OpenAI(
base_url="https://api.apipod.ai/v1",
api_key="<YOUR_API_KEY>",
)
# Chat Completions
completion = client.chat.completions.create(
model="grok-4.5",
messages=[
{
"role": "user",
"content": "What is the meaning of life?",
}
],
)
print(completion.choices[0].message.content)