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

Granite-4.2-8b is a practical pick for anyone shopping for a small open-weight reasoning model. It costs $0.06 per million input tokens and $0.25 per million output tokens. It also scores 11 on the Artificial Analysis Intelligence Index among small (4B to 40B) open-weight models.
Its input price sits below the $0.12 median for comparable models, and its output price matches the $0.25 median. You can reach it directly or through routed access across multiple providers.
Granite-4.2-8b is an 8-billion-parameter reasoning model from IBM’s Granite family, released in late August 2026 and post-trained from Granite-4.1-8B-Base. It is a decoder-only dense transformer with text-in, text-out support, an Apache 2.0 license, and public weights on Hugging Face.
Developers get a 131,072-token context window, tool calling, structured JSON output, and three reasoning modes: full thinking, low-effort, and non-thinking. The mode you pick sets how much deliberation you pay for. To test locally, the quantized Granite 4.2 8B build on Ollama is a convenient starting point.
The model’s appeal comes from the shape of its tradeoff. It combines open weights, a commercial-friendly license, and long context with an Intelligence Index score of 11, ranked 35th of 141 models. Artificial Analysis also calls it somewhat verbose, which matters because output-heavy reasoning models can look cheap on input and expensive in practice.
On speed, first-token latency is competitive at 0.85 seconds against a 1.17-second median. Provider-level throughput varies, so provider choice is part of the pricing decision.
Evaluating Granite-4.2-8b comes down to one practical question: do its cost profile, 131K context window, and provider mix fit your production constraints? This guide covers DeepInfra, CoreWeave, and OpenRouter’s routing layer.
Granite-4.2-8b is priced for cost-conscious production use. It costs $0.06/M input, $0.25/M output, and $0.015/M cached tokens on DeepInfra. OpenRouter lists the same rates on its DeepInfra route, and CoreWeave offers $0.10/M input, $0.15/M output, and $0.05/M cached tokens.
It suits teams that want an Apache 2.0 reasoning model with long context, tool calling, and flexible deployment. DeepInfra is the strongest choice for low-cost direct access, while CoreWeave and OpenRouter are the main alternatives.
| Best For | Provider Recommendation | Why |
|---|---|---|
| Lowest price and cost-sensitive workloads | DeepInfra | DeepInfra lists $0.06/M input, $0.25/M output, and $0.015/M cached tokens, the lowest input and cache prices among the providers covered. |
| Direct production deployment with API features | DeepInfra | It offers public API access, zero data retention, JSON output, function calling, private endpoints, and the full 131,072-token context window. |
| Easiest onboarding and fastest time to first call | OpenRouter | OpenRouter is OpenAI-compatible and adds automatic failover plus Balanced, Nitro, Floor, and Exacto routing modes, which reduces integration and operations friction. |
| RAG, document-heavy, or high-throughput use cases | DeepInfra | Artificial Analysis measures 120 output tokens per second on DeepInfra against 89 on CoreWeave, and DeepInfra also has the lower input price. |
| Managed model access with reliability safeguards | OpenRouter | OpenRouter lists 99.98% availability over the last 24 hours, compared with 99.03% without routing. |
| Tool-calling workloads | DeepInfra, or OpenRouter in Exacto mode | DeepInfra lists JSON output and function calling, and OpenRouter’s Exacto mode routes for the highest tool-calling accuracy. |
Token pricing looks simple until a reasoning model writes more than you expected. Granite-4.2-8b is cheap on input and reasonable on output, but Artificial Analysis rates it somewhat verbose. Plan for that and the pricing works well. Look only at the headline input rate and the bill can surprise you.
A token is a chunk of text that can be shorter or longer than a word. Short words may be one token. Longer words, punctuation, code, and JSON structure all count too.
You are typically billed separately for:
| Token Type | What It Is | Why It Matters |
|---|---|---|
| Input tokens | The tokens in your prompt, system message, tool schema, chat history, and retrieved context | Granite-4.2-8b costs $0.06/M on DeepInfra. This helps with RAG, long instructions, and multi-turn agent state. |
| Output tokens | The tokens the model generates in its reply, including reasoning-heavy or structured responses | This is where costs creep up. Granite-4.2-8b costs $0.25/M output on DeepInfra, and Artificial Analysis rates it somewhat verbose. |
| Cached tokens | Reused prompt tokens that a provider serves from cache at a discount | Useful when you resend large system prompts, tool definitions, or repeated context. DeepInfra lists $0.015/M, a 75% discount from the base input rate. |
For Granite-4.2-8b, the practical billing pattern looks like this:
Artificial Analysis reports a blended rate of $0.05 per 1M tokens, using a 7:2:1 cache-hit, input, and output mix. This blended rate only applies if your traffic follows that mix.
Provider choice changes the shape of your bill. DeepInfra is cheaper on input and cache, while CoreWeave is cheaper on output.
| Provider | Input | Output | Cache | Token-Cost Advantage | Token-Cost Downside |
|---|---|---|---|---|---|
| DeepInfra | $0.06/M | $0.25/M | $0.015/M | Best fit for prompt-heavy workloads, RAG, long context, and reusable prompt prefixes | Higher output price, so verbose generations can erase the cheap-input advantage |
| OpenRouter via DeepInfra route | $0.06/M | $0.25/M | $0.015/M | Same token economics as DeepInfra, plus routing convenience | Same output-cost profile as DeepInfra |
| CoreWeave via OpenRouter | $0.10/M | $0.15/M | $0.05/M | Better fit for output-heavy workloads, especially when the model reasons at length | Input and cache cost more, so large prompts and repeated context add up |
| OpenRouter auto-routing | $0.06 to $0.10/M | $0.15 to $0.25/M | $0.015 to $0.05/M | Failover and routing modes, including Floor for the cheapest provider | Cost depends on which provider serves each request |
The practical split looks like this:
Speed adds a second factor. Artificial Analysis measures 120 output tokens per second on DeepInfra and 89 on CoreWeave. A 500-token response takes 21.69 seconds on DeepInfra and 28.72 seconds on CoreWeave. Time to first chunk is close, at 0.77 and 0.74 seconds.
Benchmarked verbosity makes output cost a budgeting issue. Artificial Analysis measured 130M output tokens across its Intelligence Index runs, against an 82M median for comparable models. Price this model on more than input cost.
A few concrete patterns:
The safest way to estimate Granite-4.2-8b cost is to model three separate numbers:
Skip the output estimate and the model can surprise you. Skip cache behavior and you can misprice repeated-agent workloads by a wide margin.
DeepInfra is the lowest-cost option for running Granite-4.2-8b at production scale. The company says it built its service from the ground up, from GPU hardware to the API layer. That ownership gives it control over cost, performance, and reliability.
With this model, DeepInfra pairs low token pricing with practical deployment features: public API access, zero data retention, JSON output, function calling, and private endpoints.
| Model Name | Best Use Case | Context Window | Input (per 1M) | Output (per 1M) |
|---|---|---|---|---|
| Granite-4.2-8b | Cost-efficient reasoning, tool use, and long-context API workloads | 131,072 tokens | $0.06 | $0.25 |
DeepInfra lists Granite-4.2-8b at $0.06 per 1M input tokens and $0.25 per 1M output tokens. This makes it an efficient option for teams optimizing token spend, especially on prompt-heavy and repeated-context workloads. DeepInfra also offers $0.015 per 1M cached tokens.
If you expect meaningful volume, DeepInfra is the provider to shortlist first for Granite-4.2-8b.
Each scenario below runs Granite-4.2-8b on DeepInfra and compares CoreWeave at its listed rates. DeepInfra is strongest when a workload is prompt-heavy, context-heavy, or cache-friendly.
You are building a developer-facing support bot that searches internal runbooks, SDK docs, incident notes, and architecture pages before answering. Each request carries a large prompt with retrieved context, while the answer stays moderate. RAG workloads spend more on input than on output, so low input pricing matters most.
| Volume | Model | Provider | Input Tokens | Output Tokens | Monthly Cost |
|---|---|---|---|---|---|
| 10M tokens/month | Granite-4.2-8b | DeepInfra | 8M | 2M | $0.98 |
Cost math:
The same workload on CoreWeave costs $1.10/month, so DeepInfra is cheaper by $0.12.
You are shipping an internal coding or ops agent that sends the same system prompt, tool definitions, and response schema on every call. DeepInfra’s $0.015/M cached rate makes those repeated prefixes much cheaper than normal input tokens.
IBM says the Granite 4.2 models think about which tool to call, and why, before making the call. That behavior suits agent workflows with stable scaffolding.
| Volume | Model | Provider | Input Tokens | Output Tokens | Monthly Cost |
|---|---|---|---|---|---|
| 10M tokens/month | Granite-4.2-8b | DeepInfra | 2M input + 7M cached | 1M | $0.48 |
Cost math:
The same token mix on CoreWeave costs $0.70/month ($0.20 input, $0.35 cached, and $0.15 output), so DeepInfra is cheaper by about $0.23.
Suppose you process product specs, contracts, tickets, or compliance documents. You ask Granite-4.2-8b to return compact JSON, such as classifications, extracted fields, risk flags, or summaries. The model reads a lot and writes a little. You get its long context window and structured output support without paying a premium to send large inputs.
| Volume | Model | Provider | Input Tokens | Output Tokens | Monthly Cost |
|---|---|---|---|---|---|
| 50M tokens/month | Granite-4.2-8b | DeepInfra | 45M | 5M | $3.95 |
Cost math:
The same workload on CoreWeave costs $5.25/month, so DeepInfra is cheaper by $1.30.
You are building a multilingual assistant where each turn includes prior chat state, policy instructions, and retrieved snippets. Granite-4.2-8b supports 12 languages, and low input pricing keeps repeated context affordable. This works best when answers stay short while the prompt grows over time.
| Volume | Model | Provider | Input Tokens | Output Tokens | Monthly Cost |
|---|---|---|---|---|---|
| 20M tokens/month | Granite-4.2-8b | DeepInfra | 16M | 4M | $1.96 |
Cost math:
The same workload on CoreWeave costs $2.20/month, so DeepInfra is cheaper by $0.24.
Many developers start with prototyping rather than volume. Granite-4.2-8b on DeepInfra lets you test tool calling, JSON output, and long prompts through a public API. You can move to private endpoints with zero data retention later. A small token budget covers meaningful experiments.
| Volume | Model | Provider | Input Tokens | Output Tokens | Monthly Cost |
|---|---|---|---|---|---|
| 5M tokens/month | Granite-4.2-8b | DeepInfra | 4M | 1M | $0.49 |
Cost math:
The same workload on CoreWeave costs $0.55/month, so DeepInfra is cheaper by $0.06.
The pattern holds across all five scenarios:
If large prompts, repeated context, and controlled output length dominate your workload, DeepInfra offers the cleanest cost profile of the providers covered here.
Choosing a provider for Granite-4.2-8b comes down to where your token spend lives. The model is inexpensive to feed and reasonably priced on output. Its measured verbosity makes the output side of the bill matter more than the headline input rate suggests.
Get that ratio wrong and the provider that looks cheapest on paper can cost more in practice.
Prompt-heavy and cache-friendly workloads fit DeepInfra’s $0.06/M input and $0.015/M cached rates best. Examples include RAG pipelines, tool-calling agents with stable schemas, and document extraction.
If your workload is output-heavy and the model reasons at length, model CoreWeave’s lower $0.15/M output rate against your actual token ratios. Weigh its lower measured output speed too. If operational flexibility matters, OpenRouter’s routing layer adds failover and higher reported availability.
The practical checklist is short: estimate your average input length, estimate your average output length, and decide whether reusable prompt prefixes can earn cache discounts. Those three numbers predict your monthly cost better than any blended benchmark rate.
Granite-4.2-8b’s Apache 2.0 license and public weights keep you free of any single provider. Starting on a managed API and migrating later is a real option. The Granite 4.2 8B chat completions API reference covers integration details.
Run a few representative requests through DeepInfra’s API, measure your actual token ratios, and build from there. The entry cost is low enough that the experiment is cheap.
Introducing GPU Instances: On-Demand GPU Compute for AI WorkloadsLaunch dedicated GPU containers in minutes with our new GPU Instances feature, designed for machine learning training, inference, and compute-intensive workloads.
vLLM vs SGLang: Performance, Features & Deployment Compared<p>Somebody on your team read a benchmark post, and now there’s a ticket to migrate the inference stack. That’s how most vLLM vs SGLang decisions start. A published test reports a 29 percent throughput gap, the number lands in Slack, and two weeks later you’re debugging kernel version conflicts at midnight while p99 latency sits […]</p>
Token Verbosity Is the New Pricing War<p>With each new model release, we see new benchmark claims and new arguments justifying the value of its tokens. However, when teams compare models for real-world workloads, the sticker price alone hides large per-task differences in the amount of work a model requires to solve a task. Cheaper tokens do not necessarily translate to lower […]</p>
© 2026 DeepInfra. All rights reserved.