IBM: Granite 4.0 Micro API
Access IBM: Granite 4.0 Micro from IBM Granite using Puter.js AI API.
Get Startedibm-granite/granite-4.0-h-micro
Model Card
IBM Granite 4.0 Hybrid Micro is a 3B parameter dense hybrid model from IBM built on a decoder-only transformer architecture with Mamba2, optimized for low latency, edge, and local applications. It features enhanced tool-calling capabilities and is designed for fast execution of tasks like function calling within agentic workflows. Released under Apache 2.0 license, it's customizable via fine-tuning, LoRA adapters, and RAG.
Context Window N/A
tokens
Max Output N/A
tokens
Input Cost $0.02
per million tokens
Output Cost $0.11
per million tokens
Release Date May 19, 2025
API Usage Example
Add IBM: Granite 4.0 Micro to your app with just a few lines of code.
No API keys, no backend, no configuration required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms", {
model: "ibm-granite/granite-4.0-h-micro"
}).then(response => {
document.body.innerHTML = response.message.content;
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "ibm-granite/granite-4.0-h-micro"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Frequently Asked Questions
The IBM: Granite 4.0 Micro API gives you access to IBM Granite's chat model through Puter.js. With just a few lines of JavaScript, you can integrate IBM: Granite 4.0 Micro into any web app or Node.js project — no API keys, no backend, and no configuration required.
IBM: Granite 4.0 Micro was created by IBM Granite and released on May 19, 2025.
| Price per 1M tokens | |
|---|---|
| Input | $0.02 |
| Output | $0.11 |
You can access the IBM: Granite 4.0 Micro API with just a few lines of JavaScript — no API keys, no backend, and no configuration required. Include the Puter.js library in your project and start making calls right away. For more details, check out our documentation.
Yes — the IBM: Granite 4.0 Micro API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Get started with Puter.js
Add IBM: Granite 4.0 Micro to your app without worrying about API keys or setup.
Read the Docs View Tutorials