Serverless API
A provider hosts the model and bills per token. Fastest start, zero GPU operations, elastic by default. You accept their models, limits, data terms, and price curve; at sustained volume it is usually the most expensive path.
The decisions to make before anything ships: how the model is hosted, which model and GPU fit the workload, whether the memory math closes, and which serving framework runs it.
A provider hosts the model and bills per token. Fastest start, zero GPU operations, elastic by default. You accept their models, limits, data terms, and price curve; at sustained volume it is usually the most expensive path.
You rent GPUs and run a serving stack (vLLM, SGLang, TensorRT-LLM). Full control over models, versions, and optimizations such as prefix caching or disaggregation, in exchange for real DevOps load: capacity, upgrades, and incident response are yours.
A vendor operates its serving platform inside your cloud account: their control plane, your data plane. Keeps data in your VPC for sovereignty and compliance, uses your credits and committed-use discounts, and reduces egress, while outsourcing most operations.
Your hardware, your data center. Strongest data control and predictable capex; suits steady, high-volume, or regulated workloads. Costs are upfront GPU investment, procurement lead times, hardware aging, and the ops and talent to run it.
Decide on four axes: data privacy and compliance, cost at your actual scale, need for customization (fine-tuned weights, serving-level optimizations), and the operations capacity of your team. Compare options with measured TTFT, throughput, and cost per successful task, not with list prices; the providers page has an evaluation checklist.
Estimate before renting anything. Three consumers share GPU memory:
Then validate with a load test at your real prompt and output lengths, since fragmentation and scheduler behavior move the practical limit below the arithmetic one.
The framework owns batching, KV cache management, streaming, and multi-GPU execution, and most expose an OpenAI-compatible API so applications stay portable.
vLLM and SGLang are the mainstream open-source engines (continuous batching, PagedAttention-style memory management, structured output support). TensorRT-LLM extracts maximum performance on NVIDIA hardware at higher integration cost; LMDeploy emphasizes quantized, high-concurrency serving.
llama.cpp (and Ollama on top of it) covers CPU and single-machine use with GGUF quantization; MLC-LLM compiles models for phones and browsers. These prioritize footprint and portability over aggregate throughput.