Skip to main content

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 IDibm-granite/granite-4.2-8b
TypeText
PublisherIBM Granite
Context window131,072 tokens
Max output117,964 tokens
Input price$0.06 per 1M tokens
Output price$0.25 per 1M tokens
Cached input price$0.015 per 1M tokens
Capabilitiesreasoning, tool calling
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible
In the catalog since2026-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.

ModelPublisherContextPrice (per 1M tokens)
Granite 4.2 8BIBM Granite131,072$0.06 / $0.25
Qwen3.5 Flash 02.23
qwen/qwen3.5-flash-02-23
Qwen984K$0.065 / $0.26
Nova Lite V1
amazon/nova-lite-v1
Amazon300K$0.06 / $0.24
Nemotron 3 Nano 30B A3B
nvidia/nemotron-3-nano-30b-a3b
NVIDIA262K$0.06 / $0.24

More from IBM Granite

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.