# Gemma 4 31B It API

Google's Gemma 4 31B It, through an OpenAI-compatible API. Providers quote it on an open exchange, and each request goes to the offer with the lowest estimated charge that meets your rules.

- Providers compete for each request. The exchange ranks the offers that meet your rules by estimated charge. It fixes your maximum charge before the first token, and you pay for the tokens that the model uses.
- The OpenAI and Anthropic APIs. Use the OpenAI or Anthropic SDK that you have. Set the base URL and your key, and send gemma-4-31b-it as the model.
- Your data rules. Send x-liquid-retention: none and only offers whose provider does not keep your content compete for the request.

## Facts

- Model name: gemma-4-31b-it
- Maker: Google
- Context window: 131.1K tokens
- Input price: $0.171 per million tokens
- Output price: $0.483 per million tokens
- Providers: 1 independent provider
- Regions: eu-central

## Providers

- [Greenference](https://liquidinference.ai/providers/dfb068db-7c5c-4676-9f62-5cd86a642db3.md): eu-central, $0.171 input and $0.483 output per million tokens, $0.066 cache read per million tokens, 131.1K tokens of context

## Scores

- HLE: 23.6, #104 of 273
- GPQA: 85.7, #71 of 250
- AA-LCR: 69.7, #120 of 237
- SciCode: 45.5, #78 of 123
- Terminal-Bench Hard: 36.4, #35 of 166
- τ²-Bench: 59.9, #95 of 169
- IFBench: 75.6, #16 of 178

Scores: Artificial Analysis (https://artificialanalysis.ai/)

## Request

```sh
curl https://router.inference.ai.exchange/v1/chat/completions \
  -H "Authorization: Bearer $LIQUID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-4-31b-it",
    "messages": [{"role":"user","content":"Say hello."}]
  }'
```

## Questions

### What is Gemma 4 31B It?

Served by intent-router: each job goes to the cheapest healthy upstream for this model.

### How much does Gemma 4 31B It cost?

Offers now ask $0.171 per million input tokens and $0.483 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.

### What is the context length of Gemma 4 31B It?

The largest offer takes 131,072 input tokens. One job can generate up to 8,192 tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.

### What can Gemma 4 31B It do?

Its providers list JSON object, Frequency penalty, Min-p sampling, Presence penalty, Repetition penalty, Seed, Stop sequences, Top-k sampling, Top-p sampling, Text, Tools.

### What inputs and outputs does Gemma 4 31B It support?

Text → Text.

### Which providers serve Gemma 4 31B It?

1 independent provider quote it now, with 1 offer. The table above ranks them by the cost of a typical job.

### How do I call Gemma 4 31B It?

Send "gemma-4-31b-it" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.

### When was Gemma 4 31B It listed?

The exchange first listed it on 10/8/2026. This is not its release date.

## Related pages

- [This page in a browser](https://liquidinference.ai/models/gemma-4-31b-it)
- [Gemma 4 26B a4b It:thinking](https://liquidinference.ai/models/gemma-4-26b-a4b-it%3Athinking.md)
- [Diffusiongemma](https://liquidinference.ai/models/diffusiongemma.md)
- [Gemma 3 27B It](https://liquidinference.ai/models/gemma-3-27b-it.md)
- [Gemma 3 4B It](https://liquidinference.ai/models/gemma-3-4b-it.md)
- [Gemma 4 12B It Semancer](https://liquidinference.ai/models/gemma-4-12b-it-semancer.md)
- [Gemma 4 12B It](https://liquidinference.ai/models/gemma-4-12b-it.md)
- [Set up a client](https://liquidinference.ai/connect/gemma-4-31b-it)
- [All models](https://liquidinference.ai/models)
- [Providers](https://liquidinference.ai/providers.md)
- [Discover the best model for your budget](https://liquidinference.ai/discover)
- [Quickstart](https://liquidinference.ai/docs/quickstart.md)
- [llms.txt: the index of every page, as Markdown](https://liquidinference.ai/llms.txt)
- [llms-full.txt: every page in one file](https://liquidinference.ai/llms-full.txt)
