Skip to content

Grok

Grok models are fast conversational models.

Models

Model Code Notes
Grok 4.1 Fast grok-4-1-fast-reasoning Latest, optimised for speed.
Grok 3 General-purpose chat.

Capabilities

  • tools, tool_choice
  • temperature, top_p, max_tokens, response_format

See Parameter Support by Model for the full matrix.

Example

from openai import OpenAI

client = OpenAI(base_url="https://llm.siraya.ai/v1", api_key="<API_KEY>")
resp = client.chat.completions.create(
    model="grok-4-1-fast-reasoning",
    messages=[{"role": "user", "content": "Tell me a joke."}],
)
print(resp.choices[0].message.content)