Choosing the best cloud platforms to run open source AI models starts with one question: who manages the GPU? Every other decision, from price to privacy, follows from the answer.
Per-token APIs such as Together AI and Groq hide the hardware. Serverless GPU hosts like Modal bill by the second. Rented GPUs from Runpod or DigitalOcean hand you the keys, and the idle-time bill.
A disclosure first. The top three Google results for this topic are vendor pages from DigitalOcean and Northflank, and both vendors appear below. I ranked on fit for Llama, Mistral and similar open-weight models, not on SEO.
GPU rates shift monthly, so treat every price as a snapshot from late 2026 and confirm it on the vendor’s page before you commit.
Tool
Best for
Starting price (USD)
Mode
Standout
Together AI
Broad open-model catalog, fine-tuning
$1.04/M tokens (Llama 3.3 70B)
Serverless + dedicated
One account from API to H100 clusters
Fireworks AI
Fast production inference
$0.90/M tokens (70B-class)
Serverless + dedicated
Speed-tuned stack, multi-LoRA serving
Hugging Face Inference Endpoints
Deploying any Hub model on dedicated hardware
From about $0.50/hr (T4 GPU)
Dedicated
One-click deploy from the Hub
Runpod
Cheapest rented H100s
$2.89/hr (H100 PCIe)
Pods + serverless
Per-second billing, no egress fees
Modal
Python teams running custom inference code
$0 + usage ($30 monthly credit)
Serverless
H100 at about $3.95/hr, billed per second
DeepInfra
Lowest per-token bills
Pay per token
Serverless + dedicated
Aggressive pricing on popular models
Replicate
Image, video and audio models plus LLMs
Pay per second
Serverless
Huge community model library
Baseten
Production workloads with compliance needs
Pay per minute of GPU time
Dedicated + model APIs
Autoscaling, VPC and self-hosted options
Groq
Lowest latency chat
$0.59 in / $0.79 out per M tokens
Serverless
Custom LPU chips, free tier
OpenRouter
One API across many hosts
Provider price + credit fee
Gateway
Fallbacks and routing between providers
Cloudflare Workers AI
Light inference at the edge
$0.011 per 1,000 Neurons
Serverless
10,000 free Neurons a day
Northflank
Running GPUs inside your own cloud account
$2.74/hr (H100)
Dedicated (BYOC)
Git-to-deploy on AWS, GCP or Azure
DigitalOcean
Simple GPU Droplets for small teams
About $3.39/hr (H100)
Dedicated + serverless
Flat, readable pricing
AWS SageMaker
Teams already deep in AWS
About $1.4/hr (A10G instance)
Dedicated
IAM, VPC and Bedrock alongside
Google Vertex AI
Managed Llama and Mistral on GCP
Per token or per GPU-hour
Serverless + dedicated
Model Garden with one-click deploys
1. Together AI
Together AI homepage (Image: Together AI)
Together AI is the closest thing open-weight models have to a default home. Serverless API, dedicated endpoints and GPU clusters sit under one login, with fine-tuning bolted on.
OpenAI-compatible endpoint covering chat, vision, image, audio and embeddings
Batch jobs discounted up to 50% on selected models
Dedicated endpoints and H100 clusters billed per minute or per GPU-hour
LoRA and full fine-tuning, priced per million training tokens
Serverless Llama 3.3 70B costs $1.04 per million tokens, input and output alike, according to Together’s pricing page as of October 2026. That’s mid-pack: Fireworks charges $0.90 and Groq undercuts both.
Dedicated H100 hardware has appeared at $3.99 an hour against a $5.49 list rate. Trackers disagree on whether the cut is permanent, so verify before budgeting.
The catch is the shared serverless pool. It is rate-limited, and heavy traffic pushes you toward dedicated endpoints, where the per-hour math looks very different.
2. Fireworks AI
Fireworks AI homepage (Image: Fireworks AI)
Fireworks AI sells speed. Its inference engine is tuned for low latency on Llama, Mistral, Qwen and DeepSeek families, and production teams pick it for exactly that.
Serverless pricing is bucketed by model size rather than priced model by model. One comparison puts Llama 3.3 70B at $0.90 per million tokens, cheaper than Together’s $1.04.
Beyond the API, you can reserve on-demand GPUs billed per second and upload custom weights. You can also serve many fine-tuned LoRA adapters off one base model.
I think that last feature is the strongest argument for Fireworks over a plain rented GPU.
Limitation: you rent Fireworks’ stack, not a machine. Custom CUDA kernels, odd runtimes or non-LLM pipelines will feel boxed in.
3. Hugging Face Inference Endpoints
Hugging Face Inference Endpoints homepage (Image: Hugging Face Inference Endpoints)
Hugging Face Inference Endpoints turns any model on the Hub into a private, dedicated API. Pick a model, choose AWS, Azure or Google Cloud, choose a GPU, and click deploy.
Pricing is per minute while the endpoint runs. Published rates start around $0.03 an hour for CPU and $0.50 an hour for an NVIDIA T4. Larger A100 and H100 tiers climb steeply.
Engines include vLLM, TGI and SGLang
Scale-to-zero to stop billing during idle stretches
Private networking and enterprise security options
The serverless sibling, Inference Providers, routes requests to partners such as Together and Fireworks. Useful for prototyping, but it isn’t where the control lives.
Watch the cold start. A scaled-to-zero endpoint serving a large model can take minutes to wake, which rules out interactive chat unless you keep one replica warm.
4. Runpod
Runpod homepage (Image: Runpod)
Runpod is where you go when the GPU bill matters more than polish. Runpod’s own cloud GPU page lists H100 PCIe from $2.89 an hour on demand, with no contracts or minimums.
Third-party trackers put the cheaper Community Cloud H100 PCIe at $1.99 an hour. Billing runs per second, and trackers report no data-transfer charges.
Serverless flex workers scale to zero but cost more per active hour. One tracker logged the H100 flex rate climbing from $4.79 to $5.39 on October 30, 2026, then $5.89 by November 13.
That drift is the limitation. Serverless pricing here is volatile, and Community Cloud capacity varies by region. I’d rent pods for steady traffic and keep serverless for spiky jobs.
5. Modal
Modal homepage (Image: Modal)
Modal is serverless GPU inference for people who would rather write Python than YAML. Decorate a function with gpu=”H100″ and Modal builds the container, scales it and shrinks it back to zero.
There is no model catalog and no per-token price. You bring the weights and the serving code, usually vLLM, and pay for the seconds your containers run.
H100 at $0.001097 per second, about $3.95 an hour
Starter plan: $0 a month with $30 in monthly credits and 3 seats
Team plan: $250 a month plus compute, with $100 in credits
Credit grants for startups and researchers
Cold starts are the trade-off. Keeping containers warm to avoid them quietly turns a serverless bill into an always-on one, and pinning a region adds a price multiplier.
6. DeepInfra
DeepInfra homepage (Image: DeepInfra)
DeepInfra competes on one axis: price per token. It hosts popular open models, from Llama to Mistral and Qwen, behind an OpenAI-compatible API with no monthly minimum.
In recent listings, its Llama 3.3 70B rates have sat well under the $1.04 Together charges. Confirm the current figure, because per-token rates on this model change often.
It also offers dedicated GPU rentals for teams that outgrow shared capacity. The pitch is simple: cheap, pay-as-you-go, little ceremony.
Limitation: a thinner platform. Expect fewer fine-tuning tools, less observability and less enterprise hand-holding than Baseten or the hyperscalers offer.
7. Replicate
Replicate’s real strength is breadth. It hosts thousands of community models for image, video and audio generation as well as LLMs, each reachable with a few lines of code.
Billing is per second of hardware used. An H100 has been listed around $5.49 an hour, which is pricey next to rented pods. One comparison called Replicate far more expensive than Together or Groq for Llama 3.3 70B.
You can also package your own model with Cog, its open-source tool, and publish it as a private endpoint. Cloudflare announced in November 2025 that it was acquiring Replicate, so expect tighter ties to Workers AI.
I’d use Replicate for multimodal experiments and demos, not for a high-volume text product. Rarely used models also cold-start, sometimes for minutes.
8. Baseten
Baseten targets teams shipping inference to paying customers. Dedicated deployments autoscale, bill per minute of GPU time, and run in Baseten’s cloud, your VPC or a self-hosted setup.
Truss, an open-source packaging framework for custom models
Model APIs for per-token access to popular open LLMs
Compliance posture aimed at regulated buyers, including SOC 2 and HIPAA
Enterprise plan with volume discounts, sold through sales
That reliability costs money. Baseten rarely wins a pure price comparison against Runpod or DeepInfra, and small teams may find the sales-led tiers heavier than they need.
Where it makes sense: you need predictable latency, audit paperwork and someone to call at 2 a.m. Hobby projects can skip it.
9. Groq
Groq runs open models on its own LPU chips, and the result is startling speed. It is the one host here that builds hardware specifically for inference.
On Llama 3.3 70B, GroqCloud lists $0.59 per million input tokens and $0.79 per million output, the cheapest of the big three per-token hosts in one 2026 comparison. A rate-limited free tier is available.
GroqCloud kept operating after Nvidia’s December 2025 licensing deal with Groq’s leadership, though the long-term roadmap is something to watch.
The limitation is flexibility. The catalog is curated, and the self-serve tier doesn’t let you bring your own fine-tuned weights. Great for chat latency, wrong for bespoke models.
10. OpenRouter
OpenRouter doesn’t host anything. It is a single API in front of hundreds of models and dozens of upstream providers, and that makes it a good first stop for comparing hosts.
Provider prices pass through, with a fee when you buy credits
Automatic fallback if an upstream host goes down
Free model variants with daily request caps
Filters to restrict routing to providers with stricter data policies
My view: it is the cheapest way to benchmark Llama or Mistral across Together, Fireworks and DeepInfra before you commit to one. Just check the credit-purchase fee on its pricing page.
The limitation is one more hop. Latency and privacy depend on whichever provider the router picks, so lock routing down if your data is sensitive.
11. Cloudflare Workers AI
Cloudflare Workers AI runs open models on Cloudflare’s global network, called straight from a Worker. It suits lightweight features such as summaries, embeddings and small chat endpoints.
Billing uses Neurons. The free allowance is 10,000 Neurons a day, and paid usage costs $0.011 per 1,000 Neurons. Neurons are awkward to forecast, so test your model before trusting the math.
The catalog covers Llama, Mistral and OpenAI’s open-weight gpt-oss models. Cloudflare’s Replicate deal may widen it.
Limitation: you can’t deploy arbitrary weights, and the biggest models and longest context windows are missing. It’s an edge utility, not a Llama 70B workhorse.
12. Northflank
Northflank is a PaaS that runs your containers, including GPU workloads, either on its cloud or inside your own AWS, GCP or Azure account. That bring-your-own-cloud mode is its main selling point.
Its published GPU rates are low for a managed platform, about $2.74 an hour for an H100 and $1.76 for an A100 80GB. Billing is usage-based, with a free developer sandbox.
Full disclosure: Northflank wrote one of the top-ranking articles on this topic. Its blog is vendor-owned, but the platform earns a place on merit.
Limitation: no per-token API. You deploy vLLM or TGI in a container yourself, then handle scaling rules and monitoring.
13. DigitalOcean
DigitalOcean brings its famously plain interface to GPUs. GPU Droplets, with H100 hardware listed from about $3.39 an hour per GPU, are one click away for anyone who already uses Droplets.
There is also the Gradient AI Platform, which offers serverless inference on open models for teams that don’t want to manage a machine. Billing is predictable, which small teams appreciate.
DigitalOcean also authored two of the three top-ranking guides. Weigh its claims accordingly.
Limitation: a Droplet bills while it exists, even powered off, so there’s no scale-to-zero. GPU regions and ecosystem depth also trail the hyperscalers.
14. AWS SageMaker
AWS SageMaker deploys open models onto managed instances, with JumpStart and Hugging Face containers to shorten the path. For companies already inside AWS, it’s the path of least procurement.
Pricing is per instance-second. A single-A10G ml.g5.xlarge runs around $1.4 an hour, and eight-H100 p5 instances cost many times that. Amazon Bedrock offers managed open models per token.
Limitation: SageMaker Serverless Inference doesn’t support GPUs, so large LLMs mean always-on endpoints. Add IAM complexity and GPU quota requests, and it’s slow to start.
I’d choose it for governance and VPC isolation, not for cheap Llama hosting. It’s rarely the lowest bill in this list.
15. Google Vertex AI
Google Vertex AI’s Model Garden lists open models such as Llama, Mistral and Gemma, each deployable to your own endpoint or consumed as a managed per-token API.
The managed route skips GPU management entirely. The self-deploy route runs on Google’s A3 H100 machines, which list at roughly $10 or more per GPU-hour on demand, far above specialist GPU clouds.
New Google Cloud customers get a $300 credit that makes experimentation cheap. After it runs out, the premium reappears.
Limitation: lock-in and complexity. You gain IAM, VPC controls and Google’s compliance coverage, but you give up the price advantage of Runpod or DeepInfra.
FAQ: Best Cloud Platforms to Run Open Source AI Models, Free Hosting and Cost
1) Where can I host an open source AI model for free?
Cloudflare Workers AI gives 10,000 free Neurons daily, Modal’s Starter plan includes $30 in monthly credits, and Groq and OpenRouter offer rate-limited free tiers.
2) What is the cheapest way to run Llama or Mistral?
For light traffic, per-token hosts like Groq ($0.59/$0.79 per million for Llama 3.3 70B) or DeepInfra win. For steady load, a rented GPU on Runpod can cost less per token.
3) Is self-hosting cheaper than a managed API?
Only at high utilization. One H100 PCIe at $2.89 an hour costs about $2,080 over a 720-hour month, busy or idle. Below steady demand, per-token pricing is cheaper.
4) What is serverless GPU inference, and what are cold starts?
Serverless GPUs bill only while requests run and scale to zero. The cost is a cold start: loading a large model onto a fresh GPU can take seconds to minutes.
5) Which platform suits private or regulated data?
Run inside your own account: Northflank’s bring-your-own-cloud mode, SageMaker or Vertex AI inside a VPC, or Baseten’s self-hosted option. Check each provider’s retention terms.