> ## Documentation Index
> Fetch the complete documentation index at: https://agent.minimaxi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 自定义模型 / BYOK

> 通过 Base URL、API Key 和模型名添加自定义模型供应商。

<div className="code-docs">
  BYOK 允许你添加自定义模型供应商。你可以配置供应商名称、Base URL、API Key、API Format 和模型列表。

  <img src="https://mintcdn.com/agent-cn/BK6oKQ5dsiqXZ-jT/images/code/byok-custom-model.png?fit=max&auto=format&n=BK6oKQ5dsiqXZ-jT&q=85&s=5e5240388cdb3282e49900a3f9134f0a" alt="Custom Model 新增或编辑弹窗" className="code-screenshot" width="2690" height="1610" data-path="images/code/byok-custom-model.png" />

  ## 需要准备

  * Base URL
  * API Key
  * Model Name
  * API Format

  ## 建议

  添加模型后先运行连接测试。测试通过后，再把它用于正式任务。

  <Warning>
    自定义模型的可用性、上下文长度、多模态支持和费用由对应供应商决定。
  </Warning>
</div>
