---
title: IBM: Granite 4.0 Micro API | Text Generation | ModelsLab
description: Compact 3B parameter dense transformer LLM with 128K context, delivering 70%+ memory savings for efficient RAG, agents, edge inference and long-context.
url: https://modelslab.com/models/ibm-granite/ibm-granite-granite-4.0-h-micro.md
canonical: https://modelslab.com/models/ibm-granite/ibm-granite-granite-4.0-h-micro.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T00:22:52.341056Z
---

IBM: Granite 4.0 Micro
---

 [LLMs.txt](https://modelslab.com/models/open_router/ibm-granite-granite-4.0-h-micro/llms.txt) [.md](https://modelslab.com/models/ibm-granite/ibm-granite-granite-4.0-h-micro.md)

ibm-granite-granite-4.0-h-micro ibm-granite Closed Source Model $0.063500 / call

IBM: Granite 4.0 Micro
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### IBM: Granite 4.0 Micro

ibm-granite ibm-granite-granite-4.0-h-micro

Copy model ID

PricingInput $0.017 / 1M tokens

Output $0.11 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[Q3](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-3B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 3B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-3B-Instruct)

[GG](https://modelslab.com/models/open_router/google-gemini-2.5-pro-preview)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 2.5 Pro Preview 06-05

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.5-pro-preview)

[TR](https://modelslab.com/models/open_router/thedrummer-rocinante-12b)[Open Router](https://modelslab.com/models/open_router)

 [TheDrummer: Rocinante 12B

Closed Source Model](https://modelslab.com/models/open_router/thedrummer-rocinante-12b)

[![Gemini 3 Pro Preview](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/1846e76f-9d5c-4a35-a43a-82db45b7bb8b.png)](https://modelslab.com/models/google/gemini-3-pro-preview)[Google](https://modelslab.com/models/google)

 [Gemini 3 Pro Preview

Closed Source Model](https://modelslab.com/models/google/gemini-3-pro-preview)

[OO](https://modelslab.com/models/open_router/openai-o3)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o3

Closed Source Model](https://modelslab.com/models/open_router/openai-o3)

[MM](https://modelslab.com/models/open_router/minimax-minimax-m2-her)[Open Router](https://modelslab.com/models/open_router)

 [MiniMax: MiniMax M2-her

Closed Source Model](https://modelslab.com/models/open_router/minimax-minimax-m2-her)

[RE](https://modelslab.com/models/open_router/rekaai-reka-edge)[Open Router](https://modelslab.com/models/open_router)

 [Reka Edge

Closed Source Model](https://modelslab.com/models/open_router/rekaai-reka-edge)

[G2](https://modelslab.com/models/together_ai/google-gemma-2-27b-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma-2 Instruct (27B)

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-2-27b-it)

[![GPT 5.1](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)](https://modelslab.com/models/openai/gpt5.1)[Open Ai](https://modelslab.com/models/openai)

 [GPT 5.1

Closed Source Model](https://modelslab.com/models/openai/gpt5.1)

[OG](https://modelslab.com/models/open_router/openai-gpt-audio)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT Audio

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-audio)

[ML](https://modelslab.com/models/meta/meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo)[ModelsLab](https://modelslab.com/models/meta)

 [Meta Llama 3.2 11B Vision Instruct Turbo

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo)

[AC](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude Sonnet 4

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4)

[OG](https://modelslab.com/models/open_router/openai-gpt-5-nano)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5 Nano

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5-nano)

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-extended)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o (extended)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-extended)

[ML](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)[ModelsLab](https://modelslab.com/models/meta)

 [Meta Llama 3.1 405B Instruct Turbo

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)

[G1](https://modelslab.com/models/open_router/alpindale-goliath-120b)[Open Router](https://modelslab.com/models/open_router)

 [Goliath 120B

Closed Source Model](https://modelslab.com/models/open_router/alpindale-goliath-120b)

[DR](https://modelslab.com/models/open_router/deepseek-deepseek-r1-0528)[Open Router](https://modelslab.com/models/open_router)

 [DeepSeek: R1 0528

Closed Source Model](https://modelslab.com/models/open_router/deepseek-deepseek-r1-0528)

[OG](https://modelslab.com/models/open_router/openai-gpt-oss-120b)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: gpt-oss-120b

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-oss-120b)

About IBM: Granite 4.0 Micro
---

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...

### Technical Specifications

Model IDibm-granite-granite-4.0-h-microCategoryLLM ModelsTaskText GenerationPrice$0.063500 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate IBM: Granite 4.0 Micro into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "ibm-granite-granite-4.0-h-micro",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/ibm-granite/ibm-granite-granite-4.0-h-micro/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

IBM: Granite 4.0 Micro API costs $0.063500 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Ibm Granite](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

IBM: Granite 4.0 Micro FAQ
---

### What is IBM: Granite 4.0 Micro?

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...

### How do I use the IBM: Granite 4.0 Micro API?

You can integrate IBM: Granite 4.0 Micro into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "ibm-granite-granite-4.0-h-micro" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does IBM: Granite 4.0 Micro cost?

IBM: Granite 4.0 Micro costs $0.063500 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the IBM: Granite 4.0 Micro model ID?

The model ID for IBM: Granite 4.0 Micro is "ibm-granite-granite-4.0-h-micro". Use this ID in your API requests to specify this model.

### Does IBM: Granite 4.0 Micro have a free tier?

Yes, ModelsLab offers a free tier that lets you try IBM: Granite 4.0 Micro and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*