I rented an H100 to find out what a shared API was hiding
$13.80 of GPU time · a practical exercise from Chapter 4 of Inference Engineering I'm currently reading Inference Engineering by Philip Kiely (Baseten, 2026), and I'm doing every chapter hands-on, not just reading it. This post is the practical exercise for Chapter 4 (Software) : I took an open model, served it myself on a rented H100 with vLLM, and measured what actually happens when real users…
I rented an H100 GPU to understand the impact of a shared API on an inference model's performance. The exercise was based on Chapter 4 of Philip Kiely's book, Inference Engineering. Inference engineering is the process of optimizing the serving of generative AI models to meet business needs without compromising the quality of the trained weights. The main techniques include batching, quantization, KV caching, parallelism, and disaggregation.
The experiment used vLLM 0.34.0 with 4,096-token context, a batch limit of 64 requests, and a 16 GB H100 GPU on RunPod at $4.40/hour. The theoretical maximum tokens per second was calculated to be 205, but the actual performance varied. On the H100, one user achieved 149 tokens/sec, while through OpenRouter, the same model only delivered 21 tokens/sec.
Batching showed that as the number of users increased from 1 to 64, the total output improved 40×, but each user experienced only an 18% slowdown. The main bottleneck was queueing, consuming about 91% of the wait time.
The results revealed that OpenRouter was hiding important information from users. When the reasoning process was included, the first token appeared in 1.3 seconds instead of 19 seconds. The user also discovered that the model's performance was influenced by factors such as distance from servers, batch size, and GPU cost. The main takeaway was that serving a model on one's own server provides transparency into every millisecond of performance, while shared APIs can mask critical details.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to