Simulating realistic Data extraction & tagging parameters (2,000 in / 250 out with 20% cache reuse). Gemma 4 31B Instruct delivers a 4% cost reduction over Codestral 2508 (OpenRouter).
| Traffic Volume Tier | Gemma 4 31B Instruct Monthly | Codestral 2508 (OpenRouter) Monthly | Monthly Savings by picking Gemma 4 31B Instruct |
|---|---|---|---|
| 1,000 reqs/mo (Dev/Testing) | $0.6875 | $0.717 | Save $0.0295 / mo |
| 10,000 reqs/mo (Small App) | $6.875 | $7.17 | Save $0.295 / mo |
| 100,000 reqs/mo (Growth Production) | $68.75 | $71.70 | Save $2.95 / mo |
| 1,000,000 reqs/mo (Scale SaaS) | $687.50 | $717.00 | Save $29.50 / mo |
Gemma 4 31B Instruct is 4% cheaper for Data extraction & tagging workloads. At standard Data extraction & tagging parameter ratios (2,000 input tokens, 250 output tokens, 20% cache hit), Gemma 4 31B Instruct costs $0.000688 per request compared to $0.000717 on Codestral 2508 (OpenRouter).
Gemma 4 31B Instruct offers a context window of 128,000 tokens (max output: 8,192), while Codestral 2508 (OpenRouter) offers 256,000 tokens (max output: 204,800).
At 100,000 requests per month, using Gemma 4 31B Instruct saves $2.95 every month (or $35.40 annually) compared to Codestral 2508 (OpenRouter).
Volume makes nano-tier models attractive — extraction rarely needs frontier reasoning. Constrain output with JSON schema modes to avoid retry loops on malformed responses. Cache shared schema instructions and few-shot examples across calls.