IB
Granite 4.2 8B
Granite-4.2-8B is the mid-size reasoning model in the Granite 4.2 family, with built-in chain-of-thought and flexible full, non-thinking and low-effort modes.
Context
131K
Max output
131K
Input /1M
$0.06
Output /1M
$0.25
Blended /1M
$0.11
AcceptsTextProducesTextTokenizer Other
Providers
FastRouter routes your requests to this provider. You can also bring your own key.
ProviderInput /1MOutput /1MContextMax outputLatencyThroughputFeaturesDetails
DeepInfra
deepinfraInput /1M$0.06
Output /1M$0.25
Context131K
Max output131K
Latency—
Throughput—
Supports tool callingSupports structured (JSON) outputSupports reasoning
Supported parameters
Request parameters you can send with this model.
Core (Sampling & basic generation)
- max_tokens
- Maximum tokens to generate.
- min_p
- Minimum probability threshold for sampling.
- seed
- Seed for deterministic sampling.
- stop
- Sequences where generation stops.
- temperature
- Controls randomness of output.
- top_k
- Limits sampling to top K tokens.
- top_p
- Nucleus sampling threshold.
Penalties (Token Penalties)
- frequency_penalty
- Penalizes frequent tokens.
- presence_penalty
- Penalizes tokens already present.
- repetition_penalty
- Penalizes repeated tokens.
Reasoning (Reasoning Controls)
- include_reasoning
- Include reasoning trace in the response.
- reasoning
- Provider-specific reasoning configuration.
Tool Use (Function Calls & Tools)
- tool_choice
- How the model should use tools.
- tools
- Tool/function definitions available to the model.
Output & Format (Response Formatting)
- logprobs
- Return log probabilities of output tokens.
Performance
Median throughput and time to first token per provider over the last week.
Throughput
Latency
Make your first API call
OpenAI-compatible. Point your SDK at FastRouter, or call the API directly.
Replace
<FASTROUTER_API_KEY> with your key · Get your key →Installfrom openai import OpenAI
client = OpenAI(
base_url="https://api.fastrouter.ai/api/v1", # FastRouter base URL
api_key= "<FASTROUTER_API_KEY>", # Replace with your FastRouter API key
)
completion = client.chat.completions.create(
model="ibm/granite-4.2-8b", # Replace with your model ID
messages=[
{ "role": "user", "content": "What is the meaning of life?" }
]
)
print(completion.choices[0].message.content)
Frequently asked questions
Model scores sourced from ArtificialAnalysis