Private inference on RTX 5090 - how much saved? — article mark

Private inference on RTX 5090 - how much saved?

Qwen3.8-27B on our traffic: API $1,075.10 vs RTX 5090 at $0.70/h, electricity included, $57.71–$109.07. Saved: $966–$1,017 (90–95%).

Rent now — $0.70/h

Our data

CounterTokensMeaning
Σ generated81.7Moutput tokens (decode)
Σ prompt1.66Ball input tokens sent
Σ prefill225Minput actually computed on our GPU; the other 1.435B (86.4%) was reused from the KV cache
Rental$0.70/hone RTX 5090, electricity included — the only 5090 cost
Token volumes: prompt 1.66 billion, prefill 225 million, generated 81.7 million Token volumes (millions; 0.25 px per 1M) Σ prompt 1,660M Σ prefill 225M (13.6% of prompt) Σ generated 81.7M 20.3 prompt tokens per generated token (1.66B ÷ 81.7M); 95.3% of all tokens are input.
Σ counters from our self-hosted Qwen3.8-27B: prompt 1.66B, prefill 225M, generated 81.7M.

Price per 1M tokens

Per 1M tokensQwen3.8-27B APIRTX 5090 @ $0.70/h5090 throughputSaving
Generated (decode)$3.00$0.68287.4 tok/s77%
Prompt (prefill)$0.50$0.011–$0.0326–18K tok/s94–98%

5090 $ per 1M = $0.70 ÷ (tok/s × 3,600 ÷ 1M) = 194.44 ÷ tok/s. API: Alibaba Cloud Model Studio, qwen3.8-27b, International (Singapore), page updated 2026-10-15. 5090 throughput: vLLM, Qwen3.8-27B NVFP4, MTP@3, 4 concurrent streams.

Price per million tokens: generated, API 3.00 dollars vs RTX 5090 0.68 dollars; prompt, API 0.50 dollars vs RTX 5090 0.011 to 0.032 dollars $ per 1M tokens, Qwen3.8-27B (scale $0–3.00) Generated · API $3.00 Generated · RTX 5090 $0.68 −77% Prompt · API $0.50 Prompt · RTX 5090 $0.011–$0.032 −94–98%
Bar length = $ per 1M tokens (140 px per $1). RTX 5090 fully occupied at $0.70/h.

Our bill: API vs RTX 5090

TokensQwen3.8-27B APIRTX 5090 hoursRTX 5090 @ $0.70/h
Generated81.7M$245.1079.0 h$55.28
Prompt, all prefilled1.66B$830.0025.6–76.9 h$17.93–$53.80
Total, all prompt prefilled$1,075.10104.6–155.8 h$73.21–$109.07
Prompt, measured prefill only225M—3.5–10.4 h$2.43–$7.29
Total, measured prefill only$1,075.1082.4–89.4 h$57.71–$62.57
Saving vs $1,075.10$ saved%
RTX 5090, all prompt prefilled$966.03–$1,001.8990–93%
RTX 5090, measured prefill only$1,012.53–$1,017.3994–95%
Bill for our traffic: Qwen3.8-27B API 1,075.10 dollars (830 prompt plus 245.10 generated); RTX 5090 with all prompt prefilled 109.07 dollars at most; RTX 5090 with only the measured 225 million prefilled 62.57 dollars at most Our bill, USD (0.4 px per $1; RTX 5090 at the slower 6K tok/s prefill) Qwen3.8-27B API prompt $830.00 gen $245.10 $1,075.10 5090 · all prefilled $109.07 −90% 5090 · measured prefill $62.57 −94% generated $55.28 prompt $53.80 / $7.29 At the faster 18K tok/s prefill: $73.21 (all prefilled) and $57.71 (measured prefill).
Stacked bars: generated + prompt cost. API at the official qwen3.8-27b price; RTX 5090 = GPU-hours × $0.70.

Per 1M generated, our prompt mix

Our traffic sends 20.3 prompt tokens per generated token (1.66B ÷ 81.7M).

Per 1M generatedQwen3.8-27B APIRTX 5090 @ $0.70/h
Generated 1M$3.00$0.68
Prompt 20.3M$10.16$0.22–$0.66
Total$13.16$0.90–$1.34 · −90–93%

Limits of this estimate

TL;DR

TL;DR: Qwen3.8-27B per 1M tokens: API $3.00 generated / $0.50 prompt; a fully occupied RTX 5090 at $0.70/h costs $0.68 / $0.011–$0.032. On our traffic (81.7M generated, 1.66B prompt, 225M prefilled) that is $1,075.10 vs $58–$109, a 90–95% saving.

Questions? Let's Chat :)

hardware