Text model
Granite 4.2 8B
ibm-granite/granite-4.2-8b
ibm-granite/granite-4.2-8b is a language model from IBM Granite you can call on the OceanToken API at $0.06 per 1M input tokens and $0.25 per 1M output tokens, with a 131K-token context window and up to 118K output tokens; it supports reasoning, tool calling.
At a glance
| Model ID | ibm-granite/granite-4.2-8b |
|---|---|
| Type | Text |
| Publisher | IBM Granite |
| Context window | 131,072 tokens |
| Max output | 117,964 tokens |
| Input price | $0.06 per 1M tokens |
| Output price | $0.25 per 1M tokens |
| Cached input price | $0.015 per 1M tokens |
| Capabilities | reasoning, tool calling |
| Endpoint | /v1/chat/completions, /v1/responses |
| API shape | OpenAI-compatible |
| In the catalog since | 2026-08-31 |
Call it
Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.
curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "ibm-granite/granite-4.2-8b", "messages": [{"role": "user", "content": "Hello"}]}'
Compared with similar models
Text models on OceanToken closest to ibm-granite/granite-4.2-8b in price. Every price is what you pay, in US dollars, with no platform fee on top.
| Model | Publisher | Context | Price (per 1M tokens) |
|---|---|---|---|
| Granite 4.2 8B | IBM Granite | 131,072 | $0.06 / $0.25 |
Qwen3.5 Flash 02.23qwen/qwen3.5-flash-02-23 | Qwen | 984K | $0.065 / $0.26 |
Nova Lite V1amazon/nova-lite-v1 | Amazon | 300K | $0.06 / $0.24 |
Nemotron 3 Nano 30B A3Bnvidia/nemotron-3-nano-30b-a3b | NVIDIA | 262K | $0.06 / $0.24 |
More from IBM Granite
- Granite 4.0 H Micro
ibm-granite/granite-4.0-h-micro
All IBM Granite models on OceanToken
Use it
Create an account All models and prices
Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.