ibm/granite-4-h-smallOpen WeightsOpen-weight hybrid model for enterprise chat, coding, retrieval-augmented generation, and tool-calling workloads
Benchmark Pricing$0.06 / 1M in$0.27 / 1M out
Context: 131,072 tokens•Max Output: 131,072 tokens•Released: 2025-10-02
TECHNICAL SPECIFICATIONS
Context Window131,072131.1K tokens
Max Output131,072131.1K tokens
LicenseOpen SourceSelf-hostable
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema
MODEL CONTEXT PROTOCOL (MCP) READINESS
✓ Granite-4.0-H-Small natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.
MCP Context Window Recommendations
With a context capacity of 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.
API CALL INVOCATION EXAMPLE
// Example: Calling Granite-4.0-H-Small via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.IBM_API_KEY,
});
const response = await client.chat.completions.create({
model: "ibm/granite-4-h-small",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
watsonx.aiibm/granite-4-h-small
$0.06 / $0.27
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
MODEL RESOURCES
More Models by Ibm
Alternative and family models from the same lab
Granite 4.2 8B
ibm/granite-4.2-8b•Ibm
Reasoning model for deliberate analysis, multi-step problem solving, and tool use
118K out max
In: $0.10 • Out: $0.15
IbmGranite-4.0-H-Micro
ibm/granite-4-h-micro•Ibm
Compact open-weight hybrid Granite model for lightweight enterprise chat and tool calling
131.1K out max
In: Free • Out: Free
Ibm