xAI model
Grok 4.5
grok-4.5xAI flagship for coding, agentic tasks, and knowledge work with vision and configurable reasoning effort.
Drop-in OpenAI compatibility
Use one model ID.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.text-generator.io/v1",
api_key="YOUR_TEXT_GENERATOR_KEY",
)
response = client.chat.completions.create(
model="grok-4.5",
messages=[{"role": "user", "content": "Hello"}],
)Resilient by default