ibm-granite
IBM: 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,...
Context
131k tokens
Input / 1M tokens
$0.10
Output / 1M tokens
$0.15
Benchmark
—
Pricing
Input tokens$0.10 per 1M tokens
Output tokens$0.15 per 1M tokens
Cache read$0.05 per 1M tokens
Technical details
Model IDibm-granite/granite-4.2-8b
Context window131k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
Max output tokens117,964
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'ibm-granite/granite-4.2-8b',
messages: [{ role: 'user', content: 'Hello!' }],
})