# Gemma (latest)

> Always resolves to the newest live Gemma model — currently Gemma 4 31B (google/gemma-4-31b). Gemma 4 31B is Google's dense frontier-level open reasoning model, optimized for complex reasoning, agentic workflows, coding, and multimodal understanding.

**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`  
**Pricing**: $0.10 / $0.34 per 1M · billed by your provider (BYOK)  
**Released**: 2026-06-03  
**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.10/M (list) | $0.34/M (list) |
| ollama-byok | $0.10/M (list) | $0.34/M (list) |
| openrouter-byok | $0.10/M (list) | $0.34/M (list) |
| openrouter-byok | $0.10/M (list) | $0.34/M (list) |
| google-aistudio-byok | $0.10/M (list) | $0.34/M (list) |
| hue | $0 | $0 |

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
