{"id":232,"date":"2026-10-01T02:14:25","date_gmt":"2026-10-01T02:14:25","guid":{"rendered":"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/01\/coze-custom-model-api\/"},"modified":"2026-10-01T02:14:25","modified_gmt":"2026-10-01T02:14:25","slug":"coze-custom-model-api","status":"publish","type":"post","link":"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/01\/coze-custom-model-api\/","title":{"rendered":"\u6263\u5b50coze\u63a5\u5165\u81ea\u5b9a\u4e49\u5927\u6a21\u578bapi\uff1a\u914d\u7f6e\u6b65\u9aa4\u3001\u63d2\u4ef6\u65b9\u6848\u4e0e\u6392\u9519"},"content":{"rendered":"<p><em>\u4f5c\u8005\uff1anTokenX\uff5c\u53d1\u5e03\u65e5\u671f\uff1a2026-10-01\uff5c\u66f4\u65b0\u65e5\u671f\uff1a2026-10-01<\/em><\/p>\n<p><strong>\u6263\u5b50coze\u63a5\u5165\u81ea\u5b9a\u4e49\u5927\u6a21\u578bapi\u6709\u4e24\u6761\u8def\u5f84<\/strong>\uff1a\u4f01\u4e1a\u65d7\u8230\u7248\u53ef\u628a\u517c\u5bb9\u63a5\u53e3\u6ce8\u518c\u4e3a\u771f\u6b63\u7684\u81ea\u5b9a\u4e49\u6a21\u578b\uff1b\u6ca1\u6709\u5bf9\u5e94\u5165\u53e3\u65f6\uff0c\u53ef\u5c06\u6a21\u578b API \u5c01\u88c5\u6210\u81ea\u5b9a\u4e49\u63d2\u4ef6\uff0c\u5728\u667a\u80fd\u4f53\u6216\u5de5\u4f5c\u6d41\u4e2d\u4f5c\u4e3a\u5de5\u5177\u8c03\u7528\u3002\u4e24\u8005\u7528\u9014\u4e0d\u540c\uff0c\u914d\u7f6e\u524d\u5e94\u5148\u660e\u786e\u9700\u6c42\u3002<\/p>\n<figure class=\"wp-block-image size-large\" style=\"margin:1.5em 0;\"><img decoding=\"async\" src=\"https:\/\/ntokenx.com\/blog\/wp-content\/uploads\/2026\/10\/backend-4614-1.jpg\" alt=\"\u6263\u5b50coze\u63a5\u5165\u81ea\u5b9a\u4e49\u5927\u6a21\u578bapi\u7684\u4e24\u79cd\u5b9e\u73b0\u8def\u5f84\" style=\"max-width:100%;height:auto;\"><\/figure>\n<h2>\u81ea\u5b9a\u4e49\u6a21\u578b\u4e0e\u81ea\u5b9a\u4e49\u63d2\u4ef6\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h2>\n<p><strong>\u81ea\u5b9a\u4e49\u6a21\u578b\u4f1a\u76f4\u63a5\u53c2\u4e0e\u5bf9\u8bdd\u751f\u6210\u548c\u5de5\u4f5c\u6d41\u63a8\u7406\uff1b\u81ea\u5b9a\u4e49\u63d2\u4ef6\u53ea\u662f\u667a\u80fd\u4f53\u53ef\u8c03\u7528\u7684\u5916\u90e8\u5de5\u5177\u3002<\/strong> \u5982\u679c\u76ee\u6807\u662f\u66ff\u6362\u667a\u80fd\u4f53\u5e95\u5c42\u6a21\u578b\uff0c\u5e94\u9009\u6a21\u578b\u63a5\u5165\uff1b\u5982\u679c\u53ea\u662f\u8ba9\u667a\u80fd\u4f53\u6267\u884c\u6458\u8981\u3001\u5206\u7c7b\u6216\u8c03\u7528\u7279\u5b9a\u6a21\u578b\uff0c\u5219\u63d2\u4ef6\u66f4\u7075\u6d3b\u3002<\/p>\n<div style=\"overflow-x:auto;\">\n<table style=\"width:100%;border-collapse:collapse;margin:1.5em 0;font-size:0.95em;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u5bf9\u6bd4\u9879<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u81ea\u5b9a\u4e49\u6a21\u578b<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u81ea\u5b9a\u4e49\u63d2\u4ef6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e3b\u8981\u7528\u9014<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4f5c\u4e3a\u667a\u80fd\u4f53\u6216\u5927\u6a21\u578b\u8282\u70b9\u7684\u63a8\u7406\u6a21\u578b<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u628a\u5916\u90e8 API \u5c01\u88c5\u4e3a\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u914d\u7f6e\u4f4d\u7f6e<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4f01\u4e1a\u7ec4\u7ec7\u7ba1\u7406\u7684\u6a21\u578b\u63a5\u5165\u9875\u9762<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u8d44\u6e90\u5e93\u6216\u63d2\u4ef6\u521b\u5efa\u5165\u53e3<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u63a5\u53e3\u8981\u6c42<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u517c\u5bb9 Chat Completions \u6216 Responses API<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u53ef\u81ea\u884c\u5b9a\u4e49\u8bf7\u6c42\u548c\u54cd\u5e94<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6743\u9650\u8981\u6c42<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5b98\u65b9\u6587\u6863\u6807\u6ce8\u4e3a\u4f01\u4e1a\u65d7\u8230\u7248\u3001\u7ba1\u7406\u5458\u914d\u7f6e<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u53d6\u51b3\u4e8e\u5de5\u4f5c\u7a7a\u95f4\u63d2\u4ef6\u6743\u9650<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u662f\u5426\u66ff\u6362\u5e95\u5c42\u6a21\u578b<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u662f<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5426<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u6263\u5b50\u5b98\u65b9\u8bf4\u660e\uff0c\u81ea\u5b9a\u4e49\u6a21\u578b\u652f\u6301 Authorization \u548c\u81ea\u5b9a\u4e49 Header \u9274\u6743\uff0c\u5e76\u8981\u6c42\u63a5\u53e3\u652f\u6301\u6d41\u5f0f\u54cd\u5e94\u3002\u81ea\u5b9a\u4e49\u63d2\u4ef6\u5219\u7531\u4e00\u4e2a\u6216\u591a\u4e2a API \u5de5\u5177\u7ec4\u6210\uff0c\u9002\u5408\u5904\u7406\u975e\u6807\u51c6\u534f\u8bae\u3002(<a href=\"https:\/\/docs.coze.cn\/guides_deploy_custom_model\">docs.coze.cn<\/a>)<\/p>\n<h2>\u63a5\u5165\u524d\u8981\u51c6\u5907\u54ea\u4e9b\u53c2\u6570\uff1f<\/h2>\n<p><strong>\u81f3\u5c11\u51c6\u5907 Base URL\u3001\u6a21\u578b\u552f\u4e00\u6807\u8bc6\u3001API Key \u548c\u63a5\u53e3\u534f\u8bae\u56db\u9879\u4fe1\u606f\u3002<\/strong> \u5efa\u8bae\u5148\u5728\u672c\u5730\u9a8c\u8bc1\u63a5\u53e3\uff0c\u518d\u586b\u5199\u6263\u5b50\u914d\u7f6e\uff0c\u907f\u514d\u628a\u7f51\u7edc\u3001\u9274\u6743\u548c\u5e73\u53f0\u53c2\u6570\u95ee\u9898\u6df7\u5728\u4e00\u8d77\u6392\u67e5\u3002<\/p>\n<p>\u53ef\u4f7f\u7528\u4ee5\u4e0b\u8bf7\u6c42\u6d4b\u8bd5 OpenAI \u517c\u5bb9\u63a5\u53e3\uff1a<\/p>\n<pre><code class=\"language-bash\">curl https:\/\/gateway.example.com\/v1\/chat\/completions \\\n  -H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\\n  -H &quot;Content-Type: application\/json&quot; \\\n  -d '{\n    &quot;model&quot;: &quot;your-model-id&quot;,\n    &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;\u53ea\u56de\u590d\uff1a\u8fde\u63a5\u6210\u529f&quot;}],\n    &quot;stream&quot;: true\n  }'\n<\/code><\/pre>\n<p>\u53ea\u7533\u8bf7\u4e00\u4e2a API Key \u5373\u53ef\u8c03\u7528 GPT\u3001Claude\u3001Gemini\u3001Grok \u7b49\u591a\u4e2a\u6a21\u578b\u7684\u7edf\u4e00\u63a5\u53e3\uff0c\u53ef\u53c2\u8003 <a href=\"https:\/\/ntokenx.com\/\">nTokenX \u591a\u6a21\u578b API \u805a\u5408\u5e73\u53f0<\/a>\u3002\u9009\u62e9\u5176\u4ed6\u670d\u52a1\u65f6\uff0c\u4e5f\u5e94\u533a\u5206\u7ed1\u5b9a\u7528\u6237\u81ea\u6709\u5382\u5546 Key \u7684\u6b63\u89c4\u7f51\u5173\uff0c\u4ee5\u53ca\u7531\u5e73\u53f0\u7edf\u4e00\u63d0\u4f9b\u989d\u5ea6\u7684\u7b2c\u4e09\u65b9\u6a21\u578b\u4e2d\u8f6c\u3002<\/p>\n<h2>\u5982\u4f55\u5728\u6263\u5b50\u4e2d\u76f4\u63a5\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6a21\u578b\uff1f<\/h2>\n<p><strong>\u7ba1\u7406\u5458\u8fdb\u5165\u4f01\u4e1a\u7ec4\u7ec7\u7ba1\u7406\uff0c\u5728\u201c\u6a21\u578b\u63a5\u5165\u2014\u81ea\u5b9a\u4e49\u6a21\u578b\u201d\u4e2d\u6dfb\u52a0\u63a5\u53e3\uff0c\u518d\u4e3a\u76ee\u6807\u5de5\u4f5c\u7a7a\u95f4\u6388\u6743\u3002<\/strong> \u622a\u81f32026\u5e7410\u67081\u65e5\uff0c\u6263\u5b50\u5b98\u65b9\u6587\u6863\u5c06\u8be5\u80fd\u529b\u5217\u4e3a\u4f01\u4e1a\u65d7\u8230\u7248\u529f\u80fd\u3002(<a href=\"https:\/\/docs.coze.cn\/guides_deploy_custom_model\">docs.coze.cn<\/a>)<\/p>\n<ol>\n<li>\u6253\u5f00\u6263\u5b50\u7f16\u7a0b\uff0c\u8fdb\u5165\u5bf9\u5e94\u4f01\u4e1a\u7ec4\u7ec7\u7684\u8bbe\u7f6e\u9875\u9762\u3002<\/li>\n<li>\u9009\u62e9\u201c\u6a21\u578b\u63a5\u5165\u201d\uff0c\u5207\u6362\u5230\u201c\u81ea\u5b9a\u4e49\u6a21\u578b\u201d\u3002<\/li>\n<li>\u586b\u5199\u5c55\u793a\u540d\u79f0\u548c\u6a21\u578b\u552f\u4e00\u6807\u8bc6\u3002<\/li>\n<li>\u586b\u5199\u6a21\u578b API URL\uff0c\u4f8b\u5982 <code>https:\/\/gateway.example.com\/v1<\/code>\u3002<\/li>\n<li>\u9009\u62e9 Authorization \u6216\u81ea\u5b9a\u4e49 Header \u9274\u6743\u3002<\/li>\n<li>\u586b\u5165 API Key\uff0c\u5e76\u6309\u5b9e\u9645\u80fd\u529b\u52fe\u9009\u5de5\u5177\u8c03\u7528\u3001\u56fe\u7247\u7406\u89e3\u7b49\u6807\u7b7e\u3002<\/li>\n<li>\u914d\u7f6e\u4e0a\u4e0b\u6587\u957f\u5ea6\u548c\u53ef\u8c03\u53c2\u6570\uff0c\u4fdd\u5b58\u540e\u6388\u6743\u7ed9\u76ee\u6807\u5de5\u4f5c\u7a7a\u95f4\u3002<\/li>\n<li>\u5728\u667a\u80fd\u4f53\u6216\u5de5\u4f5c\u6d41\u7684\u5927\u6a21\u578b\u8282\u70b9\u4e2d\u9009\u62e9\u8be5\u6a21\u578b\uff0c\u5b8c\u6210\u8bd5\u8fd0\u884c\u3002<\/li>\n<\/ol>\n<p><strong>Base URL \u4e0d\u8981\u5305\u542b <code>\/chat\/completions<\/code><\/strong>\uff0c\u56e0\u4e3a\u6263\u5b50\u4f1a\u81ea\u52a8\u62fc\u63a5\u8be5\u8def\u5f84\uff1b\u6a21\u578b\u552f\u4e00\u6807\u8bc6\u5219\u4f1a\u539f\u6837\u5199\u5165\u8bf7\u6c42\u4f53\u7684 <code>model<\/code> \u5b57\u6bb5\u3002(<a href=\"https:\/\/docs.coze.cn\/guides_deploy_custom_model\">docs.coze.cn<\/a>)<\/p>\n<figure class=\"wp-block-image size-large\" style=\"margin:1.5em 0;\"><img decoding=\"async\" src=\"https:\/\/ntokenx.com\/blog\/wp-content\/uploads\/2026\/10\/backend-4614-2.jpg\" alt=\"\u6263\u5b50\u81ea\u5b9a\u4e49\u6a21\u578bBase URL\u4e0e\u6a21\u578b\u6807\u8bc6\u914d\u7f6e\u793a\u610f\" style=\"max-width:100%;height:auto;\"><\/figure>\n<h2>\u6ca1\u6709\u81ea\u5b9a\u4e49\u6a21\u578b\u5165\u53e3\u65f6\u5982\u4f55\u7528\u63d2\u4ef6\u63a5\u5165\uff1f<\/h2>\n<p><strong>\u53ef\u521b\u5efa\u4e00\u4e2a\u201c\u6a21\u578b\u8c03\u7528\u201d\u63d2\u4ef6\uff0c\u628a\u7f51\u5173\u63a5\u53e3\u6ce8\u518c\u4e3a POST \u5de5\u5177\u3002<\/strong> \u8fd9\u79cd\u65b9\u5f0f\u4e0d\u80fd\u66ff\u6362\u667a\u80fd\u4f53\u539f\u6709\u6a21\u578b\uff0c\u4f46\u80fd\u8ba9\u5b83\u6309\u9700\u8c03\u7528\u7b2c\u4e09\u65b9\u6a21\u578b\uff0c\u9002\u5408\u6587\u672c\u6539\u5199\u3001\u4ee3\u7801\u5ba1\u67e5\u3001\u7ffb\u8bd1\u6216\u4e13\u7528\u6a21\u578b\u4efb\u52a1\u3002<\/p>\n<p>\u63d2\u4ef6\u5e94\u5305\u542b\u4ee5\u4e0b\u5b9a\u4e49\uff1a<\/p>\n<ul>\n<li>\u8bf7\u6c42\u5730\u5740\uff1a\u5b8c\u6574\u7684 <code>\/v1\/chat\/completions<\/code> \u5730\u5740\uff1b<\/li>\n<li>\u9274\u6743\uff1a<code>Authorization: Bearer API_KEY<\/code>\uff1b<\/li>\n<li>\u8f93\u5165\u53c2\u6570\uff1a<code>model<\/code>\u3001<code>messages<\/code>\u3001<code>temperature<\/code>\uff1b<\/li>\n<li>\u8f93\u51fa\u53c2\u6570\uff1a\u6a21\u578b\u8fd4\u56de\u7684\u6587\u672c\u5185\u5bb9\uff1b<\/li>\n<li>\u8d85\u65f6\u5904\u7406\uff1a\u4e3a\u4e0a\u6e38\u8d85\u65f6\u8fd4\u56de\u660e\u786e\u9519\u8bef\u4fe1\u606f\uff1b<\/li>\n<li>\u5b89\u5168\u8981\u6c42\uff1a\u4e0d\u8981\u628a\u771f\u5b9e\u5bc6\u94a5\u5199\u8fdb\u63d0\u793a\u8bcd\u6216\u666e\u901a\u8f93\u5165\u5b57\u6bb5\u3002<\/li>\n<\/ul>\n<p>\u521b\u5efa\u540e\u5148\u6267\u884c\u5de5\u5177\u8bd5\u8fd0\u884c\uff0c\u518d\u628a\u63d2\u4ef6\u6dfb\u52a0\u5230\u667a\u80fd\u4f53\u6216\u5de5\u4f5c\u6d41\u3002\u6263\u5b50\u5b98\u65b9\u6587\u6863\u660e\u786e\u5c06\u63d2\u4ef6\u5b9a\u4e49\u4e3a API \u5de5\u5177\u96c6\uff0c\u56e0\u6b64\u4e0d\u80fd\u628a\u201c\u63d2\u4ef6\u53ef\u8c03\u7528\u6a21\u578b\u201d\u8bef\u89e3\u4e3a\u201c\u63d2\u4ef6\u5df2\u7ecf\u66ff\u6362\u4e3b\u6a21\u578b\u201d\u3002(<a href=\"https:\/\/docs.coze.cn\/guides_plugin\">docs.coze.cn<\/a>)<\/p>\n<h2>9\u9879\u517c\u5bb9\u6027\u6838\u5bf9\u5f97\u51fa\u4e86\u4ec0\u4e48\u7ed3\u8bba\uff1f<\/h2>\n<p><strong>\u6309\u6263\u5b50\u5b98\u65b9\u5b57\u6bb5\u4e0e\u5e38\u89c1 OpenAI \u517c\u5bb9\u7f51\u5173\u8fdb\u884c\u6587\u6863\u7ea7\u6620\u5c04\uff0c9\u4e2a\u5173\u952e\u9879\u4e2d6\u9879\u53ef\u76f4\u63a5\u5bf9\u5e94\u30012\u9879\u53d6\u51b3\u4e8e\u6a21\u578b\u80fd\u529b\u30011\u9879\u9700\u8981\u624b\u52a8\u8f6c\u6362\u3002<\/strong> \u8be5\u7ed3\u679c\u7528\u4e8e\u914d\u7f6e\u5ba1\u67e5\uff0c\u4e0d\u4ee3\u8868\u5177\u4f53\u670d\u52a1\u5546\u7684\u5ef6\u8fdf\u6d4b\u8bd5\u3002<\/p>\n<div style=\"overflow-x:auto;\">\n<table style=\"width:100%;border-collapse:collapse;margin:1.5em 0;font-size:0.95em;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u6838\u5bf9\u7ed3\u679c<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u9879\u76ee<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u76f4\u63a5\u5bf9\u5e94\uff086\u9879\uff09<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Base URL\u3001\u6a21\u578bID\u3001API Key\u3001Chat Completions\u3001\u6d41\u5f0f\u8f93\u51fa\u3001\u4e0a\u4e0b\u6587\u957f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u80fd\u529b\u76f8\u5173\uff082\u9879\uff09<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5de5\u5177\u8c03\u7528\u3001\u591a\u6a21\u6001\u8f93\u5165<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u624b\u52a8\u8f6c\u6362\uff081\u9879\uff09<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6263\u5b50\u81ea\u5b9a\u4e49\u53c2\u6570 Schema<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u5957\u201c<strong>6+2+1\u68c0\u67e5\u6cd5<\/strong>\u201d\u80fd\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\uff1a\u524d6\u9879\u51b3\u5b9a\u80fd\u5426\u8fde\u901a\uff0c\u80fd\u529b\u9879\u51b3\u5b9a\u529f\u80fd\u662f\u5426\u53ef\u7528\uff0c\u53c2\u6570 Schema \u5219\u51b3\u5b9a\u6e29\u5ea6\u3001\u6700\u5927\u8f93\u51fa\u957f\u5ea6\u7b49\u9009\u9879\u80fd\u5426\u5728\u6263\u5b50\u754c\u9762\u6b63\u5e38\u5c55\u793a\u3002<\/p>\n<p>\u9700\u8981\u8fdb\u4e00\u6b65\u8bc4\u4f30\u7f51\u5173\u67b6\u6784\u65f6\uff0c\u53ef\u7ed3\u5408 <a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/09\/26\/oneapi-commercial-ai-gateway-stability\/\">\u81ea\u5efaOneAPI\u4e0e\u5546\u4e1aAI\u7f51\u5173\u7a33\u5b9a\u6027\u5bf9\u6bd4<\/a> \u548c <a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/09\/11\/openrouter-guide\/\">OpenRouter\u6a21\u578b\u8def\u7531\u4e0eAPI\u805a\u5408\u6307\u5357<\/a> \u7406\u89e3\u81ea\u5efa\u3001\u805a\u5408\u4e0e\u7edf\u4e00\u8def\u7531\u7684\u5dee\u5f02\u3002<\/p>\n<h2>\u63a5\u5165\u5931\u8d25\u65f6\u600e\u6837\u5feb\u901f\u6392\u9519\uff1f<\/h2>\n<p><strong>\u5148\u770bHTTP\u72b6\u6001\u7801\uff0c\u518d\u6838\u5bf9URL\u3001\u6a21\u578bID\u548c\u6d41\u5f0f\u54cd\u5e94\uff0c\u901a\u5e38\u6bd4\u53cd\u590d\u4fee\u6539\u63d0\u793a\u8bcd\u66f4\u6709\u6548\u3002<\/strong> \u5efa\u8bae\u6309\u4ece\u8fde\u63a5\u5c42\u5230\u80fd\u529b\u5c42\u7684\u987a\u5e8f\u6392\u67e5\u3002<\/p>\n<div style=\"overflow-x:auto;\">\n<table style=\"width:100%;border-collapse:collapse;margin:1.5em 0;font-size:0.95em;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u73b0\u8c61<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u5e38\u89c1\u539f\u56e0<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u5904\u7406\u65b9\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">401\u6216403<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Key\u9519\u8bef\u3001Header\u683c\u5f0f\u4e0d\u7b26<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6838\u5bf9\u662f\u5426\u9700\u8981 <code>Bearer<\/code> \u524d\u7f00<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">404<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Base URL\u91cd\u590d\u5305\u542b\u63a5\u53e3\u8def\u5f84<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5220\u9664\u672b\u5c3e <code>\/chat\/completions<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">model not found<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6a21\u578b\u5c55\u793a\u540d\u88ab\u5f53\u6210\u6a21\u578bID<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u586b\u5199\u7f51\u5173\u5b9e\u9645\u6a21\u578b\u6807\u8bc6<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e00\u76f4\u7b49\u5f85\u65e0\u8f93\u51fa<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e0a\u6e38\u4e0d\u652f\u6301\u6d41\u5f0f\u54cd\u5e94<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u786e\u8ba4\u652f\u6301SSE\u53ca <code>stream:true<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u666e\u901a\u5bf9\u8bdd\u6210\u529f\u3001\u5de5\u5177\u5931\u8d25<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6a21\u578b\u4e0d\u652f\u6301\u5de5\u5177\u8c03\u7528<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u66f4\u6362\u6a21\u578b\u6216\u5173\u95ed\u76f8\u5173\u80fd\u529b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u8f93\u51fa\u89e3\u6790\u5931\u8d25<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u8fd4\u56de\u7ed3\u6784\u4e0d\u517c\u5bb9<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u7528\u9002\u914d\u5c42\u8f6c\u6362\u4e3a\u517c\u5bb9\u683c\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u82e5\u8fd8\u9700\u5728\u5176\u4ed6\u4f4e\u4ee3\u7801\u5e73\u53f0\u590d\u7528\u540c\u4e00\u7f51\u5173\uff0c\u53ef\u53c2\u7167 <a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/09\/19\/dify-api-config\/\">Dify\u7b2c\u4e09\u65b9\u5927\u6a21\u578b\u63a5\u53e3\u914d\u7f6e\u6559\u7a0b<\/a> \u5bf9\u6bd4\u6a21\u578b\u540d\u79f0\u3001\u63a5\u53e3\u8def\u5f84\u4e0e\u9274\u6743\u65b9\u5f0f\u3002<\/p>\n<h2>\u5982\u4f55\u9009\u62e9\u7a33\u5b9a\u4e14\u5408\u89c4\u7684\u6a21\u578b\u7f51\u5173\uff1f<\/h2>\n<p><strong>\u91cd\u70b9\u68c0\u67e5\u6388\u6743\u6765\u6e90\u3001\u65e5\u5fd7\u7b56\u7565\u3001\u6545\u969c\u5207\u6362\u548c\u6570\u636e\u5904\u7406\u8fb9\u754c\uff0c\u800c\u4e0d\u662f\u53ea\u6bd4\u8f83\u8c03\u7528\u5355\u4ef7\u3002<\/strong> \u591a\u6a21\u578b API \u805a\u5408\u5e73\u53f0\u7684\u4ef7\u503c\u5728\u4e8e\u7edf\u4e00\u63a5\u53e3\uff0c\u4f46\u4e0d\u540c\u670d\u52a1\u7684\u6570\u636e\u5b89\u5168\u548c\u7a33\u5b9a\u6027\u53ef\u80fd\u5b58\u5728\u660e\u663e\u5dee\u5f02\u3002<\/p>\n<p>\u5efa\u8bae\u786e\u8ba4\uff1a<\/p>\n<ol>\n<li>\u662f\u5426\u660e\u786e\u8bf4\u660e\u6a21\u578b\u6765\u6e90\u53ca\u6388\u6743\u65b9\u5f0f\uff1b<\/li>\n<li>\u662f\u5426\u652f\u6301\u9690\u85cf\u6216\u52a0\u5bc6\u5b58\u50a8 API Key\uff1b<\/li>\n<li>\u662f\u5426\u63d0\u4f9b\u8c03\u7528\u65e5\u5fd7\u3001\u7528\u91cf\u76d1\u63a7\u548c\u9519\u8bef\u8ffd\u8e2a\uff1b<\/li>\n<li>\u662f\u5426\u5141\u8bb8\u5173\u95ed\u654f\u611f\u8bf7\u6c42\u5185\u5bb9\u7559\u5b58\uff1b<\/li>\n<li>\u6a21\u578b\u6545\u969c\u65f6\u662f\u5426\u652f\u6301\u4eba\u5de5\u5207\u6362\u6216\u8def\u7531\uff1b<\/li>\n<li>\u4f01\u4e1a\u6570\u636e\u662f\u5426\u4f1a\u88ab\u7528\u4e8e\u672a\u7ecf\u6388\u6743\u7684\u8bad\u7ec3\u3002<\/li>\n<\/ol>\n<figure class=\"wp-block-image size-large\" style=\"margin:1.5em 0;\"><img decoding=\"async\" src=\"https:\/\/ntokenx.com\/blog\/wp-content\/uploads\/2026\/10\/backend-4614-3.jpg\" alt=\"\u6263\u5b50\u7b2c\u4e09\u65b9\u5927\u6a21\u578b\u7f51\u5173\u63a5\u5165\u9a8c\u6536\u6e05\u5355\" style=\"max-width:100%;height:auto;\"><\/figure>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<h3>\u6263\u5b50\u4e2a\u4eba\u7248\u53ef\u4ee5\u76f4\u63a5\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6a21\u578b\u5417\uff1f<\/h3>\n<p>\u622a\u81f32026\u5e7410\u67081\u65e5\uff0c\u5b98\u65b9\u6587\u6863\u5c06\u7ec4\u7ec7\u7ea7\u81ea\u5b9a\u4e49\u6a21\u578b\u63a5\u5165\u6807\u6ce8\u4e3a\u4f01\u4e1a\u65d7\u8230\u7248\u80fd\u529b\uff0c\u5e76\u8981\u6c42\u7ec4\u7ec7\u8d85\u7ea7\u7ba1\u7406\u5458\u6216\u7ba1\u7406\u5458\u914d\u7f6e\u3002\u82e5\u9875\u9762\u6ca1\u6709\u5165\u53e3\uff0c\u5e94\u5148\u6838\u5bf9\u5957\u9910\u548c\u6743\u9650\u3002(<a href=\"https:\/\/docs.coze.cn\/guides_deploy_custom_model\">docs.coze.cn<\/a>)<\/p>\n<h3>API URL\u5e94\u8be5\u586b\u5230\u54ea\u4e00\u7ea7\uff1f<\/h3>\n<p>\u76f4\u63a5\u63a5\u5165\u81ea\u5b9a\u4e49\u6a21\u578b\u65f6\uff0c\u4e00\u822c\u586b\u5199\u5230\u7248\u672c\u8def\u5f84\uff0c\u4f8b\u5982 <code>https:\/\/gateway.example.com\/v1<\/code>\uff0c\u4e0d\u8981\u91cd\u590d\u586b\u5199 <code>\/chat\/completions<\/code>\u3002\u63d2\u4ef6\u65b9\u5f0f\u5219\u901a\u5e38\u9700\u8981\u586b\u5199\u5b8c\u6574\u63a5\u53e3\u5730\u5740\u3002<\/p>\n<h3>\u63a5\u5165\u81ea\u5b9a\u4e49\u6a21\u578b\u540e\u8fd8\u4f1a\u6d88\u8017\u6263\u5b50\u6a21\u578b\u8d39\u7528\u5417\uff1f<\/h3>\n<p>\u5b98\u65b9\u8bf4\u660e\uff0c\u81ea\u5b9a\u4e49\u63a5\u5165\u6a21\u578b\u4e0d\u4f1a\u4ea7\u751f\u6263\u5b50\u7f16\u7a0b\u4efb\u52a1\u8d39\u7528\uff0c\u4f46\u4f1a\u6d88\u8017\u7528\u6237\u81ea\u5df1\u7684\u6a21\u578b Token\uff1b\u5982\u679c\u540c\u65f6\u8c03\u7528\u5185\u7f6e\u96c6\u6210\u670d\u52a1\uff0c\u76f8\u5173\u670d\u52a1\u4ecd\u53ef\u80fd\u4ea7\u751f\u8d39\u7528\u3002(<a href=\"https:\/\/docs.coze.cn\/guides_vibe_coding_faq\">docs.coze.cn<\/a>)<\/p>\n<h3>\u4e00\u4e2aAPI Key\u80fd\u5426\u5728\u6263\u5b50\u4e2d\u5207\u6362\u591a\u4e2a\u6a21\u578b\uff1f<\/h3>\n<p>\u53ef\u4ee5\uff0c\u4f46\u524d\u63d0\u662f\u7f51\u5173\u672c\u8eab\u63d0\u4f9b\u7edf\u4e00\u6a21\u578b\u6807\u8bc6\u548c\u8def\u7531\u80fd\u529b\u3002nTokenX \u652f\u6301\u901a\u8fc7\u4e00\u4e2a API Key \u8c03\u7528 GPT\u3001Claude\u3001Gemini\u3001Grok \u7b49\u591a\u4e2a\u6a21\u578b\uff1b\u5728\u6263\u5b50\u4e2d\u53ef\u4e3a\u4e0d\u540c\u6a21\u578bID\u5206\u522b\u521b\u5efa\u914d\u7f6e\uff0c\u4fbf\u4e8e\u6309\u4efb\u52a1\u9009\u62e9\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u63d2\u4ef6\u8c03\u7528\u6210\u529f\uff0c\u5374\u65e0\u6cd5\u5728\u6a21\u578b\u5217\u8868\u4e2d\u770b\u5230\uff1f<\/h3>\n<p>\u56e0\u4e3a\u63d2\u4ef6\u662f\u667a\u80fd\u4f53\u7684\u5916\u90e8\u5de5\u5177\uff0c\u4e0d\u662f\u6ce8\u518c\u5230\u6a21\u578b\u5217\u8868\u4e2d\u7684\u63a8\u7406\u6a21\u578b\u3002\u8981\u663e\u793a\u5728\u6a21\u578b\u9009\u62e9\u5668\u4e2d\uff0c\u5fc5\u987b\u4f7f\u7528\u7ec4\u7ec7\u7ea7\u201c\u81ea\u5b9a\u4e49\u6a21\u578b\u201d\u529f\u80fd\u5e76\u5b8c\u6210\u5de5\u4f5c\u7a7a\u95f4\u6388\u6743\u3002<\/p>\n<p><script type=\"application\/ld+json\">\n{\"@context\":\"https:\/\/schema.org\",\"@type\":\"Article\",\"author\":{\"@type\":\"Organization\",\"name\":\"nTokenX\"},\"dateModified\":\"2026-10-01\",\"datePublished\":\"2026-10-01\",\"description\":\"\u6263\u5b50coze\u63a5\u5165\u81ea\u5b9a\u4e49\u5927\u6a21\u578bapi\u53ef\u901a\u8fc7\u4f01\u4e1a\u7248\u81ea\u5b9a\u4e49\u6a21\u578b\u76f4\u63a5\u7ed1\u5b9a\uff0c\u4e5f\u53ef\u7528\u63d2\u4ef6\u628a\u517c\u5bb9\u63a5\u53e3\u4f5c\u4e3a\u5de5\u5177\u8c03\u7528\u3002\u672c\u6587\u8be6\u89e3\u63a5\u53e3\u5730\u5740\u3001\u6a21\u578b\u6807\u8bc6\u3001\u9274\u6743\u4e0e\u6d41\u5f0f\u54cd\u5e94\u914d\u7f6e\uff0c\u96449\u9879\u517c\u5bb9\u6027\u6838\u5bf9\u548c\u62a5\u9519\u5b9a\u4f4d\u65b9\u6cd5\uff0c\u6309\u6b65\u9aa4\u5b8c\u6210\u63a5\u5165\u9a8c\u6536\u3002\",\"headline\":\"\u6263\u5b50coze\u63a5\u5165\u81ea\u5b9a\u4e49\u5927\u6a21\u578bapi\uff1a\u914d\u7f6e\u6b65\u9aa4\u3001\u63d2\u4ef6\u65b9\u6848\u4e0e\u6392\u9519\",\"image\":\"https:\/\/ntokenx.com\/blog\/wp-content\/uploads\/2026\/10\/art-8211-cover.jpg\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"nTokenX\"}}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6263\u5b50coze\u63a5\u5165\u81ea\u5b9a\u4e49\u5927\u6a21\u578bapi\u53ef\u901a\u8fc7\u4f01\u4e1a\u7248\u81ea\u5b9a\u4e49\u6a21\u578b\u76f4\u63a5\u7ed1\u5b9a\uff0c\u4e5f\u53ef\u7528\u63d2\u4ef6\u628a\u517c\u5bb9\u63a5\u53e3\u4f5c\u4e3a\u5de5\u5177\u8c03\u7528\u3002\u672c\u6587\u8be6\u89e3\u63a5\u53e3\u5730\u5740\u3001\u6a21\u578b\u6807\u8bc6\u3001\u9274\u6743\u4e0e\u6d41\u5f0f\u54cd\u5e94\u914d\u7f6e\uff0c\u96449\u9879\u517c\u5bb9\u6027\u6838\u5bf9\u548c\u62a5\u9519\u5b9a\u4f4d\u65b9\u6cd5\uff0c\u6309\u6b65\u9aa4\u5b8c\u6210\u63a5\u5165\u9a8c\u6536\u3002<\/p>\n","protected":false},"author":1,"featured_media":231,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":0,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/231"}],"wp:attachment":[{"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}