Gemma / gemma/gemma-4-31b-it
Gemma 4 31B - access through LLMTR
Gemma 4 31B is Google's open-weight dense model from the Gemma 4 family, built for general-purpose chat, coding, and tool-using assistant workflows that need a large context window. It offers a 262,144-token context window, native tool calling, JSON object mode and JSON Schema structured output. Step-by-step reasoning is available but off by default; turning it on returns the reasoning trace separately from the answer, and reasoning tokens are billed as output. It accepts text and image input at variable aspect ratios and resolutions, and produces text only. There is no separate output ceiling below the context window, and no prompt-cache discount is applied — every request bills at the full input rate.
Same model, other providers: Creekside Compute · Creekside Compute (free)
Technical specifications
| Canonical ID | gemma/gemma-4-31b-it |
|---|---|
| Provider | Gemma |
| Context window | 262,144 tokens |
| Operations | CHAT_COMPLETIONS |
| Modalities | text, image |
Pricing
An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.
| Operation | Metric | Unit | Price |
|---|---|---|---|
| CHAT_COMPLETIONS | INPUT_TEXT | PER_1M_TOKENS | $0.140000 |
| CHAT_COMPLETIONS | OUTPUT_TEXT | PER_1M_TOKENS | $0.400000 |
Example usage
With existing OpenAI SDK flows, change only the base URL and model identifier.
curl https://llmtr.com/v1/chat/completions -H "Authorization: Bearer llmtr-your_key" -H "Content-Type: application/json" -d '{"model":"gemma/gemma-4-31b-it","messages":[{"role":"user","content":"Hello"}]}'
Guides about this model
- SEA-LION v4.5 vs Gemma 4 31B vs Qwen3.8 27B for Southeast Asia - All three models are called on LLMTR through /v1/chat/completions with the same API key. Qwen-SEA-LION-v4.5-27B-IT costs $0.60 input and $3.60 output per 1M tokens and offers an 8,192-token window. Gemma 4 31B costs $0.14 and $0.40, Qwen3.8 27B $0.40 and $2.40; both offer a 262,144-token context, tool calling and image input.
- An EVREN alternative: the same OpenAI code, a two-line switch to LLMTR - Compares EVREN and LLMTR through the same OpenAI SDK code: the two lines that change, the LLMTR catalog counterparts of EVREN's models and their prices, context differences on the same models, and when each service makes sense.
Related models
- Gemma 4 26B A4B gemma/gemma-4-26b-a4b-it
- Gemma 4 llmtr/gemma-4
- Qwen 3.6 35B-A3B llmtr/qwen3-6-35b
- Qwen 3.8 27B llmtr/qwen3-8-27b
- Trendyol Asure 12B llmtr/trendyol-asure-12b
- Magibu 11B v8 llmtr/magibu-11b-v8
- Muse Glimmer 30B (Turkey) llmtr/muse-glimmer-30b-tr
- Leyla llmtr/leyla