Back to Models
x

Grok 4.1 Fast

xAI/x-ai/grok-4.1-fast
Chat

Fast and affordable Grok model

Input Price

$0.2

per 1M tokens

Output Price

$0.5

per 1M tokens

Context

1M

tokens

Modalities

text

Model ID

x-ai/grok-4.1-fast

Pricing Breakdown

DirectionPer 1K tokensPer 1M tokens
Input$0.00020000$0.2000
Output$0.00050000$0.5000

Quick Start

from openai import OpenAI

client = OpenAI(
    api_key="dg-your-api-key",
    base_url="https://api.doggiegateway.com/v1"
)

response = client.chat.completions.create(
    model="x-ai/grok-4.1-fast",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

How It Works

Doggie Gateway routes your request to xAI's API through OpenRouter. You get the best available pricing and automatic fallback if a provider is unavailable.

Pay-per-use pricing
No monthly fees
OpenAI-compatible API

Ready to use Grok 4.1 Fast?

Create an account, get your API key, and start making API calls in under a minute.