{"id":308,"date":"2026-10-12T02:14:09","date_gmt":"2026-10-12T02:14:09","guid":{"rendered":"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/12\/chatbox-api-setup\/"},"modified":"2026-10-12T02:14:09","modified_gmt":"2026-10-12T02:14:09","slug":"chatbox-api-setup","status":"publish","type":"post","link":"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/12\/chatbox-api-setup\/","title":{"rendered":"Chatbox\u914d\u7f6e\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u6559\u7a0b\uff1a\u53c2\u6570\u3001\u6b65\u9aa4\u4e0e\u6392\u9519"},"content":{"rendered":"<p><em>\u4f5c\u8005\uff1anTokenX\uff5c\u53d1\u5e03\u65e5\u671f\uff1a2026-10-12\uff5c\u66f4\u65b0\u65e5\u671f\uff1a2026-10-12<\/em><\/p>\n<p>\u8fd9\u7bc7Chatbox\u914d\u7f6e\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u6559\u7a0b\u9002\u5408\u5df2\u7ecf\u53d6\u5f97 API Key\u3001\u63a5\u53e3\u5730\u5740\u548c\u6a21\u578b\u540d\u79f0\uff0c\u5e0c\u671b\u5728\u684c\u9762\u6216\u79fb\u52a8\u5ba2\u6237\u7aef\u76f4\u63a5\u5bf9\u8bdd\u7684\u7528\u6237\u3002\u6838\u5fc3\u64cd\u4f5c\u53ea\u6709\u4e09\u9879\uff1a<strong>\u9009\u5bf9\u63a5\u53e3\u534f\u8bae\u3001\u62c6\u5206 API \u5730\u5740\u3001\u51c6\u786e\u586b\u5199\u6a21\u578b ID<\/strong>\u3002<\/p>\n<p>\u622a\u81f3 2026-10-12\uff0c<a href=\"https:\/\/github.com\/chatboxai\/chatbox\/releases\">Chatbox \u5b98\u65b9\u53d1\u5e03\u9875<\/a>\u5217\u51fa\u7684\u6700\u65b0\u7248\u672c\u4e3a v1.23.5\uff0c\u53d1\u5e03\u4e8e 2026-09-24\u3002\u4e0d\u540c\u7248\u672c\u7684\u83dc\u5355\u540d\u79f0\u53ef\u80fd\u7565\u6709\u533a\u522b\uff0c\u4f46\u914d\u7f6e\u903b\u8f91\u57fa\u672c\u4e00\u81f4\u3002(<a href=\"https:\/\/github.com\/chatboxai\/chatbox\/releases\">github.com<\/a>)<\/p>\n<h2>\u914d\u7f6e\u524d\u9700\u8981\u51c6\u5907\u54ea\u4e9b\u4fe1\u606f\uff1f<\/h2>\n<p><strong>\u914d\u7f6e Chatbox \u81f3\u5c11\u9700\u8981 API Key\u3001API \u4e3b\u673a\u548c\u6a21\u578b ID\uff1b\u5982\u679c\u670d\u52a1\u5546\u6ca1\u6709\u4f7f\u7528\u9ed8\u8ba4\u63a5\u53e3\u8def\u5f84\uff0c\u8fd8\u8981\u51c6\u5907 API Path\u3002<\/strong> \u4e0d\u8981\u628a\u767b\u5f55\u5bc6\u7801\u3001\u63a7\u5236\u53f0\u5730\u5740\u6216\u5b8c\u6574\u8bf7\u6c42\u793a\u4f8b\u8bef\u586b\u5230\u8fd9\u4e9b\u5b57\u6bb5\u4e2d\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;\">Chatbox \u5b57\u6bb5<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u5e94\u586b\u5199\u7684\u5185\u5bb9<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u5e38\u89c1\u9519\u8bef<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u63d0\u4f9b\u65b9\u540d\u79f0<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u81ea\u5b9a\u4e49\u8bc6\u522b\u540d\u79f0\uff0c\u5982\u201c\u5de5\u4f5c\u6a21\u578b\u63a5\u53e3\u201d<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u8bef\u586b\u6a21\u578b\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">API \u7c7b\u578b<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">OpenAI\u3001Claude \u6216 Gemini \u517c\u5bb9\u534f\u8bae<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u53ea\u770b\u6a21\u578b\u54c1\u724c\uff0c\u4e0d\u770b\u63a5\u53e3\u534f\u8bae<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">API \u4e3b\u673a<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u670d\u52a1\u5546\u63d0\u4f9b\u7684 Base URL \u6216 API Host<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u586b\u5165\u63a7\u5236\u53f0\u7f51\u9875\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">API \u8def\u5f84<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5982 <code>\/v1\/chat\/completions<\/code><\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e0e\u4e3b\u673a\u4e2d\u7684 <code>\/v1<\/code> \u91cd\u590d<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">API Key<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u63a7\u5236\u53f0\u521b\u5efa\u7684\u8c03\u7528\u5bc6\u94a5<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5e26\u6709\u7a7a\u683c\u3001\u6362\u884c\u6216\u5df2\u5931\u6548<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6a21\u578b ID<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u670d\u52a1\u5546\u6a21\u578b\u5217\u8868\u4e2d\u7684\u51c6\u786e\u6807\u8bc6<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4f7f\u7528\u6a21\u578b\u6635\u79f0\u6216\u81ea\u884c\u6539\u5199<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Chatbox \u5f53\u524d\u652f\u6301\u5185\u7f6e\u4e0e\u81ea\u5b9a\u4e49\u63d0\u4f9b\u65b9\u3002\u5b98\u65b9\u6587\u6863\u5efa\u8bae\u5728\u201c\u8bbe\u7f6e\u2014\u6a21\u578b\u63d0\u4f9b\u65b9\u201d\u4e2d\u6dfb\u52a0\u670d\u52a1\u5546\uff0c\u5e76\u6839\u636e\u63a5\u53e3\u89c4\u8303\u9009\u62e9\u517c\u5bb9\u7c7b\u578b\uff1bAPI \u8def\u5f84\u901a\u5e38\u6709\u9ed8\u8ba4\u503c\uff0c\u4f46\u4ecd\u5e94\u4ee5\u670d\u52a1\u5546\u6587\u6863\u4e3a\u51c6\u3002(<a href=\"https:\/\/github.com\/chatboxai\/chatbox-docs\/blob\/main\/guides\/providers\/README.md\">github.com<\/a>)<\/p>\n<h2>\u5982\u4f55\u5728 Chatbox \u4e2d\u6dfb\u52a0\u7b2c\u4e09\u65b9\u670d\u52a1\u5546\uff1f<\/h2>\n<p><strong>\u8fdb\u5165\u6a21\u578b\u63d0\u4f9b\u65b9\u8bbe\u7f6e\uff0c\u65b0\u589e\u81ea\u5b9a\u4e49\u63d0\u4f9b\u65b9\uff0c\u7136\u540e\u4f9d\u6b21\u914d\u7f6e\u534f\u8bae\u3001\u4e3b\u673a\u3001\u8def\u5f84\u3001\u5bc6\u94a5\u548c\u6a21\u578b\u5373\u53ef\u3002<\/strong> \u7b2c\u4e00\u6b21\u63a5\u5165\u5efa\u8bae\u53ea\u6dfb\u52a0\u4e00\u4e2a\u6587\u672c\u6a21\u578b\uff0c\u786e\u8ba4\u6210\u529f\u540e\u518d\u914d\u7f6e\u89c6\u89c9\u6216\u63a8\u7406\u80fd\u529b\u3002<\/p>\n<ol>\n<li>\u6253\u5f00 Chatbox\uff0c\u8fdb\u5165 <strong>\u8bbe\u7f6e\u2014\u6a21\u578b\u63d0\u4f9b\u65b9<\/strong>\u3002<\/li>\n<li>\u70b9\u51fb\u5e95\u90e8\u7684\u201c\u6dfb\u52a0\u201d\u6216\u201c\u6dfb\u52a0\u81ea\u5b9a\u4e49\u63d0\u4f9b\u65b9\u201d\u3002<\/li>\n<li>\u586b\u5199\u4fbf\u4e8e\u8bc6\u522b\u7684\u63d0\u4f9b\u65b9\u540d\u79f0\u3002<\/li>\n<li>\u6839\u636e\u670d\u52a1\u5546\u6587\u6863\u9009\u62e9 <strong>OpenAI API \u517c\u5bb9\u3001Claude \u517c\u5bb9\u6216 Gemini \u517c\u5bb9<\/strong>\u3002<\/li>\n<li>\u586b\u5165 API \u4e3b\u673a\u3001API \u8def\u5f84\u548c API Key\u3002<\/li>\n<li>\u6dfb\u52a0\u6a21\u578b\uff0c\u6a21\u578b ID \u5fc5\u987b\u4e0e\u670d\u52a1\u5546\u540e\u53f0\u5b8c\u5168\u4e00\u81f4\u3002<\/li>\n<li>\u4fdd\u5b58\u540e\u6267\u884c\u201c\u68c0\u67e5\u201d\u6216\u201c\u8fde\u63a5\u6d4b\u8bd5\u201d\u3002<\/li>\n<li>\u8fd4\u56de\u9996\u9875\uff0c\u65b0\u5efa\u5bf9\u8bdd\u5e76\u9009\u62e9\u521a\u6dfb\u52a0\u7684\u6a21\u578b\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-6195-1.jpg\" alt=\"Chatbox\u914d\u7f6e\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u6559\u7a0b\u4e2d\u7684\u53c2\u6570\u586b\u5199\u754c\u9762\" style=\"max-width:100%;height:auto;\"><\/figure>\n<p>\u591a\u6570\u7edf\u4e00\u5927\u6a21\u578b API \u4f7f\u7528 OpenAI \u517c\u5bb9\u683c\u5f0f\uff0c\u4f46\u6a21\u578b\u5c5e\u4e8e Claude \u6216 Gemini\uff0c\u5e76\u4e0d\u4ee3\u8868\u63a5\u53e3\u4e00\u5b9a\u91c7\u7528\u5176\u539f\u751f\u534f\u8bae\u3002<strong>\u5e94\u4ee5\u670d\u52a1\u5546\u7ed9\u51fa\u7684\u8bf7\u6c42\u683c\u5f0f\u4e3a\u51c6\uff0c\u800c\u4e0d\u662f\u4ec5\u51ed\u6a21\u578b\u540d\u79f0\u5224\u65ad\u3002<\/strong><\/p>\n<h2>API\u4e3b\u673a\u4e0e\u63a5\u53e3\u8def\u5f84\u5e94\u8be5\u600e\u4e48\u62c6\u5206\uff1f<\/h2>\n<p><strong>\u5224\u65ad\u539f\u5219\u662f\u628a\u6700\u7ec8\u8bf7\u6c42\u5730\u5740\u53ea\u62fc\u6210\u4e00\u6b21\uff0c\u4e0d\u80fd\u9057\u6f0f\u6216\u91cd\u590d <code>\/v1<\/code>\u3001<code>\/chat\/completions<\/code>\u3002<\/strong> \u8fd9\u662f Chatbox \u63a5\u53e3\u51fa\u73b0 404\u3001\u7a7a\u54cd\u5e94\u6216\u8bf7\u6c42\u8def\u5f84\u9519\u8bef\u65f6\u6700\u503c\u5f97\u4f18\u5148\u68c0\u67e5\u7684\u73af\u8282\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;\">\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u4fe1\u606f<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">API \u4e3b\u673a\u793a\u4f8b<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">API \u8def\u5f84\u793a\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6839\u57df\u540d<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\"><code>https:\/\/api.example.com<\/code><\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\"><code>\/v1\/chat\/completions<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Base URL \u5df2\u542b\u7248\u672c\u53f7<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\"><code>https:\/\/api.example.com\/v1<\/code><\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\"><code>\/chat\/completions<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5b8c\u6574\u8bf7\u6c42\u5730\u5740<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u622a\u53d6\u81f3\u57df\u540d\u6216 <code>\/v1<\/code><\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5c06\u5269\u4f59\u90e8\u5206\u653e\u5165\u8def\u5f84<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u53ef\u91c7\u7528\u4e00\u4e2a\u7b80\u5355\u7684<strong>\u5355\u6b21\u62fc\u63a5\u68c0\u67e5\u6cd5<\/strong>\uff1a\u5c06\u201cAPI \u4e3b\u673a\uff0bAPI \u8def\u5f84\u201d\u5199\u5728\u4e00\u8d77\uff0c\u786e\u8ba4\u6700\u7ec8\u53ea\u6709\u4e00\u4e2a\u534f\u8bae\u5934\u3001\u4e00\u4e2a\u57df\u540d\u3001\u4e00\u4e2a\u7248\u672c\u76ee\u5f55\u548c\u4e00\u4e2a\u8bf7\u6c42\u7aef\u70b9\u3002\u4e0d\u8981\u56e0\u4e3a\u5176\u4ed6\u5ba2\u6237\u7aef\u91c7\u7528\u4e0d\u540c\u89c4\u5219\uff0c\u5c31\u76f4\u63a5\u590d\u5236\u5176\u5b57\u6bb5\uff1b\u4f8b\u5982 <a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/05\/cherry-studio-api\/\">Cherry Studio \u7684\u7b2c\u4e09\u65b9\u670d\u52a1\u5546\u53c2\u6570\u914d\u7f6e<\/a> \u4e0e Chatbox \u7684\u5730\u5740\u62c6\u5206\u65b9\u5f0f\u53ef\u80fd\u5b58\u5728\u754c\u9762\u5dee\u5f02\u3002<\/p>\n<h2>\u5982\u4f55\u786e\u8ba4\u914d\u7f6e\u771f\u7684\u53ef\u7528\uff1f<\/h2>\n<p><strong>\u6709\u6548\u914d\u7f6e\u4e0d\u4ec5\u8981\u901a\u8fc7\u8fde\u63a5\u68c0\u67e5\uff0c\u8fd8\u8981\u5b8c\u6210\u9274\u6743\u3001\u6a21\u578b\u8c03\u7528\u3001\u8fde\u7eed\u8f93\u51fa\u548c\u80fd\u529b\u9a8c\u8bc1\u3002<\/strong> \u63a8\u8350\u4f7f\u7528\u201c\u56db\u5c42\u9a8c\u6536\u6cd5\u201d\uff0c\u4ee5 4 \u6b21\u8bf7\u6c42\u5206\u522b\u9694\u79bb\u95ee\u9898\uff0c\u907f\u514d\u540c\u65f6\u4fee\u6539\u591a\u4e2a\u53c2\u6570\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;\">\u9a8c\u6536\u5c42\u7ea7<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u6d4b\u8bd5\u65b9\u6cd5<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">\u901a\u8fc7\u6807\u51c6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u8fde\u63a5\u5c42<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6267\u884c\u5ba2\u6237\u7aef\u8fde\u63a5\u68c0\u67e5<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e0d\u51fa\u73b0\u57df\u540d\u89e3\u6790\u3001\u8d85\u65f6\u6216 404<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u9274\u6743\u5c42<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u53d1\u9001\u201c\u53ea\u56de\u590d\u6570\u5b57 1\u201d<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e0d\u51fa\u73b0 401 \u6216 403<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6a21\u578b\u5c42<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u66f4\u6362\u4e24\u4e2a\u5df2\u6388\u6743\u6a21\u578b\u5404\u8bf7\u6c42\u4e00\u6b21<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e24\u4e2a\u6a21\u578b\u5747\u8fd4\u56de\u5bf9\u5e94\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u80fd\u529b\u5c42<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6d4b\u8bd5\u957f\u6587\u672c\u3001\u56fe\u7247\u6216\u63a8\u7406\u6a21\u5f0f<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u80fd\u529b\u4e0e\u6a21\u578b\u6743\u9650\u53ca\u914d\u7f6e\u4e00\u81f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u524d 3 \u9879\u5e94\u5168\u90e8\u901a\u8fc7\uff1b\u7b2c 4 \u9879\u6309\u5b9e\u9645\u7528\u9014\u9009\u62e9\u3002\u6bcf\u6b21\u6d4b\u8bd5\u53ea\u6539\u4e00\u4e2a\u53d8\u91cf\uff0c\u5e76\u8bb0\u5f55 API \u4e3b\u673a\u3001\u8def\u5f84\u3001\u6a21\u578b ID\u3001\u72b6\u6001\u7801\u4e0e\u8bf7\u6c42\u65f6\u95f4\u3002\u8fd9\u6837\u80fd\u5feb\u901f\u5224\u65ad\u6545\u969c\u6765\u81ea\u5ba2\u6237\u7aef\u914d\u7f6e\u3001\u670d\u52a1\u5546\u6743\u9650\u8fd8\u662f\u6a21\u578b\u672c\u8eab\u3002<\/p>\n<p>\u9700\u8981\u5728\u5176\u4ed6\u5ba2\u6237\u7aef\u590d\u7528\u540c\u4e00\u7ec4\u53c2\u6570\u65f6\uff0c\u53ef\u53c2\u8003 <a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/09\/27\/nextchat-custom-provider-api-tutorial\/\">NextChat \u81ea\u5b9a\u4e49\u670d\u52a1\u5546\u63a5\u53e3\u6559\u7a0b<\/a>\uff1b\u5982\u679c\u4f7f\u7528\u6d4f\u89c8\u5668\u5f0f\u5de5\u4f5c\u53f0\uff0c\u5219\u53ef\u67e5\u770b <a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/11\/openwebui-custom-openai-api\/\">OpenWebUI \u81ea\u5b9a\u4e49 OpenAI \u63a5\u53e3\u914d\u7f6e<\/a>\u3002<\/p>\n<h2>\u5e38\u89c1\u9519\u8bef\u5982\u4f55\u5feb\u901f\u5b9a\u4f4d\uff1f<\/h2>\n<p><strong>\u5148\u6839\u636e\u72b6\u6001\u7801\u5224\u65ad\u6545\u969c\u5c42\u7ea7\uff0c\u518d\u4fee\u6539\u5bf9\u5e94\u5b57\u6bb5\uff1b\u4e0d\u8981\u9047\u5230\u62a5\u9519\u5c31\u53cd\u590d\u66f4\u6362 Key\u3002<\/strong> 401 \u901a\u5e38\u6307\u5411\u9274\u6743\uff0c404 \u591a\u4e0e\u8def\u5f84\u6709\u5173\uff0c429 \u5219\u5e94\u68c0\u67e5\u989d\u5ea6\u3001\u9891\u7387\u9650\u5236\u4e0e\u5e76\u53d1\u8bf7\u6c42\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;\">\u62a5\u9519\u6216\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 Unauthorized<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Key \u9519\u8bef\u3001\u5931\u6548\u6216\u5e26\u7a7a\u683c<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u91cd\u65b0\u590d\u5236\u5bc6\u94a5\uff0c\u68c0\u67e5\u524d\u540e\u7a7a\u767d<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">403 Forbidden<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Key \u65e0\u6a21\u578b\u6743\u9650\u6216\u88ab\u7b56\u7565\u62d2\u7edd<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6838\u5bf9\u6388\u6743\u8303\u56f4\u548c\u8d26\u6237\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">404 Not Found<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e3b\u673a\u4e0e\u8def\u5f84\u62fc\u63a5\u9519\u8bef<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u68c0\u67e5 <code>\/v1<\/code> \u662f\u5426\u91cd\u590d\u6216\u9057\u6f0f<\/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 ID \u62fc\u5199\u9519\u8bef<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4ece\u670d\u52a1\u5546\u6a21\u578b\u5217\u8868\u539f\u6837\u590d\u5236<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">429 Too Many Requests<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u989d\u5ea6\u4e0d\u8db3\u3001\u5e76\u53d1\u6216\u9891\u7387\u8d85\u9650<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u964d\u4f4e\u8bf7\u6c42\u9891\u7387\u5e76\u68c0\u67e5\u914d\u989d<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u4e00\u76f4\u52a0\u8f7d\u6216\u4e2d\u9014\u505c\u6b62<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u7f51\u7edc\u8d85\u65f6\u3001\u6d41\u5f0f\u54cd\u5e94\u4e0d\u517c\u5bb9<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u5173\u95ed\u6d41\u5f0f\u8f93\u51fa\u6d4b\u8bd5\uff0c\u4fdd\u7559\u9519\u8bef\u8bb0\u5f55<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u6587\u672c\u53ef\u7528\u4f46\u56fe\u7247\u5931\u8d25<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u672a\u58f0\u660e\u89c6\u89c9\u80fd\u529b\u6216\u6a21\u578b\u4e0d\u652f\u6301<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">\u68c0\u67e5\u6a21\u578b\u80fd\u529b\u548c\u8f93\u5165\u683c\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\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-6195-2.jpg\" alt=\"Chatbox\u7b2c\u4e09\u65b9API\u72b6\u6001\u7801\u4e0e\u914d\u7f6e\u9519\u8bef\u6392\u67e5\u6d41\u7a0b\u56fe\" style=\"max-width:100%;height:auto;\"><\/figure>\n<p>\u751f\u4ea7\u73af\u5883\u9047\u5230 429 \u65f6\uff0c\u4e0d\u5e94\u6301\u7eed\u7acb\u5373\u91cd\u8bd5\uff0c\u5426\u5219\u53ef\u80fd\u8fdb\u4e00\u6b65\u653e\u5927\u8bf7\u6c42\u538b\u529b\u3002\u66f4\u5b8c\u6574\u7684\u5de5\u7a0b\u5904\u7406\u65b9\u5f0f\u53ef\u53c2\u8003<a href=\"https:\/\/ntokenx.com\/blog\/index.php\/2026\/10\/04\/llm-429-retry\/\">\u5927\u6a21\u578b\u63a5\u53e3429\u81ea\u52a8\u91cd\u8bd5\u7b56\u7565<\/a>\u3002<\/p>\n<h2>\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u5e94\u8be5\u600e\u4e48\u9009\u62e9\uff1f<\/h2>\n<p><strong>\u9009\u62e9\u670d\u52a1\u5546\u65f6\uff0c\u5e94\u540c\u65f6\u6838\u67e5\u6388\u6743\u6765\u6e90\u3001\u53ef\u7528\u6027\u3001\u6570\u636e\u5904\u7406\u89c4\u5219\u548c\u6545\u969c\u652f\u6301\uff0c\u800c\u4e0d\u662f\u53ea\u770b\u6a21\u578b\u6570\u91cf\u3002<\/strong> \u591a\u6a21\u578b\u5e73\u53f0\u4e3b\u8981\u5206\u4e3a\u6b63\u89c4 API \u805a\u5408\u6216\u7f51\u5173\uff0c\u4ee5\u53ca\u7531\u5e73\u53f0\u7edf\u4e00\u91c7\u8d2d\u989d\u5ea6\u540e\u63d0\u4f9b\u63a5\u53e3\u7684\u7b2c\u4e09\u65b9\u6a21\u578b\u670d\u52a1\u3002<\/p>\n<p>\u524d\u4e00\u7c7b\u901a\u5e38\u7531\u7528\u6237\u7ed1\u5b9a\u81ea\u5df1\u7684\u6a21\u578b\u5382\u5546 Key\uff0c\u5e73\u53f0\u8d1f\u8d23\u7edf\u4e00\u8f6c\u53d1\u3001\u8ba1\u8d39\u4e0e\u76d1\u63a7\uff1b\u540e\u4e00\u7c7b\u7684\u6388\u6743\u65b9\u5f0f\u3001\u7a33\u5b9a\u6027\u548c\u6570\u636e\u5b89\u5168\u5dee\u5f02\u8f83\u5927\uff0c\u9700\u8981\u6838\u67e5\u670d\u52a1\u534f\u8bae\u3001\u65e5\u5fd7\u4fdd\u7559\u653f\u7b56\u3001\u5bc6\u94a5\u6743\u9650\u548c\u4f01\u4e1a\u7ed3\u7b97\u6750\u6599\u3002<\/p>\n<p><a href=\"https:\/\/ntokenx.com\/\">nTokenX \u591a\u6a21\u578b API \u805a\u5408\u5e73\u53f0<\/a>\u5141\u8bb8\u7528\u6237\u7533\u8bf7\u4e00\u4e2a API Key\uff0c\u8c03\u7528 GPT\u3001Claude\u3001Gemini\u3001Grok \u7b49\u591a\u4e2a\u6a21\u578b\u3002\u914d\u7f6e\u65f6\u4ecd\u5e94\u4ee5\u540e\u53f0\u63d0\u4f9b\u7684 API \u5730\u5740\u3001\u6a21\u578b ID \u548c\u63a5\u53e3\u534f\u8bae\u4e3a\u51c6\uff0c\u4e0d\u8981\u5c06\u4e0d\u540c\u5e73\u53f0\u7684 Key \u4e0e\u5730\u5740\u4ea4\u53c9\u4f7f\u7528\u3002<\/p>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<h3>Chatbox\u5fc5\u987b\u586b\u5199API\u8def\u5f84\u5417\uff1f<\/h3>\n<p>\u4e0d\u4e00\u5b9a\u3002\u90e8\u5206\u63d0\u4f9b\u65b9\u5df2\u6709\u9ed8\u8ba4\u8def\u5f84\uff0c\u53ef\u4ee5\u7559\u7a7a\uff1b\u5982\u679c\u670d\u52a1\u5546\u660e\u786e\u7ed9\u51fa\u5b8c\u6574\u7aef\u70b9\uff0c\u5219\u5e94\u6309\u5176\u6587\u6863\u62c6\u5206 API \u4e3b\u673a\u548c\u8def\u5f84\u3002\u4fdd\u5b58\u524d\u52a1\u5fc5\u68c0\u67e5\u6700\u7ec8\u5730\u5740\u662f\u5426\u91cd\u590d <code>\/v1<\/code>\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u8fde\u63a5\u68c0\u67e5\u6210\u529f\uff0c\u804a\u5929\u5374\u63d0\u793a\u6a21\u578b\u4e0d\u5b58\u5728\uff1f<\/h3>\n<p>\u8fde\u63a5\u6210\u529f\u53ea\u80fd\u8bc1\u660e\u5730\u5740\u57fa\u672c\u53ef\u8bbf\u95ee\uff0c\u4e0d\u4ee3\u8868\u5f53\u524d Key \u62e5\u6709\u8be5\u6a21\u578b\u6743\u9650\u3002\u5e94\u4ece\u670d\u52a1\u5546\u540e\u53f0\u590d\u5236\u51c6\u786e\u7684\u6a21\u578b ID\uff0c\u5e76\u68c0\u67e5\u5927\u5c0f\u5199\u3001\u77ed\u6a2a\u7ebf\u548c\u7248\u672c\u540e\u7f00\u3002<\/p>\n<h3>\u4e00\u4e2aAPI Key\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\u6a21\u578b\u5417\uff1f<\/h3>\n<p>\u53ef\u4ee5\uff0c\u524d\u63d0\u662f\u8be5 Key \u5df2\u88ab\u670d\u52a1\u5546\u6388\u6743\u8bbf\u95ee\u8fd9\u4e9b\u6a21\u578b\u3002\u5728\u540c\u4e00\u63d0\u4f9b\u65b9\u4e0b\u6dfb\u52a0\u591a\u4e2a\u6a21\u578b ID\uff0c\u5373\u53ef\u5728\u65b0\u5efa\u5bf9\u8bdd\u65f6\u5207\u6362\u3002<\/p>\n<h3>Chatbox\u80fd\u5426\u5bfc\u5165\u670d\u52a1\u5546\u914d\u7f6e\uff1f<\/h3>\n<p>\u53ef\u4ee5\u3002Chatbox \u4ece 1.15.1 \u8d77\u652f\u6301\u901a\u8fc7 JSON \u6216 deep link \u5bfc\u5165\u63d0\u4f9b\u65b9\u914d\u7f6e\uff0c\u914d\u7f6e\u5185\u5bb9\u53ef\u5305\u542b API \u4e3b\u673a\u3001\u8def\u5f84\u548c\u6a21\u578b\u5217\u8868\uff1b\u5bfc\u5165\u524d\u5e94\u786e\u8ba4\u914d\u7f6e\u6765\u6e90\u53ef\u4fe1\uff0c\u907f\u514d\u5bfc\u5165\u672a\u77e5\u5bc6\u94a5\u6216\u5730\u5740\u3002(<a href=\"https:\/\/github.com\/chatboxai\/chatbox-docs\/blob\/main\/guides\/providers\/import-config.md\">github.com<\/a>)<\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5148\u7528\u56db\u5c42\u9a8c\u6536\u6cd5\u5b8c\u6210\u6700\u5c0f\u6d4b\u8bd5\uff0c\u518d\u6dfb\u52a0\u66f4\u591a\u6a21\u578b\u4e0e\u9ad8\u7ea7\u80fd\u529b\u3002\u8fd9\u6837\u65e2\u80fd\u7f29\u77ed\u6392\u9519\u65f6\u95f4\uff0c\u4e5f\u80fd\u907f\u514d\u628a\u8def\u5f84\u9519\u8bef\u3001\u6743\u9650\u4e0d\u8db3\u548c\u6a21\u578b\u914d\u7f6e\u95ee\u9898\u6df7\u4e3a\u4e00\u8c08\u3002<\/p>\n<p><script type=\"application\/ld+json\">\n{\"@context\":\"https:\/\/schema.org\",\"@type\":\"Article\",\"author\":{\"@type\":\"Organization\",\"name\":\"nTokenX\"},\"dateModified\":\"2026-10-12\",\"datePublished\":\"2026-10-12\",\"description\":\"Chatbox\u914d\u7f6e\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u6559\u7a0b\uff0c\u57fa\u4e8e2026\u5e74\u65b0\u7248\u754c\u9762\u8bb2\u6e05API Key\u3001API\u4e3b\u673a\u3001\u63a5\u53e3\u8def\u5f84\u3001\u534f\u8bae\u7c7b\u578b\u548c\u6a21\u578b\u540d\u7684\u6b63\u786e\u586b\u6cd5\uff0c\u5e76\u7528\u56db\u5c42\u9a8c\u6536\u6cd5\u5b9a\u4f4d401\u3001403\u3001404\u3001429\u3001\u6a21\u578b\u4e0d\u5b58\u5728\u4e0e\u6d41\u5f0f\u4e2d\u65ad\u95ee\u9898\uff0c\u540c\u65f6\u8bf4\u660e\u5bc6\u94a5\u5b89\u5168\u548c\u670d\u52a1\u5546\u9009\u62e9\u8981\u70b9\u3002\u6309\u6b65\u9aa4\u5b8c\u6210\u8bbe\u7f6e\u5e76\u9a8c\u8bc1\u9996\u8f6e\u5bf9\u8bdd\u3002\",\"headline\":\"Chatbox\u914d\u7f6e\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u6559\u7a0b\uff1a\u53c2\u6570\u3001\u6b65\u9aa4\u4e0e\u6392\u9519\",\"image\":\"https:\/\/ntokenx.com\/blog\/wp-content\/uploads\/2026\/10\/art-9995-cover.jpg\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"nTokenX\"}}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chatbox\u914d\u7f6e\u7b2c\u4e09\u65b9API\u670d\u52a1\u5546\u6559\u7a0b\uff0c\u57fa\u4e8e2026\u5e74\u65b0\u7248\u754c\u9762\u8bb2\u6e05API Key\u3001API\u4e3b\u673a\u3001\u63a5\u53e3\u8def\u5f84\u3001\u534f\u8bae\u7c7b\u578b\u548c\u6a21\u578b\u540d\u7684\u6b63\u786e\u586b\u6cd5\uff0c\u5e76\u7528\u56db\u5c42\u9a8c\u6536\u6cd5\u5b9a\u4f4d401\u3001403\u3001404\u3001429\u3001\u6a21\u578b\u4e0d\u5b58\u5728\u4e0e\u6d41\u5f0f\u4e2d\u65ad\u95ee\u9898\uff0c\u540c\u65f6\u8bf4\u660e\u5bc6\u94a5\u5b89\u5168\u548c\u670d\u52a1\u5546\u9009\u62e9\u8981\u70b9\u3002\u6309\u6b65\u9aa4\u5b8c\u6210\u8bbe\u7f6e\u5e76\u9a8c\u8bc1\u9996\u8f6e\u5bf9\u8bdd\u3002<\/p>\n","protected":false},"author":1,"featured_media":307,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-308","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\/308","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=308"}],"version-history":[{"count":0,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/308\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/307"}],"wp:attachment":[{"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntokenx.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}