{"componentChunkName":"component---src-templates-acg-portal-new-template-tsx","path":"/Hmotipdmi","result":{"data":{"markdownRemark":{"html":"<h2 id=\"概述\"><a href=\"#%E6%A6%82%E8%BF%B0\" aria-label=\"概述 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>概述</h2>\n<p>服务（Service）是 AI 原生网关中路由流量的目标后端。您需要将已有的后端资源添加到网关中，登记为路由的备选服务，以便网关在转发流量时获取真实的服务地址。</p>\n<p>百度智能云 AI 原生网关目前支持以下几种服务来源：</p>\n<table>\n  <thead>\n    <tr>\n      <th>分类</th>\n      <th>服务来源</th>\n      <th>说明</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td rowspan=\"3\">云服务</td>\n      <td>容器引擎 CCE</td>\n      <td>对接已关联集群中的 Kubernetes Service。</td>\n    </tr>\n    <tr>\n      <td>函数计算 CFC</td>\n      <td>对接已创建的 CFC 函数。</td>\n    </tr>\n    <tr>\n      <td>微服务引擎 MSE</td>\n      <td>对接已关联注册中心中的 MCP 服务。</td>\n    </tr>\n    <tr>\n      <td rowspan=\"2\">IP 与域名</td>\n      <td>固定 IP</td>\n      <td>对接一组 IP 地址。</td>\n    </tr>\n    <tr>\n      <td>DNS 域名</td>\n      <td>对接一组 DNS 域名。</td>\n    </tr>\n    <tr>\n      <td>AI 模型代理</td>\n      <td>AI 模型代理</td>\n      <td>对接第三方大模型 API 服务（DeepSeek、百度千帆、OpenAI、OpenAI 兼容）。</td>\n    </tr>\n  </tbody>\n</table>\n<br>\n<div style=\"background-color: #E9F6FE;white-space: pre-wrap;padding-left:8px;padding-right:8px;margin-bottom:5px\"><font style=\"font-weight:bold\">说明：</font>通过 AI 模型代理对接的第三方大模型能力并非由 AI 原生网关直接提供。在使用前，请您自行评估该服务的适用性和可靠性，并确保您的使用行为完全符合相关法律法规及对应模型供应商的服务协议。对于因违反上述规定而产生的一切后果，百度智能云不承担任何责任。</div>\n<h2 id=\"操作步骤\"><a href=\"#%E6%93%8D%E4%BD%9C%E6%AD%A5%E9%AA%A4\" aria-label=\"操作步骤 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>操作步骤</h2>\n<h3 id=\"添加服务入口\"><a href=\"#%E6%B7%BB%E5%8A%A0%E6%9C%8D%E5%8A%A1%E5%85%A5%E5%8F%A3\" aria-label=\"添加服务入口 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>添加服务入口</h3>\n<p>无论选择哪种服务来源，进入「添加服务」面板的入口都相同：</p>\n<ol>\n<li>登陆百度智能云 <a href=\"https://console.bce.baidu.com/aigw/#/instance/list\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">AI 原生网关控制台</a>。</li>\n<li>\n<p>在顶部导航栏选择目标地域，并在实例列表中单击目标实例 ID，进入实例详情页。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_58b545f.png\" alt=\"image.png\"></p>\n</li>\n<li>在左侧导航栏单击 <strong>后端服务</strong>，进入服务列表页。</li>\n<li>\n<p>单击列表上方的 <strong>添加服务</strong>，打开「添加服务」面板。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_5483301.png\" alt=\"image.png\"></p>\n</li>\n<li>\n<p>在「基本信息」区域查看 <strong>所属实例</strong> 和 <strong>实例 VPC</strong> 信息（系统自动带出，不可修改），然后在「后端服务配置」区域选择 <strong>服务来源</strong>，按下文对应小节填写后续参数。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_d1d5e41.png\" alt=\"image.png\"></p>\n</li>\n</ol>\n<h3 id=\"容器引擎-cce\"><a href=\"#%E5%AE%B9%E5%99%A8%E5%BC%95%E6%93%8E-cce\" aria-label=\"容器引擎 cce permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>容器引擎 CCE</h3>\n<blockquote>\n<p><strong>说明：</strong> 选择该来源时无需手动指定集群。AI 原生网关会自动聚合<strong>当前实例已关联的所有 CCE 集群</strong>下的命名空间与 Service：</p>\n<ul>\n<li><strong>命名空间</strong>：聚合后展示所有已关联集群中的命名空间。若不同集群间存在同名命名空间，将合并为同一项展示。</li>\n<li><strong>服务（Service）</strong>：在所选命名空间下，若多个集群中存在同名 Service，将自动聚合为同一个服务，其后端节点为各集群对应 Service 的 Endpoint 之并集。</li>\n</ul>\n</blockquote>\n<h4 id=\"前置步骤：关联-cce-集群\"><a href=\"#%E5%89%8D%E7%BD%AE%E6%AD%A5%E9%AA%A4%EF%BC%9A%E5%85%B3%E8%81%94-cce-%E9%9B%86%E7%BE%A4\" aria-label=\"前置步骤：关联 cce 集群 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>前置步骤：关联 CCE 集群</h4>\n<p>如果当前网关实例尚未关联任何 CCE 集群，需先完成关联，否则添加服务时命名空间下拉列表为空。</p>\n<ol>\n<li>\n<p>在实例详情页，单击 <strong>关联 CCE 集群</strong> 页签。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_c7ea467.png\" alt=\"image.png\"></p>\n</li>\n<li>\n<p>单击 <strong>关联集群</strong>，在弹窗中选择目标集群、填写备注后确认。</p>\n<blockquote>\n<p>关联前请确保目标集群已创建有效的 kubeconfig。</p>\n</blockquote>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_a5f8cb6.png\" alt=\"image.png\"></p>\n</li>\n<li>\n<p>关联成功后，集群会出现在「关联 CCE 集群」列表中，此时即可继续以下添加服务的操作。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_fb80894.png\" alt=\"image.png\"></p>\n</li>\n</ol>\n<h4 id=\"添加-cce-服务\"><a href=\"#%E6%B7%BB%E5%8A%A0-cce-%E6%9C%8D%E5%8A%A1\" aria-label=\"添加 cce 服务 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>添加 CCE 服务</h4>\n<ol>\n<li>完成「前置步骤」后进入「添加服务」面板，<strong>服务来源</strong> 选择 <strong>容器引擎 CCE（对接关联集群中的 K8S Service）</strong>。</li>\n<li>\n<p>配置以下参数：</p>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>命名空间</strong></td>\n<td>在下拉列表中选择目标命名空间。下拉列表展示当前实例已关联的所有 CCE 集群下的命名空间聚合结果。</td>\n</tr>\n<tr>\n<td><strong>服务名称</strong></td>\n<td>在所选命名空间下选择需要接入的 Service，<strong>支持多选</strong>，可一次性添加多个服务。</td>\n</tr>\n</tbody>\n</table>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_d83bff3.png\" alt=\"image.png\"></p>\n</li>\n<li>单击 <strong>确定</strong>，完成创建。所选的每个 Service 都会作为独立的服务出现在服务列表中。</li>\n</ol>\n<h3 id=\"函数计算-cfc\"><a href=\"#%E5%87%BD%E6%95%B0%E8%AE%A1%E7%AE%97-cfc\" aria-label=\"函数计算 cfc permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>函数计算 CFC</h3>\n<ol>\n<li>完成「添加服务入口」步骤进入「添加服务」面板，<strong>服务来源</strong> 选择 <strong>函数计算 CFC</strong>。</li>\n<li>\n<p>在「函数」表格中单击 <strong>添加</strong> 逐行加入函数，每行需配置：</p>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>函数名称</strong></td>\n<td>从下拉列表中选择 CFC 函数。同一服务下不可重复选择同一函数。</td>\n</tr>\n</tbody>\n</table>\n</li>\n</ol>\n<blockquote>\n<p>如需创建新函数，可在表格下方单击 <strong>前往 CFC 创建</strong> 跳转至 CFC 控制台。</p>\n</blockquote>\n<p>   <img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_096e8a7.png\" alt=\"image.png\"></p>\n<ol start=\"3\">\n<li>单击 <strong>确定</strong>，完成创建。</li>\n</ol>\n<h3 id=\"微服务引擎-mse\"><a href=\"#%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%BC%95%E6%93%8E-mse\" aria-label=\"微服务引擎 mse permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>微服务引擎 MSE</h3>\n<blockquote>\n<p><strong>说明</strong> : 选择该来源时，AI 原生网关会从已关联的 MSE 注册中心中获取服务列表，并将所选服务及其后端节点添加到网关。目前仅支持关联 MCP 注册中心类型的 MSE 实例。</p>\n</blockquote>\n<h4 id=\"前置步骤：关联-mse-注册中心\"><a href=\"#%E5%89%8D%E7%BD%AE%E6%AD%A5%E9%AA%A4%EF%BC%9A%E5%85%B3%E8%81%94-mse-%E6%B3%A8%E5%86%8C%E4%B8%AD%E5%BF%83\" aria-label=\"前置步骤：关联 mse 注册中心 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>前置步骤：关联 MSE 注册中心</h4>\n<p>如果当前实例尚未关联任何 MSE 注册中心，需先完成关联。<strong>单个实例目前仅支持关联 1 个 MSE 注册中心。</strong></p>\n<ol>\n<li>\n<p>在实例详情页，单击 <strong>关联信息 > 关联 MSE 实例</strong> 页签。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_b3af2bd.png\" alt=\"image.png\"></p>\n</li>\n<li>\n<p>单击 <strong>关联 MSE 注册中心</strong>，在弹窗中选择目标注册中心、填写备注后确认。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_d800c76.png\" alt=\"image.png\"></p>\n</li>\n<li>关联成功后，注册中心会出现在「MSE 注册中心」列表中，此时即可继续以下添加服务的操作。</li>\n</ol>\n<h4 id=\"添加-mse-服务\"><a href=\"#%E6%B7%BB%E5%8A%A0-mse-%E6%9C%8D%E5%8A%A1\" aria-label=\"添加 mse 服务 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>添加 MSE 服务</h4>\n<ol>\n<li>完成「前置步骤：关联 MSE 注册中心」步骤进入「添加服务」面板，<strong>服务来源</strong> 选择 <strong>微服务引擎 MSE（对接已关联注册中心中的 MCP 服务）</strong>。</li>\n<li>\n<p>配置以下参数：</p>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>注册中心</strong></td>\n<td>在卡片列表中选择本实例已关联的 MSE 注册中心。卡片展示注册中心名称/ID、状态、描述和关联时间。</td>\n</tr>\n<tr>\n<td><strong>命名空间</strong></td>\n<td>在所选注册中心下选择目标命名空间。</td>\n</tr>\n<tr>\n<td><strong>服务名称</strong></td>\n<td>在所选命名空间下选择需要接入的服务，<strong>支持多选</strong>。</td>\n</tr>\n</tbody>\n</table>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_dff058c.png\" alt=\"image.png\"></p>\n</li>\n<li>单击 <strong>确定</strong>，完成创建。</li>\n</ol>\n<h3 id=\"固定-ip\"><a href=\"#%E5%9B%BA%E5%AE%9A-ip\" aria-label=\"固定 ip permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>固定 IP</h3>\n<blockquote>\n<p><strong>说明</strong>：当后端服务没有服务发现机制时，可使用固定 IP 来源手动维护后端节点列表。</p>\n</blockquote>\n<ol>\n<li><strong>服务来源</strong> 选择 <strong>固定 IP</strong>。</li>\n<li>\n<p>配置以下参数：</p>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>服务名称</strong></td>\n<td>自定义服务名称。</td>\n</tr>\n<tr>\n<td><strong>服务协议</strong></td>\n<td>单选，支持 <strong>HTTP</strong> 和 <strong>HTTPS</strong>。切换协议时，端口默认值会自动联动（HTTP → 80，HTTPS → 443）。</td>\n</tr>\n<tr>\n<td><strong>服务地址</strong></td>\n<td>后端节点列表，每行包含「IP + 端口」两部分。<br><ul><li>单击 <strong>添加服务地址</strong> 增加节点，<strong>最多 20 个</strong>。</li><li>同一服务下地址不可重复。</li> <li>端口取值范围 1–65535。</li></ul></td>\n</tr>\n</tbody>\n</table>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_806bf84.png\" alt=\"image.png\"></p>\n</li>\n<li>单击 <strong>确定</strong>，完成创建。</li>\n</ol>\n<h3 id=\"dns-域名\"><a href=\"#dns-%E5%9F%9F%E5%90%8D\" aria-label=\"dns 域名 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DNS 域名</h3>\n<blockquote>\n<p><strong>说明</strong>: AI 原生网关会根据 DNS 解析结果动态获取后端节点 IP，适用于后端通过域名暴露的场景。</p>\n</blockquote>\n<ol>\n<li><strong>服务来源</strong> 选择 <strong>DNS 域名（对接一组域名，需保证与网关之间网络可达）</strong>。</li>\n<li>\n<p>配置以下参数：</p>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>服务名称</strong></td>\n<td>自定义服务名称。</td>\n</tr>\n<tr>\n<td><strong>服务协议</strong></td>\n<td>单选，支持 <strong>HTTP</strong> 和 <strong>HTTPS</strong>。切换协议时，端口默认值会自动联动（HTTP → 80，HTTPS → 443）。</td>\n</tr>\n<tr>\n<td><strong>服务地址</strong></td>\n<td>后端节点列表，每行包含「DNS 域名 + 端口」两部分。<br><ul><li>单击 <strong>添加服务地址</strong> 增加节点，<strong>最多 20 个</strong>。</li><li>同一服务下地址不可重复。</li></ul></td>\n</tr>\n</tbody>\n</table>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_f12e63f.png\" alt=\"image.png\"></p>\n</li>\n<li>单击 <strong>确定</strong>，完成创建。</li>\n</ol>\n<h3 id=\"ai-模型代理\"><a href=\"#ai-%E6%A8%A1%E5%9E%8B%E4%BB%A3%E7%90%86\" aria-label=\"ai 模型代理 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>AI 模型代理</h3>\n<blockquote>\n<p><strong>重要</strong>：通过 AI 模型代理添加的服务，最终调用的是第三方大模型 API。请确保您的使用行为完全符合对应供应商的服务协议、计费规则及相关法律法规。</p>\n</blockquote>\n<ol>\n<li><strong>服务来源</strong> 选择 <strong>AI 模型代理</strong>。</li>\n<li>\n<p>配置以下参数：</p>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>服务名称</strong></td>\n<td>自定义服务名称。</td>\n</tr>\n<tr>\n<td><strong>模型供应商</strong></td>\n<td>单选，支持：<ul><li> <strong>DeepSeek</strong><li><strong>百度千帆</strong><li><strong>OpenAI</strong><li><strong>OpenAI 兼容</strong>（用于对接遵循 OpenAI 协议的自建/三方推理服务）</ul>  不同供应商的区别：DeepSeek / 百度千帆 / OpenAI：内置该供应商的官方 API Endpoint，仅需填写 API Key 即可使用对应模型。OpenAI 兼容：适用于任何遵循 OpenAI API 协议的服务，需要手动填写 API Endpoint。注意：如果是千帆 Coding Plan，请选择「OpenAI 兼容」，并填写 Coding Plan 的专属 base_url。</td>\n</tr>\n<tr>\n<td><strong>API Endpoint</strong></td>\n<td>模型服务的访问地址。除「OpenAI 兼容」需手动填写外，其余供应商会自动带出默认值，可按需修改：<ul><li> DeepSeek：<code>https://api.deepseek.com</code><li>百度千帆：<code>https://qianfan.baidubce.com</code><li>OpenAI：<code>https://api.openai.com</code></ul></td>\n</tr>\n<tr>\n<td><strong>API Key</strong></td>\n<td>访问大模型所需的鉴权凭证。<ul><li>支持配置多个 API Key，配置好后，AI 网关将 <strong>随机选择</strong> 一个 API Key 与上游模型服务建立通信。<li>单击 <strong>添加 API Key</strong> 可新增一行，单击 <strong>删除</strong> 可移除（至少保留一个）。<li>在 API Key 输入区下方提供了对应供应商控制台的快捷入口，可前往获取 API Key。</td>\n</tr>\n</tbody>\n</table>\n<br>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_95ada2e.png\" alt=\"image.png\"></p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/AIGW/image_1d6d4da.png\" alt=\"image.png\"></p>\n</li>\n<li>单击 <strong>确定</strong>，完成创建。</li>\n</ol>","fields":{"slug":"Hmotipdmi","title":"创建服务","date":"2026-05-06","extractedHeadings":[]},"headings":[{"value":"概述","depth":2},{"value":"操作步骤","depth":2},{"value":"添加服务入口","depth":3},{"value":"容器引擎 CCE","depth":3},{"value":"前置步骤：关联 CCE 集群","depth":4},{"value":"添加 CCE 服务","depth":4},{"value":"函数计算 CFC","depth":3},{"value":"微服务引擎 MSE","depth":3},{"value":"前置步骤：关联 MSE 注册中心","depth":4},{"value":"添加 MSE 服务","depth":4},{"value":"固定 IP","depth":3},{"value":"DNS 域名","depth":3},{"value":"AI 模型代理","depth":3}]}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"Hmotipdmi","prev":{"id":"Nmotiaxrc","name":"网关管理","path":"Nmotiaxrc","filePath":"操作指南/网关管理/删除网关实例.md","seo":null,"parentIds":["Ymih1n01i","amo2cvomi"],"parents":[{"id":"Ymih1n01i","documentId":"112eec8a-77fd-4a00-b06a-dac3161b0a2e","name":"操作指南","repoName":"AIGW","filePath":"操作指南","disabled":false,"path":"Ymih1n01i","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""},{"id":"amo2cvomi","documentId":"c3771fe8-145c-4108-9180-a601615d35e2","name":"网关管理","repoName":"AIGW","filePath":"操作指南/网关管理","disabled":false,"path":"amo2cvomi","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""}]},"next":{"id":"Cmotl0jcm","name":"管理服务","path":"Cmotl0jcm","filePath":"操作指南/服务管理/管理服务.md","seo":null,"parentIds":["Ymih1n01i","Ymo2cwgfa"],"parents":[{"id":"Ymih1n01i","documentId":"112eec8a-77fd-4a00-b06a-dac3161b0a2e","name":"操作指南","repoName":"AIGW","filePath":"操作指南","disabled":false,"path":"Ymih1n01i","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""},{"id":"Ymo2cwgfa","documentId":"c2b080e3-0ff5-43c4-b311-e46e5f69dba1","name":"服务管理","repoName":"AIGW","filePath":"操作指南/服务管理","disabled":false,"path":"Ymo2cwgfa","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""}]},"parents":[{"id":"Ymih1n01i","documentId":"112eec8a-77fd-4a00-b06a-dac3161b0a2e","name":"操作指南","repoName":"AIGW","filePath":"操作指南","disabled":false,"path":"Ymih1n01i","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""},{"id":"Ymo2cwgfa","documentId":"c2b080e3-0ff5-43c4-b311-e46e5f69dba1","name":"服务管理","repoName":"AIGW","filePath":"操作指南/服务管理","disabled":false,"path":"Ymo2cwgfa","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""}],"specificSeo":null}}}