aiapicompareaiapicompare
aiapicompare › All models › Granite 4.2 8B

Granite 4.2 8B: API pricing compared

Granite 4.2 8B is available from 3 provider(s). Cheapest: DeepInfra at $0.060 per 1M input tokens and $0.250 per 1M output tokens. Context window: up to 131 072 tokens. Developer: ibm-granite.

ProviderInput $/1MOutput $/1MContext
DeepInfra
ibm-granite/granite-4.2-8b
$0.060$0.250131KGo to provider ↗ Set up
NanoGPT
ibm-granite/granite-4.2-8b
$0.060$0.150131KGo to provider ↗ Set up
OpenRouter
ibm-granite/granite-4.2-8b
$0.060$0.150131KGo to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

Reference price: $0.082 per 1M tokens (blended 3:1), median of all providers · How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with DeepInfra

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.deepinfra.com/v1/openai", api_key=os.environ["DEEPINFRA_API_KEY"])
r = client.chat.completions.create(
    model="ibm-granite/granite-4.2-8b",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is Granite 4.2 8B cheapest?

Currently at DeepInfra ($0.060 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use Granite 4.2 8B in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.

More models from ibm-granite

granite 4.2 3bgranite 4.2 30b