# ibm-granite/granite-4.2-8b

Granite 4.2 8B is IBM's mid-size open reasoning model, built on Granite 4.1 8B Base for step-by-step reasoning and tool calling. It can run in full thinking, non-thinking or low-effort modes, and is licensed under Apache 2.0.

- **Model id:** `opencheap/granite-4.2-8b`
- **Price per 1M tokens:** $0.06 input / $0.15 output
- **Cached input:** $0.015 per 1M tokens
- **Context:** 131K tokens, 117K max output

## Providers

3 providers. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Hugging Face · coreweave · bf16 | $0.06 | $0.06* | $0.15 | — | — | — | 131K | — |
| NanoGPT · quantization unknown | $0.06 | $0.015 | $0.15 | — | — | — | 131K | — |
| CoreWeave · bf16 | $0.063 | $0.016 | $0.16 | 0.35 s | 86 tok/s | 100 % | 131K | 117K |

\* No cache discount from this provider: cached tokens cost the input price.

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Hugging Face · coreweave:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **CoreWeave:** `temperature`, `top_p`, `top_k`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/granite-4.2-8b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/granite-4.2-8b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/granite-4.2-8b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/granite-4.2-8b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/granite-4.2-8b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About ibm-granite/granite-4.2-8b

ibm-granite/granite-4.2-8b costs from $0.06 per 1M input tokens and $0.15 per 1M output tokens on OpenCheap, with cached input at $0.015 per 1M tokens. Its list price is $0.06 per 1M input tokens and $0.15 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00075, and 1,000 such requests about $0.75. Prices as of 2026-12-04 12:01 UTC.

3 providers serve ibm-granite/granite-4.2-8b on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.

ibm-granite/granite-4.2-8b is the only [IBM model](https://opencheap.si/models/lab/ibm) on OpenCheap today. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the ibm-granite/granite-4.2-8b API cost per 1M tokens?

ibm-granite/granite-4.2-8b costs from $0.06 per 1M input tokens and $0.15 per 1M output tokens on OpenCheap, with cached input at $0.015 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one ibm-granite/granite-4.2-8b request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.00075, and 1,000 such requests about $0.75. Every answer reports its own cost in usage.cost.

### Is ibm-granite/granite-4.2-8b cheaper on OpenCheap than its list price?

Its list price is $0.06 per 1M input tokens and $0.15 per 1M output tokens, the same as here.

### Which providers serve ibm-granite/granite-4.2-8b?

3 providers serve ibm-granite/granite-4.2-8b on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of ibm-granite/granite-4.2-8b?

Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.

### How do I call the ibm-granite/granite-4.2-8b API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/granite-4.2-8b. One OpenCheap key works for every model; the rest of your code stays the same.

## Similar models

- [deepseek-v4-flash](https://opencheap.si/models/deepseek-v4-flash): DeepSeek · 1M context · $0.073 / $0.15 per 1M · [Compare with ibm-granite/granite-4.2-8b](https://opencheap.si/compare/granite-4.2-8b-vs-deepseek-v4-flash)
- [Mistral Small 3.2 24B (2506)](https://opencheap.si/models/mistral-small-3.2-24b): Mistral · 256K context · $0.07 / $0.19 per 1M · [Compare with ibm-granite/granite-4.2-8b](https://opencheap.si/compare/granite-4.2-8b-vs-mistral-small-3.2-24b)
- [GPT 4o Mini](https://opencheap.si/models/gpt-4o-mini): OpenAI · 128K context · $0.06 / $0.24 per 1M · [Compare with ibm-granite/granite-4.2-8b](https://opencheap.si/compare/granite-4.2-8b-vs-gpt-4o-mini)
- [ByteDance-Seed/UI-TARS-1.5-7B](https://opencheap.si/models/ui-tars-1.5-7b): ByteDance · 128K context · $0.10 / $0.20 per 1M · [Compare with ibm-granite/granite-4.2-8b](https://opencheap.si/compare/granite-4.2-8b-vs-ui-tars-1.5-7b)
- [Schematron V2 Small](https://opencheap.si/models/schematron-v2-small): Inference.net · 128K context · $0.05 / $0.23 per 1M · [Compare with ibm-granite/granite-4.2-8b](https://opencheap.si/compare/granite-4.2-8b-vs-schematron-v2-small)
- [nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16](https://opencheap.si/models/nemotron-3.5-lightning-30b-a3b-bf16): NVIDIA · 262K context · $0.06 / $0.16 per 1M · [Compare with ibm-granite/granite-4.2-8b](https://opencheap.si/compare/granite-4.2-8b-vs-nemotron-3.5-lightning-30b-a3b-bf16)

[Compare ibm-granite/granite-4.2-8b with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/granite-4.2-8b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
