//
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.
This model is available from multiple providers. Select one to see its pricing and sample code.
Official channels of xAI
Transparent pay-as-you-go pricing by token usage — no subscriptions or hidden fees.
Copy an example below to start calling this model in minutes.
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)