Skip to content
FluxCDNFluxCDN
esc

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.

Input
23,912 Toman/M tokens
Output
54,656 Toman/M tokens
Context
131K
Max output
118K
Published
Aug 31, 2026
Maker
IBM

Free plan prices, in Toman at today's rate. Plans and prices

Price by plan

Toman per million tokens at today's rate. A plan lowers the price of your usage up to a limit each period.

PlanInputOutput
Free23,91254,656
Pro22,93252,416
Max21,95250,176

Capabilities

  • Text
  • Tools
  • JSON
  • Reasoning

What it takes and gives

Accepts
  • Text
Creates
  • Text

Call it

Pass ibm-granite/granite-4.2-8b as the model name, or let router/auto choose for you.

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://ai.fluxcdn.cloud/api/v1",
    api_key=os.environ["FLUXCDN_API_KEY"],
)

resp = client.chat.completions.create(
    model="router/auto",
    messages=[{"role": "user", "content": "Hello"}],
)

print(resp.choices[0].message.content)