Using Granite 4.2 8B on OpenRouter

Implementation guide · Granite 4.2 · IBM Research

ServerlessOpen Source

OpenRouter exposes Granite 4.2 8B through model ID ibm-granite/granite-4.2-8b. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-10-05. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at OpenRouter and generate an API key.
  2. 2
    Use the OpenRouter SDK or REST API to call ibm-granite/granite-4.2-8b — see the documentation for request format.
  3. 3
    You'll be billed $0.06/1M input, $0.25/1M output tokens. See full pricing.

Code Examples

See OpenRouter documentation for integration details.

Pricing on OpenRouter

TypePrice (per 1M)
Input tokens$0.06
Output tokens$0.25

Capabilities

ReasoningJSON / Tool use

About Granite 4.2 8B

IBM Granite 4.2 8B (released 25 August 2026) is a dense decoder-only reasoning model (~8.8B params) post-trained from Granite-4.1-8B-Base with built-in <think> reasoning, tool calling, 128K native context (512K extension) and 12 tested languages. Apache 2.0; served on DeepInfra per HF provider mapping.

Model Specs

Released2026-08-25
Parameters8B
Context128K
ArchitectureDecoder Only

Provider

OpenRouter

OpenRouter, Inc.

New York, NY, USA