xAI: Grok Code Fast 1
x-ai/grok-code-fast-1About
Grok Code Fast 1 is a low-cost reasoning model from xAI built specifically for agentic coding workflows, with reasoning traces visible in the response so developers can steer its behavior. It was built from a separate architecture with a pre-training corpus of programming-related data and post-training drawn from real pull requests and practical coding tasks, and is optimized for tool use such as grep, terminal operations, and file editing across languages including TypeScript, Python, Java, Rust, C++, and Go. The model emphasizes speed and prompt caching for high-volume iterative work, supports a 256,000-token context window, and reportedly scored 70.8% on the SWE-Bench-Verified subset using xAI's internal harness.
Capabilities
- Context Length
- 256K
- Max Output
- 10K
- Reasoning
- Yes
- In
- text
- Out
- text
Benchmarks
View leaderboardReasoning & Knowledge
Coding & Agentic
Math
Source: Artificial Analysis
Pricing
Full pricing| Type | Price / 1M tokens |
|---|---|
| Input | $0.20 |
| Output | $1.50 |
| Cache Read | $0.02 |
| Web Search | $0.0050 / call |
OpenAI-compatible · Model ID x-ai/grok-code-fast-1
curl https://api.elliotgate.com/v1/chat/completions \
-H "Authorization: Bearer sk-omg-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-code-fast-1",
"messages": [{"role": "user", "content": "Hello!"}]
}'