# Granite 4.2 8B

> Granite 4.2 8B is the mid-size dense reasoning model in IBM's Granite 4.2 family, with full, low-effort, and non-thinking modes, tool calling, and a 131K-token context window.

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

**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-8b",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| deepinfra-byok | $0.06/M (list) | $0.25/M (list) |
| openrouter-byok | $0.06/M (list) | $0.25/M (list) |
| huggingface-byok | $0.06/M (list) | $0.25/M (list) |

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

## Source

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