{"id":98952,"date":"2026-09-01T18:24:53","date_gmt":"2026-09-01T10:24:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/98952.html"},"modified":"2026-09-01T18:24:53","modified_gmt":"2026-09-01T10:24:53","slug":"ai-api-%e4%b8%ad%e8%bd%ac%e7%ab%99%e6%8e%a5%e5%85%a5%e5%89%8d%e5%bf%85%e9%a1%bb%e6%a0%b8%e5%af%b9%e7%9a%84-6-%e4%b8%aa%e9%85%8d%e7%bd%ae%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/98952.html","title":{"rendered":"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879"},"content":{"rendered":"<p>\u7b2c\u4e00\u6b21\u63a5\u5165 AI API \u4e2d\u8f6c\u7ad9\u65f6&#xff0c;\u6700\u6d6a\u8d39\u65f6\u95f4\u7684\u505a\u6cd5\u4e0d\u662f\u201c\u4e0d\u4f1a\u5199\u4ee3\u7801\u201d&#xff0c;\u800c\u662f\u62ff\u5230\u4e00\u4e2a\u62a5\u9519\u540e\u53cd\u590d\u66f4\u6362\u6a21\u578b\u3001\u91cd\u88c5 SDK\u3001\u4fee\u6539\u4ee3\u7406&#xff0c;\u5374\u6ca1\u6709\u5148\u786e\u8ba4\u8bf7\u6c42\u5230\u5e95\u53d1\u5411\u54ea\u91cc\u3001\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u3001\u5f53\u524d\u4ee4\u724c\u80fd\u770b\u5230\u54ea\u4e9b\u6a21\u578b\u3002<\/p>\n<p>\u4e00\u4e2a\u63a5\u53e3\u80fd\u6253\u5f00\u5b98\u7f51&#xff0c;\u4e0d\u7b49\u4e8e\u6a21\u578b\u8bf7\u6c42\u5df2\u7ecf\u6253\u901a&#xff1b;\/v1\/models \u80fd\u8fd4\u56de&#xff0c;\u4e5f\u4e0d\u7b49\u4e8e\u6d41\u5f0f\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u548c\u76ee\u6807\u6a21\u578b\u4e00\u5b9a\u53ef\u7528\u3002\u63a5\u5165\u524d\u628a\u4e0b\u9762 6 \u4e2a\u914d\u7f6e\u9879\u6309\u987a\u5e8f\u6838\u5bf9&#xff0c;\u901a\u5e38\u53ef\u4ee5\u5728\u771f\u6b63\u5199\u4e1a\u52a1\u4ee3\u7801\u524d\u6392\u9664\u5927\u90e8\u5206 401\u3001403\u3001404\u3001model not found \u548c 429 \u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u9762\u5411\u6b63\u5728\u63a5\u5165 OpenAI \u517c\u5bb9 API\u3001AI \u7f16\u7a0b\u5de5\u5177\u6216\u81ea\u5efa\u7f51\u5173\u7684\u5f00\u53d1\u8005\u3002\u793a\u4f8b\u4f7f\u7528 FishAI API \u7684\u516c\u5f00\u5165\u53e3 https:\/\/yufish.cc&#xff0c;\u5bc6\u94a5\u548c\u6a21\u578b\u540d\u5168\u90e8\u4f7f\u7528\u73af\u5883\u53d8\u91cf&#xff0c;\u4e0d\u5c55\u793a\u4efb\u4f55\u771f\u5b9e\u51ed\u636e\u3002<\/p>\n<h3>\u4e00\u5f20\u8868\u770b\u5b8c&#xff1a;\u63a5\u5165\u524d\u68c0\u67e5\u4ec0\u4e48<\/h3>\n<table>\n<tr>\u914d\u7f6e\u9879\u5fc5\u987b\u786e\u8ba4\u7684\u5185\u5bb9\u914d\u9519\u540e\u7684\u5e38\u89c1\u73b0\u8c61<\/tr>\n<tbody>\n<tr>\n<td>1. \u534f\u8bae<\/td>\n<td>Chat Completions\u3001Responses\u3001Anthropic Messages \u8fd8\u662f Gemini \u539f\u751f\u534f\u8bae<\/td>\n<td>404\u3001\u5b57\u6bb5\u4e0d\u517c\u5bb9\u3001\u5de5\u5177\u8c03\u7528\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>2. Base URL<\/td>\n<td>\u5ba2\u6237\u7aef\u662f\u5426\u81ea\u52a8\u8ffd\u52a0 \/v1 \u6216\u5177\u4f53\u63a5\u53e3\u8def\u5f84<\/td>\n<td>\/v1\/v1\u3001\u8def\u5f84\u7f3a\u5931\u3001\u8bf7\u6c42\u53d1\u5f80\u9ed8\u8ba4\u57df\u540d<\/td>\n<\/tr>\n<tr>\n<td>3. API Key<\/td>\n<td>\u73af\u5883\u53d8\u91cf\u540d\u3001\u8fdb\u7a0b\u8bfb\u53d6\u8303\u56f4\u3001Bearer \u8bf7\u6c42\u5934<\/td>\n<td>401\u3001403\u3001\u672c\u5730\u6210\u529f\u4f46\u670d\u52a1\u8fdb\u7a0b\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>4. \u6a21\u578b\u4e0e\u5206\u7ec4<\/td>\n<td>\u7cbe\u786e\u6a21\u578b ID\u3001\u4ee4\u724c\u53ef\u89c1\u8303\u56f4\u3001\u76ee\u6807\u5206\u7ec4<\/td>\n<td>model not found\u3001\u65e0\u53ef\u7528\u6e20\u9053<\/td>\n<\/tr>\n<tr>\n<td>5. \u989d\u5ea6\u4e0e\u8bf7\u6c42\u8fb9\u754c<\/td>\n<td>\u4f59\u989d\u3001\u9650\u6d41\u3001\u8d85\u65f6\u3001\u6700\u5927\u8f93\u51fa\u3001\u5e76\u53d1<\/td>\n<td>429\u3001\u8bf7\u6c42\u4e2d\u65ad\u3001\u8d39\u7528\u4e0d\u53ef\u63a7<\/td>\n<\/tr>\n<tr>\n<td>6. \u6700\u5c0f\u9a8c\u6536\u8bf7\u6c42<\/td>\n<td>\u5148\u6a21\u578b\u5217\u8868&#xff0c;\u518d\u975e\u6d41\u5f0f\u77ed\u8bf7\u6c42&#xff0c;\u6700\u540e\u9a8c\u8bc1\u9ad8\u7ea7\u80fd\u529b<\/td>\n<td>\u4e00\u5f00\u59cb\u5c31\u7528\u590d\u6742 Agent&#xff0c;\u65e0\u6cd5\u5b9a\u4f4d\u6545\u969c\u5c42\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>1. \u5148\u786e\u8ba4\u534f\u8bae&#xff0c;\u4e0d\u8981\u53ea\u770b\u6a21\u578b\u540d\u79f0<\/h3>\n<p>\u201c\u6a21\u578b\u53eb Claude\u201d\u4e0d\u4ee3\u8868\u5ba2\u6237\u7aef\u4e00\u5b9a\u53d1\u9001 Anthropic Messages \u8bf7\u6c42&#xff1b;\u201c\u652f\u6301 OpenAI SDK\u201d\u4e5f\u4e0d\u4ee3\u8868\u81ea\u52a8\u652f\u6301 Responses API\u3002\u771f\u6b63\u51b3\u5b9a\u8bf7\u6c42\u683c\u5f0f\u7684\u662f\u5ba2\u6237\u7aef\u4f7f\u7528\u7684\u534f\u8bae\u3002<\/p>\n<p>\u5e38\u89c1\u7ec4\u5408\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>OpenAI SDK \u7684 chat.completions.create \u901a\u5e38\u8bf7\u6c42 \/v1\/chat\/completions&#xff1b;<\/li>\n<li>\u65b0\u7248 Agent \u6216 Codex \u7c7b\u5ba2\u6237\u7aef\u53ef\u80fd\u4f7f\u7528 \/v1\/responses&#xff1b;<\/li>\n<li>Claude Code \u901a\u5e38\u9700\u8981 Anthropic Messages \u517c\u5bb9\u63a5\u53e3&#xff1b;<\/li>\n<li>Gemini CLI \u6216 Gemini SDK \u53ef\u80fd\u4f7f\u7528 Gemini \u539f\u751f\u7684 generateContent \u8def\u5f84\u3002<\/li>\n<\/ul>\n<p>\u63a5\u5165\u524d\u5148\u56de\u7b54\u4e24\u4e2a\u95ee\u9898&#xff1a;\u5ba2\u6237\u7aef\u5b9e\u9645\u8c03\u7528\u54ea\u4e2a\u63a5\u53e3&#xff1f;\u4e2d\u8f6c\u7ad9\u662f\u5426\u652f\u6301\u8fd9\u4e2a\u63a5\u53e3\u548c\u76ee\u6807\u6a21\u578b\u7684\u8f6c\u6362&#xff1f;\u5982\u679c\u53ea\u786e\u8ba4\u201c\u5e73\u53f0\u91cc\u6709\u8fd9\u4e2a\u6a21\u578b\u201d&#xff0c;\u6ca1\u6709\u786e\u8ba4\u534f\u8bae&#xff0c;\u540e\u9762\u5373\u4f7f\u6a21\u578b\u540d\u5b8c\u5168\u6b63\u786e\u4e5f\u53ef\u80fd\u5931\u8d25\u3002<\/p>\n<h3>2. Base URL \u8981\u548c\u5ba2\u6237\u7aef\u7684\u81ea\u52a8\u62fc\u63a5\u89c4\u5219\u914d\u5957<\/h3>\n<p>OpenAI \u517c\u5bb9 SDK \u5e38\u89c1\u7684\u7248\u672c\u6839\u5730\u5740\u662f&#xff1a;<\/p>\n<p>https:\/\/yufish.cc\/v1<\/p>\n<p>\u4f46\u5e76\u4e0d\u662f\u6240\u6709\u5ba2\u6237\u7aef\u90fd\u8981\u6c42\u628a \/v1 \u5199\u8fdb Base URL\u3002\u6709\u4e9b\u5ba2\u6237\u7aef\u4f1a\u81ea\u52a8\u8ffd\u52a0\u7248\u672c\u8def\u5f84&#xff1b;\u5982\u679c\u914d\u7f6e\u4e2d\u518d\u6b21\u52a0\u5165&#xff0c;\u5c31\u53ef\u80fd\u5f97\u5230&#xff1a;<\/p>\n<p>https:\/\/example.com\/v1\/v1\/chat\/completions<\/p>\n<p>\u6392\u67e5 404 \u65f6&#xff0c;\u4e0d\u8981\u5148\u6362\u6a21\u578b\u3002\u5148\u5728\u8c03\u8bd5\u65e5\u5fd7\u3001\u4ee3\u7406\u65e5\u5fd7\u6216\u6d4f\u89c8\u5668\u7f51\u7edc\u9762\u677f\u91cc\u67e5\u770b\u6700\u7ec8\u5b8c\u6574 URL&#xff0c;\u786e\u8ba4\u6ca1\u6709\u8def\u5f84\u91cd\u590d\u3001\u7f3a\u5931\u6216\u4ecd\u7136\u6307\u5411\u5ba2\u6237\u7aef\u9ed8\u8ba4\u57df\u540d\u3002<\/p>\n<h3>3. API Key \u4e0d\u53ea\u8981\u201c\u586b\u5bf9\u201d&#xff0c;\u8fd8\u8981\u88ab\u5f53\u524d\u8fdb\u7a0b\u8bfb\u53d6<\/h3>\n<p>\u5bc6\u94a5\u5efa\u8bae\u53ea\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6216\u670d\u52a1\u7aef\u5bc6\u94a5\u7ba1\u7406\u6ce8\u5165\u3002\u4e0b\u9762\u662f\u4e00\u4efd\u6700\u5c0f\u73af\u5883\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">FISHAI_API_KEY<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;sk-placeholder&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">FISHAI_BASE_URL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/yufish.cc\/v1&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">FISHAI_MODEL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u4ece\u6a21\u578b\u5217\u8868\u590d\u5236\u7684\u7cbe\u786e\u6a21\u578b ID&#034;<\/span><\/p>\n<p>\u8fd9\u91cc\u7684 sk-placeholder \u53ea\u662f\u5360\u4f4d\u7b26\u3002\u4e0d\u8981\u628a\u771f\u5b9e Key \u5199\u8fdb\u6587\u7ae0\u3001\u524d\u7aef\u4ee3\u7801\u3001Git \u4ed3\u5e93\u3001\u622a\u56fe\u6216\u5171\u4eab\u65e5\u5fd7\u3002<\/p>\n<p>\u4fee\u6539\u73af\u5883\u53d8\u91cf\u540e&#xff0c;\u8fd8\u8981\u786e\u8ba4\u542f\u52a8\u5e94\u7528\u7684\u8fdb\u7a0b\u80fd\u8bfb\u53d6\u5b83\u3002\u5e38\u89c1\u8bef\u533a\u662f&#xff1a;\u7ec8\u7aef A \u4e2d\u8bbe\u7f6e\u4e86\u53d8\u91cf&#xff0c;\u5374\u4ece IDE\u3001\u7cfb\u7edf\u670d\u52a1\u6216\u53e6\u4e00\u4e2a\u7ec8\u7aef\u542f\u52a8\u7a0b\u5e8f\u3002\u6b64\u65f6\u201c\u53d8\u91cf\u5b58\u5728\u201d\u4e0d\u7b49\u4e8e\u76ee\u6807\u8fdb\u7a0b\u5df2\u7ecf\u7ee7\u627f\u3002\u5fc5\u8981\u65f6\u5b8c\u5168\u9000\u51fa\u65e7\u8fdb\u7a0b\u518d\u542f\u52a8&#xff0c;\u5e76\u53ea\u8f93\u51fa\u53d8\u91cf\u662f\u5426\u5b58\u5728&#xff0c;\u4e0d\u8f93\u51fa\u5b8c\u6574\u503c\u3002<\/p>\n<p>OpenAI \u517c\u5bb9\u63a5\u53e3\u901a\u5e38\u4f7f\u7528&#xff1a;<\/p>\n<p>Authorization: Bearer &lt;API_KEY&gt;<\/p>\n<p>\u5982\u679c\u8fd4\u56de 401&#xff0c;\u4f18\u5148\u68c0\u67e5 Key \u662f\u5426\u4e3a\u7a7a\u3001\u662f\u5426\u5e26\u591a\u4f59\u7a7a\u683c\u3001\u662f\u5426\u88ab\u65e7\u914d\u7f6e\u8986\u76d6&#xff1b;\u5982\u679c\u8fd4\u56de 403&#xff0c;\u5219\u7ee7\u7eed\u68c0\u67e5\u4ee4\u724c\u72b6\u6001\u3001\u6a21\u578b\u6743\u9650\u548c\u5206\u7ec4\u6743\u9650\u3002<\/p>\n<h3>4. \u6a21\u578b ID \u548c\u4ee4\u724c\u5206\u7ec4\u5fc5\u987b\u4e00\u8d77\u6838\u5bf9<\/h3>\n<p>\u6a21\u578b\u5217\u8868\u662f\u5f53\u524d\u4ee4\u724c\u53ef\u89c1\u8303\u56f4\u7684\u5feb\u7167&#xff0c;\u4e0d\u8981\u51ed\u5ba3\u4f20\u9875\u3001\u65e7\u622a\u56fe\u6216\u8bb0\u5fc6\u586b\u5199\u6a21\u578b\u540d\u3002\u5148\u8bf7\u6c42\u6a21\u578b\u5217\u8868&#xff0c;\u518d\u4ece\u8fd4\u56de\u503c\u590d\u5236\u7cbe\u786e ID\u3002<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-fsS<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$FISHAI_BASE_URL<\/span>\/models&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Authorization: Bearer <span class=\"token variable\">$FISHAI_API_KEY<\/span>&#034;<\/span><\/p>\n<p>\u591a\u6a21\u578b\u4e2d\u8f6c\u7ad9\u901a\u5e38\u8fd8\u6709\u5206\u7ec4\u3001\u6e20\u9053\u548c\u5b9a\u4ef7\u89c4\u5219\u3002\u540c\u4e00\u4e2a\u6a21\u578b\u53ef\u80fd\u5728\u4e0d\u540c\u5206\u7ec4\u4e0b\u5bf9\u5e94\u4e0d\u540c\u4e0a\u6e38\u3001\u500d\u7387\u548c\u53ef\u7528\u72b6\u6001&#xff1b;\u4ee4\u724c\u80fd\u770b\u5230\u6a21\u578b&#xff0c;\u4e0d\u4ee3\u8868\u5b83\u80fd\u8bbf\u95ee\u4efb\u610f\u5206\u7ec4\u3002\u9047\u5230\u201c\u65e0\u53ef\u7528\u6e20\u9053\u201d\u6216\u201c\u5f53\u524d\u5206\u7ec4\u4e0d\u53ef\u7528\u201d\u65f6&#xff0c;\u5e94\u68c0\u67e5\u4ee4\u724c\u7ed1\u5b9a\u7684\u5206\u7ec4&#xff0c;\u800c\u4e0d\u662f\u4e0d\u65ad\u91cd\u8bd5\u540c\u4e00\u4e2a\u8bf7\u6c42\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u6bb5 2026-09-01 08:48&#xff08;Asia\/Shanghai&#xff09;\u5bf9 FishAI \/v1\/models \u53d1\u8d77\u7684\u771f\u5b9e\u3001\u53ea\u8bfb\u3001\u65e0\u5bc6\u94a5\u8bf7\u6c42\u3002\u5b83\u6ca1\u6709\u4ea7\u751f\u6a21\u578b\u8c03\u7528&#xff0c;\u4e5f\u6ca1\u6709\u66b4\u9732\u4efb\u4f55\u7528\u6237\u51ed\u636e&#xff1a;<\/p>\n<p>HTTP\/2 401<br \/>\ncontent-type: application\/json; charset&#061;utf-8<br \/>\nx-oneapi-request-id: 202609010048210295704348268d9d6uFZiENHJ<\/p>\n<p>{&#034;error&#034;:{&#034;code&#034;:&#034;&#034;,&#034;message&#034;:&#034;Invalid token (request id: 202609010048210295704348268d9d6uFZiENHJ)&#034;,&#034;type&#034;:&#034;new_api_error&#034;}}<\/p>\n<p>\u8fd9\u4efd\u65e5\u5fd7\u80fd\u786e\u8ba4\u4e09\u4ef6\u4e8b&#xff1a;\u516c\u5f00\u57df\u540d\u548c \/v1\/models \u8def\u5f84\u53ef\u8fbe&#xff1b;\u63a5\u53e3\u786e\u5b9e\u6267\u884c\u4e86\u9274\u6743&#xff1b;\u7f3a\u5c11\u6709\u6548\u4ee4\u724c\u65f6\u8fd4\u56de 401&#xff0c;\u800c\u4e0d\u662f 404\u3002\u5b83\u4e0d\u80fd\u8bc1\u660e\u67d0\u4e2a\u6a21\u578b\u53ef\u4ee5\u771f\u5b9e\u751f\u6210&#xff0c;\u4e5f\u4e0d\u80fd\u8bc1\u660e\u4efb\u4f55\u5206\u7ec4\u5f53\u524d\u53ef\u7528\u3002\u52a0\u5165\u6709\u6548\u4ee4\u724c\u540e&#xff0c;\u4ecd\u8981\u7ee7\u7eed\u5b8c\u6210\u6a21\u578b\u5217\u8868\u548c\u6700\u5c0f\u751f\u6210\u8bf7\u6c42\u4e24\u5c42\u9a8c\u6536\u3002<\/p>\n<h3>5. \u5728\u53d1\u9001\u8bf7\u6c42\u524d\u5199\u6e05\u989d\u5ea6\u3001\u9650\u6d41\u548c\u8d85\u65f6\u8fb9\u754c<\/h3>\n<p>\u7b2c\u4e00\u6b21\u9a8c\u8bc1\u7684\u76ee\u6807\u662f\u8bc1\u660e\u94fe\u8def\u6b63\u786e&#xff0c;\u4e0d\u662f\u6d4b\u8bd5\u6700\u5927\u8f93\u51fa\u80fd\u529b\u3002\u5efa\u8bae\u4f7f\u7528\u77ed\u8f93\u5165\u3001\u8f83\u5c0f\u8f93\u51fa\u9650\u5236\u3001\u5355\u5e76\u53d1\u548c\u660e\u786e\u8d85\u65f6\u3002<\/p>\n<p>\u81f3\u5c11\u6838\u5bf9&#xff1a;<\/p>\n<ul>\n<li>\u8d26\u6237\u662f\u5426\u6709\u53ef\u7528\u4f59\u989d\u6216\u989d\u5ea6&#xff1b;<\/li>\n<li>\u76ee\u6807\u6a21\u578b\u6309\u91cf\u8fd8\u662f\u6309\u6b21\u8ba1\u8d39&#xff1b;<\/li>\n<li>\u5f53\u524d\u4ee4\u724c\u548c\u5206\u7ec4\u7684\u901f\u7387\u3001\u5e76\u53d1\u9650\u5236&#xff1b;<\/li>\n<li>\u5ba2\u6237\u7aef\u8d85\u65f6\u4e0e\u53cd\u5411\u4ee3\u7406\u8d85\u65f6\u662f\u5426\u51b2\u7a81&#xff1b;<\/li>\n<li>\u5931\u8d25\u91cd\u8bd5\u662f\u5426\u6709\u6b21\u6570\u4e0a\u9650\u548c\u9000\u907f&#xff1b;<\/li>\n<li>\u65e5\u5fd7\u662f\u5426\u4f1a\u610f\u5916\u8bb0\u5f55\u5b8c\u6574 Key \u6216\u654f\u611f\u63d0\u793a\u8bcd\u3002<\/li>\n<\/ul>\n<p>429 \u4e0d\u4e00\u5b9a\u8868\u793a\u6574\u4e2a\u4e2d\u8f6c\u7ad9\u4e0d\u53ef\u7528\u3002\u5b83\u53ef\u80fd\u6765\u81ea\u672c\u5730\u91cd\u8bd5\u8fc7\u5feb\u3001\u4ee4\u724c\u9891\u7387\u9650\u5236\u3001\u5f53\u524d\u5206\u7ec4\u62e5\u5835\u6216\u5177\u4f53\u4e0a\u6e38\u9650\u6d41\u3002\u6b63\u786e\u505a\u6cd5\u662f\u4fdd\u5b58\u54cd\u5e94\u65f6\u95f4\u3001\u9519\u8bef\u4f53\u3001\u6a21\u578b\u548c\u8bf7\u6c42 ID&#xff0c;\u964d\u4f4e\u9891\u7387\u540e\u518d\u5224\u65ad\u6545\u969c\u5c42\u7ea7&#xff0c;\u800c\u4e0d\u662f\u65e0\u4e0a\u9650\u81ea\u52a8\u91cd\u8bd5\u3002<\/p>\n<h3>6. \u6309\u201c\u6a21\u578b\u5217\u8868 \u2192 \u975e\u6d41\u5f0f\u77ed\u8bf7\u6c42 \u2192 \u9ad8\u7ea7\u80fd\u529b\u201d\u9a8c\u6536<\/h3>\n<p>\u5148\u7528\u4e00\u4e2a\u6700\u5c0f\u975e\u6d41\u5f0f\u8bf7\u6c42\u9a8c\u8bc1\u9274\u6743\u3001\u8def\u5f84\u3001\u6a21\u578b\u548c\u57fa\u7840\u54cd\u5e94\u7ed3\u6784&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-fsS<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$FISHAI_BASE_URL<\/span>\/chat\/completions&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Authorization: Bearer <span class=\"token variable\">$FISHAI_API_KEY<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;max-time <span class=\"token number\">30<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#034;{\\\\<br \/>\n    <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>model<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>: <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span><span class=\"token variable\">$FISHAI_MODEL<\/span><span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>,\\\\<br \/>\n    <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>messages<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>: [{<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>role<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>: <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>user<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>, <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>content<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>: <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>\u53ea\u56de\u590d OK<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>}],\\\\<br \/>\n    <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>stream<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>: false,\\\\<br \/>\n    <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>max_tokens<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>: 16\\\\<br \/>\n  }&#034;<\/span><\/p>\n<p>\u968f\u540e\u5728 SDK \u4e2d\u590d\u6d4b&#xff0c;\u5e76\u7ed9\u7f51\u7edc\u8bf7\u6c42\u8bbe\u7f6e\u660e\u786e\u8d85\u65f6&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> OpenAI <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#034;openai&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">const<\/span> client <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">OpenAI<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">apiKey<\/span><span class=\"token operator\">:<\/span> process<span class=\"token punctuation\">.<\/span>env<span class=\"token punctuation\">.<\/span><span class=\"token constant\">FISHAI_API_KEY<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">baseURL<\/span><span class=\"token operator\">:<\/span> process<span class=\"token punctuation\">.<\/span>env<span class=\"token punctuation\">.<\/span><span class=\"token constant\">FISHAI_BASE_URL<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">timeout<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">30_000<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">maxRetries<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">const<\/span> response <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> client<span class=\"token punctuation\">.<\/span>chat<span class=\"token punctuation\">.<\/span>completions<span class=\"token punctuation\">.<\/span><span class=\"token function\">create<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">model<\/span><span class=\"token operator\">:<\/span> process<span class=\"token punctuation\">.<\/span>env<span class=\"token punctuation\">.<\/span><span class=\"token constant\">FISHAI_MODEL<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">messages<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">role<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;user&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">content<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u53ea\u56de\u590d OK&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">stream<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">max_tokens<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">16<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>console<span class=\"token punctuation\">.<\/span><span class=\"token function\">log<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>choices<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token operator\">?.<\/span>message<span class=\"token operator\">?.<\/span>content<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u57fa\u7840\u8bf7\u6c42\u6210\u529f\u540e&#xff0c;\u518d\u5206\u522b\u6d4b\u8bd5\u6d41\u5f0f\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u3001\u56fe\u7247\u6216\u957f\u4e0a\u4e0b\u6587\u3002\u628a\u8fd9\u4e9b\u80fd\u529b\u5206\u5f00\u9a8c\u6536\u5f88\u91cd\u8981&#xff1a;\u666e\u901a\u6587\u672c\u6210\u529f\u53ea\u80fd\u8bc1\u660e\u57fa\u7840\u94fe\u8def\u6b63\u5e38&#xff0c;\u4e0d\u80fd\u8bc1\u660e\u6bcf\u4e00\u79cd\u9ad8\u7ea7\u80fd\u529b\u90fd\u7531\u76ee\u6807\u6a21\u578b\u3001\u534f\u8bae\u8f6c\u6362\u5c42\u548c\u4e0a\u6e38\u5171\u540c\u652f\u6301\u3002<\/p>\n<h3>\u5e38\u89c1\u62a5\u9519\u7684\u6700\u77ed\u6392\u67e5\u8def\u5f84<\/h3>\n<h4>401&#xff1a;\u5148\u67e5\u5bc6\u94a5\u548c\u8fdb\u7a0b<\/h4>\n<p>\u786e\u8ba4\u73af\u5883\u53d8\u91cf\u662f\u5426\u88ab\u5f53\u524d\u8fdb\u7a0b\u8bfb\u53d6\u3001Bearer \u5934\u662f\u5426\u5b58\u5728\u3001Key \u662f\u5426\u5b8c\u6574\u3002\u4e0d\u8981\u5728\u65e5\u5fd7\u91cc\u6253\u5370\u5b8c\u6574 Key\u3002<\/p>\n<h4>403&#xff1a;\u518d\u67e5\u6743\u9650\u548c\u5206\u7ec4<\/h4>\n<p>\u786e\u8ba4\u4ee4\u724c\u662f\u5426\u542f\u7528\u3001\u662f\u5426\u5141\u8bb8\u8bbf\u95ee\u76ee\u6807\u6a21\u578b\u4e0e\u76ee\u6807\u5206\u7ec4\u3002\u80fd\u767b\u5f55\u63a7\u5236\u53f0\u4e0d\u7b49\u4e8e\u4ee4\u724c\u6709\u6a21\u578b\u8c03\u7528\u6743\u9650\u3002<\/p>\n<h4>404&#xff1a;\u67e5\u770b\u6700\u7ec8 URL \u548c\u534f\u8bae<\/h4>\n<p>\u91cd\u70b9\u68c0\u67e5 \/v1 \u662f\u5426\u91cd\u590d\u6216\u7f3a\u5931&#xff0c;\u4ee5\u53ca\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684\u662f Chat Completions\u3001Responses\u3001Messages \u8fd8\u662f Gemini \u539f\u751f\u63a5\u53e3\u3002<\/p>\n<h4>model not found&#xff1a;\u91cd\u65b0\u62c9\u53d6\u5217\u8868<\/h4>\n<p>\u4f7f\u7528\u5f53\u524d\u4ee4\u724c\u8c03\u7528\u6a21\u578b\u5217\u8868\u5e76\u590d\u5236\u7cbe\u786e ID\u3002\u4e0d\u8981\u7528\u65e7\u6587\u7ae0\u6216\u65e7\u622a\u56fe\u4e2d\u7684\u6a21\u578b\u540d\u4f5c\u4e3a\u957f\u671f\u914d\u7f6e\u3002<\/p>\n<h4>429&#xff1a;\u505c\u6b62\u65e0\u4e0a\u9650\u91cd\u8bd5<\/h4>\n<p>\u8bb0\u5f55\u8bf7\u6c42 ID\u3001\u9519\u8bef\u4f53\u3001\u5206\u7ec4\u548c\u65f6\u95f4&#xff0c;\u964d\u4f4e\u5e76\u53d1\u5e76\u589e\u52a0\u9000\u907f&#xff0c;\u518d\u533a\u5206\u662f\u5ba2\u6237\u7aef\u3001\u7f51\u5173\u3001\u5206\u7ec4\u8fd8\u662f\u4e0a\u6e38\u9650\u6d41\u3002<\/p>\n<h4>\u975e\u6d41\u5f0f\u6210\u529f\u3001\u6d41\u5f0f\u5931\u8d25<\/h4>\n<p>\u68c0\u67e5\u5ba2\u6237\u7aef\u7248\u672c\u3001\u4ee3\u7406\u7f13\u51b2\u3001\u8fde\u63a5\u8d85\u65f6\u3001SSE \u4e8b\u4ef6\u7ed3\u6784\u548c\u76ee\u6807\u6a21\u578b\u7684\u6d41\u5f0f\u652f\u6301&#xff0c;\u4e0d\u8981\u628a\u5b83\u8bef\u5224\u4e3a Key \u65e0\u6548\u3002<\/p>\n<h3>\u6700\u7ec8\u9a8c\u6536\u6e05\u5355<\/h3>\n<ul>\n<li>\u5df2\u786e\u8ba4\u5ba2\u6237\u7aef\u534f\u8bae\u548c\u5b9e\u9645\u63a5\u53e3\u8def\u5f84&#xff1b;<\/li>\n<li>\u5df2\u786e\u8ba4 Base URL \u4e0d\u4f1a\u91cd\u590d\u62fc\u63a5\u7248\u672c\u8def\u5f84&#xff1b;<\/li>\n<li>Key \u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6ce8\u5165&#xff0c;\u5f53\u524d\u8fdb\u7a0b\u786e\u5b9e\u53ef\u8bfb&#xff1b;<\/li>\n<li>\u6a21\u578b ID \u6765\u81ea\u5f53\u524d\u4ee4\u724c\u7684\u5b9e\u65f6\u6a21\u578b\u5217\u8868&#xff1b;<\/li>\n<li>\u5df2\u6838\u5bf9\u4ee4\u724c\u5206\u7ec4\u3001\u989d\u5ea6\u3001\u8ba1\u8d39\u3001\u9650\u6d41\u548c\u8d85\u65f6&#xff1b;<\/li>\n<li>\u5df2\u5b8c\u6210\u4e00\u6b21\u975e\u6d41\u5f0f\u77ed\u8bf7\u6c42&#xff0c;\u5e76\u4fdd\u5b58\u72b6\u6001\u7801\u3001\u54cd\u5e94\u7ed3\u6784\u548c\u8c03\u7528\u8bb0\u5f55&#xff1b;<\/li>\n<li>\u6d41\u5f0f\u3001\u5de5\u5177\u8c03\u7528\u7b49\u9ad8\u7ea7\u80fd\u529b\u5df2\u72ec\u7acb\u9a8c\u6536&#xff1b;<\/li>\n<li>\u65e5\u5fd7\u3001\u622a\u56fe\u548c\u4ed3\u5e93\u4e2d\u6ca1\u6709\u5b8c\u6574\u5bc6\u94a5\u3002<\/li>\n<\/ul>\n<p>\u63a5\u5165 AI API \u4e2d\u8f6c\u7ad9\u65f6&#xff0c;\u6700\u6709\u6548\u7684\u987a\u5e8f\u4e0d\u662f\u201c\u62a5\u9519\u5c31\u6362\u6a21\u578b\u201d&#xff0c;\u800c\u662f\u5148\u786e\u8ba4\u534f\u8bae\u548c\u5b8c\u6574 URL&#xff0c;\u518d\u786e\u8ba4\u8fdb\u7a0b\u4e2d\u7684 Key\u3001\u6a21\u578b\u4e0e\u5206\u7ec4&#xff0c;\u6700\u540e\u7528\u6700\u5c0f\u8bf7\u6c42\u9010\u5c42\u9a8c\u6536\u3002\u8fd9\u6837\u4e0d\u4ec5\u80fd\u66f4\u5feb\u5b9a\u4f4d\u95ee\u9898&#xff0c;\u4e5f\u80fd\u907f\u514d\u65e0\u9650\u91cd\u8bd5\u3001\u5bc6\u94a5\u6cc4\u9732\u548c\u4e0d\u53ef\u63a7\u8d39\u7528\u3002<\/p>\n<p>FishAI API \u7684\u63a5\u53e3\u8def\u5f84\u3001\u5feb\u901f\u5f00\u59cb\u548c\u5de5\u5177\u914d\u7f6e\u53ef\u67e5\u770b\u5b98\u65b9\u6587\u6863&#xff1a;https:\/\/yufish.cc\/docs\/\u3002\u6a21\u578b\u4e0e\u4ef7\u683c\u4f1a\u53d8\u5316&#xff0c;\u6b63\u5f0f\u4f7f\u7528\u524d\u5e94\u4ee5\u5f53\u524d\u6a21\u578b\u5e02\u573a\u548c\u5b9e\u65f6\u63a5\u53e3\u8fd4\u56de\u4e3a\u51c6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b21\u63a5\u5165 AI API \u4e2d\u8f6c\u7ad9\u65f6&#xff0c;\u6700\u6d6a\u8d39\u65f6\u95f4\u7684\u505a\u6cd5\u4e0d\u662f\u201c\u4e0d\u4f1a\u5199\u4ee3\u7801\u201d&#xff0c;\u800c\u662f\u62ff\u5230\u4e00\u4e2a\u62a5\u9519\u540e\u53cd\u590d\u66f4\u6362\u6a21\u578b\u3001\u91cd\u88c5 SDK\u3001\u4fee\u6539\u4ee3\u7406&#xff0c;\u5374\u6ca1\u6709\u5148\u786e\u8ba4\u8bf7\u6c42\u5230\u5e95\u53d1\u5411\u54ea\u91cc\u3001\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u3001\u5f53\u524d\u4ee4\u724c\u80fd\u770b\u5230\u54ea\u4e9b\u6a21\u578b\u3002<br \/>\n\u4e00\u4e2a\u63a5\u53e3\u80fd\u6253\u5f00\u5b98\u7f51&#xff0c;\u4e0d\u7b49\u4e8e\u6a21\u578b\u8bf7\u6c42\u5df2\u7ecf\u6253\u901a&#xff1b;\/v1\/models \u80fd\u8fd4\u56de&#xff0c;\u4e5f\u4e0d\u7b49\u4e8e\u6d41\u5f0f\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u548c\u76ee\u6807\u6a21\u578b\u4e00\u5b9a\u53ef\u7528\u3002\u63a5\u5165\u524d\u628a\u4e0b\u9762 6 \u4e2a\u914d\u7f6e\u9879\u6309\u987a\u5e8f\u6838\u5bf9&#xff0c;\u901a\u5e38\u53ef\u4ee5\u5728\u771f\u6b63\u5199\u4e1a\u52a1\u4ee3\u7801\u524d<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-98952","post","type-post","status-publish","format-standard","hentry","category-server","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/98952.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b2c\u4e00\u6b21\u63a5\u5165 AI API \u4e2d\u8f6c\u7ad9\u65f6&#xff0c;\u6700\u6d6a\u8d39\u65f6\u95f4\u7684\u505a\u6cd5\u4e0d\u662f\u201c\u4e0d\u4f1a\u5199\u4ee3\u7801\u201d&#xff0c;\u800c\u662f\u62ff\u5230\u4e00\u4e2a\u62a5\u9519\u540e\u53cd\u590d\u66f4\u6362\u6a21\u578b\u3001\u91cd\u88c5 SDK\u3001\u4fee\u6539\u4ee3\u7406&#xff0c;\u5374\u6ca1\u6709\u5148\u786e\u8ba4\u8bf7\u6c42\u5230\u5e95\u53d1\u5411\u54ea\u91cc\u3001\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u3001\u5f53\u524d\u4ee4\u724c\u80fd\u770b\u5230\u54ea\u4e9b\u6a21\u578b\u3002 \u4e00\u4e2a\u63a5\u53e3\u80fd\u6253\u5f00\u5b98\u7f51&#xff0c;\u4e0d\u7b49\u4e8e\u6a21\u578b\u8bf7\u6c42\u5df2\u7ecf\u6253\u901a&#xff1b;\/v1\/models \u80fd\u8fd4\u56de&#xff0c;\u4e5f\u4e0d\u7b49\u4e8e\u6d41\u5f0f\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u548c\u76ee\u6807\u6a21\u578b\u4e00\u5b9a\u53ef\u7528\u3002\u63a5\u5165\u524d\u628a\u4e0b\u9762 6 \u4e2a\u914d\u7f6e\u9879\u6309\u987a\u5e8f\u6838\u5bf9&#xff0c;\u901a\u5e38\u53ef\u4ee5\u5728\u771f\u6b63\u5199\u4e1a\u52a1\u4ee3\u7801\u524d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/98952.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-01T10:24:53+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/98952.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/98952.html\",\"name\":\"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-01T10:24:53+00:00\",\"dateModified\":\"2026-09-01T10:24:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/98952.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/98952.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/98952.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/98952.html","og_locale":"zh_CN","og_type":"article","og_title":"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b2c\u4e00\u6b21\u63a5\u5165 AI API \u4e2d\u8f6c\u7ad9\u65f6&#xff0c;\u6700\u6d6a\u8d39\u65f6\u95f4\u7684\u505a\u6cd5\u4e0d\u662f\u201c\u4e0d\u4f1a\u5199\u4ee3\u7801\u201d&#xff0c;\u800c\u662f\u62ff\u5230\u4e00\u4e2a\u62a5\u9519\u540e\u53cd\u590d\u66f4\u6362\u6a21\u578b\u3001\u91cd\u88c5 SDK\u3001\u4fee\u6539\u4ee3\u7406&#xff0c;\u5374\u6ca1\u6709\u5148\u786e\u8ba4\u8bf7\u6c42\u5230\u5e95\u53d1\u5411\u54ea\u91cc\u3001\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u3001\u5f53\u524d\u4ee4\u724c\u80fd\u770b\u5230\u54ea\u4e9b\u6a21\u578b\u3002 \u4e00\u4e2a\u63a5\u53e3\u80fd\u6253\u5f00\u5b98\u7f51&#xff0c;\u4e0d\u7b49\u4e8e\u6a21\u578b\u8bf7\u6c42\u5df2\u7ecf\u6253\u901a&#xff1b;\/v1\/models \u80fd\u8fd4\u56de&#xff0c;\u4e5f\u4e0d\u7b49\u4e8e\u6d41\u5f0f\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u548c\u76ee\u6807\u6a21\u578b\u4e00\u5b9a\u53ef\u7528\u3002\u63a5\u5165\u524d\u628a\u4e0b\u9762 6 \u4e2a\u914d\u7f6e\u9879\u6309\u987a\u5e8f\u6838\u5bf9&#xff0c;\u901a\u5e38\u53ef\u4ee5\u5728\u771f\u6b63\u5199\u4e1a\u52a1\u4ee3\u7801\u524d","og_url":"https:\/\/www.wsisp.com\/helps\/98952.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-01T10:24:53+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/98952.html","url":"https:\/\/www.wsisp.com\/helps\/98952.html","name":"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-01T10:24:53+00:00","dateModified":"2026-09-01T10:24:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/98952.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/98952.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/98952.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AI API \u4e2d\u8f6c\u7ad9\u63a5\u5165\u524d\u5fc5\u987b\u6838\u5bf9\u7684 6 \u4e2a\u914d\u7f6e\u9879"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/98952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=98952"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/98952\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=98952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=98952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=98952"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=98952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}