Grok 4.5 API: xAI's coding and STEM model on FastMetal
Grok 4.5 (grok-4.5), xAI's model for coding, knowledge work and STEM, is available on FastMetal through the API and in chat. You call it with the same key and the same OpenAI-compatible request as every other model in the catalog.
What Grok 4.5 offers
- A 500K-token context: long documents and large codebases fit in one request.
- Text, image and PDF input. PDFs are parsed natively and billed as input tokens.
- xAI claims frontier-level results in coding, general knowledge work, math and science.
Requests go only to xAI's own endpoint.
Calling it
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Authorization: Bearer $FASTMETAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"messages": [{"role": "user", "content": "Hello"}]
}'
You do not need an xAI account to use it. One FastMetal key and one prepaid balance cover Grok 4.5 and every other model we serve, so trying it means changing model and nothing else.
For how it compares, read Grok 4.5 vs GPT-5.6 Sol and Grok 4.5 vs Claude Opus 4.8.
Billing and data
Grok 4.5 is billed per million input and output tokens, with cached input at a lower rate and a higher rate for prompts past 200K tokens. Current rates are on the model page and pricing. The route excludes any endpoint that trains on paid request data.
To try it without code, pick Grok 4.5 in chat, or browse the full model catalog.