xAI
Grok 4.1 Fast
For low-cost reasoning.
x-ai/grok-4.1-fast- Input → Output
- Text, images → Text/Text
- Maximum input
- 200K tokens
- Provider
- 1
- Tool invocation
- Yes
Price per million tokens
- Input
- 324 credits
- Output
- 810 credits
Provider
Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.
| Provider | Input / 1M | Output / 1M | Cache read | First token | Throughput | Uptime |
|---|---|---|---|---|---|---|
| Microsoft Foundry | 324 credits | 810 credits | - | - | - | 100.00% |
Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.
Uptime
In the last 3 days, among the requests that were completed, the percentage of requests that failed due to problems on our side or with the supplier was very low. The number of requests that failed due to incorrect information or other issues is even lower.
100.00%
- 12/3, 7 PM:00: No data
- 12/3, 8 PM:00: No data
- 12/3, 9 PM:00: No data
- 12/3, 10 PM:00: No data
- 12/3, 11 PM:00: No data
- 12/4, 12 AM:00: No data
- 12/4, 1 AM:00: No data
- 12/4, 2 AM:00: No data
- 12/4, 3 AM:00: No data
- 12/4, 4 AM:00: No data
- 12/4, 5 AM:00: No data
- 12/4, 6 AM:00: No data
- 12/4, 7 AM:00: No data
- 12/4, 8 AM:00: No data
- 12/4, 9 AM:00: No data
- 12/4, 10 AM:00: No data
- 12/4, 11 AM:00: No data
- 12/4, 12 PM:00: No data
- 12/4, 1 PM:00: No data
- 12/4, 2 PM:00: No data
- 12/4, 3 PM:00: No data
- 12/4, 4 PM:00: No data
- 12/4, 5 PM:00: No data
- 12/4, 6 PM:00: No data
- 12/4, 7 PM:00: No data
- 12/4, 8 PM:00: No data
- 12/4, 9 PM:00: No data
- 12/4, 10 PM:00: No data
- 12/4, 11 PM:00: No data
- 12/5, 12 AM:00: No data
- 12/5, 1 AM:00: No data
- 12/5, 2 AM:00: No data
- 12/5, 3 AM:00: No data
- 12/5, 4 AM:00: No data
- 12/5, 5 AM:00: No data
- 12/5, 6 AM:00: No data
- 12/5, 7 AM:00: No data
- 12/5, 8 AM:00: No data
- 12/5, 9 AM:00: No data
- 12/5, 10 AM:00: No data
- 12/5, 11 AM:00: No data
- 12/5, 12 PM:00: No data
- 12/5, 1 PM:00: No data
- 12/5, 2 PM:00: No data
- 12/5, 3 PM:00: No data
- 12/5, 4 PM:00: No data
- 12/5, 5 PM:00: No data
- 12/5, 6 PM:00: No data
- 12/5, 7 PM:00: No data
- 12/5, 8 PM:00: No data
- 12/5, 9 PM:00: No data
- 12/5, 10 PM:00: No data
- 12/5, 11 PM:00: All succeeded
- 12/6, 12 AM:00: No data
- 12/6, 1 AM:00: No data
- 12/6, 2 AM:00: No data
- 12/6, 3 AM:00: No data
- 12/6, 4 AM:00: No data
- 12/6, 5 AM:00: No data
- 12/6, 6 AM:00: No data
- 12/6, 7 AM:00: No data
- 12/6, 8 AM:00: No data
- 12/6, 9 AM:00: No data
- 12/6, 10 AM:00: No data
- 12/6, 11 AM:00: No data
- 12/6, 12 PM:00: No data
- 12/6, 1 PM:00: No data
- 12/6, 2 PM:00: No data
- 12/6, 3 PM:00: No data
- 12/6, 4 PM:00: No data
- 12/6, 5 PM:00: No data
- 12/6, 6 PM:00: No data
- All succeeded
- Some failures (under 5%)
- 5% or more failed
- No data
Use the API
from openai import OpenAI
client = OpenAI(
base_url="https://alprouter.com/api/v1",
api_key="alp-your-key",
)
answer = client.chat.completions.create(
model="x-ai/grok-4.1-fast",
messages=[{"role": "user", "content": "Hello"}],
)
print(answer.choices[0].message.content)Details
- Maximum input
- 200K tokens
- Maximum output
- 64K tokens
- Tool invocation
- Supported
- Supported input
- Text, images
- Output
- Text/Text
- Provider
- Microsoft Foundry
- Supported parameters
- max_completion_tokens, max_tokens, parallel_tool_calls, reasoning_effort, response_format, seed, stop, stream, temperature, tool_choice, tools, top_p
Frequently asked questions
What kind of model is Grok 4.1 Fast?
A model from xAI. For low-cost reasoning. Model ID on AlpRouter: x-ai/grok-4.1-fast
How much does Grok 4.1 Fast cost?
Per million tokens: 324 credits input, 810 credits output. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.
How much input does Grok 4.1 Fast accept?
Each request accepts up to 200K tokens. The maximum output is 64K tokens.
What input and output does Grok 4.1 Fast support?
Send Text, images to receive Text/Text.
Does Grok 4.1 Fast support tool calling and structured JSON?
Tool calling: Supported. Structured output (response_format): Supports the json_object, json_schema format..
Which providers handle Grok 4.1 Fast requests?
Microsoft Foundry handles these requests.
How do I call Grok 4.1 Fast from code?
Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (x-ai/grok-4.1-fast). There’s an example of how to do this in the “Using the API” section above.
Other models from xAI
- Grok 4.7x-ai/grok-4.7Input 3,240 credits
- Grok 4.6x-ai/grok-4.6Input 3,240 credits
- Grok 4.3x-ai/grok-4.3Input 2,025 credits
- Grok 4.20x-ai/grok-4.20Input 2,025 credits
- Grok 4.20 (non-reasoning)x-ai/grok-4.20-non-reasoningInput 2,025 credits
- Grok 4.1 Fast (non-reasoning)x-ai/grok-4.1-fast-non-reasoningInput 324 credits