AGTCloud API Docs
文件指南API Reference整合與資源更新與幫助
各廠商欄位特性差異

MiMo 參數與協定差異

了解 MiMo 系列模型在相容協定下的參數差異與使用方式。

使用 MiMo 模型時,根據本頁調整所選協定的參數。完整請求和回應結構參閱 Chat Completions、Responses 和 Messages。

適用模型

模型適用範圍
mimo-v2.6-pro-ultraspeed、mimo-v2.6-flash、mimo-v2.6-pro均支援 Chat、Responses、Messages,以及圖片、音訊和影片輸入;下列參數規則共同適用

Chat Completions 差異

欄位差異說明
thinking.type支援 enabled/disabled,預設 enabled;用於開關思考
temperature、top_p範圍分別為 0~1.5、0.01~1,預設分別為 1.0、0.95;開啟思考時,傳入值會被這兩個預設值覆蓋,非思考時可調整
max_completion_tokens範圍 1~131072,預設 131072;思考與最終回答共用此預算
stop最多 4 個停止串
response_format.type官方列出 text/json_object;JSON 模式還須在提示詞中明確要求回傳 JSON
tool_choice有效策略為 auto;其他值會被過濾後按 auto 處理,不會強制或禁止工具呼叫
歷史 reasoning_content思考模式下的多輪工具對話須完整保留歷史 assistant 消息及其思考內容;缺失工具輪次的思考內容會回傳 400
tools 中的 web_searchMiMo 搜索擴展,使用 force_search、max_keyword、limit 等設定;來源通過 message.annotations 回傳,呼叫次數通過 usage.web_search_usage 回傳
finish_reason額外包含 repetition_truncation,表示模型檢測到重複生成並截斷

Responses 差異

欄位差異說明
reasoning.effort預設開啟思考;none 關閉,minimal/low/medium/high/xhigh/max/ultra 均開啟思考,當前不區分實際推理深度
temperature、top_p範圍及思考模式下的覆蓋規則同 Chat 表
max_output_tokens範圍 1~131072,預設 131072;包含思考與最終回答
text.format.type官方列出 text/json_object;使用 JSON 模式時,在提示詞中明確輸出結構
tool_choice有效策略為 auto;其他值會被過濾後按 auto 處理
tools[].type官方列出 function/custom/namespace,支援函數工具、自定義工具和工具命名空間
previous_response_id、background、context_management不支援,請勿傳入;多輪由用戶端回傳歷史輸入和輸出
歷史 reasoning 項多輪工具對話中,保留回傳的推理內容與工具呼叫專案,一並加入後續 input

Messages 差異

欄位差異說明
max_tokens可選,範圍 1~131072,預設 131072;包含思考與最終回答
thinking.type支援 enabled/disabled,預設 enabled;使用此開關控制思考
temperature、top_p範圍及思考模式下的覆蓋規則同 Chat 表
messages[].role除 user/assistant 外,還允許 system
tool_choice.type有效策略為 auto;其他值會被過濾後按 auto 處理
tool_choice.disable_parallel_tool_use設為 true 時,在 auto 策略下最多回傳一個工具呼叫
歷史 thinking 塊保留完整 assistant 內容,包括 thinking、text 和 tool_use 等塊,隨工具結果一並回傳
stop_reason額外包含 content_filter 和 repetition_truncation,分別表示內容過濾與重複生成截斷

快取差異

欄位差異說明
上下文快取三款模型均支援快取,實際命中情況查看回應中的用量欄位
Chatusage.prompt_tokens_details.cached_tokens 回傳命中的輸入 Token 數
Responsesusage.input_tokens_details.cached_tokens 回傳命中的輸入 Token 數
Messagesusage.cache_read_input_tokens 回傳從快取讀取的輸入 Token 數

媒體輸入差異

輸入協定內容區塊差異說明
圖片image_urlChat:在 image_url.url 傳入公開 URL 或 Base64 Data URL
音訊input_audioChat:在 input_audio.data 傳入公開 URL 或 Base64 Data URL
影片video_urlChat:在 video_url.url 傳入公開 URL 或 Base64 Data URL;fps、media_resolution 放在內容區塊上,與 video_url 同級
圖片input_imageResponses:image_url 為公開 URL 或 Base64 Data URL 字串
音訊input_audioResponses:使用 audio_url 字串,與 Chat 的 input_audio.data 不同
影片input_videoResponses:使用 video_url 字串,fps、media_resolution 放在同一內容區塊上
圖片imageMessages:source.type=url 時提供 url;source.type=base64 時提供 media_type 和純 Base64 data
音訊audioMessages 擴展:通過 source 傳入 URL 或 Base64,欄位結構同圖片來源
影片videoMessages 擴展:通過 source 傳入 URL 或 Base64;fps、media_resolution 位於 source 內
欄位差異說明
fps範圍 0.1~10,預設 2;控制影片每秒抽取的幀數
media_resolution支援 default/max,預設 default;控制影片幀的分辨率級別
圖片大小URL 檔案不超過 50 MB;單張圖片的 Base64 編碼字串不超過 50 MB
音訊大小URL 檔案不超過 100 MB;單段音訊的 Base64 編碼字串不超過 50 MB
影片大小URL 檔案不超過 300 MB;單段影片的 Base64 編碼字串不超過 50 MB

呼叫範例

將 MODEL_ID 替換為平台提供的完整模型 ID,API Key 使用自己的值。

curl 'https://api.agtcloud.ai/v1/chat/completions' \
  -H 'Authorization: Bearer your-api-key' \
  -H 'Content-Type: application/json' \
  --data '{
    "model": "MODEL_ID",
    "messages": [{"role": "user", "content": "用三點說明如何排查 API 逾時"}],
    "thinking": {"type": "enabled"},
    "max_completion_tokens": 4096
  }'

官方參考

本頁目錄