impulse

Gemma 4 31B IT Thinking

Open weights
API id gemma-4-31b-it-thinking
Input / 1M
$0.15
at LibertAI
Output / 1M
$0.40
at LibertAI
Context window
262K
tokens
Max output
262K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at LibertAI, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.15$0.40

What it costs a month

At LibertAI list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$75.00
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$86.40
  • Coding agent1,000 requests a day, 40K in / 2K out$204
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$456
Use your own numbers

Where to run it

1 host serve Gemma 4 31B IT Thinking. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
gemma-4-31b-it-thinking
$0.15 / $0.40

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
TextImages
Produces
Text
Open weights
License: Gemma License
Runtimes: Ollama, llama.cpp, vLLM

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than LibertAI.

Smaller Google models

No cheaper Google model keeps its key capabilities.

Other frontier labs

  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    6% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    6% less

Open-weight picks

  • Qwen3.8 Flash
    Alibaba Qwen · on AIHubMix
    $0.113 / $0.38
    Has every key capability
    16% less
  • Nemotron 3.5 Super VL
    NVIDIA · on Kyma API
    $0.081 / $0.472
    Has every key capability
    16% less
  • Gemma 4 31B IT
    Google · on W&B Inference
    $0.10 / $0.34
    Has every key capability
    25% less
  • DeepSeek V4.1 Flash
    DeepSeek · on Sail
    $0.09 / $0.30
    Has every key capability
    33% less

Call it

Using LibertAI's API.

Python
from litellm import completion

response = completion(
    model="libertai/gemma-4-31b-it-thinking",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Gemma 4 31B IT Thinking cost?

On LibertAI, Gemma 4 31B IT Thinking costs $0.15 per million input tokens and $0.40 per million output tokens.

Which APIs offer Gemma 4 31B IT Thinking?

Gemma 4 31B IT Thinking runs on 1 API: LibertAI.

What is Gemma 4 31B IT Thinking's context window?

262K tokens, with up to 262K tokens in one reply.

Is Gemma 4 31B IT Thinking being retired?

No retirement date is scheduled for it on any API we track.

What are cheaper alternatives to Gemma 4 31B IT Thinking?

Models that cost less and keep most of what it can do: Claude Haiku 5.5 on Anthropic (6% less), GPT-6 Luna on OpenAI (6% less) and Qwen3.8 Flash on AIHubMix (16% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Gemma 4 31B IT Thinking's API model id?

Use gemma-4-31b-it-thinking with LibertAI.

Sources

Raw catalog entry for gemma-4-31b-it-thinking on LibertAI
{
  "max_input_tokens": 262144,
  "max_output_tokens": 262144,
  "input_cost_per_token": 1.5e-7,
  "output_cost_per_token": 4e-7,
  "litellm_provider": "libertai",
  "mode": "chat",
  "supports_function_calling": true,
  "supports_tool_choice": true,
  "supports_system_messages": true,
  "supports_vision": true,
  "supports_reasoning": true,
  "source": "https://docs.libertai.io/apis/text/"
}