Skip to main content
All models

xAI / Model reference

Grok 4

xAI model available through the Celeste SDK. Explore its supported operations and parameters.

See the code
Model IDgrok-4-0709

What it can do.

Streaming
celeste.text.generateGenerate text

Parameters.

Supported controls from Celeste’s model registry. Values and availability differ between models.

Grok 4 parameters and constraints
ParameterAccepted values
temperature0 – 2
max_tokens1 – 64000
toolsList of tool definitions
output_schemaPydantic BaseModel

Start with a few lines

Put it to work.

Use your provider credentials. Call the model through the SDK and build around its output.

Generate
import celeste
response = await celeste.text.generate(
model="grok-4-0709",
prompt="Write a project brief for a neighborhood repair café." )
print(response.content)

This example uses text.generate. Explore the quickstart for installation and authentication.