# Gemma 4 31B

> Gemma 4 31B (Google) by API: input from $0 and output from $0 per 1M tokens, context up to 262,144 tokens. Price at every host, paid from the balance.

`google/gemma-4-31b-it`, Google

- Context: 262144 tokens
- Max output: 32768 (without max_tokens: 8192)
- Reasoning: Minimal (default minimal)
- Prompt cache: Not supported

## Hosts

A call goes to the default host and is charged at the price of the host that answered. The provider parameter pins the host.

| Host | Input, per 1M tokens | Cache read, per 1M tokens | Output, per 1M tokens |
| --- | --- | --- | --- |
| Google (default, Processes data outside Russia) | $0 | — | $0 |

## How a call is billed

- A call costs the price this page lists for the host that answered it. The exact price comes in the answer's usage.cost.
- Rubles at the Bank of Russia rate on the day of the request.
- Before the call, an estimate by the dearest host of the route is reserved on the balance. After the answer, the actual cost is charged and the rest of the reserve is returned.
- There is no top-up fee, and the unspent remainder is refunded. A refund of a card or SBP top-up withholds the YooKassa fee.

[Samreshuuu Router](https://samreshuuu.com/router)

## Request example

Pass an organization key with the models:write scope in the Authorization header. The same address works with the OpenAI SDK and OpenRouter clients.

```bash
curl https://api.samreshuuu.ru/v1/chat/completions \
  -H "Authorization: Bearer $SAMRESHUUU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemma-4-31b-it","messages":[{"role":"user","content":"Hi! What can you do?"}]}'
```

[Model API documentation](https://samreshuuu.com/docs/model-api)
