配置详情

返回

配置详情

ID:2ec43e72308347e4945f15b8c0bd978f

名称:claude

模型ID:stackai-2ec43e72

转发模式:full

创建时间:2025-10-19 00:20:14

API 地址:https://api.stack-ai.com/inference/v0/run/98101235-0cb1-444b-9e13-633f524ce17c/68cac8d2c47e55483130e1f7

代理密钥:sk-proxy-KGIoK4xPPlQ9bigeRYjKm3VMTTGz5TXP

使用方式

在调用时,使用下方的 Model 与 代理 API Key:

curl
curl -X POST "https://api.yunxik.site/v1/chat/completions" \
-H "Authorization: Bearer sk-proxy-KGIoK4xPPlQ9bigeRYjKm3VMTTGz5TXP" \
-H "Content-Type: application/json" \
-d '{
  "model": "stackai-2ec43e72",
  "messages": [{"role":"user","content":"你好"}],
  "user": "your-user-id"
}'
        
Node.js (openai SDK)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.yunxik.site/v1", apiKey: "sk-proxy-KGIoK4xPPlQ9bigeRYjKm3VMTTGz5TXP" });
const res = await client.chat.completions.create({
  model: "stackai-2ec43e72",
  messages: [{ role: "user", content: "你好" }],
  user: "your-user-id",
});
console.log(res.choices[0].message.content);
        
Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.yunxik.site/v1", api_key="sk-proxy-KGIoK4xPPlQ9bigeRYjKm3VMTTGz5TXP")
res = client.chat.completions.create(
  model="stackai-2ec43e72",
  messages=[{"role": "user", "content": "你好"}],
  user="your-user-id",
)
print(res.choices[0].message.content)
        

危险操作