# Granite 4.2 30B

> Granite 4.2 30B, the flagship dense reasoning model in IBM's open-weight Granite 4.2 family, joins the catalog on one BYOK route.

- Date: 2026-11-03
- HTML: https://anyrouter.dev/blog/releases/2026-11-03-granite-4-2-30b

## Models

- `ibm-granite/granite-4.2-30b` (Granite 4.2 30B) — 30B dense reasoning model, 131K context, Apache 2.0, $0.16 / $0.65 per 1M (list). BYOK via Hugging Face.

## Notes

[`ibm-granite/granite-4.2-30b`](https://anyrouter.dev/model/ibm-granite/granite-4.2-30b) is the largest model in IBM's Granite 4.2 family. It is a 30B dense transformer with built-in `<think>` chain-of-thought and three modes: full thinking, low-effort and non-thinking. It calls tools, handles twelve tested languages and has a 131K-token context window, with open weights under Apache 2.0. [Granite 4.2 8B](https://anyrouter.dev/model/ibm-granite/granite-4.2-8b) is the smaller sibling.

```ts
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"

const anyrouter = createAnyRouter()
const { text } = await generateText({
  model: anyrouter("ibm-granite/granite-4.2-30b"),
  prompt: "Explain the difference between a mutex and a semaphore.",
})
console.log(text)
```

_AI SDK._

```bash
anyr login
```

_Sign in with the AnyRouter CLI, then call the model._

The route is **BYOK-only**. Add a Hugging Face key under [Dashboard → BYOK](https://anyrouter.dev/dashboard/byok); Hugging Face bills you at its own rates and AnyRouter charges nothing for a BYOK route.

Playbooks: [AI SDK](https://anyrouter.dev/use-cases/ai-sdk), [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk), [playground](https://anyrouter.dev/playground?model=ibm-granite/granite-4.2-30b).
