DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

Your monitoring dashboard says the API is fast and your invoice says the same thing in different units. Somewhere between the two, cost per completed request disappears.
This guide compares the best AI inference platform options for speed and cost on the same footing: measured latency, measured throughput, current prices, and the math that turns them into your bill. The metric that decides everything is cost per completed task, not price per million tokens.
One thing to settle before we get to numbers. Every platform here sells two products. A shared serverless endpoint pools your traffic with everyone else’s, bills per token, and scales to zero when idle. A dedicated endpoint reserves silicon for you, bills by the hour, and behaves the same at 3am as it does at peak. Public benchmarks measure the first one, because it is the only tier a third party can point a script at without signing a contract. The second one is where latency-sensitive production traffic usually ends up, and hardly anyone publishes comparable numbers for it.
The gap matters most for platforms whose serverless tier is tuned for throughput per dollar rather than per-stream speed. The batching that holds a cost floor down is the same batching that costs a benchmark its tokens per second. So read every speed figure below as a measurement of one endpoint on one day, not a verdict on a company.
Two of the three numbers get confused with each other constantly, and this confusion leads to picking the wrong platform.
Most speed tables are vendor-published, single-stream, and undated. Ours states its method first. Every figure carries a source, date, and label: measured for third-party test runs, vendor-published for platform claims. Prices verified against provider pages August 3 to 15, 2026.
The criteria are all measurable:
One limit the criteria cannot fix, stated plainly because it shapes every speed column here. Each third-party measurement in this guide was taken against a public serverless endpoint, since that is the only tier a benchmark can reach without a contract. Dedicated deployments are configured per customer, so no independent source publishes a comparable number for them, and any platform that sells both will read slower here than its hardware allows. The endpoint is labeled on every figure rather than papered over.
Published numbers diverge because sources test different endpoints, quantizations, and weeks. Groq alone appears in our sources at 450 to 550 tokens per second on Mixtral (DeployBase, February 2026), around 476 on gpt-oss-120B (Artificial Analysis via Infrabase), and roughly 142 on Llama 3.3 70B (llm-benchmarks.com, June 2026). Same provider, three models, three results. DeepInfra’s catalog shows the same split: Turbo FP8 endpoints trade per-stream speed for capacity against bfloat16 ones, so attach an endpoint name to any number before trusting it.
None of this needs a benchmark vendor. Your prompt is a better test than their prompt, and the whole measurement is a stopwatch around a stream:
import os
import time
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepinfra.com/v1/openai",
api_key=os.environ["DEEPINFRA_API_TOKEN"],
)
start = time.perf_counter()
first_delta_at = None
deltas = 0
stream = client.chat.completions.create(
model="meta-llama/Llama-3.3-70B-Instruct-Turbo",
messages=[{"role": "user", "content": your_real_prompt}],
stream=True,
)
for chunk in stream:
if not chunk.choices[0].delta.content:
continue
if first_delta_at is None:
first_delta_at = time.perf_counter()
deltas += 1
end = time.perf_counter()
print(f"TTFT: {first_delta_at - start:.3f}s")
print(f"Output throughput: {deltas / (end - first_delta_at):.1f} tok/s") # ~1 token per deltaRun that against two providers, at your prompt length and your concurrency, and the table above becomes a starting point rather than an answer. Run it from where your servers actually live, too: network distance to the endpoint lands in the TTFT column whether or not the provider caused it.
Run the same model on every platform and the comparison gets clean. Llama 3.3 70B Instruct is the most widely hosted open model in this market. The table sorts on the column that reaches an invoice, cost per 1,000 completed requests, with the measured speed columns sitting beside it rather than in front of it. One model, one source per figure, stated conditions, and every speed number taken against that provider’s shared serverless endpoint.
| Provider | Cost per 1k requests | $/M input | $/M output | Output tok/s | TTFT | Notes |
|---|---|---|---|---|---|---|
| DeepInfra | $0.18 | $0.10 | $0.32 | 18 | 1.95s | Turbo FP8, shared serverless |
| OpenRouter | $0.18 | $0.10 | $0.32 | not tested | not tested | Routes to upstream hosts |
| Novita AI | $0.23 | $0.135 | $0.40 | 39 | 1.75s | Shared serverless, dedicated tier sold separately |
| Groq | $0.71 | $0.59 | $0.79 | 297 | 1.01s | LPU hardware |
| SambaNova | $0.84 | $0.60 | $1.20 | 302 | 1.76s | RDU hardware |
| Scaleway | €0.99 | €0.90 | €0.90 | 83 | 1.37s | EU-hosted |
| Together AI | $1.14 | $1.04 | $1.04 | 76 | 1.46s | Turbo endpoint |
Throughput and TTFT: Artificial Analysis, Llama 3.3 70B, 10,000-token input prompt, 72-hour median (measured). Prices: Infrabase, verified on each provider’s own pricing page, August 3, 2026. Cells read “not tested” where that provider’s endpoint carries no published measurement on this model, which is more useful than a number borrowed from a different one.
The second column is the one that lands on an invoice. It prices 1,000 requests of the support-agent workload used later in this guide, 800 input and 300 output tokens each, so the arithmetic is 0.8 times the input rate plus 0.3 times the output rate (estimate, inputs shown).
Read the two halves against each other and they refuse to line up. Per-token rates run 10x from cheapest to dearest on identical weights, and measured throughput on these shared endpoints runs 17x from slowest to fastest, but the orderings are close to unrelated. Paying more does not reliably buy speed here, and paying less does not reliably cost it. Note also that a 10,000-token prompt is the hard case for shared serverless capacity, and it is roughly twelve times longer than the support-agent workload this guide prices. Pick the column that matches your prompt length before you pick a platform.
Sorted on the bill, the field breaks into two clusters and a straggler. DeepInfra, OpenRouter, and Novita AI sit within a nickel of each other on the floor. Groq and SambaNova charge four to five times that, which is a fair trade when TTFT is the product and a poor one when it is not, and the two custom-silicon plays sit closer to each other than either sits to anything else here: five tokens per second and 18 percent on the bill separate them. Together AI is the straggler, dearest per completed task and mid-pack on throughput, a position no workload asks for on this model. Scaleway is absent from the chart because its rate card is denominated in euros, not because it is slow. The pattern holds beyond one model: our GLM-5.1 provider comparison found blended rates from $0.74 to $1.70 per million tokens across ten providers.
| Metric | Value |
|---|---|
| Best for | minimizing cost per completed task across a wide open catalog |
| Output throughput, Llama 3.3 70B (shared serverless) | 18 tok/s |
| TTFT, Llama 3.3 70B (shared serverless) | 1.95s |
| Price per million, in / out | $0.10 / $0.32 |
| Cost per 1,000 support-agent requests | $0.18 |
| Dedicated capacity | $2.20/hr H100, $2.69/hr H200, $3.69/hr B200 |
| Catalog | 360+ open models |
DeepInfra posts the cheapest published rate on the benchmark model at $0.10 in and $0.32 out per million for Llama 3.3 70B Instruct Turbo, which works out to $0.18 per thousand support-agent requests. The speed number needs its context to mean anything. Artificial Analysis measures that shared Turbo FP8 endpoint at 18 output tokens per second with 1.95s TTFT on a 10,000-token prompt (measured, 72-hour median), near the back of the fourteen providers it tracks on this model. It’s the batched, scale-to-zero tier, and the batching is a large part of what the $0.10 input rate is made of. Change the prompt length or the tier and the figure moves. llm-benchmarks.com clocks DeepInfra’s fastest listing, Nemotron 3.5 Lightning, at 171 tokens per second with near-zero TTFT on a short prompt (measured, June 2026), and traffic that needs deterministic latency runs on dedicated GPUs instead, priced later on this page.
Quantization, prompt length, and endpoint tier move throughput more than the logo on the invoice does. The catalog runs from Nemotron 3 Nano 30B A3B at $0.05 and $0.20 through DeepSeek-V3.2 at $0.26 and $0.38 up to Kimi K2.6 at $0.75 and $3.50, on bare-metal US infrastructure with zero retention. The API is OpenAI-compatible, so switching to DeepInfra is a one line change:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepinfra.com/v1/openai",
api_key=os.environ["DEEPINFRA_API_TOKEN"],
)
response = client.chat.completions.create(
model="meta-llama/Llama-3.3-70B-Instruct-Turbo",
messages=[{"role": "user", "content": "Explain TTFT in one sentence."}],
)
print(response.choices[0].message.content)Price is not a single number here either. Every serverless model runs on three scheduling tiers: Standard at the listed rate, Priority at 1.5x for faster time to first token, and Flex at 0.8x for asynchronous work that can wait in line, with cached input billed separately and well below the standard input rate on most models (DeepInfra pricing, August 24, 2026). When serverless stops fitting, the same catalog runs on dedicated GPUs by the hour: $2.20 for an H100, $2.69 for an H200, $3.69 for a B200. Hold those three numbers. They come back when the dedicated-capacity vendors further down this list quote theirs.
| Metric | Value |
|---|---|
| Best for | realtime chat and voice where TTFT is the product |
| Output throughput, Llama 3.3 70B (shared serverless) | 297 tok/s |
| TTFT, Llama 3.3 70B (shared serverless) | 1.01s |
| Price per million, in / out | $0.59 / $0.79 |
| Cost per 1,000 support-agent requests | $0.71 |
| Dedicated capacity | not published; Batch API bills at half the synchronous rate |
| Catalog | curated, single-digit families of open models |
Groq’s LPU silicon is purpose-built for decode. The rolling table at llm-benchmarks.com puts Llama 3.3 70B at 142 tokens per second with near-zero TTFT on a short prompt (measured, June 2026), and Artificial Analysis clocks the same model at 297 tokens per second with 1.01s TTFT on a 10,000-token prompt (measured, 72-hour median). Both runs hit Groq’s public serverless endpoint, which is the only Groq tier a third party can test. Tokens cost more here: $0.59 in and $0.79 out per million on the benchmark model.
Price is not a single number here either. Every serverless model runs on three scheduling tiers: Standard at the listed rate, Priority at 1.5x for faster time to first token, and Flex at 0.8x for asynchronous work that can wait in line, with cached input billed separately and well below the standard input rate on most models (DeepInfra pricing, August 24, 2026). When serverless stops fitting, the same catalog runs on dedicated GPUs by the hour: $2.20 for an H100, $2.69 for an H200, $3.69 for a B200. Hold those three numbers. They come back when the dedicated-capacity vendors further down this list quote theirs.
| Metric | Value |
|---|---|
| Best for | bursty, throughput-heavy coding and agent workloads |
| Output throughput, Llama 3.3 70B (shared serverless) | not tested |
| TTFT, Llama 3.3 70B (shared serverless) | not tested |
| Price per million, in / out | not posted; around 3,000 tok/s on gpt-oss-120B is the published headline |
| Cost per 1,000 support-agent requests | not calculable from published rates |
| Dedicated capacity | reserved capacity by sales agreement; Code Pro $50/mo, Code Max $200/mo |
| Catalog | three models on pay-per-token |
Cerebras serves gpt-oss-120B at around 3,000 tokens per second on its wafer-scale engine, a vendor-published April 2026 figure Infrabase calls the highest measured throughput in the category. Its pricing page claims inference 20x faster than OpenAI and Anthropic (vendor-published, undated).
Access is tiered rather than posted per token, which is the practical catch. A new account carries $5 in free credits, the self-serve Developer tier starts at $10 and lifts limits more than 10x above the free tier, and the coding plans are fixed-price: Cerebras Code Pro at $50 a month and Code Max at $200 with rate limits up to 1.5 million tokens per minute (Cerebras pricing and its pay-per-token announcement, August 24, 2026).
The pay-per-token catalog is three models deep, Qwen3 235B, gpt-oss-120B, and Qwen3 Coder 480B, and anything outside it means reserved capacity and a sales call. Cerebras also resells through AWS Marketplace, OpenRouter, Hugging Face, and Vercel, so the cheapest way to A/B it against your current provider is usually a gateway you already pay for.
| Metric | Value |
|---|---|
| Best for | multi-step agent loops that reuse cached context |
| Output throughput, Llama 3.3 70B (shared serverless) | 302 tok/s |
| TTFT, Llama 3.3 70B (shared serverless) | 1.76s |
| Price per million, in / out | $0.60 / $1.20 |
| Cost per 1,000 support-agent requests | $0.84 |
| Dedicated capacity | not published; cached input bills 90 percent below standard on MiniMax-M2.7 |
| Catalog | a curated set of large open models |
SambaNova’s RDU maps the model graph onto the chip directly and tiers memory across SRAM, HBM, and high-capacity pools. The SN50 announcement claims 5x the top speed of Blackwell B200 and over 3x throughput on agentic inference including Llama 3.3 70B (vendor-published). SN50 ships in the second half of 2026, so today’s SambaCloud runs the prior SN40L generation, plus prompt caching to cut TTFT.
SambaCloud posts rates, and they are mid-field rather than premium: the benchmark model at $0.60 in and $1.20 out per million, gpt-oss-120B at $0.22 and $0.59, MiniMax-M2.7 at $0.60 and $2.40 (SambaNova Cloud pricing, August 24, 2026). That buys the highest measured throughput on the benchmark model in this table, 302 output tokens per second at 1.76s TTFT on the 10,000-token prompt against its shared serverless endpoint, though Groq reaches its first token in well under two-thirds the time.
The agentic pitch shows up in the caching numbers. Cached tokens bill 90 percent below standard input, $0.06 against $0.60 per million on MiniMax-M2.7, and SambaNova’s own measurements put the TTFT saving at 33 percent on short contexts and 91 percent at 192k, where first-token time falls from 40.6 seconds to 3.7 (SambaNova, prompt caching, vendor-published). Caching is live on MiniMax-M2.7 only for now, so check before you budget around it.
| Metric | Value |
|---|---|
| Best for | cost-floor serverless with an upgrade path to isolated capacity on the same account |
| Output throughput, Llama 3.3 70B (shared serverless) | 39 tok/s |
| TTFT, Llama 3.3 70B (shared serverless) | 1.75s |
| Price per million, in / out | $0.135 / $0.40 |
| Cost per 1,000 support-agent requests | $0.23 |
| Dedicated capacity | $1.99/hr H100, $2.99/hr H200, $0.61/hr RTX 4090; raw GPUs from $0.33/hr |
| Catalog | broad open LLM catalog plus image, video, and audio models |
Novita AI prices Llama 3.3 70B at $0.135 in and $0.40 out per million (Infrabase, August 3, 2026), a rounding error above the cost floor, and Artificial Analysis measures 39 output tokens per second with 1.75s TTFT on a 10,000-token prompt (measured, 72-hour median). It’s the same shared-serverless tradeoff DeepInfra’s Turbo FP8 endpoint makes, priced at roughly 28 percent more per completed task
Sustained load has somewhere to go, which the serverless-only reading of this platform misses. Dedicated endpoints run isolated replicas at $2.99 an hour for an H200, $1.99 for an H100, and $0.61 for an RTX 4090, billed per second on active replicas with scale-to-zero, min and max replica counts you set, and a scale-down delay you tune. Custom weights and LoRA adapters load there, and the tier carries a latency SLA that the shared serverless endpoints do not. Below that sit raw GPU instances from about $0.33 an hour for a 24GB RTX 4090 if you would rather run the serving stack yourself (Novita AI pricing, August 24, 2026).
| Metric | Value |
|---|---|
| Best for | teams that fine-tune and serve on one bill and want one vendor for both |
| Output throughput, Llama 3.3 70B (shared serverless) | 76 tok/s |
| TTFT, Llama 3.3 70B (shared serverless) | 1.46s |
| Price per million, in / out | $1.04 / $1.04 |
| Cost per 1,000 support-agent requests | $1.14 |
| Dedicated capacity | $5.49/hr HGX H100, $8.99/hr B200 |
| Catalog | broad open catalog plus fine-tuning at $1.50 to $4.12 per million training tokens |
Together AI prices the same model at $1.04 per million in both directions (Infrabase, August 3, 2026), the dearest per-token rate in the table, against 76 output tokens per second at 1.46s TTFT. DeployBase’s week-long run logged Mixtral at 200ms TTFT and 800-plus tokens per second in batch (measured, February 2026), which is the figure the marketing leads with. Mind the gap between the two: one is a batch aggregate on a different model, the other is per-stream on a long prompt.
What the premium buys is the rest of the platform. Fine-tuning is priced per million training tokens, roughly $1.50 to $4.12 for models in the 17B to 69B range with a $4 minimum per job, and the tuned checkpoint serves from the same endpoint you already call. Dedicated capacity runs $5.49 an hour for an HGX H100 and $8.99 for a B200 (Together AI pricing, August 24, 2026), against the $2.20 and $3.69 DeepInfra charges for the same silicon. Run inference only and you are paying for a training platform you never open.
| Metric | Value |
|---|---|
| Best for | workloads under EU data residency rules that still want open weights |
| Output throughput, Llama 3.3 70B (shared serverless) | 83 tok/s |
| TTFT, Llama 3.3 70B (shared serverless) | 1.37s |
| Price per million, in / out | €0.90 / €0.90 |
| Cost per 1,000 support-agent requests | €0.99 |
| Dedicated capacity | €0.93/hr L4, €1.72/hr L40S, €3.40/hr H100, €30.06/hr 8x H100 SXM |
| Catalog | smaller EU-hosted selection, Paris region |
Scaleway answers a question the rest of this list cannot: where the data physically sits. Its Generative APIs are serverless, OpenAI-compatible, and served from the Paris region, and Llama 3.3 70B costs €0.90 per million tokens in both directions (Scaleway pricing, August 24, 2026). Artificial Analysis measures 83 output tokens per second at 1.37s TTFT, mid-field, and more than four times what the same benchmark records on DeepInfra’s Turbo FP8 endpoint.
The flat rate cuts both ways. Output at €0.90 undercuts Together AI’s $1.04, so verbose and reasoning-heavy work does well here. Input at €0.90 is nine times DeepInfra’s $0.10, so RAG traffic that ships a document with every call pays for the symmetry. The first million tokens each month are free, the Batches API halves the rate for jobs that can wait, and the rest of the catalog keeps the same shape: DeepSeek-V4-Flash-0731 at €0.40 and €0.80, GLM-5.2 at €1.80 and €5.50.
When serverless is not enough, Managed Inference rents dedicated GPUs by the hour inside the same EU footprint, €0.93 for an L4, €1.72 for an L40S, €3.40 for an H100, and €30.06 for an eight-way H100 SXM node.
| Metric | Value |
|---|---|
| Best for | sustained load, custom checkpoints, regulated workloads |
| Output throughput, Llama 3.3 70B (shared serverless) | not tested |
| TTFT, Llama 3.3 70B (shared serverless) | not tested |
| Price per million, in / out | $0.95 / $4.00 on Kimi K2.6; $0.13 / $0.26 on DeepSeek-V4-Flash |
| Cost per 1,000 support-agent requests | not calculable on the benchmark model |
| Dedicated capacity | per-minute billing: $6.50/hr H100, $9.98/hr B200, $0.63/hr T4 |
| Catalog | Model APIs plus your own weights on dedicated deployments |
Baseten’s Model APIs price Kimi K2.6 at $0.95 in and $4.00 out per million tokens (vendor page, August 13, 2026) against $0.75 and $3.50 on DeepInfra. The token rate is not the pitch. What Baseten sells is running your own weights on isolated hardware under a compliance story, and the rate card follows from that.
Model APIs and dedicated deployments are two products on one bill, and they price differently against the field. On the API side DeepSeek-V4-Flash runs $0.13 in and $0.26 out against DeepInfra’s $0.09 and $0.18 for the same weights. On the dedicated side, per-minute billing runs from $0.01052 for a T4 to $0.10833 for an H100 and $0.16633 for a B200, which is $9.98 an hour for the B200 against DeepInfra’s $3.69 (Baseten pricing, August 24, 2026).
The premium buys an operational envelope rather than tokens: fast cold starts, autoscaling you configure, SOC 2 Type II and HIPAA, and Basic, Pro, and Enterprise tiers where Pro adds volume discounts and priority GPU access.
Every rate card above prices the shared tier, and the shared tier is the wrong product for a meaningful slice of production traffic. Once predictable latency becomes a requirement rather than a preference, you stop buying tokens and start renting silicon. The comparison changes shape with it: hours instead of tokens, a posted rate instead of a benchmark, and a duty cycle instead of a leaderboard.
| Platform | H100 / hr | H200 / hr | B200 / hr | Also posted |
|---|---|---|---|---|
| Novita AI | $1.99 | $2.99 | not posted | RTX 4090 at $0.61 |
| DeepInfra | $2.20 | $2.69 | $3.69 | per-second billing on the same catalog |
| Scaleway | €3.40 | not posted | not posted | L4 €0.93, L40S €1.72, eight-way H100 SXM €30.06 |
| Together AI | $5.49 | not posted | $8.99 | HGX configuration on the H100 |
| Baseten | $6.50 | not posted | $9.98 | T4 at $0.63, billed per minute |
| Groq, Cerebras, SambaNova | quoted on request | quoted on request | quoted on request | fixed-price plans on Cerebras only |
Hourly rates from each platform’s pricing page, August 24, 2026, sourced in the reviews above. Baseten publishes per-minute rates, so the hourly figures here are those times 60.
Novita AI undercuts DeepInfra by 21 cents on an H100 and hands it back on an H200. The wider gaps open against the platforms that bundle an operational envelope into the hourly rate. Together AI charges roughly 2.5x for an H100 and 2.4x for a B200, and Baseten close to 3x on both, which buys SOC 2 Type II, HIPAA, fast cold starts, and autoscaling you configure rather than tokens you consume. Whether that premium earns its place is a compliance question more than a performance one.
The names missing from that table are the ones the speed argument belongs to. Groq, Cerebras, and SambaNova post no hourly rate for reserved capacity. Cerebras sells fixed-price coding plans and routes everything outside its three pay-per-token models to a sales call, and the other two do much the same past the public endpoint. It’s a reasonable way to sell custom silicon in short supply. It also means the tier where their latency advantage would become contractual is the tier you cannot price without talking to someone, which is worth knowing before a benchmark table talks you into a migration.
Open weights make sense only measured against closed-API pricing. The premium anchors as of early 2026, per AI Superior’s snapshot:
| Model | $/M input | $/M output |
|---|---|---|
| OpenAI GPT-5.2 | $8.00 | $32.00 |
| OpenAI GPT-5.2 Pro | $21.00 | $168.00 |
| xAI Grok 4 Fast | $0.20 | $0.50 |
DeployBase’s February 2026 run logged Anthropic’s Claude Opus 4.6 at $5.00 in and $25.00 out with 35 to 45 tokens per second (measured). Enterprise clouds compete on compliance: AWS Bedrock’s Nova Micro reaches about 118 tokens per second with roughly 380ms TTFT (llm-benchmarks.com), and Google’s Gemini stack posted 180ms TTFT in DeployBase’s tests. Those are public API endpoints too, the same tier as every open-weight measurement above. The gap between these stickers and the open-weight table is what you actually buy by picking open models. Our open versus closed price gap breakdown covers the savings.
Take a support chat agent: 10,000 requests a day, 800 input tokens and 300 output tokens per request. Over a 30-day month that is 240 million input tokens and 90 million output. Rough monthly totals at each platform’s Llama 3.3 70B rate, arithmetic shown:
| Platform | Input cost | Output cost | Total |
|---|---|---|---|
| DeepInfra ($0.10 / $0.32) | $24.00 | $28.80 | $52.80 |
| Groq ($0.59 / $0.79) | $141.60 | $71.10 | $212.70 |
| SambaNova ($0.60 / $1.20) | $144.00 | $108.00 | $252.00 |
| Together AI ($1.04 / $1.04) | $249.60 | $93.60 | $343.20 |
| Scaleway (€0.90 / €0.90) | €216.00 | €81.00 | €297.00 |
Same model, same tokens, a 6.5x spread across the dollar rows. Now reasoning token overhead, something most tables hide. Swap in a reasoning model and the same questions can triple the output tokens. DeepSeek-R1-0528 at $0.50 in and $2.15 out would bill roughly $120 for the input and $581 for 270 million output tokens on this workload, about $700 a month (estimate, inputs shown). Its per-token rates are five to seven times DeepInfra’s Llama 3.3 70B Turbo. Its completed task is thirteen.
Rather than trusting a table that ages (inference pricing has compressed by orders of magnitude since 2022 and continues to fall), price your own workload against the live catalog. DeepInfra publishes every rate at api.deepinfra.com/models/list, so the arithmetic above fits in a few lines:
import requests
CATALOG = "https://api.deepinfra.com/models/list"
def rates_per_million(model_name):
"""Live input and output rates, in dollars per million tokens."""
for model in requests.get(CATALOG, timeout=30).json():
if model["model_name"] == model_name:
pricing = model["pricing"]
return (
pricing["cents_per_input_token"] * 10_000,
pricing["cents_per_output_token"] * 10_000,
)
raise LookupError(f"{model_name} is not in the catalog")
def cost_per_1k_requests(model_name, input_tokens=800, output_tokens=300):
price_in, price_out = rates_per_million(model_name)
per_request = (input_tokens * price_in + output_tokens * price_out) / 1_000_000
return per_request * 1_000
# A direct answer against a reasoning model that triples its output.
print(cost_per_1k_requests("meta-llama/Llama-3.3-70B-Instruct-Turbo"))
print(cost_per_1k_requests("deepseek-ai/DeepSeek-R1-0528", output_tokens=900))Run it and the two lines print 0.176 and 2.335, or $0.18 and $2.34 per thousand requests. Swap your own token split in and the ranking can reorder.
The biggest hidden cost is output-token weighting. Output priced four to eight times input means a verbose model is a stealth price increase, and reasoning models that triple the output token count turn a cheap rate card into an expensive bill.
Four more decide the rest of the gap between the sticker and the invoice:
Our token math and cost-per-completion guide covers the mechanics behind each item.
What is the fastest LLM inference API?
Cerebras leads sustained throughput at 3,000 tokens per second on gpt-oss-120B (vendor-published, April 2026). Groq and DeepInfra lead on first-token latency, both near-zero TTFT in llm-benchmarks.com’s rolling runs. Every one of those figures is a public serverless endpoint, which is the only tier third-party benchmarks can reach.
Why do the cheapest platforms often benchmark slowest?
Because the benchmark measures a shared serverless endpoint, and a low per-token rate is built out of aggressive batching. Batching raises the number of requests a GPU serves at once, which is what funds the rate, and lowers tokens per second on any single stream, which is what the benchmark reports. The same platform’s dedicated endpoints behave differently, and no independent source publishes comparable numbers for those because each one is configured per customer.
DeepInfra and OpenRouter share the lowest published rate on Llama 3.3 70B at $0.10 in and $0.32 out per million tokens (Infrabase, August 3, 2026).
TTFT is how long until the first token arrives. Throughput is how fast the rest follow.
No. Reasoning models emit multiple times more output tokens, and output costs four to eight times more than input. Price the completed task, not the token.
Yes. DeepInfra, Together, Scaleway, Novita, OpenRouter, and Groq expose OpenAI-compatible endpoints. Point base_url at the provider and keep your code.
Send a request with a realistic prompt (not an empty one) and time the gap between the request leaving the client and the first streamed token arriving. Standardized benchmarks like llm-benchmarks.com use fixed prompt lengths and rolling 7-day windows to smooth variance. TTFT depends on prompt length, queue depth, and whether the endpoint needs a cold start, so a single measurement on an empty endpoint tells you very little about production behavior.
It depends on your duty cycle. Serverless charges per token and scales to zero when idle, so spiky or low-volume workloads pay only for what they use. Reserved or dedicated capacity charges by the hour regardless of traffic. Once your sustained token spend exceeds the hourly GPU cost, dedicated is cheaper. Below that crossover, serverless wins.
Slightly and model-dependently. FP8 halves the memory footprint compared to bfloat16, which lets providers fit larger models on the same hardware and serve them faster. On most instruction-following and chat tasks the quality difference is negligible. On tasks that depend on fine numerical precision or long-chain reasoning, some models show measurable degradation. Check benchmark scores for the specific FP8 variant you plan to use rather than assuming the answer is universal.
Speed and cost stop conflicting once you measure both per completed task, on the tier you will actually run. The tables above show our work, sources and dates included, and label which endpoint every number came from, so you can redo the math against your own traffic instead of inheriting ours. If a published throughput figure is about to decide a migration, price the dedicated tier before signing anything. This is the number nobody benchmarks, and the one a latency budget ends up living on.
Start with the DeepInfra model catalog and price your workload at these rates. The documentation covers the OpenAI-compatible API in detail. Questions and benchmark disagreements are welcome at feedback@deepinfra.com, in the Discord, or on X @DeepInfra.
Frontier-Level Agents on Open Models: LangChain Deep Agents + NVIDIA Nemotron 3 Ultra, Live on DeepInfraOpen models have reached frontier-level agent performance. Starting today, you can point LangChain Deep Agents at NVIDIA Nemotron 3 Ultra running on DeepInfra and get top-tier agent accuracy at roughly 10x lower cost than leading closed models.
Fork of Text Generation Inference.The text generation inference open source project by huggingface looked like a promising
framework for serving large language models (LLM). However, huggingface announced that they
will change the license of code with version v1.0.0. While the previous license Apache 2.0
was permissive, the new on...
Langchain improvements: async and streamingStarting from langchain
v0.0.322 you
can make efficient async generation and streaming tokens with deepinfra.
Async generation
The deepinfra wrapper now supports native async calls, so you can expect more
performance (no more t...© 2026 DeepInfra. All rights reserved.