API không kiểm duyệt tương thích OpenAI
Qwen API: hướng dẫn độc lập và giải pháp thay thế tương thích
Mô hình trọng số mở không kiểm duyệt chuyên dụng được cung cấp qua endpoint tương thích chuẩn OpenAI. Thanh toán token trả trước không có đăng ký hàng tháng hoặc định tuyến phức tạp.
- Mô hình trọng số mở không kiểm duyệt
- Cửa sổ ngữ cảnh 100k token
- Thanh toán token trả trước bằng tiền điện tử
Thử chỉ với một yêu cầu
curl https://api.qwenapi.top/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.qwenapi.top/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.qwenapi.top/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);
URL cơ sở API Qwen: Cách dùng và thiết lập
Tích hợp API Qwen: LangChain, SillyTavern, Cursor
Dùng thử API Qwen miễn phí: Nhận $0.50 và thử nghiệm mô hình
Qwen không kiểm duyệt: cách hoạt động và các lựa chọn thay thế