Skip to main content
All models

Grok 3 Mini

xAIxAI docs

grok-3-mini

Run Grok 3 Mini in a hosted Python Task with structured output, web search and file inputs.

xAI's compact, cost-efficient reasoning model. Supports reasoning_effort control for balancing speed vs depth. Ideal for high-volume tasks.

What Grok 3 Mini supports in qbash

  • Structured outputReplies as JSON that matches a schema you pass.
  • Web searchSearches the web while it answers.
  • Reasoning effort2 levels, from low to high.
  • 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 Grok 3 Mini 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
131Ktokens
Max output
131,072tokens
Temperature
0 to 2default 1

Structured output with Grok 3 Mini in a Python Task

qbash.ai.raw calls Grok 3 Mini from a Task. Pass a JSON Schema as output_schema and the reply comes back as a Python dict that matches it, ready to route to a connector.

main.py
ticket = qbash.inputs.get("ticket")

triage = qbash.ai.raw(
f"Summarize this support ticket and rate its urgency:\n\n{ticket}",
model="grok-3-mini",
output_schema={
"type": "object",
"properties": {
"summary": {"type": "string"},
"urgency": {"type": "string", "enum": ["low", "medium", "high"]},
},
"required": ["summary", "urgency"],
},
)

# triage is a dict, e.g. {"summary": "...", "urgency": "high"}
if triage["urgency"] == "high":
qbash.integrations.slack.create_message(
channel="#support",
text=triage["summary"],
)

qbash.output(triage)
Structured output in Tasks

Use Grok 3 Mini with web search

Turn on Web Search in an inline prompt's model bar and Grok 3 Mini searches the web while it answers.

Reasoning effort with Grok 3 Mini

Set Effort to low and high in the prompt's Settings. The default is low. Higher effort spends more tokens on reasoning before the reply.

Grok 3 Mini pricing

Input$0.30 per 1M tokens
Output$0.50 per 1M tokens

Standard rates in USD.

Supported file formats

Documents

  • PDF
  • TEXT
  • DOC
  • XLS
  • RTF
  • DOCX
  • XLSX
  • PPTX
  • PPT
  • ODT
  • ODP
  • ODS

Grok models need documents uploaded to the xAI Files API before they can be used in chat. xAI stores those files for up to 30 days and does not train on them under its Enterprise API terms. xAI Privacy Policy

Automate Grok 3 Mini with qbash