grok-4.6
Grok logo

Grok 4.6

grok-4.6
Grok
Grok 4.6 is xAI’s latest AI model, built on Grok 4.5, with a particular focus on long-running agents and more ambitious interactive and visual work. It can persistently complete complex, multi-step tasks—whether researching a topic, analyzing information, working across codebases, or turning an idea into a polished application or deliverable.

Pricing

PricingCache Read
$2.000$6.000
$0.5/M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tools
  • Tool calling
  • Structured outputs
  • Long context

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="grok-4.6",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is grok-4.6?

Grok 4.6 is xAI’s latest AI model, built on Grok 4.5, with a particular focus on long-running agents and more ambitious interactive and visual work. It can persistently complete complex, multi-step tasks—whether researching a topic, analyzing information, working across codebases, or turning an idea into a polished application or deliverable.