We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
IBM: Granite 4.0 Micro
ibm-granite/granite-4.0-h-microTry IBM: Granite 4.0 Micro now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
IBM: Granite 4.0 Micro at a glance
- Input price is 96% lower than the median of 434 Text models.
- Context window of 131,000 tokens, enough for long documents and multi-turn conversations.
- A typical request (1,000 input / 500 output tokens) costs about $0.000256.
About IBM: Granite 4.0 Micro
IBM Granite 4.0 Micro, listed on api14 as ibm-granite/granite-4.0-h-micro, is a text model from IBM's Granite 4 family. It is a 3B parameter model, and IBM describes the Granite 4 family as the latest in a series of models the company has released. This particular variant is the H-Micro member of that family, and IBM states that the family is fine-tuned for long tasks, which makes the Micro size an accessible entry point into the Granite 4 line for teams that want IBM's newer generation without moving to a larger model.
The model works with text input and produces text output only; it does not accept images or audio, and it does not generate anything other than text. Its context window is 131,000 tokens, and the maximum output is 117,900 tokens. That combination of a large context and a very large output allowance means you can send long documents in a single request and still leave substantial room for the model's reply, which is unusual for a model of this size.
The practical uses follow from those numbers. Summarising long reports, contracts or transcripts fits comfortably inside the context window. Extraction and structured generation are a natural fit too, since the model supports response_format and a long output ceiling lets it emit large JSON objects or multi-section documents in one call. Because the output limit is generous relative to the input window, tasks where the answer is itself lengthy, such as rewriting, expansion or drafting long passages from source material, are viable. General chat, classification, tagging and lightweight agents over text data are also reasonable starting points.
You call it through api14's OpenAI-compatible API using the model id ibm-granite/granite-4.0-h-micro, so existing OpenAI SDKs and clients work with only a base URL and key change. The supported request parameters are frequency_penalty, logit_bias, logprobs, max_tokens, min_p, presence_penalty, repetition_penalty, response_format, seed, stop, temperature, top_k, top_logprobs and top_p. That set covers sampling control (temperature, top_p, top_k, min_p), repetition handling (frequency_penalty, presence_penalty, repetition_penalty), deterministic retries via seed, structured output via response_format, and token-level inspection through logprobs and top_logprobs.
There is no stated limitation beyond text-only input and output, and it is worth noting it is a 3B parameter model, so if you need vision, audio or a much larger model, a different option on api14 may suit better. Otherwise, for long-context text work with a high output ceiling, it is worth testing directly.
How to call the IBM: Granite 4.0 Micro API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "ibm-granite/granite-4.0-h-micro".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "ibm-granite/granite-4.0-h-micro",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltylogit_biaslogprobsmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstoptemperaturetop_ktop_logprobstop_pSpecifications
- Context length
- 131,000
- Max output
- 117,900
- Input
- text
- Output
- text
Requests on api14 · last 7 days
IBM: Granite 4.0 Micro: frequently asked questions
- How much does the IBM: Granite 4.0 Micro API cost?
- IBM: Granite 4.0 Micro costs Input $0.06 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of IBM: Granite 4.0 Micro?
- IBM: Granite 4.0 Micro reads up to 131,000 tokens per request: prompt, history and documents together. It writes up to 117,900 output tokens per response.
- What can IBM: Granite 4.0 Micro do?
- IBM: Granite 4.0 Micro accepts text and returns text.
- How do I call IBM: Granite 4.0 Micro from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "ibm-granite/granite-4.0-h-micro". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to IBM: Granite 4.0 Micro?
- Comparable Text models at a similar price: Mistral: Mistral Small 3, Meta: Llama 3.1 8B Instruct, Nex AGI: Nex-N2.5-Mini. Each runs through the same API key, so switching is one string.
IBM: Granite 4.0 Micro community
New topicThis community has no topics yet. Open the first one about IBM: Granite 4.0 Micro.