Beta MiMo Chat Completion API
POSThttps://api.01ai.cloud/mimo/chat/completions
POSThttps://api.01ai.cloud/v1/chat/completions

使用 MiMo 模型進行對話,支援 OpenAI 相容的聊天請求、串流輸出和工具呼叫。

請求頭

authorizationstring
Bearer token

請求體

modelstring必填參數
toolsarray
streamboolean
請選擇
messagesarray必填參數
thinkingobject
typestring
請選擇
tool_choicestring
Other values are not supported by this MiMo contract.
請選擇
stream_optionsobject
include_usageboolean
請選擇
max_completion_tokensinteger
Maximum total reasoning and final-output tokens.

響應

Integration workbench

Shell

Python

JavaScript

Java

Go

PHP

溫馨提示:對於流式請求,上面的代碼可能不完全適用。請參閱對接文檔以進行更改。

MiMo
允许用通用余额

啟用「允許通用餘額」後,專屬餘額不足將自動使用通用餘額。