xAI Grok 4.1 Fast
x-ai/grok-4.1-fastRun xAI Grok 4.1 Fast in a hosted Python Task with web search and file inputs.
xAI's best agentic tool calling model via OpenRouter. Features 2 million token context window, exceptional for customer support, research, and complex agentic workflows. Supports reasoning toggle and web search.
This model is deprecated and not recommended for new projects.
What xAI Grok 4.1 Fast supports in qbash
- Web searchSearches the web while it answers.
- Image inputReads WEBP, PNG, JPEG and GIF images.
- Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
What is qbash?
qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like xAI Grok 4.1 Fast only at the ones that need judgment, with integrations, memory and files available in the same script.
A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.
Specifications
- Context window
- 2Mtokens
- Max output
- 8,192tokens
- Temperature
- 0 to 2default 1
Use xAI Grok 4.1 Fast in a Python Task
qbash.ai.raw calls xAI Grok 4.1 Fast from a Task and returns its reply as a string.
notes = qbash.inputs.get("notes")
summary = qbash.ai.raw(
f"Summarize these meeting notes in five bullets:\n\n{notes}",
model="x-ai/grok-4.1-fast",
system="You are a concise analyst.",
)
qbash.output({"summary": summary})
Use xAI Grok 4.1 Fast with web search
Turn on Web Search in an inline prompt's model bar and xAI Grok 4.1 Fast searches the web while it answers. Searches are billed at $5.00 per 1,000.
xAI Grok 4.1 Fast pricing
| Input | $0.20 per 1M tokens |
|---|---|
| Output | $0.50 per 1M tokens |
| Web search | $5.00 per 1K searches |
| Input, above 128K input tokens | $0.40 per 1M tokens |
| Output, above 128K input tokens | $1.00 per 1M tokens |
Standard rates in USD.
Supported file formats
Images
- WEBP up to 5 MB
- PNG up to 5 MB
- JPEG up to 5 MB
- GIF up to 5 MB
Documents
- TEXT
- DOC
- XLS
- RTF
- DOCX
- XLSX
- PPTX
- PPT
- ODT
- ODP
- ODS