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

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 this private model across verified providers with automatic fallbacks. Pricing is unified, so you pay the same price no matter which provider serves your request, while live metrics show first-token latency, speed, and uptime.

Total Context
256K
Input
$0.20/M
Output
$1.50/M
ProviderFirst TokenSpeedUptime
x-ai logox-ai
CheckingCheckingChecking

Gateway API

RedPill provides a unified private completion API to all models and providers that you can call directly, or through the OpenAI SDK. Verification can be added without changing your model call pattern.

const response = await fetch("https://api.redpill.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.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?"
      }
    ],
    "provider": { "aci_verified": true }
  })
});

console.log("receipt", response.headers.get("x-receipt-id"));
console.log(await response.json());
RedPill

End-to-end encrypted AI through one gateway: private models, verified providers, unified pricing, live performance, and evidence your team can check.