{"id":28461,"date":"2024-11-25T14:27:28","date_gmt":"2024-11-25T06:27:28","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28461\/"},"modified":"2024-11-25T14:27:28","modified_gmt":"2024-11-25T06:27:28","slug":"%e5%be%ae%e4%bf%a1%e5%85%ac%e4%bc%97%e5%b9%b3%e5%8f%b0%e5%bc%80%e5%8f%91%e4%b9%8b%e5%b0%8f%e9%bb%84%e9%b8%a1api","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28461\/","title":{"rendered":"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API"},"content":{"rendered":"<p><span style=\"font-size: 16px\"><strong><span style=\"color: #800000\">\u4e00\u3001\u7b80\u4ecb<\/span><\/strong><\/span><\/p>\n<p>\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7ffb\u8bd1\u529f\u80fd\u7684\u5f00\u53d1\uff0c\u5b9e\u73b0\u4e86\u4e2d\u3001\u82f1\u3001\u65e5\u8bed\u8a00\u4e92\u8bd1\uff0c\u5728\u5b9e\u9645\u751f\u6d3b\u4e2d\u4e5f\u80fd\u4f7f\u7528\u5230\u3002\u5728\u63a5\u4e0b\u6765\u7684\u8fd9\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b8c\u6210\u4e00\u4e2a\u6bd4\u8f83\u6709\u8da3\u7684\u529f\u80fd\uff0c\u90a3\u5c31\u662f\u804a\u5929\u673a\u5668\u4eba\uff0c\u53ef\u4ee5\u5728\u4f60\u65e0\u804a\u7684\u65f6\u5019\u966a\u4f60\u804a\u5929\u9017\u4f60\u5f00\u5fc3\u3002<\/p>\n<p><span style=\"font-size: 16px\"><strong><span style=\"color: #800000\">\u4e8c\u3001\u601d\u8def\u5206\u6790<\/span><\/strong><\/span><\/p>\n<p>\u5728\u8fd9\u4e2a\u5b9e\u9a8c\u4e2d\uff0c\u6211\u4eec\u5c06\u8c03\u53d6\u5c0f\u9ec4\u9e21\u5b98\u65b9\uff08www.simsimi.com\/\uff09\u63d0\u4f9b\u7684API\uff0c\u7ed3\u5408\u6293\u53d6\u5c0f\u4e5d\u673a\u5668\u4eba\uff08www.xiaojo.com\/\uff09\u7684\u7f51\u9875\uff0c\u4e92\u76f8\u8865\u5145\u3002Simsimi \u662f\u6536\u8d39\u7684\uff0c\u4f46\u4f60\u53ef\u4ee5\u5c1d\u8bd57\u5929\u6d4b\u8bd5\uff0c\u6bcf\u5929\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528100\u6761\u56de\u590d\uff1b\u5c0f\u4e5d\u673a\u5668\u4eba\u53ef\u4ee5\u65e0\u9650\u5236\u4f7f\u7528\uff0c\u4f46\u524d\u63d0\u662f\u5b98\u65b9\u4e0d\u5c4f\u853d\u3002<\/p>\n<p><span style=\"font-size: 16px\"><strong><span style=\"color: #800000\">\u4e09\u3001\u5c0f\u9ec4\u9e21API \u5206\u6790<\/span><\/strong><\/span><\/p>\n<p><strong>3.1 API &amp; URL<\/strong><\/p>\n<p>\u5b98\u65b9API \u5730\u5740\uff1adeveloper.simsimi.com\/api&nbsp;<\/p>\n<p>Request URL\uff1asandbox.api.simsimi.com\/request.p<\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528\u514d\u8d39\u7248\u6d4b\u8bd5\uff0c\u4ed8\u8d39\u7248\u7684\u7c7b\u4f3c\uff0c\u53ea\u662fURL\u5730\u5740\u4e0d\u540c\u3002<\/p>\n<p><strong>3.2 \u8bf7\u6c42\u793a\u4f8b\u4e0e\u53c2\u6570\u8bf4\u660e<\/strong><\/p>\n<p>\u8bf7\u6c42\u793a\u4f8b\uff1a<\/p>\n<pre>sandbox.api.simsimi.com\/request.p?key=your_trial_key&amp;amp;lc=en&amp;amp;ft=1.0&amp;amp;text=hi<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n<p style=\"margin-left: 30px\">key: \u7533\u8bf7\u7684API Key<\/p>\n<p style=\"margin-left: 30px\">lc:&nbsp;Language code\uff0c\u652f\u6301\u7684\u8bed\u8a00\uff0c\u7b80\u4f53\u4e2d\u6587\u7528ch\uff0c\u7e41\u4f53\u4e2d\u6587\u7528zh\uff0c\u82f1\u6587\u7528en\uff0c\u8be6\u7ec6\u8bf7\u53c2\u8003\uff1adeveloper.simsimi.com\/lclist<\/p>\n<p style=\"margin-left: 30px\">ft: \u662f\u5426\u8bbe\u7f6e\u8fc7\u6ee4\u5668\uff0c<\/p>\n<p style=\"margin-left: 30px\">\u3000\u30000.0\uff1a\u672a\u8fc7\u6ee4\uff08\u5305\u542b\u8bc5\u5492\uff0c\u6027\u5185\u5bb9\uff09\uff1b<\/p>\n<p style=\"margin-left: 30px\">\u3000\u30001.0\uff1a\u8fc7\u6ee4\u4e0d\u6587\u660e\u5b57\u53e5\uff08\u6682\u65f6\u53ea\u652f\u6301\u97e9\u6587\uff09<\/p>\n<p style=\"margin-left: 30px\">text: \u8bf7\u6c42\u7684\u6587\u672c<\/p>\n<p><strong>3.3 \u8fd4\u56de\u503c\u5206\u6790<\/strong><\/p>\n<p style=\"margin-left: 30px\">result\uff1a\u6267\u884c\u7ed3\u679c\u8fd4\u56de\u7801<\/p>\n<ul>\n<li>\n<ul>\n<li>\n<p><span style=\"line-height: 1.5\">100-OK.<\/span><\/p>\n<\/li>\n<li>\n<p>400-Bad Request.<\/p>\n<\/li>\n<li>\n<p>401-Unauthorized.<\/p>\n<\/li>\n<li>\n<p>404-Not found.<\/p>\n<\/li>\n<li>\n<p>500-Server Error.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left: 30px\">id\uff1a\u56de\u590d\u7684\u6d88\u606fid\uff08\u53ea\u6709result=100 \u65f6\u624d\u4f1a\u6709\u6b64\u9879\uff09<\/p>\n<p style=\"margin-left: 30px\">response\uff1a\u56de\u590d\u7684\u6d88\u606f\uff08\u53ea\u6709result=100 \u65f6\u624d\u4f1a\u6709\u6b64\u9879\uff09<\/p>\n<p style=\"margin-left: 30px\">msg\uff1a\u6267\u884c\u7ed3\u679c\u8fd4\u56de\u7801\u5bf9\u5e94\u7684\u72b6\u6001<\/p>\n<p><span style=\"font-size: 16px\"><strong><span style=\"line-height: 1.5;color: #800000\">\u56db\u3001\u83b7\u53d6\u5c0f\u9ec4\u9e21API Key<\/span><\/strong><\/span><\/p>\n<p><strong>4.1 \u6ce8\u518csimsimi \u8d26\u53f7<\/strong><\/p>\n<p>URL: developer.simsimi.com\/signUp<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/ad33ff4a4d3407ea75484c72f22f9b04-0.jpg\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe\" \/><\/p>\n<p><strong>4.2 \u6fc0\u6d3b\u8d26\u53f7<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/5a9fc94fc8284d0677a67223c8688ba3-1.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe1\" alt=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe1\" \/><\/p>\n<p><strong>4.3 \u83b7\u53d6API Key<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/5a9fc94fc8284d0677a67223c8688ba3-2.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe2\" alt=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe2\" \/><\/p>\n<p><span style=\"font-size: 16px\"><strong><span style=\"color: #800000\">\u4e94\u3001\u5177\u4f53\u5b9e\u73b0<\/span><\/strong><\/span><\/p>\n<p><strong>5.1 \u8c03\u7528\u5c0f\u9ec4\u9e21API \u5b9e\u73b0<\/strong><\/p>\n<p>\u8c03\u7528simsim($keyword) \u51fd\u6570\u5904\u7406\uff0c\u5c06\u5176\u4e2d\u7684\u201cYour API Key\u201d \u6362\u6210\u7533\u8bf7\u5230\u7684API Key\u3002<\/p>\n<pre>    \/\/\u5c0f\u9ec4\u9e21\r\n    public function simsim($keyword){        $key=\"41250a68-3cb5-43c8-9aa2-d7b3caf519b1\";        $url_simsimi=\"http:\/\/sandbox.api.simsimi.com\/request.p?key=\".$key.\"&amp;lc=ch&amp;ft=0.0&amp;text=\".$keyword;        \r\n        $json=file_get_contents($url_simsimi);\u3000\u3000\/\/ \u628a\u6574\u4e2a\u6587\u4ef6\u8bfb\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\r\n\r\n        $result=json_decode($json,true);\u3000\u3000\/\/ \u5bf9JSON \u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8fdb\u884c\u7f16\u7801\r\n\r\n        \/\/$errorCode=$result['result'];\u3000\u3000\/\/ \u8c03\u8bd5\u7528\r\n\r\n        $response=$result['response'];\u3000\u3000\/\/ \u56de\u590d\u7684\u6d88\u606f        if(!empty($response)){            return $response;\r\n        }else{            $ran=rand(1,5);            switch($ran){                case 1:                    return \"\u5c0f\u9e21\u9e21\u4eca\u5929\u7d2f\u4e86\uff0c\u660e\u5929\u518d\u966a\u4f60\u804a\u5929\u5427\u3002\";                    break;                case 2:                    return \"\u5c0f\u9e21\u9e21\u7761\u89c9\u55bd~~\";                    break;                case 3:                    return \"\u547c\u547c~~\u547c\u547c~~\";                    break;                case 4:                    return \"\u4f60\u8bdd\u597d\u591a\u554a\uff0c\u4e0d\u8ddf\u4f60\u804a\u4e86\";                    break;                case 5:                    return \"\u611f\u8c22\u60a8\u5173\u6ce8\u3010\u5353\u9526\u82cf\u5dde\u3011\".\"\n\".\"\u5fae\u4fe1\u53f7\uff1azhuojinsz\".\"\n\".\"\u5353\u8d8a\u9526\u7ee3\uff0c\u4e07\u4ee3\u4e0d\u673d\";                    break;                default:                    return \"\u611f\u8c22\u60a8\u5173\u6ce8\u3010\u5353\u9526\u82cf\u5dde\u3011\".\"\n\".\"\u5fae\u4fe1\u53f7\uff1azhuojinsz\".\"\n\".\"\u5353\u8d8a\u9526\u7ee3\uff0c\u4e07\u4ee3\u4e0d\u673d\";                    break;\r\n            }\r\n        }\r\n    }<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><span style=\"color: #800000\"><strong>\u8bf4\u660e\uff1a<\/strong><\/span><\/p>\n<p>\u56e0\u4e3a\u6709\u65f6\u5019\u5c0f\u9ec4\u9e21\u4e0d\u56de\u590d\uff0c\u6240\u4ee5\u5728simsim() \u51fd\u6570\u4e2d\u52a0\u5165\u4e86\u4e00\u4e2a\u5224\u65ad\uff0c\u5982\u679c$response \u4e0d\u4e3a\u7a7a\uff0c\u5219\u8fd4\u56de$response\uff1b\u5982\u679c$response \u4e3a\u7a7a\uff0c\u5219\u52a0\u4e86\u4e00\u4e2a\u5c0f\u5c0f\u7684\u4ee3\u7801\uff0c\u8ba9\u5176\u968f\u673a\u56de\u590d\u81ea\u5b9a\u4e49\u7684\u6d88\u606f\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u505a\u5230\u6709\u6c42\u5fc5\u5e94\u4e86\u3002<\/p>\n<p><strong>5.2 \u8c03\u7528\u5c0f\u4e5d\u673a\u5668\u4eba\u5b9e\u73b0<\/strong><\/p>\n<p>\u5c0f\u4e5d\u673a\u5668\u4eba\u4e0d\u63d0\u4f9bAPI\uff0c\u6545\u53ea\u80fd\u901a\u8fc7\u7f51\u9875\u6293\u53d6\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>    \/\/\u5c0f\u4e5d\u673a\u5668\u4eba\r\n    public function xiaojo($keyword){        $curlPost=array(\"chat\"=&gt;$keyword);        $ch = curl_init();\/\/\u521d\u59cb\u5316curl\r\n        curl_setopt($ch, CURLOPT_URL,'http:\/\/www.xiaojo.com\/bot\/chata.php');\/\/\u6293\u53d6\u6307\u5b9a\u7f51\u9875\r\n        curl_setopt($ch, CURLOPT_HTTPHEADER, $header);\r\n        curl_setopt($ch, CURLOPT_HEADER, 0);\/\/\u8bbe\u7f6eheader\r\n        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\/\/\u8981\u6c42\u7ed3\u679c\u4e3a\u5b57\u7b26\u4e32\u4e14\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\r\n        curl_setopt($ch, CURLOPT_POST, 1);\/\/post\u63d0\u4ea4\u65b9\u5f0f\r\n        curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost);        $data = curl_exec($ch);\/\/\u8fd0\u884ccurl\r\n        curl_close($ch);        if(!empty($data)){            return $data;\r\n        }else{            $ran=rand(1,5);            switch($ran){                case 1:                    return \"\u5c0f\u9e21\u9e21\u4eca\u5929\u7d2f\u4e86\uff0c\u660e\u5929\u518d\u966a\u4f60\u804a\u5929\u5427\u3002\";                    break;                case 2:                    return \"\u5c0f\u9e21\u9e21\u7761\u89c9\u55bd~~\";                    break;                case 3:                    return \"\u547c\u547c~~\u547c\u547c~~\";                    break;                case 4:                    return \"\u4f60\u8bdd\u597d\u591a\u554a\uff0c\u4e0d\u8ddf\u4f60\u804a\u4e86\";                    break;                case 5:                    return \"\u611f\u8c22\u60a8\u5173\u6ce8\u3010\u5353\u9526\u82cf\u5dde\u3011\".\"\n\".\"\u5fae\u4fe1\u53f7\uff1azhuojinsz\".\"\n\".\"\u5353\u8d8a\u9526\u7ee3\uff0c\u4e07\u4ee3\u4e0d\u673d\";                    break;                default:                    return \"\u611f\u8c22\u60a8\u5173\u6ce8\u3010\u5353\u9526\u82cf\u5dde\u3011\".\"\n\".\"\u5fae\u4fe1\u53f7\uff1azhuojinsz\".\"\n\".\"\u5353\u8d8a\u9526\u7ee3\uff0c\u4e07\u4ee3\u4e0d\u673d\";                    break;\r\n            }\r\n        }\r\n    }<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>5.3 \u53cc\u9f99\u620f\u51e4<\/strong><\/p>\n<p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u5c06\u4e0a\u9762\u7684\u5c0f\u9ec4\u9e21\u548c\u5c0f\u4e5d\u673a\u5668\u4eba\u8fdb\u884c\u6574\u5408\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>    \/\/\u53cc\u9f99\u620f\u51e4\r\n    public function chatter($keyword){        $curlPost=array(\"chat\"=&gt;$keyword);        $ch = curl_init();    \/\/\u521d\u59cb\u5316curl\r\n        curl_setopt($ch, CURLOPT_URL,'http:\/\/www.xiaojo.com\/bot\/chata.php');    \/\/\u6293\u53d6\u6307\u5b9a\u7f51\u9875\r\n        curl_setopt($ch, CURLOPT_HTTPHEADER, $header);\r\n        curl_setopt($ch, CURLOPT_HEADER, 0);    \/\/\u8bbe\u7f6eheader\r\n        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);    \/\/\u8981\u6c42\u7ed3\u679c\u4e3a\u5b57\u7b26\u4e32\u4e14\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\r\n        curl_setopt($ch, CURLOPT_POST, 1);    \/\/post\u63d0\u4ea4\u65b9\u5f0f\r\n        curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost);        $data = curl_exec($ch);    \/\/\u8fd0\u884ccurl\r\n        curl_close($ch);        if(!empty($data)){            return $data.\" [\/::)\u5c0f\u4e5d]\";\r\n        }else{            return $this-&gt;simsim($keyword).\" [simsim\/::D]\";\r\n        }\r\n    }<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><span style=\"font-size: 16px\"><strong><span style=\"line-height: 1.5;color: #800000\">\u516d\u3001\u6d4b\u8bd5<\/span><\/strong><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/5a9fc94fc8284d0677a67223c8688ba3-3.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe3\" alt=\"\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u63d2\u56fe3\" \/>&nbsp;<\/p>\n<p>\u3010\u76f8\u5173\u63a8\u8350\u3011<\/p>\n<p>1.<\/p>\n<p>2.<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u5f00\u53d1\u4e4b\u5c0f\u9ec4\u9e21API\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7b80\u4ecb \u4e0a\u4e00\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7ffb\u8bd1\u529f\u80fd\u7684\u5f00\u53d1\uff0c\u5b9e\u73b0\u4e86\u4e2d\u3001\u82f1\u3001\u65e5\u8bed\u8a00\u4e92\u8bd1\uff0c\u5728\u5b9e\u9645\u751f\u6d3b\u4e2d\u4e5f\u80fd\u4f7f\u7528\u5230\u3002\u5728\u63a5\u4e0b\u6765\u7684\u8fd9\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b8c\u6210\u4e00\u4e2a\u6bd4\u8f83\u6709\u8da3\u7684\u529f\u80fd\uff0c\u90a3\u5c31\u662f\u804a\u5929\u673a\u5668\u4eba\uff0c\u53ef\u4ee5\u5728\u4f60\u65e0\u804a\u7684\u65f6\u5019\u966a\u4f60\u804a\u5929\u9017\u4f60\u5f00\u5fc3\u3002 \u4e8c\u3001\u601d\u8def\u5206\u6790 \u5728\u8fd9\u4e2a\u5b9e\u9a8c\u4e2d\uff0c\u6211\u4eec\u5c06\u8c03\u53d6\u5c0f\u9ec4\u9e21\u5b98\u65b9\uff08www.simsimi.com\/\uff09\u63d0\u4f9b\u7684API\uff0c\u7ed3\u5408\u6293\u53d6\u5c0f\u4e5d\u673a\u5668\u4eba\uff08www.xiaojo.com\/\uff09\u7684\u7f51\u9875\uff0c\u4e92\u76f8\u8865\u5145\u3002Simsimi \u662f\u6536\u8d39\u7684\uff0c\u4f46\u4f60\u53ef\u4ee5\u5c1d\u8bd57\u5929\u6d4b\u8bd5\uff0c\u6bcf\u5929\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528100\u6761\u56de\u590d\uff1b\u5c0f\u4e5d\u673a\u5668\u4eba\u53ef\u4ee5\u65e0\u9650\u5236\u4f7f\u7528\uff0c\u4f46\u524d\u63d0\u662f\u5b98\u65b9\u4e0d\u5c4f\u853d\u3002 \u4e09\u3001\u5c0f\u9ec4\u9e21API \u5206\u6790 3.1 API &amp; URL \u5b98\u65b9API \u5730\u5740\uff1adeveloper.simsimi.com\/api&nbsp; Request URL\uff1asandbox.api.simsimi.com\/request.p \u8fd9\u91cc\u4f7f\u7528\u514d\u8d39\u7248\u6d4b\u8bd5\uff0c\u4ed8\u8d39\u7248\u7684\u7c7b\u4f3c\uff0c\u53ea\u662fURL\u5730\u5740\u4e0d\u540c\u3002 3.2 \u8bf7\u6c42\u793a\u4f8b\u4e0e\u53c2\u6570\u8bf4\u660e \u8bf7\u6c42\u793a\u4f8b\uff1a sandbox.api.simsimi.com\/request.p?key=your_trial_key&amp;amp;lc=en&amp;amp;ft=1.0&amp;amp;text=hi \u767b\u5f55\u540e\u590d\u5236 \u53c2\u6570\u8bf4\u660e\uff1a key: \u7533\u8bf7\u7684API Key lc:&nbsp;Language code\uff0c\u652f\u6301\u7684\u8bed\u8a00\uff0c\u7b80\u4f53\u4e2d\u6587\u7528ch\uff0c\u7e41\u4f53\u4e2d\u6587\u7528zh\uff0c\u82f1\u6587\u7528en\uff0c\u8be6\u7ec6\u8bf7\u53c2\u8003\uff1adeveloper.simsimi.com\/lclist ft: \u662f\u5426\u8bbe\u7f6e\u8fc7\u6ee4\u5668\uff0c \u3000\u30000.0\uff1a\u672a\u8fc7\u6ee4\uff08\u5305\u542b\u8bc5\u5492\uff0c\u6027\u5185\u5bb9\uff09\uff1b \u3000\u30001.0\uff1a\u8fc7\u6ee4\u4e0d\u6587\u660e\u5b57\u53e5\uff08\u6682\u65f6\u53ea\u652f\u6301\u97e9\u6587\uff09 text: \u8bf7\u6c42\u7684\u6587\u672c 3.3 \u8fd4\u56de\u503c\u5206\u6790 result\uff1a\u6267\u884c\u7ed3\u679c\u8fd4\u56de\u7801 100-OK. 400-Bad Request. 401-Unauthorized. 404-Not found. 500-Server Error. id\uff1a\u56de\u590d\u7684\u6d88\u606fid\uff08\u53ea\u6709result=100 \u65f6\u624d\u4f1a\u6709\u6b64\u9879\uff09 response\uff1a\u56de\u590d\u7684\u6d88\u606f\uff08\u53ea\u6709result=100 \u65f6\u624d\u4f1a\u6709\u6b64\u9879\uff09 msg\uff1a\u6267\u884c\u7ed3\u679c\u8fd4\u56de\u7801\u5bf9\u5e94\u7684\u72b6\u6001 \u56db\u3001\u83b7\u53d6\u5c0f\u9ec4\u9e21API Key 4.1 \u6ce8\u518csimsimi \u8d26\u53f7 URL: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-28461","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28461"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28461\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}