google/gemma-4-31b
estimated usage cost
$1.735
1,000 requests × (1,000 uncached input × $0.99 + 500 output × $1.49) / 1,000,000 = $1.735
base rates; no context pricing tiers are published.
rates, context and capabilities side by side on the impossibl api, and what the same workload costs on each.
| specification | Gemma 4 31B google/gemma-4-31b | Qwen3.8 Flash qwen/qwen3.8-flash |
|---|---|---|
| input · usd / 1m tok | $0.99 | $0.15 |
| output · usd / 1m tok | $1.49 | $0.47 |
| context window | 128ktokens | 1mtokens |
| modalities · in → out | takes text and image in, gives text out | takes text and image in, gives text out |
| base api rates · usd per 1m tokens | Gemma 4 31B google/gemma-4-31b | Qwen3.8 Flash qwen/qwen3.8-flash |
|---|---|---|
| input | $0.99 | $0.15 |
| output | $1.49 | $0.47 |
| cache read | not published | $0.016 |
| cache write · default ttl | not published | $0.20 |
the estimate below prices one workload at these rates on every model.
| as published | Gemma 4 31B google/gemma-4-31b | Qwen3.8 Flash qwen/qwen3.8-flash |
|---|---|---|
| creator | Qwen | |
| model type | Text generation | Text generation |
| context window | 128,000tokens | 1,000,000tokens |
| input | takes text and image in, gives text out | takes text and image in, gives text out |
| output | text | text |
| tool calling | not verified | not verified |
| released | apr 2, 2026 | not published |
| endpoint | /v1/chat/completions | /v1/chat/completions |
unknown means the public catalog does not establish that fact. a model's documented capabilities can differ from what a particular api supports. see the model documentation for integration details.
| primary configuration | Gemma 4 31B google/gemma-4-31b reasoning | Qwen3.8 Flash qwen/qwen3.8-flash no benchmarks yet |
|---|---|---|
| intelligence index · gateway rank | 15.4#66 of 90 | not measured |
| coding index | 43.4#44 of 60 | not measured |
| agentic index | 6.7#43 of 49 | not measured |
| omniscience | -47.9#78 of 86 | not measured |
| gpqa | 85.7%#48 of 88 | not measured |
| humanity’s last exam | 23.6%#56 of 89 | not measured |
| terminal-bench v2.1 | 43.4%#44 of 57 | not measured |
| ifbench | 75.6% | not measured |
| mmmu-pro | 73.4% | not measured |
| aa-lcr | 69.7% | not measured |
| tau2 | 59.9% | not measured |
| harvey lab | 47.2% | not measured |
| scicode | 45.5% | not measured |
| itbench | 37.3% | not measured |
| terminal-bench hard | 36.4% | not measured |
| tau banking | 14.8% | not measured |
| gdp.pdf all-pass | 6.0% | not measured |
| automationbench partial | 4.9% | not measured |
| critpt | 1.4% | not measured |
| terminal-bench v4.0 | 0.0% | not measured |
each column describes the tested configuration named under the model; performance and costs can differ on impossibl. a score one model was not measured on is left blank rather than scored zero. indices are ranked against every model on the gateway with one. last checked 2026-09-11.
one token workload, priced on every model at the published rates, in usd. change the numbers to match yours.
google/gemma-4-31b
estimated usage cost
$1.735
1,000 requests × (1,000 uncached input × $0.99 + 500 output × $1.49) / 1,000,000 = $1.735
base rates; no context pricing tiers are published.
qwen/qwen3.8-flash
estimated usage cost
$0.385
1,000 requests × (1,000 uncached input × $0.15 + 500 output × $0.47) / 1,000,000 = $0.385
base rates; no context pricing tiers are published.
estimates use published impossibl api usage rates. configured billing adjustments, funding fees, taxes, and custom workspace rates are excluded and may change the final amount.
image and audio usage, cache creation, and additional tool charges are excluded. reasoning tokens count as billable output, even when they are not visible in the response.
Gemma 4 31B and Qwen3.8 Flash are available through the Impossibl API. they share the /v1/chat/completions endpoint; the model identifier selects the model for a request.
Gemma 4 31B is created by Google. It has a 128,000-token context window. Base API pricing (USD): $0.99 per million input tokens; $1.49 per million output tokens.
Qwen3.8 Flash is created by Qwen. It has a 1,000,000-token context window. Base API pricing (USD): $0.15 per million input tokens; $0.47 per million output tokens.
this page compares Gemma 4 31B vs Qwen3.8 Flash as listed by the impossibl public api. prices and availability come from that catalog, refreshed here every five minutes. this is an impossibl offering, not a comparison of independent hosting-provider quotes.
view the source catalog ↗comparison as markdown ↗report a correction →