Интерфейс моделей ИИ

Gemma 4 31B

google/gemma-4-31b-it

От Google · семейство: gemma · выпуск 2026-04-02 · дата знаний: 2025-01

$0.130
Вход / 1M токенов
$0.380
Выход / 1M токенов
256K
Окно контекста
8K
Макс. вывод

Prices in USD per 1M tokens. Unknown means the provider does not publish per-token pricing.

Возможности

Tool callingРассуждениеСтруктурированный выводВложенияОткрытые весаУправление температурой
Модальности: вход text, image · выход text

Model fit scores

0–100 · higher is better

These scores reward declared capabilities, context size, price and provider availability — they are not benchmark results. Use them as a directional signal alongside your own evaluation.

Coding88
  • Tool calling40/40
  • Structured output20/20
  • Reasoning10/10
  • Context window (100K → 1M)8/20
  • Provider availability10/10
Agents90
  • Tool calling35/35
  • Structured output25/25
  • Reasoning15/15
  • Output token limit5/15
  • Provider availability10/10
JSON / structured output99
  • Structured output / JSON mode50/50
  • Tool calling20/20
  • Temperature control10/10
  • Price-friendly for high-volume19/20
Cost efficiency70
  • Headline price (log-scaled)70/95
  • Has prompt-cache pricing0/5
Long context60
  • Context window (100K → 2M)50/90
  • Has published price for full window10/10
Vision91
  • Accepts image input50/50
  • Context window (10K → 1M)21/30
  • Has published price10/10
  • Provider availability10/10
Production-readiness94
  • Number of independent providers40/40
  • Has published per-token price20/20
  • Context window ≥ 8K15/15
  • No data inconsistencies across providers4/10
  • Official model (not derivative)15/15

Cost Efficiency Index

Open full calculator →

Estimated cost using the recommended provider's headline rate. Each scenario fixes average input/output tokens — the assumptions are shown in the third column.

ScenarioCostAssumption
RAG answer
per 1,000 RAG answers
$0.84
< $0.01 per request
5K input tokens (query + 4 retrieved chunks of ~1K each) and a 500-token answer. Typical SaaS knowledge-base bot.
Support ticket triage
per 10,000 tickets
$1.68
< $0.01 per request
1K input tokens (ticket body + system prompt) and a 100-token JSON classification reply. High-volume customer support.
Data extraction
per 1,000 documents
$0.45
< $0.01 per request
2K input tokens (a single document page) and a 500-token JSON extraction. ETL / invoice / form pipelines.
Code review
per 1,000 PRs
$1.42
< $0.01 per request
8K input tokens (diff + surrounding files) and a 1K-token review comment. PR-bot workloads.
Agent step
per 1,000 steps
$1.79
< $0.01 per request
12K input tokens (long-running tool history) and a 600-token tool-call decision. Cost per agent step.

Детализация цен

Рекомендованная цена от deepinfra · google/gemma-4-31B-it

$0.130
Вход
$0.380
Выход

Самый дешёвый провайдер: nvidia · Unknown вход + Unknown выход

Доступна у 11 провайдеров

ПровайдерID модели провайдераВход / 1MВыход / 1MКонтекстВыпуск
Google
google
gemma-4-31b-itUnknownUnknown256K2026-04-02
OpenRouter
openrouter
google/gemma-4-31b-it$0.140$0.400262K2026-04-02
Vercel AI Gateway
vercel
google/gemma-4-31b-it$0.140$0.400262K2026-04-02
Together AI
togetherai
google/gemma-4-31B-it$0.200$0.500262K2026-04-07
Deep Infra
deepinfra
google/gemma-4-31B-it$0.130$0.380256K2026-04-02
NovitaAI
novita-ai
google/gemma-4-31b-it$0.140$0.400262K2026-04-02
Kilo Gateway
kilo
google/gemma-4-31b-it$0.140$0.400262K2026-04-02
Venice AI
venice
google-gemma-4-31b-it$0.175$0.500256K2026-04-03
Nvidia
nvidia
google/gemma-4-31b-itUnknownUnknown256K2026-04-02
DigitalOcean
digitalocean
gemma-4-31B-it$0.180$0.500256K2026-04-22
Berget.AI
berget
google/gemma-4-31B-it$0.275$0.550128K2026-04-02

Расхождения данных между провайдерами

  • context_window varies: 128000, 256000, 262144
  • release_date varies (span 20d): 2026-04-02, 2026-04-03, 2026-04-07, 2026-04-22
  • modalities varies across offerings

Провайдеры сообщают разные значения для этой модели. Сводка выше использует репрезентативного провайдера; детали — в таблице.

Frequently asked questions

How much does Gemma 4 31B cost?

Gemma 4 31B costs $0.130 per 1M input tokens and $0.380 per 1M output tokens, sourced from deepinfra. Cache reads, audio tokens and >200K-context tiers (where applicable) are listed in the Pricing detail block above.

What is the context window of Gemma 4 31B?

Gemma 4 31B has a context window of 256K tokens, with a max output of 8K tokens per reply. This is the total combined size of prompt + completion.

Does Gemma 4 31B support tool calling?

Yes. Gemma 4 31B supports tool calling (function calling). This makes it suitable for production agent and automation workloads where the model has to invoke external functions reliably.

Does Gemma 4 31B support structured output / JSON mode?

Yes. Gemma 4 31B supports structured output / JSON-schema-constrained decoding. This makes it suitable for production agent and automation workloads where the model has to invoke external functions reliably.

Can Gemma 4 31B accept image input?

Yes. Gemma 4 31B accepts both text and image input. Vision pricing per image is usually billed on top of the regular token rate — check Google's docs for the exact rule.

Is Gemma 4 31B open-weight?

Yes. Gemma 4 31B's weights are publicly available, so you can self-host or fine-tune. Note that open weights ≠ open source — the training data and code are typically not released.

What are the best alternatives to Gemma 4 31B?

If Gemma 4 31B doesn't fit, consider Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 3 Flash Preview. Each one targets the same use case — see the Related links below for direct head-to-head pages.

Where does this data come from?

All numbers come from the public models.dev API and are normalised into a single canonical model record. We re-pull daily and write any changes (price, context, capability) to the /changelog page.

Последнее обновление:

Data is sourced from models.dev and normalized for comparison. Prices and capabilities may change. Always verify critical production decisions with the provider's official documentation.