Find a model

Browse the full catalog →

Granite 4.2 8B

Open-weights chat model from IBM. One API key reaches this provider and every other model in the catalog.

Input / 1M$0.063
Output / 1M$0.16
Context131K
Providers 1 provider, one key

Up to 1 million free tokens. No card required.

Overview

About Granite 4.2 8B

Granite 4.2 8B is an open-weights chat model published by IBM, with a 131,072-token context window. It scores 94 on AI IQ, ranked #163. Through TrustedRouter it runs on 1 provider, with options in the US, from $0.063 per million input tokens.

Model ID
ibm-granite/granite-4.2-8b
Publisher
IBM
Modes
chat
Billing
Credits
Quickstart

Set it up with your agent

Paste this into Claude Code, Cursor or any coding agent.

Use Granite 4.2 8B through TrustedRouter in this project.

1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
   https://api-aws.trustedrouter.com/v1 and read the key from
   TRUSTEDROUTER_API_KEY.
3. Set the model to ibm-granite/granite-4.2-8b.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api-aws.trustedrouter.com/v1",
    api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
    model="ibm-granite/granite-4.2-8b",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api-aws.trustedrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ibm-granite/granite-4.2-8b",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
Your agent will need an API key.
1 provider

Providers

Open the row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.

Granite 4.2 8B providers and prices per 1M tokens
Provider Input Cached Output Cost per 1M in + out Details
Weights & Biases logo Weights & Biases $0.0633 $0.0158 $0.158 $0.22

Retention

Verification: no verified privacy claim.

W&B Serverless Inference runs on CoreWeave infrastructure. W&B does not publish a zero-retention, confidential-compute, or end-to-end-encryption commitment for this service, so these routes use the Standard privacy tier. TrustedRouter does not enable W&B Weave tracing for provider calls.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $0.0633/1M · Cached input $0.015825/1M · Output $0.15825/1M

TTFT: insufficient data

Speed: insufficient data

Weights & Biases provider page

FAQ

Questions

What model ID should I use for Granite 4.2 8B?

Use ibm-granite/granite-4.2-8b as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.

Do you log my prompts or outputs?

No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.

Which providers serve Granite 4.2 8B?

TrustedRouter currently lists Weights & Biases for Granite 4.2 8B. Provider availability and routing eligibility can change as catalog and health data update.

How much does Granite 4.2 8B cost through TrustedRouter?

The current lowest Credits input price is $0.0633/1M and the lowest Credits output price is $0.15825/1M. Prices are per one million tokens and come from the current route catalog.

How do I require zero data retention for Granite 4.2 8B?

Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.

Compare

Granite 4.2 8B vs other models

Start building with Granite 4.2 8B.

Up to 1 million free tokens. No card required.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

By continuing you agree to the terms of service and privacy policy.