---
title: "OpenRouter SLM Benchmark Index: GLM 5.4 vs Ergo vs Hydrogen"
slug: "openrouter-slm-benchmark-index-glm-5-4-ergo-hydrogen"
description: "Benchmark index comparing GLM 5.4, Amazon Ergo, and Gemini Hydrogen on OpenRouter: 1M context windows, KV-cache memory, pricing, and routing tradeoffs."
author: "Hamdi Soudani"
category: "ai-llms"
archetype: "benchmark-index"
published_at: "2026-12-02T10:04:50.536+00:00"
updated_at: "2026-12-02T10:04:50.650372+00:00"
canonical_url: "https://pyvren.com/blog/openrouter-slm-benchmark-index-glm-5-4-ergo-hydrogen"
reading_time_minutes: 4
word_count: 787
quality_score: 94
tags: ["openrouter","slm-benchmark","long-context","kv-cache","llm-pricing"]
keywords: ["openrouter slm benchmark index","amazon ergo 1m context pricing","gemini hydrogen kv-cache memory","openrouter long context routing cost","llm context window comparison 2026"]
sources: ["https://openrouter.ai/compare/amazon/ergo-1.0","https://openrouter.ai/compare/~google/gemini-hydrogen-latest","https://benchlm.ai/compare/amazon-ergo-vs-gpt-5-4-nano"]
---

# OpenRouter SLM Benchmark Index: GLM 5.4 vs Ergo vs Hydrogen

> **TL;DR:** Amazon Ergo and Gemini Hydrogen both offer 1M context windows on OpenRouter at $0.90/$2.70 and $1.50/$7.50 per 1M tokens respectively; GLM 5.4 lacks verified OpenRouter pricing in the provided sources.

## Key Facts

- **Amazon Ergo context window:** 1,048,576 tokens ([source](https://openrouter.ai/compare/amazon/ergo-1.0))
- **Amazon Ergo pricing:** $0.90/M input tokens, $2.70/M output tokens ([source](https://openrouter.ai/compare/amazon/ergo-1.0))
- **Gemini Hydrogen context window:** 1,048,576 tokens ([source](https://openrouter.ai/compare/~google/gemini-hydrogen-latest))
- **Gemini Hydrogen pricing:** $1.50/M input tokens, $7.50/M output tokens ([source](https://openrouter.ai/compare/~google/gemini-hydrogen-latest))
- **Amazon Ergo vs GPT-5.4 nano shared benchmarks:** 0 shared sourced benchmark rows ([source](https://benchlm.ai/compare/amazon-ergo-vs-gpt-5-4-nano))

This benchmark index compares three SLM-class models available through OpenRouter: GLM 5.4, Amazon Ergo, and Gemini Hydrogen. All three target long-context workloads, but only Amazon Ergo and Gemini Hydrogen have verified public listings on OpenRouter with concrete pricing and context-window data. GLM 5.4 appears in the topic scope but lacks a verified OpenRouter compare page in the provided primary sources, so its metrics are excluded from the quantitative table rather than estimated.

## Benchmark Verdict & Cost Math

Amazon Ergo is the cheaper long-context option on OpenRouter. At $0.90 per 1M input tokens and $2.70 per 1M output tokens, it undercuts Gemini Hydrogen, which lists $1.50 per 1M input and $7.50 per 1M output. For a 1M-token context fill, Ergo input costs $0.90 versus Hydrogen's $1.50. Output-heavy workloads widen the gap: generating 500K tokens costs $1,350 on Ergo versus $3,750 on Hydrogen. These are list prices through OpenRouter routing and do not include potential egress, routing surcharges, or volume discounts negotiated directly with providers.

The pricing delta matters most for KV-cache resident workloads. A 1M-context prompt held in cache across multiple turns amortizes input cost but still charges output tokens on every generation. Teams running retrieval-augmented generation with large system prompts should model output volume carefully, because Hydrogen's output rate is nearly triple Ergo's.

## Model / Runtime Quantitative Comparison Table

| Model | Provider | Context Window | Input Price / 1M | Output Price / 1M | OpenRouter Verified |
|---|---|---|---|---|---|
| Amazon Ergo | Amazon | 1,048,576 tokens | $0.90 | $2.70 | Yes |
| Gemini Hydrogen Latest | Google | 1,048,576 tokens | $1.50 | $7.50 | Yes |
| GLM 5.4 | Not verified in sources | Not verified | Not verified | Not verified | No |

Methodology notes: Pricing and context-window figures come directly from OpenRouter model compare pages for Amazon Ergo and Gemini Hydrogen Latest. GLM 5.4 has no deep primary source in the provided dossier confirming OpenRouter availability, pricing, or context length, so it is listed as unverified rather than fabricated. BenchLM's comparison of Amazon Ergo versus GPT-5.4 nano reports zero shared sourced benchmark rows, meaning no head-to-head accuracy verdict exists between those models.

## Context Window & Memory Bottlenecks

Both Amazon Ergo and Gemini Hydrogen advertise 1,048,576 token context windows. At FP8 KV-cache precision, a 1M-token context with a typical 4096-dimensional hidden state and 32 layers consumes roughly 64 GB of KV-cache memory before activations and overhead. At Q4_K_M quantization, that footprint drops to approximately 32 GB, but quantization introduces accuracy degradation that varies by task. These are architectural estimates; the OpenRouter compare pages do not publish per-model KV-cache layout, layer count, or hidden dimension, so exact VRAM requirements cannot be derived from the primary sources.

Context rot becomes a real operational risk past 256K tokens for many SLMs, even when the advertised window is 1M. Attention dilution, lost-in-the-middle effects, and KV-cache eviction under memory pressure can degrade retrieval accuracy long before the hard token limit. Teams should benchmark needle-in-haystack recall at 128K, 512K, and 1M tokens before committing to a long-context production path.

KV-cache OOM is the dominant failure mode at 1M context. If concurrent requests each hold multi-hundred-KB cache entries, GPU memory fills quickly. vLLM and SGLang use paged attention to fragment KV-cache blocks, but a burst of long-context requests can still trigger out-of-memory errors or eviction of older cache entries, increasing TTFT on cache misses. llama.cpp offloads to system RAM when VRAM is exhausted, trading latency for capacity.

## Reproducible Inference / Routing Config

OpenRouter routes requests through a unified API. The following example targets Amazon Ergo with a 1M-token context budget and output cap:

```bash
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "amazon/ergo-1.0",
    "messages": [{"role": "user", "content": "<1M-token prompt>"}],
    "max_tokens": 4096,
    "temperature": 0.2
  }'
```

For Gemini Hydrogen, substitute the model identifier with `~google/gemini-hydrogen-latest`. Routing through OpenRouter adds a network hop and potential queueing latency compared to direct provider endpoints. TTFT depends on OpenRouter's upstream routing layer, model load, and whether the KV cache is warm. No TTFT or tokens-per-second figures are published on the OpenRouter compare pages, so latency benchmarks must be measured in your own deployment.

## Selection Rubric by Workload

Choose Amazon Ergo for cost-sensitive, input-heavy long-context workloads such as document summarization, codebase indexing, and RAG with large system prompts. Its lower input and output rates reduce per-request cost at 1M context. Choose Gemini Hydrogen only when output quality justifies the 2.8x output premium, or when specific Google ecosystem integration is required. GLM 5.4 cannot be recommended or ruled out on OpenRouter without verified pricing, context window, and benchmark data.

When NOT to use this: Do not deploy either model at 1M context without measuring KV-cache memory under concurrent load. Do not rely on benchmark accuracy claims for Amazon Ergo versus GPT-5.4 nano, because BenchLM reports zero shared sourced benchmark rows. Do not assume OpenRouter routing latency matches direct provider inference; measure TTFT and throughput in staging.

[Amazon Ergo compared to other AI models | OpenRouter](https://openrouter.ai/compare/amazon/ergo-1.0)

[Gemini Hydrogen Latest compared to other AI models | OpenRouter](https://openrouter.ai/compare/~google/gemini-hydrogen-latest)

[Amazon Ergo vs GPT-5.4 nano | BenchLM](https://benchlm.ai/compare/amazon-ergo-vs-gpt-5-4-nano)

## Frequently Asked Questions

### What is the context window for Amazon Ergo and Gemini Hydrogen?

Both models support a 1,048,576 token context window on OpenRouter.

### How much does Amazon Ergo cost per 1M tokens on OpenRouter?

$0.90 per 1M input tokens and $2.70 per 1M output tokens.

### How much does Gemini Hydrogen cost per 1M tokens on OpenRouter?

$1.50 per 1M input tokens and $7.50 per 1M output tokens.

## Primary Sources

- https://openrouter.ai/compare/amazon/ergo-1.0
- https://openrouter.ai/compare/~google/gemini-hydrogen-latest
- https://benchlm.ai/compare/amazon-ergo-vs-gpt-5-4-nano
