Grok Code Fast 1
Grok logo

Grok Code Fast 1

grok-code-fast-1
Grok
We're thrilled to introduce grok-code-fast-1, a speedy and economical reasoning model that excels at agentic coding.

Pricing

  • Input Tokens: $0.2 /M tokens
  • Output Tokens: $1.5 /M tokens
  • Cache Read: $0.02 /M tokens

Input Modalities

  • Text
  • Vision

Context length

  • 256K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Providers

Grok grok-code-fast-1
Pricing$0.2$1.5
Cache$0.02
Context256K
Max output10K
Latency1.3S
Throughput87.0TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Azure grok-code-fast-1
Pricing$0.2$1.5
Cache$0.02
Context256K
Max output10K
Latency2.6S
Throughput74.2TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today

Performance for grok-code-fast-1

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

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

response = client.chat.completions.create(
    model="grok-code-fast-1",
    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 Code Fast 1?

We're thrilled to introduce grok-code-fast-1, a speedy and economical reasoning model that excels at agentic coding.