Back to providers page
Try this model
xai

grok-3-mini-beta

completions

Grok 3 Mini is a lightweight, smaller thinking model. Unlike traditional models that generate answers immediately, Grok 3 Mini thinks before responding. It’s ideal for reasoning-heavy tasks that don’t demand extensive domain knowledge, and shines in math-specific and quantitative use cases, such as solving challenging puzzles or math problems. Transparent "thinking" traces accessible. Defaults to low reasoning, can boost with setting `reasoning: { effort: "high" }` Note: That there are two xAI endpoints for this model. By default when using this model we will always route you to the base endpoint. If you want the fast endpoint you can add `provider: { sort: throughput}`, to sort by throughput instead.

Input:$0.3 / 1M tokens
Output:$0.5 / 1M tokens
Context:131072 tokens
text
text

Access grok-3-mini-beta through LangDB AI Gateway

Recommended

Integrate with xai's grok-3-mini-beta and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Code Example
Configuration
Base URL
API Keys
Headers
Project ID in header
X-Run-Id
X-Thread-Id
Model Parameters
11 available
include_reasoning
logprobs
max_tokens
response_format
seed
stop
temperature
012
tool_choice
tools
top_logprobs
top_p
011
Additional Configuration
Tools
Guards
User:
Id:
Name:
Tags:
Publicly Shared Threads5
  • xai
    Two Sum Python Function with Dictionary
    about 2 months ago
    Provided an efficient Python function using a hash map to find indices of two numbers in a list that sum to a given target.
    python two sum
    two sum function
    two sum problem
    two sum python solution
  • xai
    Meaning, Origin & Usage of "Ride Shotgun"
    about 2 months ago
    Explanation, origin, and modern meaning of "ride shotgun" as sitting front passenger, plus example sentence and scenario where someone calls dibs.
    ride shotgun idiom
    ride shotgun origin
    ride shotgun meaning
    ride shotgun example
  • xai
    CSS/HTML Image Slider with Radio Inputs & Arrows
    about 2 months ago
    Complete HTML/CSS-only image slider with three images toggled via radio buttons and styled previous/next arrow labels, featuring fade transitions.
    html css image slider
    pure css image carousel
    css radio button slider
    css fade transition images
  • xai
    Occurrences and overlaps of "issi" in the sentence
    about 2 months ago
    Analysis of “issi” in the sentence shows 2 occurrences starting at indices 1 and 4 (overlapping counted) within “Mississippi.”
    substring search
    overlapping occurrences
    string indexing
    case sensitive matching
  • xai
    Andrew has N sisters (all N girls including Alice)
    about 2 months ago
    Andrew has N sisters, because the total number of girls in the family is N (including Alice), and all these girls are his sisters from his perspective.
    family siblings counting
    number of sisters
    brothers and sisters relationship
    counting siblings from perspective
Popular Models10
  • openai
    gpt-4.1-mini
    openai
    GPT-4.1 mini provides a balance between intelligence, speed, and cost that makes it an attractive model for many use cases.
    Input:$0.4 / 1M tokens
    Output:$1.6 / 1M tokens
    Context:1047576 tokens
    tools
    text
    image
    text
  • anthropic
    claude-sonnet-4
    anthropic
    Our high-performance model with exceptional reasoning and efficiency
    Input:$3 / 1M tokens
    Output:$15 / 1M tokens
    Context:200K tokens
    tools
    text
    image
    text
  • anthropic
    claude-opus-4
    anthropic
    Our most capable and intelligent model yet. Claude Opus 4 sets new standards in complex reasoning and advanced coding
    Input:$15 / 1M tokens
    Output:$75 / 1M tokens
    Context:200K tokens
    tools
    text
    image
    text
  • openai
    gpt-4.1
    openai
    GPT-4.1 is OpenAI's flagship model for complex tasks. It is well suited for problem solving across domains.
    Input:$2 / 1M tokens
    Output:$8 / 1M tokens
    Context:1047576 tokens
    tools
    text
    image
    text
  • gemini
    gemini-2.5-pro-preview
    gemini
    Gemini 2.5 Pro Experimental is Google's state-of-the-art thinking model, capable of reasoning over complex problems in code, math, and STEM, as well as analyzing large datasets, codebases, and documents using long context.
    Input:$1.25 / 1M tokens
    Output:$10 / 1M tokens
    Context:1M tokens
    tools
    text
    image
    audio
    video
    text
  • xai
    grok-4
    xai
    Grok 4 is the latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades.
    Input:$3 / 1M tokens
    Output:$15 / 1M tokens
    Context:256K tokens
    tools
    text
    text
  • gemini
    gemini-2.5-flash-preview
    gemini
    Google's best model in terms of price-performance, offering well-rounded capabilities. Gemini 2.5 Flash rate limits are more restricted since it is an experimental / preview model.
    Input:$0.15 / 1M tokens
    Output:$0.6 / 1M tokens
    Context:1M tokens
    tools
    text
    image
    audio
    video
    text
  • gemini
    gemini-2.0-flash
    gemini
    Google's most capable multi-modal model with great performance across all tasks, with a 1 million token context window, and built for the era of Agents.
    Input:$0.1 / 1M tokens
    Output:$0.4 / 1M tokens
    Context:1M tokens
    tools
    text
    image
    audio
    video
    text
  • anthropic
    claude-3.7-sonnet
    anthropic
    Intelligent model, with visible step‑by‑step reasoning
    Input:$3 / 1M tokens
    Output:$15 / 1M tokens
    Context:200K tokens
    tools
    text
    text
    image
  • gemini
    gemini-2.0-flash-lite
    gemini
    Google's smallest and most cost effective model, built for at scale usage.
    Input:$0.07 / 1M tokens
    Output:$0.3 / 1M tokens
    Context:1M tokens
    text
    image
    audio
    video
    text

Related AI Model Resources

Explore more AI models, providers, and integration options:

  • Browse All AI Models
  • AI Providers Directory
  • More from xai
  • MCP Servers
  • Integration Documentation
  • Pricing & Plans
  • AI Industry Blog