# Granite 4.2 30B

> Granite 4.2 30B is the flagship dense reasoning model in IBM's Granite 4.2 family, with built-in chain-of-thought, full, low-effort, and non-thinking modes, reasoning-augmented tool calling, and a 131K-token context window.

**ID**: `ibm-granite/granite-4.2-30b`  
**Creator**: ibm-granite  
**Category**: text  
**Context**: 131K tokens  
**Pricing**: $0.16 / $0.65 per 1M · billed by your provider (BYOK)  
**Released**: 2026-08-25  
**Web page**: https://anyrouter.dev/model/ibm-granite/granite-4.2-30b

**Input modalities**: text  
**Output modalities**: text  

**Capabilities**: chat, reasoning, streaming, function-calling

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "ibm-granite/granite-4.2-30b",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| huggingface-byok | $0.16/M (list) | $0.65/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Model card

- Architecture: dense [1]
- Total parameters: 30B [1]
- Native context: 131072 tokens [2]
- License: Apache-2.0, open weights (https://huggingface.co/ibm-granite/granite-4.2-30b) [1]

### Strengths [1]

- Built-in <think> chain-of-thought for math, coding and multi-step problems
- Switches between full thinking, non-thinking and low-effort modes per query
- Reasoning-augmented tool calling for agentic workflows

### Known limits [1]

- Multilingual quality may vary compared to English
- Reasoning inside <think> tags can be unpolished intermediate thought

### Use cases [1]

- Reasoning and code generation
- Tool calling and agentic workflows
- Multilingual dialog

### Links

- announcement: https://huggingface.co/blog/ibm-granite/granite-4-2
- model card: https://huggingface.co/ibm-granite/granite-4.2-30b
- docs: https://www.ibm.com/granite/docs/

### Sources

1. [Granite-4.2-30B model card](https://huggingface.co/ibm-granite/granite-4.2-30b) (accessed 2026-11-03)
2. [Granite-4.2-30B config.json](https://huggingface.co/ibm-granite/granite-4.2-30b/blob/main/config.json) (accessed 2026-11-03)

## Source

- Upstream docs: https://huggingface.co/ibm-granite/granite-4.2-30b
