{"id":1781,"date":"2026-07-28T17:41:57","date_gmt":"2026-07-28T09:41:57","guid":{"rendered":"https:\/\/www.imaseo.com\/blog\/?p=1781"},"modified":"2026-06-02T17:00:26","modified_gmt":"2026-06-02T09:00:26","slug":"fix-codex-deepseek-api-404","status":"publish","type":"post","link":"https:\/\/www.imaseo.com\/blog\/ai-tools\/fix-codex-deepseek-api-404","title":{"rendered":"Codex++ \u4e2d\u4f7f\u7528 DeepSeek API \u62a5 404 \u600e\u4e48\u89e3\u51b3\uff1f"},"content":{"rendered":"<h1>Codex++ \u4e2d\u4f7f\u7528 DeepSeek API \u62a5 404 \u600e\u4e48\u89e3\u51b3\uff1f<\/h1>\n<p>Codex++ \u914d\u7f6e DeepSeek \u65f6\u9047\u5230 404 \u9519\u8bef\uff0c\u662f\u5f88\u591a\u7528\u6237\u90fd\u4f1a\u8e29\u5230\u7684\u201c\u5751\u201d\u3002\u672c\u6587\u4ece\u9519\u8bef\u539f\u56e0\u3001\u89e3\u51b3\u65b9\u6cd5\u5230\u6700\u4f73\u914d\u7f6e\u5b9e\u8df5\uff0c\u5e26\u4f60\u4e00\u6b21\u6027\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<h2>404 \u9519\u8bef\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\uff1f<\/h2>\n<p>Codex++ \u65e9\u671f\u7248\u672c\u9ed8\u8ba4\u4f7f\u7528 OpenAI \u7684 Responses API\uff08\u7aef\u70b9\u4e3a <code>\/v1\/responses<\/code>\uff09\uff0c\u800c DeepSeek \u76ee\u524d\u4ec5\u652f\u6301\u6807\u51c6\u7684 Chat Completions API\uff08\u7aef\u70b9\u4e3a <code>\/v1\/chat\/completions<\/code>\uff09\u3002\u5f53 Codex++ \u76f4\u63a5\u8bf7\u6c42 DeepSeek \u4e0d\u652f\u6301\u7684\u8def\u5f84\u65f6\uff0c\u670d\u52a1\u5668\u4f1a\u8fd4\u56de 404 Not Found\u3002<\/p>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f<strong>\u5730\u5740\u4e0d\u5bf9\u3001\u534f\u8bae\u4e0d\u517c\u5bb9<\/strong>\u5bfc\u81f4\u7684\u3002<\/p>\n<h2>\u5feb\u901f\u89e3\u51b3\uff1a\u4fee\u6539 Base URL \u548c\u534f\u8bae<\/h2>\n<ol>\n<li>\u8fdb\u5165 Codex++ \u7684\u300c\u4f9b\u5e94\u5546\u914d\u7f6e\u300d\u9875\u9762\u3002<\/li>\n<li>\u5c06 Base URL \u586b\u5199\u4e3a\uff1a<code>https:\/\/api.deepseek.com<\/code><\/li>\n<li>\u4e0a\u6e38\u534f\u8bae\u9009\u62e9 <strong>Chat Completions<\/strong>\uff08\u4e0d\u8981\u9009 Responses\uff09\u3002<\/li>\n<li>\u586b\u5165\u4f60\u5728 DeepSeek \u5e73\u53f0\u521b\u5efa\u7684 API Key\uff0c\u4fdd\u5b58\u540e\u5373\u53ef\u751f\u6548\u3002<\/li>\n<\/ol>\n<p>\u4fee\u6539\u5b8c\u6210\u540e\uff0c\u91cd\u542f Codex++\uff0c\u53d1\u9001\u6d4b\u8bd5\u6307\u4ee4\u5373\u53ef\u9a8c\u8bc1\u662f\u5426\u6210\u529f\u3002<\/p>\n<h2>\u83b7\u53d6 DeepSeek API Key<\/h2>\n<ol>\n<li>\u8bbf\u95ee <a href=\"https:\/\/platform.deepseek.com\">DeepSeek \u5f00\u653e\u5e73\u53f0<\/a>\u3002<\/li>\n<li>\u767b\u5f55\u540e\u8fdb\u5165\u300cAPI Keys\u300d\u9875\u9762\uff0c\u70b9\u51fb\u300c\u521b\u5efa API Key\u300d\u3002<\/li>\n<li>\u547d\u540d\u540e\u751f\u6210\u5bc6\u94a5\uff0c<strong>\u7acb\u5373\u590d\u5236\u4fdd\u5b58<\/strong>\uff08\u9875\u9762\u5173\u95ed\u540e\u5c06\u65e0\u6cd5\u518d\u6b21\u67e5\u770b\uff09\u3002<\/li>\n<\/ol>\n<h2>\u63a8\u8350\u914d\u7f6e\uff1a\u53cc\u6a21\u578b\u5171\u5b58\uff08DeepSeek + \u4e03\u725b\u4e91\uff09<\/h2>\n<p>\u5982\u679c\u4f60\u5e0c\u671b\u540c\u65f6\u4f7f\u7528 DeepSeek \u5b98\u65b9\u6a21\u578b\u548c\u4e03\u725b\u4e91 AI\uff08\u65b0\u7528\u6237\u514d\u8d39 300 \u4e07 token\uff09\uff0c\u53ef\u5728 <code>~\/.codex\/config.toml<\/code> \u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n<pre><code class=\"language-toml\">model_providers.deepseek\nname = &quot;DeepSeek&quot;\nbase_url = &quot;https:\/\/api.deepseek.com\/v1&quot;\nenv_key = &quot;DEEPSEEK_API_KEY&quot;\nwire_api = &quot;chat&quot;\n\nmodel_providers.qiniu\nname = &quot;\u4e03\u725b\u4e91 AI&quot;\nbase_url = &quot;https:\/\/api.qiniu.com\/v1&quot;\nenv_key = &quot;QINIU_API_KEY&quot;\nwire_api = &quot;chat&quot;\n<\/code><\/pre>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u5728 Codex++ \u4e2d\u81ea\u7531\u5207\u6362\u6a21\u578b\uff0c\u4e92\u4e0d\u51b2\u7a81\u3002<\/p>\n<h2>\u5e38\u89c1\u9519\u8bef\u53ca\u5904\u7406<\/h2>\n<div style=\"overflow-x:auto; -webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%; border-collapse:collapse; border:1px solid ddd; margin:20px 0;\">\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\"ead style=\"background-color:f7f7f7; font-weight:bold;\">\n<tr>\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\" style=\"background-color:f7f7f7; font-weight:bold;\">\u9519\u8bef\u63d0\u793a<\/th>\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\" style=\"background-color:f7f7f7; font-weight:bold;\">\u539f\u56e0<\/th>\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\" style=\"background-color:f7f7f7; font-weight:bold;\">\u89e3\u51b3\u65b9\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">404 Not Found<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u534f\u8bae\u6216\u5730\u5740\u9519\u8bef<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u6539\u7528 Chat Completions + \u6b63\u786e Base URL<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">401 Unauthorized<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">API Key \u65e0\u6548<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u68c0\u67e5 Key \u662f\u5426\u5b8c\u6574\u3001\u6b63\u786e<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">402 Insufficient Balance<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u4f59\u989d\u4e0d\u8db3<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u767b\u5f55 DeepSeek \u5e73\u53f0\u5145\u503c<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u8fde\u63a5\u5931\u8d25<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u7f51\u7edc\u6216\u4ee3\u7406\u95ee\u9898<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u68c0\u67e5\u7f51\u7edc\u3001\u5173\u95ed\u4ee3\u7406\u540e\u91cd\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u603b\u7ed3<\/h2>\n<p>Codex++ \u63a5\u5165 DeepSeek \u62a5 404 \u7684\u6838\u5fc3\u539f\u56e0\u662f\u63a5\u53e3\u534f\u8bae\u4e0d\u5339\u914d\u3002\u53ea\u8981\u628a Base URL \u6539\u4e3a <code>https:\/\/api.deepseek.com<\/code>\uff0c\u534f\u8bae\u9009 Chat Completions\uff0c\u5e76\u6b63\u786e\u586b\u5199 API Key\uff0c\u5373\u53ef\u5feb\u901f\u89e3\u51b3\u3002\u914d\u7f6e\u53cc\u6a21\u578b\u540e\u8fd8\u80fd\u4eab\u53d7\u66f4\u591a\u514d\u8d39\u989d\u5ea6\uff0c\u5efa\u8bae\u65b0\u624b\u76f4\u63a5\u4e00\u6b65\u5230\u4f4d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codex++ \u4e2d\u4f7f\u7528 DeepSeek API \u62a5 404 \u600e\u4e48\u89e3\u51b3\uff1f Codex++ \u914d\u7f6e DeepSeek \u65f6\u9047\u5230\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1781","post","type-post","status-publish","format-standard","hentry","category-ai-tools"],"_links":{"self":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/comments?post=1781"}],"version-history":[{"count":1,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1781\/revisions"}],"predecessor-version":[{"id":1782,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1781\/revisions\/1782"}],"wp:attachment":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/media?parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/categories?post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/tags?post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}