Skip to content
IBM GraniteNew
ibm-granite/granite-4.2-8b

About this model

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

Make a request

OpenAI-compatible: set the base URL and your Promptix API key, keep your existing SDK.

curl https://promptix.tn/api/v1/chat/completions \  -H "Authorization: Bearer $PROMPTIX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "ibm-granite/granite-4.2-8b",    "messages": [      {"role": "user", "content": "Hello! What can you do?"}    ]  }'

Pricing

In TND per 1M tokens. VAT and the platform fee are added at top-up.

Input tokens

0.232 TND

per 1M tokens

Output tokens

0.968 TND

per 1M tokens

1,000 requests with 1K input and 500 output tokens cost about 0.716 TND.

Specifications

Provider
IBM Granite
Context window
131,072 tokens
Input modality
Text
Added
Aug 31, 2026
Supported parameters
frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_ppresence_penaltyreasoning