What this benchmark helps you decide

A provider's hourly GPU price describes the rental. Workload evidence reveals how much useful output that hour can produce, how quickly a user receives a response and when a managed API becomes the better-value option. Those questions matter to teams choosing how to serve a model and to budget owners forecasting the traffic needed to justify dedicated hardware.

Renting a GPU creates a time-based bill. A lightly used GPU can hold the same model and incur the same hourly rate as a busy one, while producing far fewer tokens. Batching lets one pass through the model weights serve several active requests, which can improve throughput and reduce attributed cost per token. Queueing and prefill work can also increase response latency as load rises.

This field test measures that trade-off on one rented A40. It connects the concepts in the model-serving guide to a reproducible workload and a visible rental-cost formula.

Why I ran this test

A small open model like Qwen2.5-7B costs a fraction of a cent per request through a managed API. So the question was simple: when, if ever, is it cheaper to rent your own GPU and serve the model yourself? I wanted evidence beyond price pages, so I measured it.

  • Why the A40: its 48 GB holds the model's weights (about 14.5 GiB in BF16) with plenty left for many requests at once; vLLM reported room for roughly 506,000 tokens of KV cache after loading. It is also one of the cheapest data-centre GPUs on neocloud marketplaces, and the kind of card a small team would actually rent.
  • Why Qwen2.5-7B-Instruct: a widely used open model that is also sold as a managed API, so the self-hosted and API costs compare like for like.
  • Why vLLM: the most widely used open-source serving engine, which makes it the baseline the other engines in the research matrix are measured against.

Test setup

Hardware, model, engine and traffic assumptions used for every valid benchmark run.
Provider and locationRunPod Secure Cloud, on-demand, CA-MTL-1
GPU and cost basisNVIDIA A40 48 GB at a rounded $0.60 per hour
ModelQwen/Qwen2.5-7B-Instruct in BF16
Serving enginevLLM 0.34.0 in a uv virtual environment
Request shape512 input tokens and 256 output tokens
Load generationvllm bench serve on the same Pod as the server, using random prompts

The $0.60 hourly basis is the total RunPod showed when the Pod was deployed: $0.59 for the GPU plus $0.007 for container disk. RunPod's own billing record for the Pod agrees: $0.6975 of GPU time and $0.0081 of disk, $0.7056 in total for about 1.2 hours, which is consistent with those hourly rates. The billing record is in the downloads below, with the Pod ID removed.

Repeatability: my recorded corroboration

The full sweep ran twice with identical settings. Only the second sweep has raw JSON exports and checksums, and it supplied the tables on this page. I recorded the first sweep as corroboration: terminal output captured at the time, rather than independently inspectable data. It produced output throughput of 35.19, 263.00, 861.85 and 1,438.80 tokens per second at concurrency 1, 8, 32 and 64, within 1% of the second at every level. Its raw JSON exports are not published because a later failed rerun overwrote one of them, so the first sweep is preserved as the terminal output captured at the time.

Benchmark results

Swipe or scroll horizontally to inspect every latency and cost field.

Measured throughput and latency from the second sweep, with a warm prefix cache, and with attributed GPU rental cost calculated from the rounded hourly rate. The $ columns show attributed GPU cost per 1M output tokens and per 1,000 requests. Each request used 512 input and 256 output tokens.
ConcurrencyRequestsOutput tok/sMedian TTFTp99 TTFTMedian TPOTp99 ITL$ / 1M output (derived)$ / 1K requests (derived)
15035.2107 ms129 ms28.1 ms29.8 ms$4.74$1.21
880262.9151 ms604 ms29.4 ms33.2 ms$0.63$0.16
32320862.9830 ms1,387 ms34.8 ms274 ms$0.19$0.049
646401,449.2665 ms3,116 ms38.9 ms293 ms$0.12$0.029

All valid runs completed with zero failed requests. At concurrency 64, throughput reached about 1,449 output tokens per second while median time per output token remained below 39 milliseconds. The latency distribution widened, especially for time to first token and inter-token latency.

What these figures include: a warm prefix cache

Every load level in this test reused the prompts of the level before it, and the second sweep, which supplies the table above, repeated the first exactly. vLLM's prefix caching was on by default, so much of the prompt processing in the published run was served from cache. The figures describe a warm cache, not traffic in which every prompt is new.

A later A40 run measured warm and cold on one card: a cold sweep with new prompts at every level on a freshly started server, then this test's warm method. At concurrency 64, vLLM's cold throughput was 16% below its first warm sweep, and at concurrency 1 there was no difference. On that card the second warm sweep was 21% faster again, most likely because it found more of the first sweep's prompts in cache; on the card in this test the two sweeps were within 1%, so the 16% figure is the better guide. Applied to this result, cold traffic at full load would cost about $0.14 per million output tokens rather than $0.12.

That later A40 was about 20% faster than the card in this test, most likely because it had ECC memory protection off, so use the percentage change rather than its absolute figures. The RTX 6000 Ada vs A40 comparison covers that difference, and the same-card A40 run notes hold the data.

The inter-token latency spikes at 32 and 64 held with cold prompts: 269 and 286 milliseconds p99 on the later A40, and 277 and 287 on an RTX 6000 Ada. The cost curve still falls with load; the break-even moves up with it.

The warm and cold runs, with the engines' own cache counters, are in the prefix-cache check notes and its summary CSV.

Why the slowest tokens slowed down at 32 and 64

The median time per output token rose gently, from 28 to 39 milliseconds. The p99 inter-token latency did not. It stayed near 30 to 33 milliseconds at concurrency 1 and 8, then jumped to 274 milliseconds at 32 and 293 milliseconds at 64.

That pattern is consistent with how vLLM schedules work. When a new request arrives, its prompt has to be processed (prefill) before it can generate tokens. With chunked prefill, vLLM splits that prompt work into chunks and batches them with decode requests, the steps that generate tokens for requests already running. At high concurrency, new requests arrive constantly, so some generation steps carry a large prefill chunk and take far longer. Most tokens arrive on time; a small share arrive after a visible pause.

For a chat interface, those pauses show up as stutter mid-reply. For batch work they rarely matter. This test did not trace individual scheduler steps, so the explanation is the most likely cause rather than a measured one. Prefill and decode settings, such as the chunked-prefill token budget, are the levers a future test can vary.

Self-hosted or API: where the break-even sits

The same model was offered as a managed API. On 20 November 2026, I recorded a list price on the OpenRouter model page of $0.10 per million input tokens and $0.20 per million output tokens. That price cannot currently be reproduced: when re-checked later the same day, the model page showed no price and OpenRouter's endpoints API listed no active providers for the model. Treat it as my recorded reference rate, rather than a current quote. At 512 input and 256 output tokens, one request costs about $0.0001, or $0.10 per 1,000 requests. Comparing per request keeps input and output tokens in the same basis for both options.

Swipe or scroll horizontally to compare every column.

Cost per 1,000 requests on the rented A40 at each measured load, derived from measured throughput, against the API price recorded on 20 November and a modelled lower API price.
ConcurrencyReq/sSelf-hosted (derived)API (recorded 20 Nov)API lower (modelled)Cheaper
10.14$1.21$0.10$0.046API
81.03$0.16$0.10$0.046API
323.37$0.049$0.10$0.046Depends on rate
645.66$0.029$0.10$0.046Self-hosted
break-even requests per second = hourly GPU cost ÷ (API cost per request × 3,600)

At the recorded price, the break-even is about 1.6 requests per second, sustained around the clock. That is roughly 4.2 million requests a month. Below it, the API is cheaper; above it, the rented GPU is. The lower price column models a rate of $0.04 input and $0.10 output per million tokens, which moves the break-even to about 3.6 requests per second, which is why concurrency 32 sits on either side of the line depending on the rate. API prices for open models change often, so the break-even should be recalculated against the current rate.

Two cautions apply. The self-hosted figures assume the GPU holds that load for every hour it is rented; idle hours still cost $0.60 each, while an API charges nothing between requests. The comparison also leaves out the engineering time to run and monitor a server, which the API price already covers.

How the attributed cost was calculated

hourly GPU cost × 1,000,000 ÷ (output tokens per second × 3,600)

This figure answers a narrow question: how much rented GPU time was attached to one million output tokens during each run. A production cost model also includes storage, transfer, cold starts, idle capacity, retries, observability and engineering work. The methodology explains how published, modelled and measured evidence stays distinct.

What this first result can support

  • Capacity planning should connect expected concurrency to both throughput and latency targets, including the p99 values.
  • Self-hosting a small model pays only when sustained traffic clears the break-even against the current API price.
  • A larger GPU memory pool creates room for model weights, the KV cache and concurrent requests. Use the GPU memory estimator to examine model fit before choosing hardware.
  • Provider comparison should combine the hourly rate with measured useful output. The GPU catalogue supplies the published-price starting point.

Evidence boundary

The result covers one GPU type, one model, one engine and synthetic random prompts with fixed lengths. More requests per run will strengthen high-percentile latency analysis. The load generator ran on the same Pod as the server and shared its CPU, which may have added a small amount of latency at the highest concurrency. Prompts repeated across load levels and sweeps, so the figures include a warm prefix cache. The API comparison uses a list price on one date, not a measured API run. A future series will compare shared-prefix traffic and additional serving engines on the same hardware and request shape.

The next cost question is how the provider turns elapsed time into a charge. Read GPU billing explained to compare billing increments, minimum charges and stop events.

Where this test sits in the research

This was the first cell in a matrix that tests serving engines against GPUs, with the model, request shape and cost formula held fixed. The A40 column is now complete:

Where this field test sits: serving engines against GPUs. Published cells link to their reports.
Serving engineNVIDIA A40 48 GBNVIDIA RTX 6000 Ada 48 GB
vLLMThis testField test 004
SGLangField test 002Field test 005
TensorRT-LLMField test 003Field test 006
See why the programme exists and what stays fixed

Frequently asked questions about this benchmark

What did this vLLM A40 benchmark measure?

It measured output throughput, time to first token, time per output token and inter-token latency while Qwen2.5-7B-Instruct ran through vLLM on one rented NVIDIA A40. The four valid load levels used concurrency 1, 8, 32 and 64 with the same 512-token input and 256-token output shape.

Why did higher concurrency reduce the attributed cost?

The A40 kept the same rounded hourly rental basis while a busier serving engine produced more output each second. Batching spread that fixed rental time across more requests, moving the derived GPU cost from $4.74 to $0.12 per million output tokens across the measured sweep.

When was the rented GPU cheaper than the API?

Using the OpenRouter list price I recorded on 20 November 2026, which cannot currently be reproduced, the modelled break-even was about 1.6 requests per second sustained around the clock. In this sweep, the API was cheaper at the two lower load levels, the answer depended on the API rate at concurrency 32, and the rented A40 was cheaper at concurrency 64.

What latency trade-off appeared as concurrency increased?

Median time per output token moved from about 28 to 39 milliseconds, while p99 time to first token reached about 3.1 seconds at concurrency 64. This means higher throughput improved the unit economics while the slowest requests waited longer to begin and some tokens arrived after a visible pause.

Did the prefix cache affect the results?

Yes, at the higher loads. The test reused prompts, so vLLM's prefix caching served much of the prompt processing. Measured warm and cold on one later A40, throughput at concurrency 64 was 16% lower with new prompts than in the first warm sweep, with no difference at concurrency 1. Applied to this result, full-load cost rises from about $0.12 to $0.14 per million output tokens.

Which costs are included in the self-hosted figures?

The calculation attributes a rounded $0.60 hourly GPU rental to the measured output. A complete production comparison also needs storage, transfer, idle hours, cold starts, retries, observability and engineering work, so the figures are a focused GPU-time comparison rather than a complete operating bill.

Can this result be applied to another model or GPU?

Use it as a reference point and repeat the test for the intended model, GPU, prompt shape and serving configuration. Model size, precision, memory bandwidth, KV-cache demand, traffic shape and engine settings can all change throughput, latency and break-even cost.

Download and inspect the evidence

Questions and corrections can be sent to data@compareaicost.com.

Continue through the research