← Back to Blog
New model

Grok 4.6 API: xAI's coding and STEM model on FastMetal

FastMetal

xAI's Grok 4.6 is available on FastMetal as grok-4.6. It succeeds Grok 4.5 and is still served today, beside its own successor, Grok 4.7.

What it is for

xAI positions Grok 4.6 as a frontier model for three areas: coding, knowledge work and STEM. Those are the vendor's claims; we have not benchmarked them here.

  • A 500,000-token context, enough for long documents or a large part of a codebase.
  • Multimodal input: text, images and files. PDFs are read natively and billed as input tokens.
  • Prompts above 200,000 tokens bill at a higher tier, so very long inputs cost more per token than short ones.

Calling it

Set model to grok-4.6. The base URL and API key are the same as for every other model on FastMetal:

curl https://api.fastmetal.ai/v1/chat/completions \
  -H "Authorization: Bearer $FASTMETAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.6",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

With the OpenAI SDK, point base_url at https://api.fastmetal.ai/v1 and change model. To try it without code, pick it in chat.

Grok 4.6 or something else?

The Grok 4.6 vs Grok 4.7 comparison shows both generations' answers to the same prompts. If context length is your limit, Grok 4.6 vs GPT-5.6 Terra weighs it against a model with twice the window.

Pricing

Billed per million input and output tokens, with the long-prompt tier above 200,000 tokens, from a prepaid balance with no monthly fee. Current rates are on pricing and the model page. Everything else we serve is in the model catalog.

Try Grok 4.6 right now

Grok 4.6 is available on FastMetal through one API key. Start in the browser, or call it from the OpenAI SDK.