{"id":89718,"date":"2026-08-03T15:42:08","date_gmt":"2026-08-03T07:42:08","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89718.html"},"modified":"2026-08-03T15:42:08","modified_gmt":"2026-08-03T07:42:08","slug":"%e6%80%9d%e8%80%83%e6%a8%a1%e5%9e%8b%e9%81%bf%e5%9d%91%e6%8c%87%e5%8d%97%ef%bc%9a%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bd%a0%e7%9a%84-api-%e8%bf%94%e5%9b%9e%e4%ba%86%e7%a9%ba%e5%86%85%e5%ae%b9%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89718.html","title":{"rendered":"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d"},"content":{"rendered":"<p>\u672c\u6587\u9996\u53d1\u4e8e\u4e2a\u4eba\u6280\u672f\u535a\u5ba2&#xff0c;\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\u3002\u9002\u7528\u5e73\u53f0&#xff1a;\u76c8\u7b97\u667a\u670d&#xff08;OpenAI \u517c\u5bb9 LLM \u7f51\u5173&#xff09;\u3002<\/p>\n<h3>\u4e00\u3001\u4f60\u9047\u5230\u7684\u73b0\u8c61<\/h3>\n<p>\u8bf7\u6c42\u8fd4\u56de\u4e86 HTTP 200&#xff0c;\u6ca1\u6709\u62a5\u9519&#xff0c;\u4f46 choices[0].message.content \u662f\u7a7a\u7684&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;choices&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;message&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;role&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;assistant&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;content&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;finish_reason&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;stop&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;usage&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;completion_tokens&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;reasoning_tokens&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">95<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e00\u773c\u770b\u8fc7\u53bb\u50cf\u662f API \u574f\u4e86\u3002\u5176\u5b9e\u4e0d\u662f\u2014\u2014\u662f\u601d\u8003\u6a21\u578b\u628a\u4f60\u7684\u8f93\u51fa\u989d\u5ea6\u5403\u5149\u4e86\u3002<\/p>\n<h3>\u4e8c\u3001\u6839\u56e0&#xff1a;\u9ed8\u8ba4\u5f00\u300c\u6df1\u5ea6\u601d\u8003\u300d&#xff0c;max_tokens \u88ab\u63a8\u7406\u8fc7\u7a0b\u5403\u6389<\/h3>\n<p>\u65b0\u4e00\u4ee3\u6a21\u578b&#xff08;DeepSeek V4 \u7cfb\u5217\u3001\u667a\u8c31 GLM-5.2&#xff09;\u9ed8\u8ba4\u5f00\u542f\u6df1\u5ea6\u601d\u8003&#xff08;reasoning&#xff09;\u3002\u4e00\u6b21\u56de\u590d\u7531\u4e24\u90e8\u5206\u7ec4\u6210&#xff1a;<\/p>\n<ul>\n<li>\u63a8\u7406 token&#xff08;reasoning_tokens&#xff09;&#xff1a;\u6a21\u578b\u5728\u300c\u5185\u5fc3\u601d\u8003\u300d\u65f6\u6d88\u8017\u7684 token<\/li>\n<li>\u5185\u5bb9 token&#xff08;content&#xff09;&#xff1a;\u771f\u6b63\u8fd4\u56de\u7ed9\u4f60\u7684\u6587\u5b57<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u5728\u8bf7\u6c42\u91cc\u4f20\u4e86\u8f83\u5c0f\u7684 max_tokens&#xff08;\u6bd4\u5982 100\u3001200&#xff09;&#xff0c;\u800c\u601d\u8003\u8fc7\u7a0b\u672c\u8eab\u5c31\u7528\u4e86 95 \u4e2a token&#xff0c;\u7559\u7ed9\u771f\u6b63\u5185\u5bb9\u7684\u5c31\u53ea\u5269 5 \u4e2a\u751a\u81f3 0 \u4e2a \u2192 \u4e8e\u662f\u4f60\u62ff\u5230\u7a7a content\u3002<\/p>\n<p>\u6211\u4eec\u5728\u771f\u5b9e\u8c03\u7528\u4e2d\u590d\u73b0\u8fc7&#xff1a;max_tokens:100 \u65f6 reasoning_tokens:95&#xff0c;content \u4e3a\u7a7a&#xff1b;\u8c03\u5230 1024 \u540e\u6b63\u5e38\u8fd4\u56de\u5185\u5bb9\u3002<\/p>\n<h3>\u4e09\u3001\u54ea\u4e9b\u6a21\u578b\u6709\u8fd9\u4e2a\u5751<\/h3>\n<table>\n<tr>\u6a21\u578b\u9ed8\u8ba4\u601d\u8003&#xff1f;\u5b89\u5168\u5efa\u8bae<\/tr>\n<tbody>\n<tr>\n<td>deepseek-v4-flash<\/td>\n<td>\u9ed8\u8ba4\u5f00<\/td>\n<td>max_tokens \u2265 1024&#xff1b;\u6216\u663e\u5f0f\u5173\u95ed\u601d\u8003<\/td>\n<\/tr>\n<tr>\n<td>deepseek-v4-pro<\/td>\n<td>\u9ed8\u8ba4\u5f00<\/td>\n<td>max_tokens \u2265 1024&#xff1b;\u6216\u663e\u5f0f\u5173\u95ed\u601d\u8003<\/td>\n<\/tr>\n<tr>\n<td>glm-5.2<\/td>\n<td>\u9ed8\u8ba4\u5f00<\/td>\n<td>max_tokens \u2265 1024<\/td>\n<\/tr>\n<tr>\n<td>Kimi K3<\/td>\n<td>\u5173&#xff0c;\u4f46\u6709\u6700\u4f4e\u95e8\u69db<\/td>\n<td>max_tokens \u5fc5\u987b \u2265 16000&#xff0c;\u5426\u5219\u8fd4\u56de\u7a7a<\/td>\n<\/tr>\n<tr>\n<td>glm-4-flash \/ Qwen \u7b49\u8f7b\u91cf\u6a21\u578b<\/td>\n<td>\u9ed8\u8ba4\u5173<\/td>\n<td>\u4e00\u822c\u65e0\u9700\u7279\u522b\u5904\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u56db\u3001\u4fee\u590d\u65b9\u6cd5&#xff08;\u4e09\u9009\u4e00&#xff09;<\/h3>\n<h4>\u65b9\u6848 A&#xff1a;\u7ed9 max_tokens \u4e00\u4e2a\u5b89\u5168\u503c&#xff08;\u6700\u7b80\u5355&#xff0c;\u63a8\u8350&#xff09;<\/h4>\n<p>\u628a max_tokens \u8c03\u5927\u5230 1024 \u4ee5\u4e0a\u5373\u53ef\u3002\u4e0b\u9762\u4ee5 deepseek-v4-flash \u4e3a\u4f8b&#xff1a;<\/p>\n<p>curl \u7248&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> https:\/\/yingsuan.top\/v1\/chat\/completions <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Authorization: Bearer \u4f60\u7684KEY&#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  <span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#039;{<br \/>\n    &#034;model&#034;: &#034;deepseek-v4-flash&#034;,<br \/>\n    &#034;messages&#034;: [{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;\u7528\u4e00\u53e5\u8bdd\u89e3\u91ca\u91cf\u5b50\u7ea0\u7f20&#034;}],<br \/>\n    &#034;max_tokens&#034;: 2000<br \/>\n  }&#039;<\/span><\/p>\n<p>Python&#xff08;OpenAI SDK&#xff09;\u7248&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> openai <span class=\"token keyword\">import<\/span> OpenAI<br \/>\n<span class=\"token comment\"># \u628a\u4e0b\u884c\u7684 base_url \u6362\u6210\u4f60\u7684\u7f51\u5173\u5730\u5740&#xff08;\u5373\u76c8\u7b97\u667a\u670d\u5206\u914d\u7ed9\u4f60\u7684\u63a5\u53e3\u5730\u5740&#xff09;<\/span><br \/>\nclient <span class=\"token operator\">&#061;<\/span> OpenAI<span class=\"token punctuation\">(<\/span>api_key<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u4f60\u7684KEY&#034;<\/span><span class=\"token punctuation\">,<\/span> base_url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u4f60\u7684\u7f51\u5173\u5730\u5740\/v1&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\nresp <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>chat<span class=\"token punctuation\">.<\/span>completions<span class=\"token punctuation\">.<\/span>create<span class=\"token punctuation\">(<\/span><br \/>\n    model<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;deepseek-v4-flash&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    messages<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;role&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;user&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;content&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u7528\u4e00\u53e5\u8bdd\u89e3\u91ca\u91cf\u5b50\u7ea0\u7f20&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    max_tokens<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2000<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>resp<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 punctuation\">.<\/span>message<span class=\"token punctuation\">.<\/span>content<span class=\"token punctuation\">)<\/span><\/p>\n<p>Node.js \u7248&#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><br \/>\n<span class=\"token comment\">\/\/ \u628a\u4e0b\u884c\u7684 baseURL \u6362\u6210\u4f60\u7684\u7f51\u5173\u5730\u5740&#xff08;\u5373\u76c8\u7b97\u667a\u670d\u5206\u914d\u7ed9\u4f60\u7684\u63a5\u53e3\u5730\u5740&#xff09;<\/span><br \/>\n<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> <span class=\"token literal-property property\">apiKey<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u4f60\u7684KEY&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">baseURL<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u4f60\u7684\u7f51\u5173\u5730\u5740\/v1&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">const<\/span> resp <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> <span class=\"token string\">&#034;deepseek-v4-flash&#034;<\/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;\u7528\u4e00\u53e5\u8bdd\u89e3\u91ca\u91cf\u5b50\u7ea0\u7f20&#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\">max_tokens<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2000<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nconsole<span class=\"token punctuation\">.<\/span><span class=\"token function\">log<\/span><span class=\"token punctuation\">(<\/span>resp<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 punctuation\">.<\/span>message<span class=\"token punctuation\">.<\/span>content<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>\u65b9\u6848 B&#xff1a;\u76f4\u63a5\u5173\u6389\u601d\u8003&#xff08;\u8981\u901f\u5ea6 \/ \u7701\u94b1\u65f6\u7528&#xff09;<\/h4>\n<p>\u5982\u679c\u4f60\u505a\u7684\u662f\u7b80\u5355\u5206\u7c7b\u3001\u62bd\u53d6\u3001\u7ffb\u8bd1&#xff0c;\u4e0d\u9700\u8981\u63a8\u7406&#xff0c;\u5173\u6389\u601d\u8003\u65e2\u5feb\u53c8\u7701&#xff1a;<\/p>\n<p>DeepSeek V4 \u7cfb\u5217&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;model&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;deepseek-v4-flash&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;messages&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#8230;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;reasoning_effort&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;none&#034;<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6216&#xff08;Anthropic \u98ce\u683c\u5b57\u6bb5&#xff09;&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;model&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;deepseek-v4-flash&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;messages&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#8230;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;thinking&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;disabled&#034;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u667a\u8c31 GLM-5.2&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;model&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;glm-5.2&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;messages&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#8230;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;thinking&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;disabled&#034;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u4f20 \u201cthinking\u201d: false \u4f1a\u62a5 400&#xff0c;\u6b63\u786e\u503c\u662f \u201ctype\u201d: \u201cdisabled\u201d\u3002<\/p>\n<h4>\u65b9\u6848 C&#xff1a;Kimi K3 \u4e13\u7528<\/h4>\n<p>K3 \u4e0d\u5403\u5c0f max_tokens&#xff0c;\u5fc5\u987b \u2265 16000&#xff0c;\u5426\u5219\u76f4\u63a5\u7a7a&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;model&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;kimi-k3&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;messages&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#8230;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;max_tokens&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">16000<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u4e94\u3001\u7f51\u5173\u5c42\u5df2\u7ecf\u5e2e\u4f60\u505a\u7684\u9632\u62a4<\/h3>\n<p>\u4e3a\u9632\u6b62\u4f60\u8e29\u5751&#xff0c;\u76c8\u7b97\u667a\u670d\u5728\u7f51\u5173\u5c42\u52a0\u4e86\u81ea\u52a8\u62a4\u680f&#xff1a;<\/p>\n<ul>\n<li>\u5bf9\u601d\u8003\u6a21\u578b&#xff08;deepseek-v4-flash \/ v4-pro \/ glm-5.2&#xff09;&#xff0c;\u5982\u679c\u4f60\u4f20\u7684 max_tokens \u5c0f\u4e8e 1024&#xff0c;\u7f51\u5173\u4f1a\u81ea\u52a8\u63d0\u5230 1024&#xff08;\u53ea\u4e0a\u8c03\u3001\u7edd\u4e0d\u4e0b\u8c03\u4f60\u7684\u663e\u5f0f\u5927\u503c&#xff09;\u3002<\/li>\n<li>\u5bf9\u5176\u4ed6\u6a21\u578b&#xff0c;\u5982\u679c\u4f60\u6ca1\u4f20 max_tokens&#xff0c;\u7f51\u5173\u9ed8\u8ba4\u7ed9 2048\u3002<\/li>\n<\/ul>\n<p>\u4f46\u4f60\u5982\u679c\u663e\u5f0f\u4f20\u4e86\u5f88\u5c0f\u7684 max_tokens&#xff08;\u6bd4\u5982\u6284\u4e86\u522b\u4eba\u7684 100&#xff09;&#xff0c;\u7f51\u5173\u5c0a\u91cd\u4f60\u7684\u9009\u62e9\u3001\u4e0d\u4f1a\u8986\u76d6\u2014\u2014\u6240\u4ee5\u8bf7\u6309\u4e0a\u9762\u7684\u65b9\u6848 A \u8c03\u5927\u3002<\/p>\n<h3>\u516d\u3001\u5f00\u59cb\u514d\u8d39\u8bd5\u7528<\/h3>\n<ul>\n<li>\u514d\u8d39\u5957\u9910&#xff1a;100 \u6b21\u8bf7\u6c42&#xff0c;\u542b DeepSeek V4-Flash&#xff08;1M \u4e0a\u4e0b\u6587&#xff09;\u3001GLM-4-Flash\u3001Qwen2.5-7B<\/li>\n<li>\u9650\u65f6\u63a8\u5e7f&#xff1a;V4-Flash \u989d\u5916 20 \u6b21\u514d\u8d39&#xff08;Promo&#xff09;<\/li>\n<li>\u83b7\u53d6 Key \u4e0e\u6587\u6863\u5165\u53e3\u89c1\u76c8\u7b97\u667a\u670d\u5b98\u7f51&#xff08;Wise \u94f6\u884c\u8f6c\u8d26&#xff0c;\u65e0\u9700\u4fe1\u7528\u5361&#xff09;<\/li>\n<\/ul>\n<p>\u9047\u5230\u4efb\u4f55\u8fd4\u56de\u5f02\u5e38&#xff0c;\u628a\u8bf7\u6c42\u4f53\u548c\u62a5\u9519\u53d1\u7ed9\u5b98\u65b9\u90ae\u7bb1&#xff0c;24 \u5c0f\u65f6\u5185\u56de\u590d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u9996\u53d1\u4e8e\u4e2a\u4eba\u6280\u672f\u535a\u5ba2&#xff0c;\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\u3002\u9002\u7528\u5e73\u53f0&#xff1a;\u76c8\u7b97\u667a\u670d&#xff08;OpenAI \u517c\u5bb9 LLM \u7f51\u5173&#xff09;\u3002\u4e00\u3001\u4f60\u9047\u5230\u7684\u73b0\u8c61<br \/>\n\u8bf7\u6c42\u8fd4\u56de\u4e86 HTTP 200&#xff0c;\u6ca1\u6709\u62a5\u9519&#xff0c;\u4f46 choices[0].message.content \u662f\u7a7a\u7684&#xff1a;<br \/>\n{\\&#8221;choices\\&#8221;: [{\\&#8221;message\\&#8221;: { \\&#8221;role\\&#8221;: \\&#8221;assistant\\&#8221;, \\&#8221;content\\&#8221;: \\&#8221;\\&#8221; },\\&#8221;finish_reason\\&#8221;:<\/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":[10178,50,323],"topic":[],"class_list":["post-89718","post","type-post","status-publish","format-standard","hentry","category-server","tag-yapi","tag-50","tag-323"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d - \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\/89718.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u9996\u53d1\u4e8e\u4e2a\u4eba\u6280\u672f\u535a\u5ba2&#xff0c;\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\u3002\u9002\u7528\u5e73\u53f0&#xff1a;\u76c8\u7b97\u667a\u670d&#xff08;OpenAI \u517c\u5bb9 LLM \u7f51\u5173&#xff09;\u3002\u4e00\u3001\u4f60\u9047\u5230\u7684\u73b0\u8c61 \u8bf7\u6c42\u8fd4\u56de\u4e86 HTTP 200&#xff0c;\u6ca1\u6709\u62a5\u9519&#xff0c;\u4f46 choices[0].message.content \u662f\u7a7a\u7684&#xff1a; {&quot;choices&quot;: [{&quot;message&quot;: { &quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;&quot; },&quot;finish_reason&quot;:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89718.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-03T07:42:08+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\/89718.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89718.html\",\"name\":\"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-03T07:42:08+00:00\",\"dateModified\":\"2026-08-03T07:42:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89718.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89718.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89718.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d\"}]},{\"@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":"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d - \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\/89718.html","og_locale":"zh_CN","og_type":"article","og_title":"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u9996\u53d1\u4e8e\u4e2a\u4eba\u6280\u672f\u535a\u5ba2&#xff0c;\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\u3002\u9002\u7528\u5e73\u53f0&#xff1a;\u76c8\u7b97\u667a\u670d&#xff08;OpenAI \u517c\u5bb9 LLM \u7f51\u5173&#xff09;\u3002\u4e00\u3001\u4f60\u9047\u5230\u7684\u73b0\u8c61 \u8bf7\u6c42\u8fd4\u56de\u4e86 HTTP 200&#xff0c;\u6ca1\u6709\u62a5\u9519&#xff0c;\u4f46 choices[0].message.content \u662f\u7a7a\u7684&#xff1a; {\"choices\": [{\"message\": { \"role\": \"assistant\", \"content\": \"\" },\"finish_reason\":","og_url":"https:\/\/www.wsisp.com\/helps\/89718.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-03T07:42:08+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\/89718.html","url":"https:\/\/www.wsisp.com\/helps\/89718.html","name":"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-03T07:42:08+00:00","dateModified":"2026-08-03T07:42:08+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89718.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89718.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89718.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u601d\u8003\u6a21\u578b\u907f\u5751\u6307\u5357\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 API \u8fd4\u56de\u4e86\u7a7a\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u590d"}]},{"@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\/89718","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=89718"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89718\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89718"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}