Cloud inference
Where to rent GPUs — or skip them for a managed API
Three product shapes solve “I need inference”: rent a GPU and run your stack, use serverless GPU functions, or call a managed model API. Pick the shape first; then compare providers inside it.
GPU marketplace
You choose the card and image. Best when control and $/hour matter more than an API SLA.
Serverless GPU
You ship code; the platform scales hardware. Best for bursty jobs without babysitting VMs.
Managed inference API
You pay for tokens or predictions. Best when time-to-product beats owning the serving stack.
Start here
Pick the path before you pick the logo
Most bad shortlists mix a marketplace pod, a serverless function, and a token API as if they were the same product.
Rent a GPU (marketplace / cluster)
When: You need a specific SKU, custom serving stack, or sustained utilization that beats token APIs.
Next: Start with RunPod or Vast.ai for flexible rental; size VRAM on /gpus first. Remember stop ≠ terminate — tear down storage when the experiment ends.
Serverless GPU functions
When: Work arrives in bursts, your code is container-shaped, and you refuse to babysit VMs overnight.
Next: Compare Modal and Fal.ai against cold-start tolerance for your workload; treat DGX Cloud Lepton as NVIDIA marketplace capacity, not a Modal clone.
Managed inference API
When: You want tokens or predictions tomorrow, not CUDA drivers — and the model is already on a catalog.
Next: Shortlist Together, Fireworks, Groq, Replicate, Hugging Face Endpoints, or Baseten by model fit and latency.
Buy local hardware instead
When: Privacy, offline use, or always-on personal inference makes cloud rental look like a subscription you cannot pause.
Next: Use the /gpus capacity tables and GPU finder before you rent indefinitely. Match VRAM to model size, then pick rental vs buy.
Before you rent
Preflight checklist
Five questions that prevent the usual bill shocks and cold-start surprises.
- 1Name the product shape first: marketplace GPU, serverless function, managed API, or local card — do not mix them in one shortlist.
- 2Write down cold-start tolerance in user-visible seconds. If the answer is “near zero,” scale-to-zero is a product risk.
- 3Forecast spend from utilization: idle pods, token volume, or per-prediction size — not from a homepage hero number.
- 4Confirm the exact model ID or container image before architecture lock-in.
- 5Plan a failover provider for anything user-facing.
- 6Size VRAM on /gpus before you rent — a 70B Q4 fit check beats discovering OOM after the pod is warm.
- 7On marketplaces: stop ≠ terminate. Tear down volumes/disks when the experiment ends or storage keeps billing.
- 8Prefer interruptible/community only for jobs that can checkpoint; use secure/on-demand for anything user-facing.
Compare chart
Fit by decision axis
Bars show how each provider scores on the axis that usually drives the choice — not a single overall winner.
GPU choice
Pick exact GPUs
Time-to-serving (editorial)
Warm-path fit
Price clarity
Easy to forecast
Production ops
Less DIY ops
Open-model breadth
Catalog depth
Scores are editorial planning ratings (1–10) for product shape — not published $/hour quotes or vendor SLAs. Verify current pricing on each provider site.
At a glance
Provider matrix
Billing shape and GPU control differ more than marketing copy. Scan the matrix, then open a head-to-head.
| Provider | Category | Billing | GPU choice | Best for |
|---|---|---|---|---|
| RunPod | GPU marketplace | Per-second / per-hour GPU rental | Broad consumer and datacenter SKUs | Teams that want to pick a specific GPU SKU and control the container stack |
| Vast.ai | GPU marketplace | Marketplace hourly bids | Wide, host-dependent inventory | Cost-sensitive batch jobs and experiments that can tolerate host variability |
| Modal | Serverless GPU | Serverless CPU/GPU time | Platform-managed GPU classes | Developers who want GPU code as functions with autoscaling |
| Together AI | Managed inference API | Token / request API pricing | Hidden behind the inference API | Serving open-weight models without operating your own GPU fleet |
| Fireworks AI | Managed inference API | Token / request API pricing | Managed serving stack | Production chat and agent backends that need snappy open-model inference |
| Replicate | Managed inference API | Per-prediction / hardware time | Tied to the model’s declared hardware | Product teams shipping model-backed features without owning GPU ops |
| Lambda | Cloud GPU cluster | On-demand / reserved instances | Datacenter NVIDIA focus | Training and sustained inference on reserved or on-demand GPU instances |
| Hugging Face Endpoints | Managed inference API | Dedicated endpoint + usage | Select hardware tiers per endpoint | Teams already living in the Hub who want a managed endpoint per model |
| Groq | Managed inference API | Token / request API pricing | Fixed LPU-backed serving — no SKU selection | Latency-sensitive chat, agents, and batch inference on Groq’s supported model set |
| Fal.ai | Serverless GPU | Serverless per-run / GPU-second | Platform-managed GPU classes per model | Product teams shipping image, video, or audio features without operating GPU fleets |
| Baseten | Managed inference API | Dedicated endpoint + autoscale usage | Select hardware per deployment | ML teams shipping bespoke models who want managed serving without building the ops stack |
| CoreWeave | Cloud GPU cluster | Reserved / on-demand cluster capacity | Datacenter NVIDIA at cluster scale | Teams that need large, predictable GPU clusters without building their own datacenter |
| NVIDIA DGX Cloud Lepton | GPU marketplace | Partner GPU marketplace / DGX Cloud usage | NVIDIA and partner GPU classes exposed through DGX Cloud Lepton | Teams already standardised on NVIDIA DGX Cloud / partner GPU inventory who need marketplace access rather than a standalone serverless brand |
Some outbound links use a first-party redirect hop for click counting. Commission is only claimed when a partner programme is active for that specific link — most vendor hops here are not paid placements. Affiliate disclosure.
Providers
13 places teams actually rent or buy inference
Grouped by product shape — marketplace rental, serverless GPU, managed API, or cluster. Each card now shows GPU choice, cold-start reality, and the main watch-out.
GPU marketplace
Per-second / per-hour GPU rental
RunPod
Rent individual GPUs or pods by the hour, with community and secure cloud options for training and inference workloads.
- GPU choice
- Broad consumer and datacenter SKUs
- Cold start
- Depends on pod spin-up and image cache
Best for: Teams that want to pick a specific GPU SKU and control the container stack
Watch out: You still own ops: images, scaling, and idle spend. Stopping a pod is not the same as terminating it — stopped storage can keep billing until you tear the volume down.
Marketplace hourly bids
Vast.ai
A marketplace of host-offered GPUs with competitive spot-style pricing for interruptible or carefully filtered capacity.
- GPU choice
- Wide, host-dependent inventory
- Cold start
- Instance provisioning + your stack
Best for: Cost-sensitive batch jobs and experiments that can tolerate host variability
Watch out: Host quality and availability vary — filter carefully for production inference. Interruptible/community instances are cheaper but can be reclaimed; stop ≠ terminate (disk can still bill).
Partner GPU marketplace / DGX Cloud usage
NVIDIA DGX Cloud Lepton
NVIDIA-operated GPU marketplace / AI platform (formerly Lepton AI) connecting developers to NVIDIA’s partner compute ecosystem — not an independent Modal-style serverless vendor.
- GPU choice
- NVIDIA and partner GPU classes exposed through DGX Cloud Lepton
- Cold start
- Depends on the selected partner capacity and deployment shape
Best for: Teams already standardised on NVIDIA DGX Cloud / partner GPU inventory who need marketplace access rather than a standalone serverless brand
Watch out: Product identity is DGX Cloud Lepton after NVIDIA’s acquisition — treat legacy lepton.ai marketing as historical; verify current regions, SKUs, and billing on NVIDIA’s pages
Serverless GPU
Serverless CPU/GPU time
Modal
Serverless containers and GPUs billed for what you run — strong fit for Python inference jobs and bursty workloads without managing VMs.
- GPU choice
- Platform-managed GPU classes
- Cold start
- Can be noticeable on cold containers
Best for: Developers who want GPU code as functions with autoscaling
Watch out: Cold starts and platform abstractions matter more than picking a bare metal SKU
Serverless per-run / GPU-second
Fal.ai
Serverless GPU functions oriented around generative media — image, video, and audio models with pay-per-run pricing instead of always-on pods.
- GPU choice
- Platform-managed GPU classes per model
- Cold start
- Can vary by model and queue depth
Best for: Product teams shipping image, video, or audio features without operating GPU fleets
Watch out: Cold starts and per-run economics can surprise at scale; compare against always-on endpoints for steady traffic
Managed inference API
Token / request API pricing
Together AI
Managed inference and fine-tuning oriented around open models, with API-shaped endpoints rather than raw GPU rental.
- GPU choice
- Hidden behind the inference API
- Cold start
- Low for warm endpoints
Best for: Serving open-weight models without operating your own GPU fleet
Watch out: You trade GPU-level control for API pricing and catalog coverage
Token / request API pricing
Fireworks AI
Low-latency inference API focused on fast serving of popular open and partner models.
- GPU choice
- Managed serving stack
- Cold start
- Typically warm API
Best for: Production chat and agent backends that need snappy open-model inference
Watch out: Compare latency and price per token against peers for your exact model
Per-prediction / hardware time
Replicate
Run public and private models via simple API predictions — popular for image, video, and community model demos.
- GPU choice
- Tied to the model’s declared hardware
- Cold start
- Cold models can add latency
Best for: Product teams shipping model-backed features without owning GPU ops
Watch out: Per-prediction economics and cold models can surprise at scale
Dedicated endpoint + usage
Hugging Face Endpoints
Deploy Hub models to dedicated inference endpoints with Hugging Face’s hosting and scaling controls.
- GPU choice
- Select hardware tiers per endpoint
- Cold start
- Scaled-to-zero endpoints can cold-start
Best for: Teams already living in the Hub who want a managed endpoint per model
Watch out: Endpoint sizing and autoscaling choices drive cost more than list price alone
Token / request API pricing
Groq
Ultra-low-latency inference API built on Groq LPU hardware — strong when raw tokens-per-second on supported models matters more than picking a GPU SKU.
- GPU choice
- Fixed LPU-backed serving — no SKU selection
- Cold start
- Typically warm API endpoints
Best for: Latency-sensitive chat, agents, and batch inference on Groq’s supported model set
Watch out: Model catalog and deployment options are narrower than general GPU rental; verify your model is supported before committing architecture
Dedicated endpoint + autoscale usage
Baseten
Deploy custom models to production-grade inference endpoints with autoscaling, tracing, and hardware tier selection — between DIY GPU rental and a closed model API.
- GPU choice
- Select hardware per deployment
- Cold start
- Scaled-to-zero endpoints can cold-start
Best for: ML teams shipping bespoke models who want managed serving without building the ops stack
Watch out: Pricing spans dedicated and shared tiers — forecast from your traffic shape, not list rates alone
Cloud GPU cluster
On-demand / reserved instances
Lambda
Cloud GPUs and clusters aimed at ML teams that want familiar instance-style access with strong NVIDIA inventory.
- GPU choice
- Datacenter NVIDIA focus
- Cold start
- Instance boot + your serving stack
Best for: Training and sustained inference on reserved or on-demand GPU instances
Watch out: Capacity and lead times can matter for the largest clusters
Reserved / on-demand cluster capacity
CoreWeave
Specialized cloud GPU clusters aimed at sustained training and inference on NVIDIA datacenter hardware — more reserved-capacity than spot marketplace.
- GPU choice
- Datacenter NVIDIA at cluster scale
- Cold start
- Cluster provisioning + your serving stack
Best for: Teams that need large, predictable GPU clusters without building their own datacenter
Watch out: Enterprise-style contracts and lead times matter more than per-hour spot browsing
Head-to-head
Comparisons that clarify the trade-off
Marketplace vs serverless, API vs API, and cluster vs rental — each pair answers a real shortlist question.
- Modal vs RunPod
- RunPod vs Vast.ai
- RunPod vs Together AI
- Modal vs Together AI
- Fireworks AI vs Modal
- Fireworks AI vs Together AI
- Fireworks AI vs Replicate
- Hugging Face Endpoints vs Replicate
- Lambda vs RunPod
- Hugging Face Endpoints vs Together AI
- Lambda vs Vast.ai
- Fireworks AI vs Groq
- Groq vs Together AI
- Groq vs Modal
- Fal.ai vs Replicate
- Baseten vs Hugging Face Endpoints
- CoreWeave vs Lambda
- CoreWeave vs RunPod
- NVIDIA DGX Cloud Lepton vs Modal
- Baseten vs NVIDIA DGX Cloud Lepton
FAQ
Questions teams ask before the first invoice
Qualitative answers only — verify live pricing on each provider.
Is renting a GPU cheaper than a managed API?
Only when utilization is high enough that hardware hours beat token or per-prediction pricing — and when you can operate the stack. Spiky or low-traffic products usually lose money on warm pods and win on APIs or serverless.
What is the difference between RunPod and Together AI?
RunPod rents GPUs so you run your own serving stack. Together AI sells managed inference for open models. One is hardware control; the other is time-to-endpoint.
When do cold starts matter?
Whenever a user is waiting. Scale-to-zero serverless and cold Replicate/HF endpoints can add seconds. Batch jobs and async media pipelines tolerate cold starts; interactive chat often does not.
Should I rent cloud GPUs or buy a local card?
Rent for burst capacity, team sharing, and SKUs you will not keep busy for years. Buy local when privacy, offline use, or always-on personal inference makes cloud hours look like rent. Many teams do both.
Does stopping a rented GPU stop the bill?
Not always. Stopping a pod can leave disks or network volumes attached. Terminate the instance and confirm storage teardown — especially on RunPod and Vast.ai — or you keep paying after the GPU is idle.
How do I rent a GPU for a coding agent or local model without getting burned?
Size the model on /gpus first, pick marketplace vs managed API, start with a short prepaid or capped budget, pull a known image, run one smoke prompt, then shut down fully (stop + delete storage). Keep a failover provider for anything user-facing.
Are the fit scores prices?
No. They are editorial planning ratings for product shape. Always verify current pricing, regions, and model availability on the provider site before you commit spend.
Decision rule
If you need a specific GPU SKU, rent. If you need a model endpoint tomorrow, buy an API.
Mixing those goals in one shortlist is how teams overpay. Use the fit chart for shape, the matrix for ops reality, and a head-to-head before you commit spend.