Granite 4.2 8B

Granite 4.2 8B is a dense reasoning model from IBM. It is suited for mathematics, code generation, multilingual dialogue, and agentic workflows that need multi-step reasoning. It supports full, low-effort, and non-thinking modes. The model supports 12 languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese.

ChatIbm-granite131k tokens$0.109 / $0.1635 · 1M

ibm-granite/granite-4.2-8b

Context
131k tokens
Completion cap
117,964
Tools
Yes
JSON
Yes
Released
2026-08-31

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ibm-granite/granite-4.2-8b",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is Granite 4.2 8B?
Granite 4.2 8B is a dense reasoning model from IBM. It is suited for mathematics, code generation, multilingual dialogue, and agentic workflows that need multi-step reasoning. It supports full, low-effort, and non-thinking modes. The model supports 12 languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Granite 4.2 8B runs on the Geek Hub API (OpenAI-compatible). Model id: ibm-granite/granite-4.2-8b.
Is Granite 4.2 8B free?
No. Input is $0.109 per 1M tokens and output is $0.1635 per 1M tokens on Geek Hub (markup included).
What is the context length of Granite 4.2 8B?
Granite 4.2 8B has a 131k tokens context window. It supports up to 117,964 completion tokens.
Does Granite 4.2 8B support tool calling and structured outputs?
Granite 4.2 8B accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was Granite 4.2 8B released?
Granite 4.2 8B was released on 2026-08-31.

More models from Ibm-granite