Skip to content
OpenKey

Granite 4.0 Micro

IBMReleased Oct 20, 2025

Granite-4.0-H-Micro is a 3B parameter from the Granite 4 family of models. These models are the latest in a series of models released by IBM. They are fine-tuned for long...

Try in playground
Context window
131K tokens
Max output
131K tokens
Input
text
Output
text
Tokenizer
Other
Released
Oct 20, 2025

Pricing

Per 1M tokens. The provider price and our flat 3% fee are separate columns — what you pay is their sum.

Per 1M tokensProvider+ 3% feeYou pay
Input$0.017$0.0005$0.018
Output$0.112$0.0034$0.115

Supported parameters

  • frequency_penalty
  • logit_bias
  • logprobs
  • max_tokens
  • min_p
  • presence_penalty
  • repetition_penalty
  • response_format
  • seed
  • stop
  • temperature
  • top_k
  • top_logprobs
  • top_p

Call it

OpenAI-compatible: point your SDK at api.openkey.ai/v1 and use model ibm-granite/granite-4.0-h-micro.

Code sample language
curl https://api.openkey.ai/v1/chat/completions \
  -H "Authorization: Bearer $OPENKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ibm-granite/granite-4.0-h-micro",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.openkey.ai/v1",
    api_key=os.environ["OPENKEY_API_KEY"],
)

completion = client.chat.completions.create(
    model="ibm-granite/granite-4.0-h-micro",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.openkey.ai/v1",
  apiKey: process.env.OPENKEY_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "ibm-granite/granite-4.0-h-micro",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Questions

How much does Granite 4.0 Micro cost via API?
Through OpenKey, Granite 4.0 Micro costs $0.018 per 1M input tokens and $0.115 per 1M output tokens. That is the provider price ($0.017 / $0.112) plus a flat 3% fee — nothing else.
What is Granite 4.0 Micro's context window?
Granite 4.0 Micro accepts up to 131K tokens of context and returns up to 131K tokens per request.
Is Granite 4.0 Micro OpenAI-compatible?
Yes. Send requests to OpenKey's /v1/chat/completions endpoint with model "ibm-granite/granite-4.0-h-micro" using any OpenAI SDK — only the base URL and API key change.
What inputs does Granite 4.0 Micro support?
Granite 4.0 Micro accepts text input and produces text output.

More from IBM

All IBM models →