# Gemma (latest)

> Always resolves to the newest live Gemma model — currently Gemma 4 31B (google/gemma-4-31b). Gemma 4 31B is Google's open-weight dense open reasoning model for complex reasoning, agentic workflows, coding, and multimodal understanding. It takes text and image input and generates text. It supports tool calling and a thinking mode.

**ID**: `google/gemma-latest`  
**Creator**: Google  
**Category**: text  
**Context**: 262K tokens  
**Family alias**: always resolves to the newest live family member — currently [`google/gemma-4-31b`](https://anyrouter.dev/model/google/gemma-4-31b). Specs below are google/gemma-4-31b's.  
**Fallback order**: `google/gemma-4-31b` → `google/gemma-4-26b-a4b-it` → `google/gemma-3-4b-it`  
**Pricing**: $0.01 / $0.04 per 1M · billed by your provider (BYOK)  
**Released**: 2026-06-03  
**Links**: [Weights on Hugging Face](https://huggingface.co/google/gemma-4-31B-it) · [Announcement](https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/) · [Paper](https://arxiv.org/abs/2607.02770)  
**Web page**: https://anyrouter.dev/model/google/gemma-latest

**Input modalities**: text, image  
**Output modalities**: text  

**Tokenizer**: Gemma

**Capabilities**: chat, reasoning, streaming, function-calling, vision, thinking

**Aliases**: `google/gemma-4-31b-it`, `google/gemma-4-31b-it:free`, `google/gemma-4-31b:free`

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/gemma-latest",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| aihubmix-byok | $0.20/M (list) | $0.40/M (list) |
| aihubmix-byok | $0.01/M (list) | $0.04/M (list) |
| ollama-byok | $0.14/M (list) | $0.40/M (list) |
| openrouter-byok | $0.01/M (list) | $0.04/M (list) |
| openrouter-byok | $0.01/M (list) | $0.04/M (list) |
| google-aistudio-byok | $0.01/M (list) | $0.04/M (list) |
| fpt-byok | $0.15/M (list) | $0.45/M (list) |
| respan-byok | $0.01/M (list) | $0.04/M (list) |
| nousresearch-byok | $0.20/M (list) | $0.40/M (list) |
| infron-byok | $0.09/M (list) | $0.34/M (list) |
| llmgateway-byok | $0.10/M (list) | $0.25/M (list) |
| zenmux-byok | $0.14/M (list) | $0.40/M (list) |
| inferx-byok | $0.01/M (list) | $0.04/M (list) |
| orcarouter-byok | $0.01/M (list) | $0.04/M (list) |
| gmicloud-byok | $0.01/M (list) | $0.04/M (list) |
| huggingface-byok | $0.01/M (list) | $0.04/M (list) |
| siliconflow-byok | $0.01/M (list) | $0.04/M (list) |
| aimlapi-byok | $1.05/M (list) | $1.58/M (list) |
| novita-byok | $0.14/M (list) | $0.40/M (list) |
| phala-byok | $0.15/M (list) | $0.46/M (list) |
| requesty-byok | $0.01/M (list) | $0.04/M (list) |
| vercel-byok | $0.14/M (list) | $0.40/M (list) |
| nano-gpt-byok | $0.01/M (list) | $0.04/M (list) |
| edenai-byok | $0.01/M (list) | $0.04/M (list) |
| abacus-byok | $0.01/M (list) | $0.04/M (list) |
| fluence-byok | $0.14/M (list) | $0.41/M (list) |
| cortecs-byok | $0.01/M (list) | $0.04/M (list) |
| poe-byok | $0.01/M (list) | $0.04/M (list) |
| kenari-byok | $0.01/M (list) | $0.04/M (list) |
| kt-byok | $0.10/M (list) | $0.34/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Benchmarks

- **GPQA Diamond**: 0.8
- **HLE**: 0.1
- **τ²-Bench Telecom**: 0.7
- **SciCode**: 0.4

## Model card

- License: Apache-2.0, open weights (https://huggingface.co/google/gemma-4-31B-it) [1]

### Links

- announcement: https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/
- model card: https://huggingface.co/google/gemma-4-31B-it
- paper: https://arxiv.org/abs/2607.02770

### Sources

1. [Gemma 4 31B model card](https://huggingface.co/google/gemma-4-31B-it) (accessed 2026-11-11)
2. [Gemma 4: Our most capable open models to date](https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/) (accessed 2026-11-11)

## Source

- Upstream docs: https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/
