Back to models
MiniCPM5-1B
OpenBMB's compact 1B dense on-device language model featuring a native 131K context window and toggleable Think/No-Think modes, built for low-latency agentic tool use and edge coding.
What you can do
- Offline on-device assistant chat
- Lightweight agentic tool-calling workflows
- Edge code completion and summarization
Input & output
- Input
- Text prompts and tool definitions (up to 131K context window)
- Output
- Text completions, optional <think> reasoning chains, code, and tool calls
Try a prompt like this
Enable Think mode and write a lightweight Python CLI script using argparse and sqlite3 to track daily server backup statuses.
Things to know
Runs in ~2.5GB VRAM in BF16 or ~1GB with 4-bit GGUF/MLX under Apache 2.0; 1B capacity has limited world knowledge and should pair with RAG for factual queries.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
OpenBMB/MiniCPM5-1B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="OpenBMB/MiniCPM5-1B",
messages=[{"role": "user", "content": "Enable Think mode and write a lightweight Python CLI script using argparse and sqlite3 to track daily server backup statuses."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide