
{"id":7791,"date":"2025-05-23T12:12:00","date_gmt":"2025-05-23T04:12:00","guid":{"rendered":"https:\/\/meta-quantum.today\/?p=7791"},"modified":"2025-05-23T10:37:20","modified_gmt":"2025-05-23T02:37:20","slug":"minimax-n8n-%e6%90%ad%e5%bb%ba%e4%b8%aa%e6%80%a7%e5%8c%96%e6%92%ad%e5%ae%a2ai%e7%94%9f%e6%88%90%e5%b7%a5%e4%bd%9c%e6%b5%81%e6%90%ad%e5%bb%ba%e4%b8%aa%e6%80%a7%e5%8c%96%e6%92%ad%e5%ae%a2ai%e7%94%9f","status":"publish","type":"post","link":"https:\/\/meta-quantum.today\/?p=7791","title":{"rendered":"MiniMax + n8n : \u642d\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2AI\u751f\u6210\u5de5\u4f5c\u6d41\u642d\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2AI\u751f\u6210\u5de5\u4f5c\u6d41"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4ecb\u7ecd<\/h2>\n\n\n\n<p>\u5982\u4f55\u5229\u7528MiniMax\u7684\u591a\u6a21\u6001AI\u670d\u52a1\u7ed3\u5408n8n\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u6784\u5efa\u4e00\u4e2a\u5b8c\u6574\u7684\u4e2a\u6027\u5316\u64ad\u5ba2\u751f\u6210\u5de5\u4f5c\u6d41\u3002\u5728AI\u6280\u672f\u5feb\u901f\u53d1\u5c55\u7684\u80cc\u666f\u4e0b\uff0c<a href=\"#video\" title=\"\u6559\u7a0b\u6f14\u793a\">\u6559\u7a0b\u6f14\u793a<\/a>\u4e86\u5982\u4f55\u5c06\u5927\u8bed\u8a00\u6a21\u578b\u3001\u58f0\u97f3\u514b\u9686\u6280\u672f\u548c\u6587\u5b57\u8f6c\u8bed\u97f3\u529f\u80fd\u6709\u673a\u7ed3\u5408\uff0c\u5b9e\u73b0\u4ece\u8bdd\u9898\u8f93\u5165\u5230\u4e2a\u6027\u5316\u64ad\u5ba2\u97f3\u9891\u8f93\u51fa\u7684\u5168\u81ea\u52a8\u5316\u6d41\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">n8n\u4e0eMiniMax\u96c6\u6210\u5b8c\u6574\u5b89\u88c5\u914d\u7f6e\u6307\u5357<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u73af\u5883\u51c6\u5907<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u7cfb\u7edf\u8981\u6c42<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Node.js<\/strong>: 18\u6216\u66f4\u9ad8\u7248\u672c<\/li>\n\n\n\n<li><strong>\u5185\u5b58<\/strong>: \u6700\u5c112GB RAM (\u63a8\u83504GB)<\/li>\n\n\n\n<li><strong>\u5b58\u50a8<\/strong>: \u6700\u5c1110GB\u53ef\u7528\u7a7a\u95f4<\/li>\n\n\n\n<li><strong>\u7f51\u7edc<\/strong>: \u7a33\u5b9a\u7684\u4e92\u8054\u7f51\u8fde\u63a5\u7528\u4e8eAPI\u8c03\u7528<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u524d\u7f6e\u4f9d\u8d56<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># Ubuntu\/Debian\u7cfb\u7edf\nsudo apt update\nsudo apt install curl wget git\n\n# \u5b89\u88c5Node.js 18+\ncurl -fsSL &lt;https:\/\/deb.nodesource.com\/setup_18.x&gt; | sudo -E bash -\nsudo apt install -y nodejs\n\n# \u9a8c\u8bc1\u5b89\u88c5\nnode --version\nnpm --version\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">n8n\u5b89\u88c5\u65b9\u6cd5<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd51: \u4f7f\u7528npm\u5b89\u88c5 (\u63a8\u8350\u672c\u5730\u5f00\u53d1)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5168\u5c40\u5b89\u88c5n8n\nnpm install -g n8n\n\n# \u542f\u52a8n8n\nn8n start\n\n# \u6216\u8005\u4f7f\u7528npx\u4e34\u65f6\u8fd0\u884c (\u65e0\u9700\u5b89\u88c5)\nnpx n8n\n\n<\/code><\/pre>\n\n\n\n<p>\u8bbf\u95ee <code>http:\/\/localhost:5678<\/code> \u5f00\u59cb\u4f7f\u7528n8n\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd52: \u4f7f\u7528Docker\u5b89\u88c5 (\u63a8\u8350\u751f\u4ea7\u73af\u5883)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u521b\u5efa\u6570\u636e\u5377\ndocker volume create n8n_data\n\n# \u8fd0\u884cn8n\u5bb9\u5668\ndocker run -it --rm \\\\\n  --name n8n \\\\\n  -p 5678:5678 \\\\\n  -v n8n_data:\/home\/node\/.n8n \\\\\n  docker.n8n.io\/n8nio\/n8n\n\n# \u6216\u8005\u4f7f\u7528Docker Compose\n\n<\/code><\/pre>\n\n\n\n<p><strong>docker-compose.yml\u6587\u4ef6:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>version: '3.8'\n\nservices:\n  n8n:\n    image: docker.n8n.io\/n8nio\/n8n\n    restart: always\n    ports:\n      - \"5678:5678\"\n    environment:\n      - N8N_BASIC_AUTH_ACTIVE=true\n      - N8N_BASIC_AUTH_USER=admin\n      - N8N_BASIC_AUTH_PASSWORD=your_password\n      - N8N_HOST=localhost\n      - N8N_PORT=5678\n      - N8N_PROTOCOL=http\n      - NODE_ENV=production\n    volumes:\n      - n8n_data:\/home\/node\/.n8n\n\nvolumes:\n  n8n_data:\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># \u542f\u52a8Docker Compose\ndocker-compose up -d\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd53: VPS\u90e8\u7f72 (\u751f\u4ea7\u73af\u5883)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u66f4\u65b0\u7cfb\u7edf\u5305\nsudo apt update\n\n# \u5b89\u88c5Node.js\ncurl -fsSL &lt;https:\/\/deb.nodesource.com\/setup_18.x&gt; | sudo -E bash -\nsudo apt install -y nodejs\n\n# \u5b89\u88c5n8n\nnpm install -g n8n\n\n# \u5b89\u88c5PM2\u8fdb\u7a0b\u7ba1\u7406\u5668\nnpm install -g pm2\n\n# \u5b89\u88c5Nginx\u53cd\u5411\u4ee3\u7406\nsudo apt install nginx\n\n# \u5b89\u88c5SSL\u8bc1\u4e66\u5de5\u5177\nsudo apt install certbot python3-certbot-nginx\n\n<\/code><\/pre>\n\n\n\n<p><strong>\u521b\u5efan8n\u542f\u52a8\u811a\u672c <code>\/home\/user\/start-n8n.sh<\/code>:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nexport N8N_PORT=5678\nexport N8N_HOST=your-domain.com\nexport N8N_PROTOCOL=https\nexport WEBHOOK_URL=https:\/\/your-domain.com\/\nexport N8N_BASIC_AUTH_ACTIVE=true\nexport N8N_BASIC_AUTH_USER=admin\nexport N8N_BASIC_AUTH_PASSWORD=your_secure_password\n\nn8n start\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f7f\u7528PM2\u542f\u52a8n8n\nchmod +x \/home\/user\/start-n8n.sh\npm2 start \/home\/user\/start-n8n.sh --name n8n\npm2 save\npm2 startup # \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\n\n<\/code><\/pre>\n\n\n\n<p><strong>Nginx\u914d\u7f6e <code>\/etc\/nginx\/sites-available\/n8n<\/code>:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name your-domain.com;\n\n    location \/ {\n        proxy_pass &lt;http:\/\/localhost:5678&gt;;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n\n        # WebSocket\u652f\u6301\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection 'upgrade';\n        proxy_cache_bypass $http_upgrade;\n    }\n}\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># \u542f\u7528Nginx\u914d\u7f6e\nsudo ln -s \/etc\/nginx\/sites-available\/n8n \/etc\/nginx\/sites-enabled\/\nsudo nginx -t\nsudo systemctl reload nginx\n\n# \u914d\u7f6eSSL\u8bc1\u4e66\nsudo certbot --nginx -d your-domain.com\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">MiniMax API\u51c6\u5907<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u83b7\u53d6API\u51ed\u8bc1<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8bbf\u95ee <a href=\"https:\/\/www.minimax.io\/\">MiniMax\u5e73\u53f0<\/a> \u5e76\u6ce8\u518c\u8d26\u6237<\/li>\n\n\n\n<li>\u767b\u5f55\u540e\u53f0\uff0c\u8fdb\u5165API\u7ba1\u7406\u9875\u9762<\/li>\n\n\n\n<li>\u521b\u5efa\u65b0\u7684API\u5bc6\u94a5<\/li>\n\n\n\n<li>\u8bb0\u5f55\u4ee5\u4e0b\u4fe1\u606f\uff1a\n<ol class=\"wp-block-list\">\n<li><strong>API Key<\/strong>: \u7528\u4e8eAPI\u8ba4\u8bc1<\/li>\n\n\n\n<li><strong>Group ID<\/strong>: \u5728\u4e2a\u4eba\u8d44\u6599\u4e2d\u627e\u5230<\/li>\n\n\n\n<li><strong>API Host<\/strong>:\n<ol class=\"wp-block-list\">\n<li>\u5168\u7403\u7528\u6237: <code>https:\/\/api.minimaxi.chat<\/code><\/li>\n\n\n\n<li>\u4e2d\u56fd\u7528\u6237: <code>https:\/\/api.minimax.chat<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">2. API\u9650\u5236\u548c\u5b9a\u4ef7\u4e86\u89e3<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65e5\u9650\u5236<\/strong>: \u6bcf\u4e2a\u7ec4\u7ec7\u6bcf24\u5c0f\u65f61,000\u6b21API\u8c03\u7528<\/li>\n\n\n\n<li><strong>\u6708\u9650\u5236<\/strong>: \u6bcf\u4e2a\u7ec4\u7ec7\u6bcf\u670820,000\u6b21API\u8c03\u7528<\/li>\n\n\n\n<li><strong>\u6587\u672c\u8f6c\u8bed\u97f3<\/strong>: $50 \/ 100\u4e07\u5b57\u7b26<\/li>\n\n\n\n<li><strong>\u89c6\u9891\u751f\u6210<\/strong>: $0.43 \/ \u89c6\u9891<\/li>\n\n\n\n<li><strong>\u56fe\u50cf\u751f\u6210<\/strong>: $0.0035 \/ \u56fe\u50cf<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">n8n\u57fa\u7840\u914d\u7f6e<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u521d\u59cb\u5316\u8bbe\u7f6e<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95een8n\u5b9e\u4f8b\u5730\u5740<\/li>\n\n\n\n<li>\u9996\u6b21\u8bbf\u95ee\u4f1a\u770b\u5230\u6ce8\u518c\u9875\u9762<\/li>\n\n\n\n<li>\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u6237\uff1a\n<ol class=\"wp-block-list\">\n<li>\u540d\u5b57\u548c\u59d3\u6c0f<\/li>\n\n\n\n<li>\u90ae\u7bb1\u5730\u5740<\/li>\n\n\n\n<li>\u5b89\u5168\u5bc6\u7801<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u57fa\u672c\u5b89\u5168\u914d\u7f6e<\/h4>\n\n\n\n<p><strong>\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6587\u4ef6 <code>.env<\/code>:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u57fa\u7840\u8ba4\u8bc1\nN8N_BASIC_AUTH_ACTIVE=true\nN8N_BASIC_AUTH_USER=admin\nN8N_BASIC_AUTH_PASSWORD=your_secure_password\n\n# \u57df\u540d\u548c\u534f\u8bae\nN8N_HOST=your-domain.com\nN8N_PROTOCOL=https\nN8N_PORT=5678\n\n# Webhook URL\nWEBHOOK_URL=https:\/\/your-domain.com\/\n\n# \u6570\u636e\u5e93\u914d\u7f6e (\u53ef\u9009\uff0c\u9ed8\u8ba4\u4f7f\u7528SQLite)\nDB_TYPE=postgresdb\nDB_POSTGRESDB_HOST=localhost\nDB_POSTGRESDB_PORT=5432\nDB_POSTGRESDB_DATABASE=n8n\nDB_POSTGRESDB_USER=n8n_user\nDB_POSTGRESDB_PASSWORD=n8n_password\n\n# \u65f6\u533a\u8bbe\u7f6e\nGENERIC_TIMEZONE=Asia\/Shanghai\n\n# \u65e5\u5fd7\u7ea7\u522b\nN8N_LOG_LEVEL=info\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u7528\u6237\u7ba1\u7406\u8bbe\u7f6e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u542f\u7528\u7528\u6237\u7ba1\u7406\nN8N_USER_MANAGEMENT_DISABLED=false\n\n# JWT\u8bbe\u7f6e\nN8N_USER_MANAGEMENT_JWT_SECRET=your_jwt_secret_key\n\n# \u90ae\u4ef6\u914d\u7f6e (\u7528\u4e8e\u9080\u8bf7\u7528\u6237)\nN8N_EMAIL_MODE=smtp\nN8N_SMTP_HOST=smtp.gmail.com\nN8N_SMTP_PORT=587\nN8N_SMTP_USER=your-email@gmail.com\nN8N_SMTP_PASS=your-app-password\nN8N_SMTP_SENDER=your-email@gmail.com\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">MiniMax\u51ed\u8bc1\u914d\u7f6e<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u521b\u5efa\u81ea\u5b9a\u4e49\u51ed\u8bc1\u7c7b\u578b<\/h4>\n\n\n\n<p>\u7531\u4e8en8n\u76ee\u524d\u4e0d\u652f\u6301MiniMax\u7684\u9884\u5b9a\u4e49\u51ed\u8bc1\u7c7b\u578b\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u81ea\u5b9a\u4e49\u51ed\u8bc1\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd51: \u4f7f\u7528Header Auth\u51ed\u8bc1<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728n8n\u4e2d\u70b9\u51fb <strong>Credentials<\/strong> \u2192 <strong>Add Credential<\/strong><\/li>\n\n\n\n<li>\u641c\u7d22\u5e76\u9009\u62e9 <strong>Header Auth<\/strong><\/li>\n\n\n\n<li>\u914d\u7f6e\u4ee5\u4e0b\u53c2\u6570\uff1a\n<ol class=\"wp-block-list\">\n<li><strong>Credential Name<\/strong>: <code>MiniMax API<\/code><\/li>\n\n\n\n<li><strong>Name<\/strong>: <code>Authorization<\/code><\/li>\n\n\n\n<li><strong>Value<\/strong>: <code>Bearer your_api_key_here<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd52: \u521b\u5efa\u81ea\u5b9a\u4e49\u51ed\u8bc1\u7c7b\u578b<\/h4>\n\n\n\n<p><strong>\u81ea\u5b9a\u4e49\u51ed\u8bc1JSON\u914d\u7f6e:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"name\": \"miniMaxApi\",\n  \"displayName\": \"MiniMax API\",\n  \"documentationUrl\": \"&lt;https:\/\/www.minimax.io\/&gt;\",\n  \"properties\": &#91;\n    {\n      \"displayName\": \"API Key\",\n      \"name\": \"apiKey\",\n      \"type\": \"string\",\n      \"typeOptions\": {\n        \"password\": true\n      },\n      \"default\": \"\",\n      \"required\": true\n    },\n    {\n      \"displayName\": \"Group ID\",\n      \"name\": \"groupId\",\n      \"type\": \"string\",\n      \"default\": \"\",\n      \"required\": true\n    },\n    {\n      \"displayName\": \"API Host\",\n      \"name\": \"apiHost\",\n      \"type\": \"options\",\n      \"options\": &#91;\n        {\n          \"name\": \"Global (api.minimaxi.chat)\",\n          \"value\": \"&lt;https:\/\/api.minimaxi.chat&gt;\"\n        },\n        {\n          \"name\": \"China (api.minimax.chat)\",\n          \"value\": \"&lt;https:\/\/api.minimax.chat&gt;\"\n        }\n      ],\n      \"default\": \"&lt;https:\/\/api.minimaxi.chat&gt;\",\n      \"required\": true\n    }\n  ],\n  \"authenticate\": {\n    \"type\": \"generic\",\n    \"properties\": {\n      \"headers\": {\n        \"Authorization\": \"Bearer {{$credentials.apiKey}}\"\n      }\n    }\n  }\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u914d\u7f6eHTTP Request\u8282\u70b9\u51ed\u8bc1<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6dfb\u52a0 <strong>HTTP Request<\/strong> \u8282\u70b9\u5230\u5de5\u4f5c\u6d41<\/li>\n\n\n\n<li>\u5728\u8282\u70b9\u914d\u7f6e\u4e2d\u9009\u62e9 <strong>Authentication<\/strong> \u2192 <strong>Predefined Credential Type<\/strong> \u6216 <strong>Generic Credential Type<\/strong><\/li>\n\n\n\n<li>\u9009\u62e9\u4e4b\u524d\u521b\u5efa\u7684MiniMax\u51ed\u8bc1<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u5de5\u4f5c\u6d41\u642d\u5efa<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u57fa\u7840\u64ad\u5ba2\u751f\u6210\u5de5\u4f5c\u6d41<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">\u8282\u70b91: Chat Trigger (\u804a\u5929\u89e6\u53d1\u5668)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {},\n  \"type\": \"n8n-nodes-base.chatTrigger\",\n  \"typeVersion\": 1,\n  \"position\": &#91;0, 0]\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8282\u70b92: AI Agent (OpenAI + Serp API)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"agent\": \"conversationalAgent\",\n    \"promptType\": \"define\",\n    \"text\": \"\u4f60\u662f\u4e00\u4e2a\u4e13\u4e1a\u7684\u64ad\u5ba2\u5185\u5bb9\u751f\u6210\u52a9\u624b\u3002\u8bf7\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u8bdd\u9898\uff0c\u4f7f\u7528\u641c\u7d22\u5de5\u5177\u83b7\u53d6\u6700\u65b0\u4fe1\u606f\uff0c\u5e76\u751f\u6210\u9002\u5408\u64ad\u5ba2\u7684\u5185\u5bb9\u3002\",\n    \"hasOutputParser\": true,\n    \"options\": {\n      \"systemMessage\": \"\u8bf7\u786e\u4fdd\u751f\u6210\u7684\u5185\u5bb9\u51c6\u786e\u3001\u6709\u8da3\u3001\u9002\u5408\u64ad\u5ba2\u683c\u5f0f\u3002\"\n    }\n  },\n  \"type\": \"@n8n\/n8n-nodes-langchain.agent\",\n  \"typeVersion\": 1,\n  \"position\": &#91;200, 0]\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8282\u70b93: Translator (\u5185\u5bb9\u7ffb\u8bd1\u548c\u91cd\u5199)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"model\": \"gpt-4\",\n    \"options\": {\n      \"systemMessage\": \"\u8bf7\u5c06\u8f93\u5165\u5185\u5bb9\u7ffb\u8bd1\u4e3a\u4e2d\u6587\uff0c\u5e76\u91cd\u5199\u4e3a\u9002\u5408\u64ad\u5ba2\u5f55\u5236\u7684\u8bed\u6599\u3002\u8981\u6c42\uff1a\\\\n1. \u7ffb\u8bd1\u4e3a\u4e2d\u6587\\\\n2. \u91cd\u5199\u5185\u5bb9\u548c\u63aa\u8f9e\uff0c\u4f7f\u5176\u9002\u5408\u64ad\u5ba2\u9605\u8bfb\\\\n3. \u8bed\u6599\u5e94\u8be5\u751f\u6d3b\u5316\uff0c\u5177\u5907\u804a\u5929\u7279\u6027\\\\n4. \u7981\u6b62\u4f7f\u7528\u6362\u884c\u7b26\u3001\u5236\u8868\u7b26\u7b49\u7279\u6b8a\u7b26\u53f7\\\\n5. \u53ea\u8f93\u51fa\u91cd\u5199\u540e\u7684\u6587\u5b57\"\n    }\n  },\n  \"type\": \"@n8n\/n8n-nodes-langchain.openAi\",\n  \"typeVersion\": 1,\n  \"position\": &#91;400, 0]\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8282\u70b94: List Voices (\u83b7\u53d6\u58f0\u97f3\u5217\u8868)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"method\": \"POST\",\n    \"url\": \"={{$credentials.apiHost}}\/v1\/t2a_v2\/voices\",\n    \"sendQuery\": true,\n    \"queryParameters\": {\n      \"parameters\": &#91;\n        {\n          \"name\": \"GroupId\",\n          \"value\": \"={{$credentials.groupId}}\"\n        }\n      ]\n    },\n    \"sendBody\": true,\n    \"bodyContentType\": \"json\",\n    \"jsonBody\": \"{\\\\n  \\\\\"voice_type\\\\\": \\\\\"all\\\\\"\\\\n}\",\n    \"options\": {}\n  },\n  \"type\": \"n8n-nodes-base.httpRequest\",\n  \"typeVersion\": 4,\n  \"position\": &#91;600, 100],\n  \"credentials\": {\n    \"httpHeaderAuth\": {\n      \"id\": \"minimax_credentials_id\",\n      \"name\": \"MiniMax API\"\n    }\n  }\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8282\u70b95: Text to Audio (\u6587\u5b57\u8f6c\u8bed\u97f3)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"method\": \"POST\",\n    \"url\": \"={{$credentials.apiHost}}\/v1\/t2a_v2\",\n    \"sendQuery\": true,\n    \"queryParameters\": {\n      \"parameters\": &#91;\n        {\n          \"name\": \"GroupId\",\n          \"value\": \"={{$credentials.groupId}}\"\n        }\n      ]\n    },\n    \"sendBody\": true,\n    \"bodyContentType\": \"json\",\n    \"jsonBody\": \"{\\\\n  \\\\\"model\\\\\": \\\\\"speech-01-hd\\\\\",\\\\n  \\\\\"text\\\\\": \\\\\"{{$node&#91;'Translator'].json&#91;'output'].replace(\/\\\\\\\\n\/g, ' ').replace(\/\\\\\\\\t\/g, ' ')}}\\\\\",\\\\n  \\\\\"voice_id\\\\\": \\\\\"your_cloned_voice_id\\\\\",\\\\n  \\\\\"output_format\\\\\": \\\\\"url\\\\\",\\\\n  \\\\\"speed\\\\\": 1.0,\\\\n  \\\\\"vol\\\\\": 50,\\\\n  \\\\\"pitch\\\\\": 0,\\\\n  \\\\\"timber\\\\\": 0,\\\\n  \\\\\"emotion\\\\\": \\\\\"neutral\\\\\"\\\\n}\",\n    \"options\": {}\n  },\n  \"type\": \"n8n-nodes-base.httpRequest\",\n  \"typeVersion\": 4,\n  \"position\": &#91;800, 0],\n  \"credentials\": {\n    \"httpHeaderAuth\": {\n      \"id\": \"minimax_credentials_id\",\n      \"name\": \"MiniMax API\"\n    }\n  }\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8282\u70b96: Download Audio (\u4e0b\u8f7d\u97f3\u9891\u6587\u4ef6)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"method\": \"GET\",\n    \"url\": \"={{$node&#91;'Text to Audio'].json&#91;'audio_url']}}\",\n    \"options\": {\n      \"response\": {\n        \"response\": {\n          \"responseFormat\": \"file\"\n        }\n      }\n    }\n  },\n  \"type\": \"n8n-nodes-base.httpRequest\",\n  \"typeVersion\": 4,\n  \"position\": &#91;1000, 0]\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u8bed\u97f3\u514b\u9686\u5de5\u4f5c\u6d41<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bed\u97f3\u514b\u9686\u5b8c\u6574\u6d41\u7a0b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"name\": \"MiniMax Voice Cloning Workflow\",\n  \"nodes\": &#91;\n    {\n      \"parameters\": {\n        \"path\": \"voice-clone\",\n        \"method\": \"POST\"\n      },\n      \"type\": \"n8n-nodes-base.webhook\",\n      \"typeVersion\": 1,\n      \"position\": &#91;0, 0],\n      \"name\": \"Webhook\"\n    },\n    {\n      \"parameters\": {\n        \"method\": \"POST\",\n        \"url\": \"={{$credentials.apiHost}}\/v1\/files\/upload\",\n        \"sendQuery\": true,\n        \"queryParameters\": {\n          \"parameters\": &#91;\n            {\n              \"name\": \"GroupId\",\n              \"value\": \"={{$credentials.groupId}}\"\n            }\n          ]\n        },\n        \"sendBody\": true,\n        \"bodyContentType\": \"multipart-form-data\",\n        \"bodyParameters\": {\n          \"parameters\": &#91;\n            {\n              \"name\": \"file\",\n              \"inputDataFieldName\": \"audio_file\"\n            }\n          ]\n        }\n      },\n      \"type\": \"n8n-nodes-base.httpRequest\",\n      \"typeVersion\": 4,\n      \"position\": &#91;200, 0],\n      \"name\": \"Upload Audio File\",\n      \"credentials\": {\n        \"httpHeaderAuth\": {\n          \"id\": \"minimax_credentials_id\",\n          \"name\": \"MiniMax API\"\n        }\n      }\n    },\n    {\n      \"parameters\": {\n        \"method\": \"POST\",\n        \"url\": \"={{$credentials.apiHost}}\/v1\/voice_clone\",\n        \"sendQuery\": true,\n        \"queryParameters\": {\n          \"parameters\": &#91;\n            {\n              \"name\": \"GroupId\",\n              \"value\": \"={{$credentials.groupId}}\"\n            }\n          ]\n        },\n        \"sendBody\": true,\n        \"bodyContentType\": \"json\",\n        \"jsonBody\": \"{\\\\n  \\\\\"file_id\\\\\": \\\\\"{{$node&#91;'Upload Audio File'].json&#91;'file_id']}}\\\\\",\\\\n  \\\\\"voice_name\\\\\": \\\\\"{{$node&#91;'Webhook'].json&#91;'body']&#91;'voice_name']}}\\\\\"\\\\n}\"\n      },\n      \"type\": \"n8n-nodes-base.httpRequest\",\n      \"typeVersion\": 4,\n      \"position\": &#91;400, 0],\n      \"name\": \"Clone Voice\",\n      \"credentials\": {\n        \"httpHeaderAuth\": {\n          \"id\": \"minimax_credentials_id\",\n          \"name\": \"MiniMax API\"\n        }\n      }\n    }\n  ],\n  \"connections\": {\n    \"Webhook\": {\n      \"main\": &#91;\n        &#91;\n          {\n            \"node\": \"Upload Audio File\",\n            \"type\": \"main\",\n            \"index\": 0\n          }\n        ]\n      ]\n    },\n    \"Upload Audio File\": {\n      \"main\": &#91;\n        &#91;\n          {\n            \"node\": \"Clone Voice\",\n            \"type\": \"main\",\n            \"index\": 0\n          }\n        ]\n      ]\n    }\n  }\n}\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u9ad8\u7ea7\u914d\u7f6e\u548c\u6700\u4f73\u5b9e\u8df5<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u9519\u8bef\u5904\u7406\u548c\u91cd\u8bd5\u673a\u5236<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"rules\": {\n      \"rules\": &#91;\n        {\n          \"type\": \"expression\",\n          \"expression\": \"{{$node&#91;'HTTP Request'].json&#91;'error']}}\",\n          \"output\": 1\n        }\n      ]\n    },\n    \"fallbackOutput\": 0\n  },\n  \"type\": \"n8n-nodes-base.switch\",\n  \"typeVersion\": 1,\n  \"position\": &#91;600, 0],\n  \"name\": \"Error Check\"\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u65e5\u5fd7\u8bb0\u5f55\u8282\u70b9<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"operation\": \"log\",\n    \"message\": \"=MiniMax API\u8c03\u7528\u6210\u529f: {{$json}}\",\n    \"level\": \"info\"\n  },\n  \"type\": \"n8n-nodes-base.function\",\n  \"typeVersion\": 1,\n  \"position\": &#91;800, 0],\n  \"name\": \"Log Success\"\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u6570\u636e\u9a8c\u8bc1\u548c\u6e05\u7406<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Function\u8282\u70b9\u4e2d\u7684JavaScript\u4ee3\u7801\nconst inputText = $input.all()&#91;0].json.text;\n\n\/\/ \u6e05\u7406\u6587\u672c\u4e2d\u7684\u7279\u6b8a\u5b57\u7b26\nconst cleanedText = inputText\n  .replace(\/&#91;\\\\n\\\\r\\\\t]\/g, ' ')  \/\/ \u79fb\u9664\u6362\u884c\u7b26\u548c\u5236\u8868\u7b26\n  .replace(\/\\\\s+\/g, ' ')       \/\/ \u5408\u5e76\u591a\u4e2a\u7a7a\u683c\n  .trim();                    \/\/ \u79fb\u9664\u9996\u5c3e\u7a7a\u683c\n\n\/\/ \u68c0\u67e5\u6587\u672c\u957f\u5ea6\u9650\u5236\nif (cleanedText.length &gt; 5000) {\n  throw new Error('\u6587\u672c\u957f\u5ea6\u8d85\u8fc75000\u5b57\u7b26\u9650\u5236');\n}\n\nreturn &#91;{\n  json: {\n    cleanedText: cleanedText,\n    originalLength: inputText.length,\n    cleanedLength: cleanedText.length\n  }\n}];\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4. \u6279\u91cf\u5904\u7406\u4f18\u5316<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"batchSize\": 5,\n    \"options\": {\n      \"reset\": false\n    }\n  },\n  \"type\": \"n8n-nodes-base.splitInBatches\",\n  \"typeVersion\": 1,\n  \"position\": &#91;400, 0],\n  \"name\": \"Batch Processing\"\n}\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. API\u8ba4\u8bc1\u9519\u8bef<\/h4>\n\n\n\n<p><strong>\u95ee\u9898<\/strong>: <code>Invalid API key<\/code> \u9519\u8bef <strong>\u89e3\u51b3\u65b9\u6848<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u68c0\u67e5API Host\u548cAPI Key\u662f\u5426\u5339\u914d\u533a\u57df<\/li>\n\n\n\n<li>\u786e\u8ba4API Key\u683c\u5f0f\u6b63\u786e\uff0c\u6ca1\u6709\u591a\u4f59\u7a7a\u683c<\/li>\n\n\n\n<li>\u9a8c\u8bc1Group ID\u662f\u5426\u6b63\u786e<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u7f51\u7edc\u8fde\u63a5\u95ee\u9898<\/h4>\n\n\n\n<p><strong>\u95ee\u9898<\/strong>: \u8bf7\u6c42\u8d85\u65f6\u6216\u8fde\u63a5\u5931\u8d25 <strong>\u89e3\u51b3\u65b9\u6848<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"timeout\": 30000,\n    \"redirect\": {\n      \"redirect\": {\n        \"followRedirects\": true,\n        \"maxRedirects\": 5\n      }\n    }\n  }\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u5185\u5b58\u4e0d\u8db3\u95ee\u9898<\/h4>\n\n\n\n<p><strong>\u95ee\u9898<\/strong>: n8n\u5d29\u6e83\u6216\u6027\u80fd\u95ee\u9898 <strong>\u89e3\u51b3\u65b9\u6848<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u589e\u52a0Node.js\u5185\u5b58\u9650\u5236\nexport NODE_OPTIONS=\"--max-old-space-size=4096\"\n\n# \u6216\u8005\u5728\u542f\u52a8\u65f6\u8bbe\u7f6e\nnode --max-old-space-size=4096 \/usr\/local\/bin\/n8n start\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4. SSL\u8bc1\u4e66\u95ee\u9898<\/h4>\n\n\n\n<p><strong>\u95ee\u9898<\/strong>: HTTPS\u8bc1\u4e66\u9a8c\u8bc1\u5931\u8d25 <strong>\u89e3\u51b3\u65b9\u6848<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"parameters\": {\n    \"options\": {\n      \"rejectUnauthorized\": false\n    }\n  }\n}\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5. \u5b57\u7b26\u7f16\u7801\u95ee\u9898<\/h4>\n\n\n\n<p><strong>\u95ee\u9898<\/strong>: \u4e2d\u6587\u5b57\u7b26\u663e\u793a\u5f02\u5e38 <strong>\u89e3\u51b3\u65b9\u6848<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\nexport LANG=zh_CN.UTF-8\nexport LC_ALL=zh_CN.UTF-8\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">6. \u5de5\u4f5c\u6d41\u6267\u884c\u9650\u5236<\/h4>\n\n\n\n<p><strong>\u95ee\u9898<\/strong>: \u5de5\u4f5c\u6d41\u6267\u884c\u65f6\u95f4\u8fc7\u957f <strong>\u89e3\u51b3\u65b9\u6848<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u589e\u52a0\u6267\u884c\u8d85\u65f6\u65f6\u95f4\nexport EXECUTIONS_TIMEOUT=3600\nexport EXECUTIONS_TIMEOUT_MAX=7200\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u76d1\u63a7\u548c\u7ef4\u62a4<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u65e5\u5fd7\u914d\u7f6e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u8bbe\u7f6e\u8be6\u7ec6\u65e5\u5fd7\u7ea7\u522b\nexport N8N_LOG_LEVEL=debug\nexport N8N_LOG_OUTPUT=file,console\nexport N8N_LOG_FILE_LOCATION=\/var\/log\/n8n\/\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u6027\u80fd\u76d1\u63a7<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f7f\u7528PM2\u76d1\u63a7\npm2 monit\n\n# \u67e5\u770bn8n\u8fdb\u7a0b\u72b6\u6001\npm2 status n8n\n\n# \u67e5\u770b\u65e5\u5fd7\npm2 logs n8n\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u5907\u4efd\u7b56\u7565<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5907\u4efdn8n\u6570\u636e\ncp -r ~\/.n8n\/ ~\/n8n-backup-$(date +%Y%m%d)\/\n\n# \u5907\u4efd\u6570\u636e\u5e93 (\u5982\u679c\u4f7f\u7528PostgreSQL)\npg_dump n8n &gt; n8n-backup-$(date +%Y%m%d).sql\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4. \u66f4\u65b0\u7ef4\u62a4<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u66f4\u65b0n8n\nnpm update -g n8n\n\n# \u91cd\u542f\u670d\u52a1\npm2 restart n8n\n\n# \u68c0\u67e5\u7248\u672c\nn8n --version\n\n<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u4ee5\u4e0a\u5b8c\u6574\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u6307\u5357\uff0c\u53ef\u4ee5\u6210\u529f\u642d\u5efan8n\u4e0eMiniMax\u7684\u96c6\u6210\u73af\u5883\uff0c\u5b9e\u73b0\u4e2a\u6027\u5316\u64ad\u5ba2AI\u751f\u6210\u5de5\u4f5c\u6d41\u3002\u8bb0\u4f4f\u8981\u5b9a\u671f\u5907\u4efd\u6570\u636e\uff0c\u76d1\u63a7\u7cfb\u7edf\u6027\u80fd\uff0c\u5e76\u4fdd\u6301\u8f6f\u4ef6\u66f4\u65b0\u4ee5\u786e\u4fdd\u6700\u4f73\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"video\">MiniMax + n8n \u89c6\u9891<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"468\" style=\"aspect-ratio: 854 \/ 468;\" width=\"854\" controls src=\"https:\/\/meta-quantum.today\/wp-content\/uploads\/2025\/05\/MiniMax-n8n-\u642d\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2AI\u751f\u6210\u5de5\u4f5c\u6d41.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u76f8\u5173\u89c6\u9891\u5185\u5bb9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">MiniMax\u5e73\u53f0\u529f\u80fd\u4ecb\u7ecd (00:01-02:11)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u591a\u6a21\u6001\u670d\u52a1<\/strong>\uff1aMiniMax\u63d0\u4f9b\u6587\u5b57\u8f6c\u8bed\u97f3\u3001\u6587\u5b57\u8f6c\u89c6\u9891\u3001\u6587\u5b57\u8f6c\u97f3\u4e50\u3001\u6587\u5b57\u8f6c\u56fe\u7247\u7b49\u670d\u52a1<\/li>\n\n\n\n<li><strong>\u58f0\u97f3\u514b\u9686\u529f\u80fd<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u4e0a\u4f2010-60\u79d2\u7684\u8bed\u97f3\u6587\u4ef6\u6216\u76f4\u63a5\u5f55\u5236\uff0c\u5b8c\u6210\u4e2a\u4eba\u58f0\u97f3\u7684\u514b\u9686<\/li>\n\n\n\n<li><strong>\u64cd\u4f5c\u6d41\u7a0b<\/strong>\uff1a\u6ce8\u518c\u767b\u5f55 \u2192 Audio \u2192 Voices \u2192 Create voice clone \u2192 \u4e0a\u4f20\/\u5f55\u5236\u8bed\u97f3 \u2192 \u547d\u540d \u2192 \u8f6c\u6362\u5b8c\u6210<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">n8n\u5de5\u4f5c\u6d41\u6784\u5efa (03:14-09:37)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u89e6\u53d1\u5668\u8282\u70b9<\/strong>\uff1a\u4ee5\u804a\u5929\u6d88\u606f\u4f5c\u4e3a\u89e6\u53d1\uff0c\u7528\u6237\u8f93\u5165\u611f\u5174\u8da3\u7684\u8bdd\u9898<\/li>\n\n\n\n<li><strong>AI\u4ee3\u7406\u8282\u70b9<\/strong>\uff1a\u914d\u7f6eOpenAI GPT-4o\u6a21\u578b\uff0c\u96c6\u6210Serp API\u8fdb\u884c\u6570\u636e\u641c\u7d22\u548c\u5185\u5bb9\u751f\u6210<\/li>\n\n\n\n<li><strong>\u7ffb\u8bd1\u5904\u7406\u8282\u70b9<\/strong>\uff1a\u5c06\u5185\u5bb9\u7ffb\u8bd1\u4e3a\u4e2d\u6587\u5e76\u91cd\u5199\u4e3a\u9002\u5408\u64ad\u5ba2\u7684\u8bed\u6599\u98ce\u683c<\/li>\n\n\n\n<li><strong>\u58f0\u97f3\u5217\u8868\u8282\u70b9<\/strong>\uff1a\u901a\u8fc7MiniMax API\u83b7\u53d6\u53ef\u7528\u58f0\u97f3\u5217\u8868<\/li>\n\n\n\n<li><strong>\u6587\u5b57\u8f6c\u8bed\u97f3\u8282\u70b9<\/strong>\uff1a\u4f7f\u7528MiniMax TTS API\u548c\u514b\u9686\u7684\u58f0\u97f3\u751f\u6210\u97f3\u9891<\/li>\n\n\n\n<li><strong>\u6587\u4ef6\u4e0b\u8f7d\u8282\u70b9<\/strong>\uff1a\u4e0b\u8f7d\u751f\u6210\u7684MP3\u97f3\u9891\u6587\u4ef6<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6280\u672f\u7ec6\u8282\u548c\u914d\u7f6e<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>API\u96c6\u6210<\/strong>\uff1a\u8be6\u7ec6\u4ecb\u7ecd\u4e86MiniMax API\u7684\u8c03\u7528\u65b9\u6cd5\u548c\u53c2\u6570\u914d\u7f6e<\/li>\n\n\n\n<li><strong>\u6570\u636e\u5904\u7406<\/strong>\uff1a\u5904\u7406\u6362\u884c\u7b26\u7b49\u7279\u6b8a\u5b57\u7b26\uff0c\u786e\u4fddJSON\u683c\u5f0f\u6b63\u786e<\/li>\n\n\n\n<li><strong>\u8ba4\u8bc1\u8bbe\u7f6e<\/strong>\uff1a\u5728n8n\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u51ed\u8bc1\u7c7b\u578b\u6765\u652f\u6301MiniMax API<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">MiniMax AI\u5e73\u53f0\u4e0e\u7b97\u6cd5\uff1aPython\u5b9e\u73b0\u4e0eAPI\u793a\u4f8b<\/h2>\n\n\n\n<p>\u57fa\u4e8e\u7814\u7a76\uff0c\u4ee5\u4e0b\u63d0\u4f9b\u4e00\u4e2a\u5173\u4e8eMiniMax\u7684\u5168\u9762\u6307\u5357\uff0c\u6db5\u76d6AI\u5e73\u53f0\u548c\u7b97\u6cd5\u4e24\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MiniMax AI\u5e73\u53f0\u6982\u8ff0<\/h3>\n\n\n\n<p>MiniMax\u662f\u4e00\u5bb6\u4e2d\u56fdAI\u516c\u53f8\uff0c\u63d0\u4f9b\u5b89\u5168\u3001\u7075\u6d3b\u3001\u53ef\u9760\u7684API\u670d\u52a1\uff0c\u5176\u65d7\u8230\u6a21\u578b\u5305\u62ec\u56fe\u50cf\u751f\u6210\u7684Image-01\u3001\u89c6\u9891\u751f\u6210\u7684T2V-01-Director\u3001\u5927\u8bed\u8a00\u6a21\u578bMiniMax-Text-01\uff0c\u4ee5\u53ca\u652f\u6301\u8bed\u97f3\u514b\u9686\u7684speech-01-hd\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Python\u96c6\u6210\u65b9\u6848<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u5b89\u88c5\u548c\u914d\u7f6e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u65b9\u6cd51\uff1a\u975e\u5b98\u65b9Python SDK\uff08\u4e13\u6ce8\u89c6\u9891\u751f\u6210\uff09\npip install minimax-python\n\n# \u65b9\u6cd52\uff1a\u5b98\u65b9MCP\u670d\u52a1\u5668\ncurl -LsSf &lt;https:\/\/astral.sh\/uv\/install.sh&gt; | sh\nuvx minimax-mcp -y\n\n# \u65b9\u6cd53\uff1a\u76f4\u63a5API\u8c03\u7528\npip install requests\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u57fa\u7840\u914d\u7f6e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nfrom minimax import Minimax\n\n# \u73af\u5883\u53d8\u91cf\u914d\u7f6e\nos.environ&#91;\"MINIMAX_API_KEY\"] = \"your_api_key_here\"\nos.environ&#91;\"MINIMAX_GROUP_ID\"] = \"your_group_id_here\"\n\n# \u76f4\u63a5\u521d\u59cb\u5316\nclient = Minimax(\n    api_key=\"your_api_key\",\n    group_id=\"your_group_id\"\n)\n\n# \u91cd\u8981\uff1aAPI\u4e3b\u673a\u56e0\u5730\u533a\u800c\u5f02\n# \u5168\u7403\u4e3b\u673a\uff1a&lt;https:\/\/api.minimaxi.chat&gt;\uff08\u6ce8\u610f\u989d\u5916\u7684\"i\"\uff09\n# \u4e2d\u56fd\u4e3b\u673a\uff1a&lt;https:\/\/api.minimax.chat&gt;\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u6587\u672c\u8f6c\u8bed\u97f3\u5b9e\u73b0<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>import requests\nimport json\n\ndef text_to_speech(text, voice_id=\"default\", api_key=\"your_api_key\", group_id=\"your_group_id\"):\n    \"\"\"\u4f7f\u7528MiniMax TTS API\u5c06\u6587\u672c\u8f6c\u6362\u4e3a\u8bed\u97f3\"\"\"\n    url = f\"&lt;https:\/\/api.minimaxi.chat\/v1\/t2a_v2?GroupId={group_id}&gt;\"\n\n    headers = {\n        \"Authorization\": f\"Bearer {api_key}\",\n        \"Content-Type\": \"application\/json\"\n    }\n\n    data = {\n        \"model\": \"speech-01-hd\",\n        \"text\": text,\n        \"voice_id\": voice_id,\n        \"output_format\": \"mp3\",\n        \"speed\": 1.0,\n        \"vol\": 50,\n        \"pitch\": 0,\n        \"timber\": 0,\n        \"emotion\": \"happy\"  # \u9009\u9879\uff1ahappy, sad, angry, fearful, disgusted, surprised, neutral\n    }\n\n    response = requests.post(url, headers=headers, json=data)\n\n    if response.status_code == 200:\n        result = response.json()\n        return result.get(\"audio_url\")\n    else:\n        print(f\"\u9519\u8bef: {response.status_code} - {response.text}\")\n        return None\n\n# \u4f7f\u7528\u793a\u4f8b\naudio_url = text_to_speech(\"\u4f60\u597d\uff0c\u8fd9\u662fMiniMax\u6587\u672c\u8f6c\u8bed\u97f3\u7684\u6d4b\u8bd5\uff01\")\nprint(f\"\u751f\u6210\u7684\u97f3\u9891URL: {audio_url}\")\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4. \u8bed\u97f3\u514b\u9686\u5b9e\u73b0<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>def clone_and_use_voice(audio_file_path, voice_name, text_to_speak, api_key, group_id):\n    \"\"\"\u5b8c\u6574\u7684\u8bed\u97f3\u514b\u9686\u5de5\u4f5c\u6d41\u7a0b\uff1a\u4e0a\u4f20\u97f3\u9891\u3001\u514b\u9686\u58f0\u97f3\u3001\u751f\u6210\u8bed\u97f3\"\"\"\n    # \u6b65\u9aa41\uff1a\u4e0a\u4f20\u97f3\u9891\u6587\u4ef6\n    print(\"\u6b63\u5728\u4e0a\u4f20\u97f3\u9891\u6587\u4ef6...\")\n    file_id = upload_audio_file(audio_file_path, api_key, group_id)\n\n    if not file_id:\n        return None\n\n    # \u6b65\u9aa42\uff1a\u514b\u9686\u58f0\u97f3\n    print(f\"\u6b63\u5728\u514b\u9686\u58f0\u97f3: {voice_name}\")\n    voice_id = clone_voice(file_id, voice_name, api_key, group_id)\n\n    if not voice_id:\n        return None\n\n    # \u6b65\u9aa43\uff1a\u4f7f\u7528\u514b\u9686\u7684\u58f0\u97f3\u751f\u6210\u8bed\u97f3\n    print(\"\u6b63\u5728\u4f7f\u7528\u514b\u9686\u7684\u58f0\u97f3\u751f\u6210\u8bed\u97f3...\")\n    audio_url = text_to_speech(text_to_speak, voice_id, api_key, group_id)\n\n    return audio_url\n\n# \u4f7f\u7528\u793a\u4f8b\nresult_url = clone_and_use_voice(\n    \"my_voice_sample.mp3\",\n    \"\u6211\u7684\u81ea\u5b9a\u4e49\u58f0\u97f3\",\n    \"\u8fd9\u662f\u6211\u514b\u9686\u7684\u58f0\u97f3\u5728\u8bf4\u8bdd\uff01\",\n    \"your_api_key\",\n    \"your_group_id\"\n)\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5. \u89c6\u9891\u751f\u6210<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>from minimax import Minimax\n\ndef generate_video_example():\n    client = Minimax()\n\n    # \u6587\u672c\u8f6c\u89c6\u9891\n    prompt = \"\"\"\u4e00\u6761\u5a01\u4e25\u7684\u5de8\u9f99\u5728\u5915\u9633\u67d3\u7ea2\u7684\u4e91\u5c42\u4e2d\u7ff1\u7fd4\uff0c\n    \u5b83\u7684\u9cde\u7247\u95ea\u70c1\u7740\u91d1\u8272\u5149\u8292\u3002\u955c\u5934\u5e73\u6ed1\u5730\u8ddf\u968f\u5de8\u9f99\u5728\u7d2b\u6a59\u8272\n    \u5929\u7a7a\u80cc\u666f\u4e0b\u4f18\u96c5\u7684\u7a7a\u4e2d\u52a8\u4f5c\u3002\"\"\"\n\n    client.generate_video(\n        text=prompt,\n        download_path=\"dragon_video.mp4\"\n    )\n\n    # \u56fe\u50cf\u8f6c\u89c6\u9891\uff0c\u5e26\u63d0\u793a\u5f15\u5bfc\n    prompt = \"\"\"\u56fe\u50cf\u4e2d\u7684\u5de8\u9f99\u82cf\u9192\u4e86\uff0c\u773c\u4e2d\u95ea\u70c1\u7740\u53e4\u8001\u7684\u529b\u91cf\u3002\n    \u955c\u5934\u7f13\u7f13\u73af\u7ed5\uff0c\u5de8\u9f99\u5c55\u5f00\u7fc5\u8180\uff0c\u5728\u8ff7\u96fe\u7f2d\u7ed5\u7684\u5c71\u95f4\u7a7a\u6c14\u4e2d\n    \u6380\u8d77\u9635\u9635\u6d9f\u6f2a\u3002\"\"\"\n\n    client.generate_video(\n        image=\"dragon_image.jpg\",\n        text=prompt,\n        download_path=\"dragon_awakening.mp4\"\n    )\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">6. \u5927\u8bed\u8a00\u6a21\u578b\u96c6\u6210<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f7f\u7528LangChain\u96c6\u6210\nfrom langchain_community.llms import Minimax\nfrom langchain.chains import LLMChain\nfrom langchain_core.prompts import PromptTemplate\n\n# \u8bbe\u7f6eMiniMax\u4e0eLangChain\nllm = Minimax(\n    minimax_api_key=\"your_api_key\",\n    minimax_group_id=\"your_group_id\"\n)\n\n# \u521b\u5efa\u7b80\u5355\u94fe\ntemplate = \"\"\"\u95ee\u9898: {question}\n\u7b54\u6848: \u8ba9\u6211\u4eec\u4e00\u6b65\u6b65\u601d\u8003\u3002\"\"\"\n\nprompt = PromptTemplate.from_template(template)\nchain = LLMChain(llm=llm, prompt=prompt)\n\n# \u4f7f\u7528\u793a\u4f8b\nresponse = chain.run(\"pandas\u548cNumPy\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\")\nprint(response)\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Minimax\u7b97\u6cd5\u5b9e\u73b0<\/h3>\n\n\n\n<p>\u9664\u4e86AI\u5e73\u53f0\uff0c\u6211\u8fd8\u63d0\u4f9b\u4e86\u7ecf\u5178\u7684minimax\u7b97\u6cd5\u5b9e\u73b0\uff0c\u7528\u4e8e\u6e38\u620f\u7406\u8bba\u4e2d\u7684\u6700\u4f18\u51b3\u7b56\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e95\u5b57\u68cbMinimax\u7b97\u6cd5<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\n\nclass TicTacToe:\n    def __init__(self):\n        self.board = &#91;' ' for _ in range(9)]\n\n    def minimax(self, depth, is_maximizing_player, alpha=-math.inf, beta=math.inf):\n        \"\"\"\u5e26alpha-beta\u526a\u679d\u7684Minimax\u7b97\u6cd5\"\"\"\n        winner = self.check_winner()\n\n        # \u7ec8\u6b62\u72b6\u6001\n        if winner == 'X':\n            return 1\n        elif winner == 'O':\n            return -1\n        elif winner == 'Tie':\n            return 0\n\n        if is_maximizing_player:\n            max_eval = -math.inf\n            for move in self.available_moves():\n                self.make_move(move, 'X')\n                eval_score = self.minimax(depth + 1, False, alpha, beta)\n                self.undo_move(move)\n                max_eval = max(max_eval, eval_score)\n                alpha = max(alpha, eval_score)\n                if beta &lt;= alpha:\n                    break  # Alpha-beta\u526a\u679d\n            return max_eval\n        else:\n            min_eval = math.inf\n            for move in self.available_moves():\n                self.make_move(move, 'O')\n                eval_score = self.minimax(depth + 1, True, alpha, beta)\n                self.undo_move(move)\n                min_eval = min(min_eval, eval_score)\n                beta = min(beta, eval_score)\n                if beta &lt;= alpha:\n                    break  # Alpha-beta\u526a\u679d\n            return min_eval\n\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u6700\u4f73\u5b9e\u8df5<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u9519\u8bef\u5904\u7406\u548c\u91cd\u8bd5\u673a\u5236<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>import time\nimport random\nfrom functools import wraps\n\ndef retry_with_exponential_backoff(max_retries=3, base_delay=1):\n    \"\"\"\u5b9e\u73b0\u6307\u6570\u9000\u907f\u91cd\u8bd5\u903b\u8f91\u7684\u88c5\u9970\u5668\"\"\"\n    def decorator(func):\n        @wraps(func)\n        def wrapper(*args, **kwargs):\n            for attempt in range(max_retries):\n                try:\n                    return func(*args, **kwargs)\n                except Exception as e:\n                    if attempt == max_retries - 1:\n                        raise e\n\n                    delay = base_delay * (2 ** attempt) + random.uniform(0, 1)\n                    print(f\"\u7b2c{attempt + 1}\u6b21\u5c1d\u8bd5\u5931\u8d25: {e}. {delay:.2f}\u79d2\u540e\u91cd\u8bd5...\")\n                    time.sleep(delay)\n\n            return None\n        return wrapper\n    return decorator\n\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<p>\u8fd9\u4e2a\u5168\u9762\u7684\u6307\u5357\u6db5\u76d6\u4e86\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>MiniMax AI\u5e73\u53f0<\/strong>\uff1a\u63d0\u4f9b\u5b89\u5168\u3001\u7075\u6d3b\u3001\u53ef\u9760\u7684API\u670d\u52a1\uff0c\u652f\u6301\u8d85\u8fc740,000\u5bb6\u4f01\u4e1a\u5ba2\u6237<\/li>\n\n\n\n<li><strong>\u591a\u6a21\u6001\u80fd\u529b<\/strong>\uff1a\u6587\u672c\u8f6c\u8bed\u97f3\u3001\u8bed\u97f3\u514b\u9686\u3001\u89c6\u9891\u751f\u6210\u3001\u56fe\u50cf\u751f\u6210\u3001\u5927\u8bed\u8a00\u6a21\u578b<\/li>\n\n\n\n<li><strong>Python\u96c6\u6210<\/strong>\uff1a\u591a\u79cd\u96c6\u6210\u65b9\u5f0f\uff0c\u5305\u62ec\u5b98\u65b9\u548c\u975e\u5b98\u65b9SDK<\/li>\n\n\n\n<li><strong>\u5b9e\u8df5\u793a\u4f8b<\/strong>\uff1a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5<\/li>\n\n\n\n<li><strong>\u7b97\u6cd5\u5b9e\u73b0<\/strong>\uff1a\u7ecf\u5178minimax\u7b97\u6cd5\u7528\u4e8e\u6e38\u620fAI<\/li>\n<\/ol>\n\n\n\n<p>MiniMax\u5e73\u53f0\u7279\u522b\u5728\u8bed\u97f3\u514b\u9686\u65b9\u9762\u8868\u73b0\u51fa\u8272\uff0c\u652f\u63015\u79d2\u5feb\u901f\u514b\u9686\u548c\u60c5\u611f\u667a\u80fd\u8bc6\u522b\uff0c\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684AI\u80fd\u529b\u96c6\u6210\u65b9\u6848\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5\u4e2a\u5173\u952e\u8981\u70b9\uff1a<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6280\u672f\u878d\u5408<\/strong>\uff1a\u6210\u529f\u7ed3\u5408\u4e86\u5927\u8bed\u8a00\u6a21\u578b\u3001\u58f0\u97f3\u514b\u9686\u548c\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u5b9e\u73b0\u7aef\u5230\u7aef\u7684\u64ad\u5ba2\u751f\u6210\u6d41\u7a0b<\/li>\n\n\n\n<li><strong>\u4e2a\u6027\u5316\u7279\u8272<\/strong>\uff1a\u901a\u8fc7MiniMax\u7684\u58f0\u97f3\u514b\u9686\u6280\u672f\uff0c\u80fd\u591f\u751f\u6210\u4fdd\u6301\u4e2a\u4eba\u58f0\u97f3\u7279\u8272\u7684\u64ad\u5ba2\u5185\u5bb9<\/li>\n\n\n\n<li><strong>\u5de5\u4f5c\u6d41\u81ea\u52a8\u5316<\/strong>\uff1a\u5229\u7528n8n\u6784\u5efa\u7684\u5de5\u4f5c\u6d41\u5b9e\u73b0\u4e86\u4ece\u8bdd\u9898\u8f93\u5165\u5230\u97f3\u9891\u8f93\u51fa\u7684\u5b8c\u5168\u81ea\u52a8\u5316\u5904\u7406<\/li>\n\n\n\n<li><strong>\u5185\u5bb9\u4f18\u5316<\/strong>\uff1a\u901a\u8fc7AI\u4ee3\u7406\u8fdb\u884c\u5185\u5bb9\u641c\u7d22\u3001\u7ffb\u8bd1\u548c\u91cd\u5199\uff0c\u786e\u4fdd\u64ad\u5ba2\u5185\u5bb9\u7684\u8d28\u91cf\u548c\u9002\u914d\u6027<\/li>\n\n\n\n<li><strong>\u5b9e\u7528\u6027\u5f3a<\/strong>\uff1a\u6574\u4e2a\u89e3\u51b3\u65b9\u6848\u5177\u6709\u5f88\u597d\u7684\u53ef\u590d\u5236\u6027\u548c\u6269\u5c55\u6027\uff0c\u9002\u5408\u5185\u5bb9\u521b\u4f5c\u8005\u4f7f\u7528<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcda \u53c2\u8003\u8d44\u6599\u5217\u8868<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">n8n\u5b98\u65b9\u6587\u6863<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>n8n Docs\u5b98\u65b9\u6587\u6863<\/strong> &#8211; <a href=\"https:\/\/docs.n8n.io\/\">https:\/\/docs.n8n.io\/<\/a>\n<ul class=\"wp-block-list\">\n<li>\u5de5\u4f5c\u6d41\u81ea\u52a8\u5316\u548c\u96c6\u6210\u7684\u7efc\u5408\u6307\u5357<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>n8n\u6258\u7ba1\u6587\u6863\u548c\u6307\u5357<\/strong> &#8211; <a href=\"https:\/\/docs.n8n.io\/hosting\/\">https:\/\/docs.n8n.io\/hosting\/<\/a>\n<ul class=\"wp-block-list\">\n<li>\u5b89\u88c5\u548c\u7ba1\u7406\u81ea\u6258\u7ba1n8n\u5b9e\u4f8b\u7684\u8d44\u6e90<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>npm\u5b89\u88c5\u6307\u5357<\/strong> &#8211; <a href=\"https:\/\/docs.n8n.io\/hosting\/installation\/npm\/\">https:\/\/docs.n8n.io\/hosting\/installation\/npm\/<\/a>\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528npm\u5b89\u88c5n8n\u7684\u8be6\u7ec6\u8bf4\u660e<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Docker\u5b89\u88c5\u6307\u5357<\/strong> &#8211; <a href=\"https:\/\/docs.n8n.io\/hosting\/installation\/docker\/\">https:\/\/docs.n8n.io\/hosting\/installation\/docker\/<\/a>\n<ul class=\"wp-block-list\">\n<li>Docker\u73af\u5883\u4e0b\u5b89\u88c5n8n\u7684\u914d\u7f6e\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>HTTP Request\u8282\u70b9\u6587\u6863<\/strong> &#8211; <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.httprequest\/\">https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.httprequest\/<\/a>\n<ul class=\"wp-block-list\">\n<li>HTTP Request\u8282\u70b9\u7684\u6280\u672f\u6587\u6863\u548c\u96c6\u6210\u6307\u5357<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>HTTP Request\u51ed\u8bc1\u914d\u7f6e<\/strong> &#8211; <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/credentials\/httprequest\/\">https:\/\/docs.n8n.io\/integrations\/builtin\/credentials\/httprequest\/<\/a>\n<ul class=\"wp-block-list\">\n<li>n8n\u4e2dHTTP Request\u51ed\u8bc1\u7684\u8ba4\u8bc1\u914d\u7f6e\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">GitHub\u8d44\u6e90<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>n8n\u5b98\u65b9GitHub\u4ed3\u5e93<\/strong> &#8211; <a href=\"https:\/\/github.com\/n8n-io\/n8n\">https:\/\/github.com\/n8n-io\/n8n<\/a>\n<ul class=\"wp-block-list\">\n<li>\u516c\u5e73\u4ee3\u7801\u5de5\u4f5c\u6d41\u81ea\u52a8\u5316\u5e73\u53f0\uff0c\u5305\u542b400+\u96c6\u6210<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>n8n\u5b89\u88c5\u6307\u5bfcGitHub Gist<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u5728VPS\u4e0a\u5b89\u88c5\u548c\u8fd0\u884cn8n\u7684\u8be6\u7ec6\u6b65\u9aa4<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e09\u65b9\u6559\u7a0b<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Hostinger n8n\u5b89\u88c5\u6559\u7a0b<\/strong> &#8211; <a href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-install-n8n\">https:\/\/www.hostinger.com\/tutorials\/how-to-install-n8n<\/a>\n<ul class=\"wp-block-list\">\n<li>\u5982\u4f55\u5728Ubuntu VPS\u4e0a\u6258\u7ba1\u81ea\u5df1\u7684\u81ea\u52a8\u5316\u5de5\u5177<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">MiniMax\u76f8\u5173\u8d44\u6e90<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>MiniMax\u5b98\u65b9\u7f51\u7ad9<\/strong> &#8211; <a href=\"https:\/\/www.minimax.io\/platform_overview\">https:\/\/www.minimax.io\/platform_overview<\/a>\n<ul class=\"wp-block-list\">\n<li>\u5b89\u5168\u3001\u7075\u6d3b\u3001\u53ef\u9760\u7684API\u670d\u52a1\u5e73\u53f0\u6982\u8ff0<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>MiniMax Python SDK<\/strong> &#8211; <a href=\"https:\/\/github.com\/jesuscopado\/minimax-python\">https:\/\/github.com\/jesuscopado\/minimax-python<\/a>\n<ul class=\"wp-block-list\">\n<li>\u975e\u5b98\u65b9Python\u5e93\uff0c\u4e13\u6ce8\u4e8e\u89c6\u9891\u751f\u6210\u529f\u80fd<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>MiniMax MCP\u670d\u52a1\u5668<\/strong> &#8211; <a href=\"https:\/\/github.com\/MiniMax-AI\/MiniMax-MCP\">https:\/\/github.com\/MiniMax-AI\/MiniMax-MCP<\/a>\n<ul class=\"wp-block-list\">\n<li>\u5b98\u65b9MiniMax\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\u670d\u52a1\u5668<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>MiniMax\u8bed\u97f3\u514b\u9686API\u6587\u6863<\/strong> &#8211; <a href=\"https:\/\/apidog.com\/blog\/how-to-clone-a-voice-using-minimaxs-t2a-01-hd-api\/\">https:\/\/apidog.com\/blog\/how-to-clone-a-voice-using-minimaxs-t2a-01-hd-api\/<\/a>\n<ul class=\"wp-block-list\">\n<li>T2A-01-HD API\u8bed\u97f3\u514b\u9686\u529f\u80fd\u4f7f\u7528\u6307\u5357<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>LangChain MiniMax\u96c6\u6210<\/strong> &#8211; <a href=\"https:\/\/python.langchain.com\/docs\/integrations\/llms\/minimax\/\">https:\/\/python.langchain.com\/docs\/integrations\/llms\/minimax\/<\/a>\n<ul class=\"wp-block-list\">\n<li>LangChain\u4e0eMiniMax\u7684\u96c6\u6210\u793a\u4f8b<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u6280\u672f\u53c2\u8003<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>MiniMax-Text-01\u6a21\u578b<\/strong> &#8211; <a href=\"https:\/\/github.com\/MiniMax-AI\/MiniMax-01\">https:\/\/github.com\/MiniMax-AI\/MiniMax-01<\/a>\n<ul class=\"wp-block-list\">\n<li>\u57fa\u4e8e\u7ebf\u6027\u6ce8\u610f\u529b\u7684\u5927\u8bed\u8a00\u6a21\u578b\u548c\u89c6\u89c9\u8bed\u8a00\u6a21\u578b<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>MiniMax Audio\u6a21\u578b\u5206\u6790<\/strong> &#8211; <a href=\"https:\/\/aimlapi.com\/blog\/minimax-audio-chinese-text-to-speech-ai-model-voice-cloning\">https:\/\/aimlapi.com\/blog\/minimax-audio-chinese-text-to-speech-ai-model-voice-cloning<\/a>\n<ul class=\"wp-block-list\">\n<li>\u4e2d\u56fd\u6587\u672c\u8f6c\u8bed\u97f3AI\u6a21\u578b\u548c\u8bed\u97f3\u514b\u9686\u6280\u672f<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>n8n\u4e0eMiniMax\u96c6\u6210\u6307\u5357\u6458\u8981:<br \/>\n\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u914d\u7f6en8n\u5de5\u4f5c\u6d41\u81ea\u52a8\u5316\u5e73\u53f0\uff0c\u5e76\u4e0eMiniMax AI\u670d\u52a1\u8fdb\u884c\u96c6\u6210\u3002\u6db5\u76d6\u4e09\u79cd\u5b89\u88c5\u65b9\u5f0f\uff1anpm\u3001Docker\u548cVPS\u90e8\u7f72\u3002\u91cd\u70b9\u8bb2\u89e3MiniMax API\u51ed\u8bc1\u914d\u7f6e\u3001HTTP Request\u8282\u70b9\u8bbe\u7f6e\uff0c\u4ee5\u53ca\u6784\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2\u751f\u6210\u5de5\u4f5c\u6d41\u3002\u5305\u542b\u6587\u672c\u8f6c\u8bed\u97f3\u3001\u8bed\u97f3\u514b\u9686\u3001\u89c6\u9891\u751f\u6210\u7b49\u529f\u80fd\u5b9e\u73b0\u3002\u63d0\u4f9b\u5b8c\u6574\u7684\u751f\u4ea7\u73af\u5883\u914d\u7f6e\u65b9\u6848\uff0c\u5305\u62ecNginx\u53cd\u5411\u4ee3\u7406\u3001SSL\u8bc1\u4e66\u548cPM2\u8fdb\u7a0b\u7ba1\u7406\uff0c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n","protected":false},"author":1,"featured_media":7792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,18,13,7],"tags":[],"class_list":["post-7791","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-education","category-quantum-and-u","category-quantum-mindset-programme"],"aioseo_notices":[],"featured_image_src":"https:\/\/meta-quantum.today\/wp-content\/uploads\/2025\/05\/MiniMax-n8n-\u642d\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2AI\u751f\u6210\u5de5\u4f5c\u6d41.jpg","featured_image_src_square":"https:\/\/meta-quantum.today\/wp-content\/uploads\/2025\/05\/MiniMax-n8n-\u642d\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2AI\u751f\u6210\u5de5\u4f5c\u6d41.jpg","author_info":{"display_name":"coffee","author_link":"https:\/\/meta-quantum.today\/?author=1"},"rbea_author_info":{"display_name":"coffee","author_link":"https:\/\/meta-quantum.today\/?author=1"},"rbea_excerpt_info":"n8n\u4e0eMiniMax\u96c6\u6210\u6307\u5357\u6458\u8981:\n\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u914d\u7f6en8n\u5de5\u4f5c\u6d41\u81ea\u52a8\u5316\u5e73\u53f0\uff0c\u5e76\u4e0eMiniMax AI\u670d\u52a1\u8fdb\u884c\u96c6\u6210\u3002\u6db5\u76d6\u4e09\u79cd\u5b89\u88c5\u65b9\u5f0f\uff1anpm\u3001Docker\u548cVPS\u90e8\u7f72\u3002\u91cd\u70b9\u8bb2\u89e3MiniMax API\u51ed\u8bc1\u914d\u7f6e\u3001HTTP Request\u8282\u70b9\u8bbe\u7f6e\uff0c\u4ee5\u53ca\u6784\u5efa\u4e2a\u6027\u5316\u64ad\u5ba2\u751f\u6210\u5de5\u4f5c\u6d41\u3002\u5305\u542b\u6587\u672c\u8f6c\u8bed\u97f3\u3001\u8bed\u97f3\u514b\u9686\u3001\u89c6\u9891\u751f\u6210\u7b49\u529f\u80fd\u5b9e\u73b0\u3002\u63d0\u4f9b\u5b8c\u6574\u7684\u751f\u4ea7\u73af\u5883\u914d\u7f6e\u65b9\u6848\uff0c\u5305\u62ecNginx\u53cd\u5411\u4ee3\u7406\u3001SSL\u8bc1\u4e66\u548cPM2\u8fdb\u7a0b\u7ba1\u7406\uff0c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u3002","category_list":"<a href=\"https:\/\/meta-quantum.today\/?cat=15\" rel=\"category\">AI<\/a>, <a href=\"https:\/\/meta-quantum.today\/?cat=18\" rel=\"category\">Education<\/a>, <a href=\"https:\/\/meta-quantum.today\/?cat=13\" rel=\"category\">Quantum and U<\/a>, <a href=\"https:\/\/meta-quantum.today\/?cat=7\" rel=\"category\">Quantum Mindset Programme<\/a>","comments_num":"0 comments","_links":{"self":[{"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/posts\/7791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7791"}],"version-history":[{"count":5,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/posts\/7791\/revisions"}],"predecessor-version":[{"id":7798,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/posts\/7791\/revisions\/7798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=\/wp\/v2\/media\/7792"}],"wp:attachment":[{"href":"https:\/\/meta-quantum.today\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meta-quantum.today\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}