Hormouz AIHormouzSign in

IBM: Granite 4.2 8B: AI model

Granite 4.2 8B is a compact dense reasoning model in 12 languages from IBM with a 131K-token context window. Reachable from inside Iran through Hormouz.

Context window:
131,072 tokens
Input:
$0.06/1M tokens
Output:
$0.25/1M tokens
Type:
text
  • Tools
  • Streaming
  • Long context

Thinking levels: high · low · none

Granite 4.2 8B is a small dense reasoning model from IBM's Granite family. It can think fully, think briefly or skip thinking, so one model covers quick answers and harder problems in maths, code and multi-step agent work. It supports twelve languages, including English, German, Spanish, French, Japanese, Portuguese, Arabic, Korean and Chinese.

It accepts text input and returns text, and supports tool calling, structured JSON output and streaming. Reasoning can be switched on when a problem needs more thought and left off when speed matters. Granite 4.2 8B is commonly used for maths, code generation, multilingual chat and lightweight agents where a small model is enough. Hormouz serves it behind an OpenAI-compatible API: point your base URL at Hormouz, drop in a Hormouz key, and existing OpenAI SDK code runs without changes.

Pricing is usage-based: $0.06 per million input tokens and $0.25 per million output tokens. There is no fixed monthly fee, and you pay only for the tokens you use. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.

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,...

Quickstart

curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ibm-granite/granite-4.2-8b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorIBM Granite
TypeText
Context window131,072 tokens
Pricing$0.06/M in · $0.25/M out
APIChat Completions
CapabilitiesStreaming · Tools

Benchmarks

11.1
Intelligence Index
Better than 15% of models we compared
22.4
Coding Index
Better than 23% of models we compared
1.3
Agentic Index
Better than 20% of models we compared

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
63.1%
HLE
Humanity's Last Exam
9.7%
AA-LCR
Long-context reasoning
45%
CritPt
Research-level physics reasoning
0.3%
AA Omniscience
Broad factual knowledge accuracy
11.2%
Non-Hallucination
Rate of avoiding fabricated answers
68%

Coding

SciCode
Python for scientific computing
31.5%

Agentic

GDPval
Economically valuable tasks
0%

Source: Artificial Analysis

Code example

cURL
curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ibm-granite/granite-4.2-8b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python
from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
    model="ibm-granite/granite-4.2-8b",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
  model: "ibm-granite/granite-4.2-8b",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Buy the IBM: Granite 4.2 8B API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches IBM: Granite 4.2 8B and 600+ other models, and you pay only for what you use.
  • No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Create an account

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

FAQ

How much does Granite 4.2 8B cost?
Pricing is usage-based: $0.06 per million input tokens and $0.25 per million output tokens. There is no fixed monthly fee, and you pay only for the tokens you use.
How do I access Granite 4.2 8B from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides a stable path to the model from inside Iran, with no foreign credit card or circumvention tooling required.
Is Granite 4.2 8B compatible with OpenAI code?
Yes. Hormouz exposes an OpenAI-compatible API. Point your base URL at Hormouz and swap in your Hormouz key. Your existing SDKs and code run without a rewrite.
What context window and capabilities does Granite 4.2 8B have?
It has a 131K-token context window, accepts text input, and supports tool calling, structured JSON output and streaming. Reasoning can be switched on when a problem needs more thought and left off when speed matters.
What is Granite 4.2 8B good for?
Typical uses are maths, code generation, multilingual chat and lightweight agents where a small model is enough.

Updated 2026-10-13