Skip to main content
MiniCPM-o 4.5 generates a text or spoken response to text, an image or an audio clip. Use the native API or the Python SDK.

Install and start

The default runs three workers on one NVIDIA GPU with MPS. An offline cache must contain the vocoder files in assets/token2wav/, including flow.pt and hift.pt. Populate the full snapshot before starting.

minicpm_o

Text, image, audio → text, audio. The default minicpm_o.yaml uses 1 GPU. Beta. The weights use Apache-2.0.
Send the request.

Send a request

Run either client example in a second terminal after /health returns 200.

Ask for a spoken reply

Save a picture as scene.png. The SDK prints the transcript and writes a WAV. curl saves the accompanying PCM. Python SDK
curl

Deployment configs

It caps max_concurrent_requests at 32 and gives the LLM’s KV pool 512 host pages (cpu_offload_pages), so a full pool moves a request to the host instead of stalling.

Settings and defaults

Request knobs in model_kwargs: Deployment keys: each spoken reply holds a slot of each t2w_* resource while it speaks, so their max_slots cap the replies voiced at once. t2w_conv, t2w_vocoder and t2w_tail each have one more slot than each t2w_*_kv (their sink), and startup refuses counts that disagree. Startup also refuses a tts_kv pool that cannot hold max_concurrent_requests full replies.

Limits

  • No OpenAI routes; see No OpenAI adapter.
  • A spoken request with a system prompt of its own is a 400 unless it sets voice_prompt: false.
  • Video input, upstream’s streaming_generate and full duplex are not supported.
  • mps: true is refused off NVIDIA.