xAI: Grok Code Fast 1
x-ai/grok-code-fast-1
Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding. With reasoning traces visible in the response, developers can steer Grok Code for high-quality work flows.
Byx-aiInput typeOutput type
Recent activity on Grok Code Fast 1
Tokens processed per day
Thoughput
(tokens/s)
ProvidersMin (tokens/s)Max (tokens/s)Avg (tokens/s)
OpenAIChatCompletionAdapter5.1815.5813.34
First Token Latency
(ms)
ProvidersMin (ms)Max (ms)Avg (ms)
OpenAIChatCompletionAdapter121815401356.95
Providers for Grok Code Fast 1
ZenMux Provider to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
Latency
1.30
s
Throughput
11.08
tps
Uptime
100.00
%
Recent uptime
Oct 10,2025 - 3 PM100.00%
Price
Input
$ 0.2
/ M tokens
Output
$ 1.5
/ M tokens
Cache read
$ 0.02
/ M tokens
Cache write 5m
-
Cache write 1h
-
Cache write
-
Web search
-
Model limitation
Context
256.00K
Max output
10.00K
Supported Parameters
max_completion_tokens
temperature
top_p
frequency_penalty
presence_penalty
seed
logit_bias
-
logprobs
top_logprobs
-
response_format
stop
tools
tool_choice
parallel_tool_calls
Model Protocol Compatibility
openai
anthropic
-
Data policy
Prompt training
false
Prompt Logging
Zero retention
Moderation
Responsibility of developer
Sample code and API for Grok Code Fast 1
ZenMux normalizes requests and responses across providers for you.
OpenAI-PythonPythonTypeScriptOpenAI-TypeScriptcURL
python
from openai import OpenAI

client = OpenAI(
  base_url="https://zenmux.ai/api/v1",
  api_key="<ZenMux_API_KEY>",
)

completion = client.chat.completions.create(
  model="x-ai/grok-code-fast-1",
  messages=[
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What is in this image?"
        }
      ]
    }
  ]
)
print(completion.choices[0].message.content)