RedPill
x-ai logo

xAI: Grok Code Fast 1

Chat
x-ai/grok-code-fast-1
Created Dec 13, 2025|256K context|$0.20/M input tokens|$1.50/M output tokens
Intel TDX

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.

Providers for xAI: Grok Code Fast 1

RedPill routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

x-ai logo
x-ai
Input Price
$0.20
Output Price
$1.50
Total Context
256K

API

RedPill provides an OpenAI-compatible completion API to all models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

fetch("https://api.redpill.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR-REDPILL-API-KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "x-ai/grok-code-fast-1",
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ]
  })
})