MiniCPM4-0.5B
OpenBMB's ultra-compact 0.5B language model designed for mobile, embedded, and CPU-only environments, delivering fast on-device instruction following, text summarization, and lightweight classification with minimal memory overhead.
What you can do
- Mobile & IoT offline assistant
- High-throughput intent routing
- Local log & entity extraction
Input & output
- Input
- Short-to-medium text prompts, logs, or classification/extraction templates
- Output
- Fast concise text responses, JSON field extractions, or intent labels
Try a prompt like this
Classify the following user ticket into [billing, network, hardware, account] and extract the order ID as JSON: "My router dropped offline after firmware update, order #A9042."
Things to know
Apache-2.0 open weights (~1.2GB RAM/VRAM in BF16, <500MB in INT4); due to its 0.5B parameter budget, avoid open-ended multi-hop knowledge or complex reasoning without RAG/fine-tuning.
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/MiniCPM4-0.5B
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/MiniCPM4-0.5B",
messages=[{"role": "user", "content": "Classify the following user ticket into [billing, network, hardware, account] and extract the order ID as JSON: \"My router dropped offline after firmware update, order #A9042.\""}],
)
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