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

Granite 4.2 8B API Review: Providers Compared

Published on 2026.10.19 by DeepInfra
Granite 4.2 8B API Review: Providers Compared

Granite 4.2 8B API Review Summary

AttributeDetails
Creator / TypeIBM, open-weights model
Release DateAugust 25, 2026
ReasoningYes, a reasoning model with built-in chain-of-thought
ModalitiesText in, text out (not multimodal, no image input)
Context Window131,072 tokens (about 197 A4 pages), with a long-context extension to 512K
Size / License / Weights8B parameters, Apache 2.0, weights on Hugging Face (ibm-granite/granite-4.2-8b)
Intelligence11 on the Artificial Analysis Intelligence Index, ranked 35th of 141 models and above the median of 8 for similar-size open-weight models
Cost$0.06 per 1M input tokens, $0.25 per 1M output tokens, a 75% cache discount, and about $0.02 per Intelligence Index task
Speed98.4 output tokens per second, above the median of about 75
Latency (TTFT)0.85 seconds, better than the 1.17-second median
Verbosity130M output tokens generated across the Intelligence Index, against a median of 82M
AvailabilityAvailable through two API providers, CoreWeave and DeepInfra, with pricing that varies by provider

Introduction to Granite 4.2 8B

Granite 4.2 8B is the mid-size reasoning model in IBM’s Granite 4.2 family. IBM positions it as a balanced model for general-purpose enterprise applications. Built-in chain-of-thought reasoning inside <think>…</think> tags supports strong results on reasoning-heavy benchmarks such as AIME 2025 (86.67) and LiveCodeBench v6 (73.24).

Three thinking modes let you balance depth against latency on each query: full thinking (the default), non-thinking, and low-effort.

The model is a decoder-only dense transformer. It uses grouped query attention (32 attention heads and 8 KV heads), rotary position embeddings (RoPE), and an MLP with SwiGLU activation.

It supports 12 languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese.

Key capabilities

  • Built-in reasoning: Native chain-of-thought improves performance on math, coding, and complex multi-step problems.
  • Flexible thinking modes: You can switch between full thinking, non-thinking, and low-effort modes within a single model.
  • Reasoning-augmented tool calling: The model reasons about which tool to call, and why, before it makes the call.
  • Agentic workflows: Reinforcement learning covered software engineering on real repositories, multi-step terminal tasks, and multi-hop web search.

API Providers Comparison

Artificial Analysis tracks two providers for Granite 4.2 8B: DeepInfra and CoreWeave. OpenRouter routes between them, and Puter.js offers a free developer integration.

ProviderBlended Price (per 1M tokens)Output SpeedLatency (median first chunk)Key Differentiator
DeepInfra$0.05120 t/s0.77 sLowest input and cache prices ($0.06 and $0.015 per 1M) and the highest measured output speed
CoreWeave$0.0789 t/s0.74 sLowest output price ($0.15 per 1M) and slightly lower first-chunk latency
OpenRouter$0.06 in / $0.25 out on the DeepInfra routeDepends on the routed providerDepends on the routed providerAutomatic failover between DeepInfra and CoreWeave through one OpenAI-compatible API
Puter.jsFree to developers under a user-pays modelNot publishedNot publishedFree integration with no backend or API key setup

Latency in the table is the median time to the first chunk. A reasoning model also spends time thinking before its first answer token. Artificial Analysis measures that time at 17.78 seconds on DeepInfra and 22.65 seconds on CoreWeave.

OpenRouter’s own provider table shows the same ordering on throughput, with DeepInfra ahead of CoreWeave.

Best API Options

Three options cover most use cases:

API OptionWhy It’s a Strong Choice
DeepInfra (Recommended)DeepInfra offers the lowest input and cache prices, a $0.05 blended rate, and the highest measured output speed of the providers Artificial Analysis tracks. The Apache 2.0 weights make the model easy to host, which gives you a managed API without self-hosting overhead.
CoreWeaveCoreWeave suits workloads where output volume dominates the bill, thanks to its $0.15 per 1M output price. Its first-chunk latency is on par with DeepInfra.
OpenRouterOpenRouter provides automatic failover between the two providers through OpenAI-compatible endpoints, which simplifies integration. It reports 99.98% availability over 72 hours.

Limitations of the Model

Granite 4.2 8B has several limitations to weigh before you deploy it:

  • Verbosity: The model generated 130M output tokens across the Intelligence Index, against a median of 82M. Longer outputs raise output costs, so budget for them.
  • Reasoning latency: Time to the first answer token includes thinking time. Non-thinking and low-effort modes cut that wait for latency-sensitive requests.
  • Memory footprint: Weights take roughly 16 GB in bfloat16, and 4-bit quantized builds shrink that to roughly 4 to 6 GB. The KV cache grows with context length and concurrency, so serving the full 131K window needs far more memory than the weights alone.
  • Multilingual variance: Fine-tuning relied mostly on English instruction-response pairs, so multilingual dialog quality may vary. IBM notes that few-shot examples can help.
  • Safety and output quality: IBM notes that the model may occasionally produce inaccurate, biased, or unsafe responses and recommends pairing it with Granite Guardian. Content inside the reasoning tags is intermediate thinking and does not represent a final conclusion.
  • Coding headroom: SWE-Bench Verified reaches 47.67. Scores of 19.11 on SWE-Bench Pro and 20.56 on Terminal-Bench 2.1 show room to grow on harder agentic coding tasks.
  • Text only: The model supports text input and output, with no image processing.

Methodology Used to Evaluate the Models

This review combines independent Artificial Analysis measurements, IBM’s published results, and provider data.

Intelligence assessment

  • Models are scored on the Artificial Analysis Intelligence Index. It is a weighted average across agents (30%), coding (20%), scientific reasoning (20%), and general knowledge (30%).
  • Granite 4.2 8B scores 11, above the median of 8 for open-weight models of similar size.

Performance metrics

  • Time to first token (TTFT): the time between sending a request and receiving the first token of the response.
  • Output speed: the average number of tokens received per second after the first token arrives.
  • Blended pricing: a 7:2:1 ratio of cache-hit, input, and output tokens, which approximates realistic usage costs.

Benchmark datasets

IBM’s published evaluations for the 8B model, run with a framework based on the NeMo Evaluator SDK, include:

  • SWE-Bench Verified (47.67), SWE-Bench Multilingual (30.78), and SWE-Bench Pro (19.11) for software engineering
  • GPQA (64.14) and AIME 2025 (86.67) for scientific and mathematical reasoning
  • Berkeley Function Calling Leaderboard v4 (52.39) and τ³-bench (58.06) for tool calling
  • IFBench (79.33) and Arena-Hard-V2 (65.19) for instruction following

IBM reports these results itself, so treat them as directional until independent evaluations catch up.

Provider comparison

  • Artificial Analysis benchmarks providers on price, output speed, and latency.
  • OpenRouter data supplies routing behavior and availability.

Key Takeaways from the Analysis

  • Strong intelligence for its size: Granite 4.2 8B scores 11 on the Intelligence Index. That is above the median of 8 for comparable open-weight models and ranks 35th of 141 models overall.
  • Cost efficiency through third-party providers: DeepInfra lists $0.06 per 1M input tokens, $0.25 per 1M output tokens, and $0.015 per 1M cached tokens. That works out to a $0.05 blended rate and about $0.02 per Intelligence Index task.
  • Apache 2.0 licensing: The permissive license allows commercial deployment, fine-tuning, and self-hosting.
  • Flexible reasoning modes: Toggling between full thinking, low-effort, and non-thinking modes lets you tune depth against latency on each query.
  • Native tool calling: Reasoning-augmented tool calling has the model weigh which tool to use before it acts. IBM reports 58.06 on τ³-bench and 52.39 on BFCL v4.
  • Competitive speed with verbose output: At 98.4 output tokens per second, the model runs faster than the median of about 75. Its verbosity still shapes total response time and cost.
  • Self-hosting is viable: IBM publishes FP8, NVFP4, MXFP4, and GGUF variants. With a capped context length, 4-bit builds fit on consumer-grade GPUs.

Conclusion

Granite 4.2 8B delivers strong reasoning in a compact, permissively licensed package. It suits organizations that want:

  • Enterprise-grade reasoning with full transparency into model weights
  • Cost-effective deployment through competitive third-party API providers
  • Agentic workflow support with native tool calling and multi-step reasoning
  • Multilingual capabilities across 12 supported languages

DeepInfra is the strongest primary API option, pairing the lowest input and cache prices with the highest measured output speed. Consider CoreWeave for output-heavy workloads and OpenRouter when automatic failover and higher availability matter most.

The model fits well-scoped tasks such as classification, metadata generation, structured API calls, document handling, and internal assistants. Human review should be part of the workflow. Demanding client-facing analysis or cutting-edge software engineering may call for a larger model.

Related articles
GLM-5 API Benchmarks: Latency, Throughput & CostGLM-5 API Benchmarks: Latency, Throughput & Cost<p>GLM-5 is the latest open-weights reasoning model released by Z AI (Zhipu AI) in February 2026, characterized by high &#8220;thinking token&#8221; usage. It is a Mixture of Experts (MoE) model with 744B total parameters and 40B active parameters, scaling up from GLM-4.5&#8217;s 355B parameters. The model was pre-trained on 28.5T tokens and features a 200K+ [&hellip;]</p>
Langchain improvements: async and streamingLangchain 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...
Nemotron 3 Nano vs GPT-OSS-20B: Performance, Benchmarks & DeepInfra ResultsNemotron 3 Nano vs GPT-OSS-20B: Performance, Benchmarks & DeepInfra Results<p>The open-source LLM landscape is becoming increasingly diverse, with models optimized for reasoning, throughput, cost-efficiency, and real-world agentic applications. Two models that stand out in this new generation are NVIDIA’s Nemotron 3 Nano and OpenAI’s GPT-OSS-20B, both of which offer strong performance while remaining openly available and deployable across cloud and edge systems. Although both [&hellip;]</p>