AI Inference API Providers Compared (2026)
/ Updated / Arvid Andersson
An inference API provider runs AI models on its own hardware and sells access to them per token, through an API. They come in three kinds: model labs selling their own models (OpenAI, Anthropic, Google, Mistral), hosts running open models on GPUs or custom chips (DeepInfra, Together AI, Fireworks, Groq, Cerebras), and routers that resell many providers through one key (OpenRouter). This post compares the hosts and routers on price, speed, API compatibility and what each does best.
On gpt-oss-120B, the open model the most providers publish a price for, CoreWeave, DeepInfra, and Melious AI list the lowest blended rates of the 17 providers in the price table below, checked against each provider's pricing page between 25 September and 15 October 2026.
Looking for a side-by-side table with filters? See the Inference APIs pricing comparison. For per-token prices on one model across providers, see LLM API pricing by model.
At a glance
Verified numbers on gpt-oss-120B, a current open-source frontier model, sourced from each provider's pricing page and Artificial Analysis (July 2026). Use these as starting points, not as the final word, since pricing and speed shift month to month.
- Throughput. Cerebras reports ~3000 tokens/sec on gpt-oss-120B in its docs; Artificial Analysis measures ~1,700 tokens/sec sustained. The same benchmark puts Groq at ~478 tokens/sec and DeepInfra Turbo at ~189 tokens/sec (July 2026). Speeds vary by model and reasoning mode.
- Time to first token. Groq measures ~0.74s on gpt-oss-120B on Artificial Analysis, consistent across model sizes. DeepInfra lands around 0.57-0.80s depending on variant (July 2026). Relevant for chat and agent workloads where the first token matters more than sustained throughput.
- Blended price on gpt-oss-120B. CoreWeave at $0.065, DeepInfra at $0.07025, and Melious AI at $0.090936 per 1M tokens blended (3:1 input to output), the lowest of 17 verified providers. Throughput costs more: Cerebras is at $0.45 on the same model. Prices on other open models vary widely by provider; see LLM API pricing by model.
- Model catalog breadth. The GPU-based hosts (DeepInfra, Together AI, Fireworks, Novita) carry broad catalogues of open models. Groq and Cerebras, on custom chips, keep smaller catalogues. Check that the exact model you need is listed before comparing prices.
- Fine-tuning on the same platform. Together.ai and Fireworks both support training and serving through the same API, which matters when iterating on a custom fine-tune.
- Unified routing. OpenRouter exposes one API and routes requests to the underlying provider. Adds one hop and a small markup over going direct, in exchange for avoiding lock-in across providers and models.
- Bring-your-own-container. Modal, Baseten, and RunPod run your own models on GPUs (code-first for Modal, UI-first for Baseten, raw GPU access for RunPod). You manage packaging, cold starts, and scaling in exchange for full control over the stack.
- EU hosting. Nebius, Scaleway, Mistral La Plateforme, and Lyceum run inference inside the EU. See the European providers page for the full list with hosting regions. Of the 17 hosts in the price table, 7 are headquartered in Europe: Melious AI, Scaleway, IONOS AI Model Hub, HostYourAI, Infercom, SimpleLLM, and Regolo. Headquarters says nothing about where requests run, so check each host's data processing terms.
Prices on one model: gpt-oss-120B
Per 1M tokens, cheapest first by blended cost (3:1 input to output). One open model across every provider that publishes a price for it, so the rates compare like for like.
| # | Provider | Input / 1M | Cached / 1M | Output / 1M | Checked | Notes |
|---|---|---|---|---|---|---|
| 1 | $0.03 | – | $0.17 | 27 Sep 2026 | ||
| 2 | $0.037 | – | $0.17 | 25 Sep 2026 | ||
| 3 | €0.04 ≈ $0.0455 | – | €0.20 ≈ $0.2273 | 1 Oct 2026 | ||
| 4 | $0.05 | – | $0.25 | 25 Sep 2026 | ||
| 5 | $0.05 | – | $0.45 | 25 Sep 2026 | ||
| 6 | $0.10 | – | $0.50 | 25 Sep 2026 | ||
| 7 | $0.10 | – | $0.70 | 11 Oct 2026 | ||
| 8 | $0.15 | – | $0.60 | 25 Sep 2026 | ||
| 9 | $0.15 | – | $0.60 | 25 Sep 2026 | ||
| 10 | €0.15 ≈ $0.1705 | – | €0.60 ≈ $0.682 | 25 Sep 2026 | ||
| 11 | €0.15 ≈ $0.1705 | – | €0.65 ≈ $0.7389 | 25 Sep 2026 | Price on ionos.de; the US site lists $0.17 / $0.71 | |
| 12 | €0.16 ≈ $0.1819 | – | €0.63 ≈ $0.7161 | 1 Oct 2026 | ||
| 13 | €0.22 ≈ $0.2501 | – | €0.59 ≈ $0.6707 | 15 Oct 2026 | Excl. VAT. Same on cloud.infercom.ai/plans/pricing. | |
| 14 | €0.16 ≈ $0.1819 | – | €0.83 ≈ $0.9435 | 1 Oct 2026 | Listed in SimpleCredits (100 SC = EUR 1); homepage advertises 20% off during the open beta | |
| 15 | $0.35 | – | $0.75 | 25 Sep 2026 | ||
| 16 | $0.35 | – | $0.75 | 27 Sep 2026 | @cf/openai/gpt-oss-120b | |
| 17 | €1.00 ≈ $1.1367 | – | €4.20 ≈ $4.7741 | 1 Oct 2026 |
Each price was read off the provider's own pricing page on the date shown; the date links to that page. Providers that publish no per-token price for this model are not listed. EUR prices are ranked at the ECB reference rate of 24 September 2026. The same data is open under CC-BY at /api/query/prices.
Three kinds of inference provider
- Model lab APIs (11 listed): the company that trains the model sells it. OpenAI and Anthropic (Claude) are where most teams start.
- Hosted inference APIs (48 listed): open models such as gpt-oss, DeepSeek, Qwen and Llama, run on the host's own GPUs or custom chips. This is where prices and speed differ most, and what most of this post compares.
- LLM routers (20 listed): one API key in front of many providers, reselling their tokens. Convenient for switching models; you pay their margin and add a hop.
At one end, providers like Groq compete primarily on speed, using custom hardware (LPUs) to deliver the lowest latency. At the other end, platforms like RunPod and Modal give you raw GPU access to run any model with full control over the stack.
In between sit the serverless inference providers: DeepInfra, Together.ai, Fireworks, and Replicate. These handle the infrastructure and expose models through APIs, typically with OpenAI-compatible endpoints.
Speed vs. cost
The speed picture changed in 2026 with the rise of specialized inference hardware. Cerebras reports roughly 3000 tokens/sec on gpt-oss-120B using its WSE chips; Artificial Analysis measures ~1,700 tokens/sec sustained (July 2026), still far ahead of the field. Groq runs the same model at around 478 tokens/sec on custom LPUs with a consistently low time-to-first-token (~0.7s). The trade-off on both is a narrower model catalog than GPU-based providers, and picking between them depends on whether throughput or first-token latency matters more for the workload.
Both hardware players were pulled into bigger orbits recently: Nvidia licensed Groq's LPU technology in a deal reported at around $20B (December 2025), with Groq raising fresh capital in June 2026 to keep building its inference cloud, and OpenAI committed a reported $20B+ to Cerebras compute (April 2026). Neither changes the public APIs today, but both are worth knowing when betting on either provider long-term.
On price, CoreWeave, DeepInfra, and Melious AI list the lowest rates on gpt-oss-120B in the price table above. The gap between the cheapest provider and the fastest on the same model can be several times, so the right pick depends on whether a workload is batch (price first) or interactive (speed first).
Together.ai and Fireworks sit in a similar space: broad model support and solid performance, with the added option of fine-tuning on the same platform. Together.ai's fine-tuning workflow is convenient when iterating on a custom fine-tune without moving weights to a separate training service.
API compatibility and routing
Most providers now support the OpenAI API format, meaning you can switch between them by changing a base URL and API key. DeepInfra, Together.ai, Fireworks, and novita.ai all work with the standard OpenAI Python and Node.js SDKs. This makes it practical to route different models through different providers without rewriting integration code.
OpenRouter takes this a step further by acting as a unified API gateway across multiple providers. You send requests to OpenRouter, and it routes them to the cheapest or fastest provider for a given model. This is useful for teams that want to avoid vendor lock-in or automatically fail over between providers. LowRouter, a French router, passes provider prices through with no per-token markup and charges a fee when credits are bought; its auto mode prefers EU-sovereign routes, then the lowest grid carbon intensity, then price.
Beyond text: image, audio, video
Some providers go beyond LLM inference. Replicate hosts a wide range of open-source models across modalities, from Stable Diffusion to Whisper. fal focuses on fast image and video generation. novita.ai covers LLMs, image generation, video, and audio APIs in one platform. inference shell sells one API key for image, video, audio, text, search and 3D apps, billed per call, with a skill registry and a CLI around it. If your application needs multiple model types, consolidating on a multi-modal provider can simplify your infrastructure.
GPU cloud for custom setups
When you need full control, whether for custom models, specific framework versions, or multi-GPU training, GPU cloud providers are the way to go. RunPod offers on-demand and spot GPU instances with per-second billing and no egress fees. Runcrate rents GPUs by the second on most models and sells 125 models behind one OpenAI-compatible API, paid from one prepaid balance (its pricing page, November 2026). Modal takes a code-first approach where you define your environment in Python and Modal handles the provisioning. Baseten and Cerebrium focus on model deployment, letting you package models in containers and serve them as auto-scaling endpoints. For the inference engine itself, vLLM has become the standard open-source serving framework that many of these providers use under the hood.
Provider comparison
The price column repeats each provider's verified gpt-oss-120B rate from the table above; a dash means it publishes no price for that model or runs your own models instead.
| Provider | Best for | Pricing model | OpenAI-compatible | gpt-oss-120B, blended / 1M |
|---|---|---|---|---|
| Cerebras | High sustained throughput (WSE) | Per token | Yes | $0.45 |
| Groq | Low first-token latency (LPU) | Per token | Yes | $0.2625 |
| DeepInfra | Low cost, broad model catalog | Per token | Yes | $0.07025 |
| Together.ai | Inference + fine-tuning | Per token | Yes | $0.2625 |
| Fireworks | Production inference, function calling | Per token | Yes | – |
| RunPod | Custom models, GPU access | Per second (GPU) | N/A | – |
| Lyceum | EU-hosted GPU cloud, serverless + clusters | Per token / per second (GPU) | Yes | – |
| Replicate | Multi-modal, open-source models | Per second (GPU) | No | – |
| novita.ai | Budget, multi-modal APIs | Per token / per request | Yes | $0.10 |
| OpenRouter | Unified gateway, provider routing | Per token (pass-through) | Yes | – |
| Baseten | Model deployment, custom serving | Per second (GPU) | N/A | $0.20 |
| Cerebrium | Serverless model deployment | Per second (GPU) | N/A | – |
How to choose
Start with your constraints. If sustained throughput is the primary concern, test Cerebras and Groq against each other on the specific model you plan to run. If first-token latency drives the experience (chat, interactive agents), Groq's LPU stack has a consistent edge. If cost dominates, benchmark DeepInfra and novita.ai against your expected volume. If you need fine-tuning alongside inference, Together.ai and Fireworks both offer that. If you want a single API across multiple providers, OpenRouter handles the routing. For deploying custom models, Baseten, Cerebrium, RunPod, and Modal each take a different approach to packaging and serving.
The OpenAI-compatible API standard makes it easy to test multiple providers without significant code changes. Many teams run different providers for different use cases: a fast provider for user-facing chat, a cheaper one for batch processing, and a GPU cloud for custom models.
See how these tools fit together
Inference is one layer. These stacks show how to combine it with frameworks, vector databases, and observability for a complete setup.
Frequently asked questions
What is the cheapest AI inference API?
On gpt-oss-120b, the open model the most providers here publish a price for, the cheapest per-token rates on the providers' own pricing pages are CoreWeave at $0.03 input and $0.17 output; DeepInfra at $0.037 input and $0.17 output; Melious AI at €0.04 input and €0.20 output (per 1M tokens, checked 25 September 2026). 17 providers are compared in the table on this page. Per-token pricing shifts month to month and varies a lot by model, so check the provider's own pricing page before committing to high-volume workloads.
Which inference providers are cheaper than Groq?
On gpt-oss-120b, 7 of the 16 other providers in the price table list a lower blended rate than Groq ($0.2625 per 1M tokens, input and output weighted 3:1). The lowest are CoreWeave, DeepInfra, Melious AI, Novita AI and SiliconFlow. Prices checked 25 September 2026. A lower price says nothing about speed, model catalogue or rate limits.
Which inference providers are cheaper than Cerebras?
On gpt-oss-120b, 14 of the 16 other providers in the price table list a lower blended rate than Cerebras ($0.45 per 1M tokens, input and output weighted 3:1). The lowest are CoreWeave, DeepInfra, Melious AI, Novita AI and SiliconFlow. Prices checked 25 September 2026. A lower price says nothing about speed, model catalogue or rate limits.
Which inference providers are cheaper than Baseten?
On gpt-oss-120b, 5 of the 16 other providers in the price table list a lower blended rate than Baseten ($0.20 per 1M tokens, input and output weighted 3:1). They are CoreWeave, DeepInfra, Melious AI, Novita AI and SiliconFlow. Prices checked 25 September 2026. A lower price says nothing about speed, model catalogue or rate limits.
Which inference providers are cheaper than DeepInfra?
On gpt-oss-120b, 1 of the 16 other providers in the price table lists a lower blended rate than DeepInfra ($0.0703 per 1M tokens, input and output weighted 3:1). That is CoreWeave. Prices checked 25 September 2026. A lower price says nothing about speed, model catalogue or rate limits.
What is the fastest AI inference API?
It depends on whether sustained throughput or first-token latency matters more. Cerebras reports around 3000 tokens/sec on gpt-oss-120B in its docs; Artificial Analysis measures ~1,700 tokens/sec sustained (July 2026), still the highest in the category by a wide margin. Groq uses custom LPU hardware and runs the same model at ~478 tokens/sec on Artificial Analysis, with a consistently low time-to-first-token (~0.7s) that matters for interactive chat. Both trade off a narrower model catalog than GPU-based providers.
Which AI inference APIs offer a free tier?
Cerebras and Groq both offer free usage with daily token limits, useful for prototyping. Most of the serverless providers (DeepInfra, Together, Fireworks, Novita) hand out signup credits rather than a permanent free tier. Amounts vary and change often, so check each provider page on Infrabase before committing.
Which inference providers are OpenAI-compatible?
DeepInfra, Together.ai, Fireworks, Novita, OpenRouter, and Groq all expose a drop-in OpenAI-compatible endpoint. Switching between them usually means changing the base URL and API key, nothing more. Replicate uses its own API format, and raw GPU providers like RunPod and Modal are not endpoints at all, they host whatever gets deployed to them.
Are there EU-hosted AI inference APIs?
Yes. Nebius, Scaleway, Mistral La Plateforme, and Lyceum run inference inside the EU, which matters for GDPR-sensitive workloads. The full list lives on the European providers page, with hosting regions noted for each.
What is the best alternative to the OpenAI API?
It depends on what you need from OpenAI. For the highest sustained throughput on open models, Cerebras. For low first-token latency, Groq. For low per-token prices, CoreWeave, DeepInfra, and Melious AI list the lowest verified rates on gpt-oss-120b (checked September 2026). For fine-tuning on the same platform as inference, Together AI or Fireworks. For one API key across many providers, OpenRouter. The comparison table above covers the main trade-offs.
Browse all Inference API providers on Infrabase.ai
AI Infra Digest
One email a month on what's new in AI infrastructure: launches, tools and price changes worth knowing. No spam, unsubscribe any time.
Is your product missing?