qwen-max — ราคา, บริบท และประสิทธิภาพ
qwen-max เป็นโมเดลของ Alibaba มีบริบท 32.8K รองรับ Tools อินพุต $1.60 เอาต์พุต $6.40 ต่อ 1 ล้านโทเค็น
ภาพรวม
| ผู้ให้บริการ | Alibaba |
|---|---|
| บริบท | 32.8K |
| ความสามารถ | Tools |
| รูปแบบ API | openai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search |
| สูตรคิดเงิน | p * 1.6 + c * 6.4 |
Flagship Qwen model for complex reasoning, coding, and agentic workflowsราคา
| แพ็กเกจ | ตัวคูณ | อินพุต | เอาต์พุต | หมายเหตุ |
|---|---|---|---|---|
| ราคาฐาน | 1× | $1.60 | $6.40 | |
| Pro | 2× | $3.20 | $12.80 | Enterprise — full reasoning, high stability. |
| Max | 4× | $6.40 | $25.60 | Premium — max reasoning & stability. |
แสดงเฉพาะกลุ่มที่เปิดใช้งานสำหรับโมเดลนี้
ประสิทธิภาพ
| ปลายทาง API | https://api.airai.cc/v1 |
|---|---|
| เข้ากันได้กับ OpenAI | OpenAI-compatible |
คำถามที่พบบ่อย
qwen-max ราคาเท่าไหร่?
อินพุต $1.60, เอาต์พุต $6.40 ต่อโทเค็น 1 ล้าน
qwen-max มีหน้าต่างบริบทเท่าไร?
qwen-max มีหน้าต่างบริบท 32.8K ซึ่งเป็นขีดจำกัดโทเค็นรวมของอินพุตและเอาต์พุตต่อคำขอ
เรียกใช้ qwen-max จากโค้ดอย่างไร?
ตั้งค่า base_url เป็น https://api.airai.cc/v1 และ model เป็น qwen-max API เข้ากันได้กับ OpenAI ทั้งหมด
ทำไม qwen-max คืนค่า error 429?
429 คือการตอบกลับจำกัดอัตรา ลดการเรียกพร้อมกัน หน่วงเวลาก่อนลองใหม่ หรือเปลี่ยนแพ็กเกจที่มีโควตาสูงกว่า
เปรียบเทียบโมเดล
| Model | ผู้ให้บริการ | อินพุต | เอาต์พุต | บริบท |
|---|---|---|---|---|
| qwen-max | Alibaba | $1.60 | $6.40 | 32.8K |
| qwen3-max-2026-01-23 | Alibaba | - | — | 262.1K |
| qwen3.8-max | Alibaba | $2.00 | $6.00 | 1M |
| qwen3.7-plus | Alibaba | $0.40 | $1.60 | 1M |
| qwen-plus | Alibaba | $0.40 | $4.00 | 1M |
| qwen3-32b | Alibaba | $0.70 | $8.40 | 131.1K |
| qwen3-coder-flash | Alibaba | $0.30 | $1.50 | 1M |
| qwen3.5-plus | Alibaba | $0.40 | $2.40 | 1M |
| qwen3.7-max | Alibaba | $2.50 | $7.50 | 1M |
| qwen3.6-plus | Alibaba | $0.50 | $3.00 | 1M |
| qwen3-coder-30b-a3b-instruct | Alibaba | $0.45 | $2.25 | 262.1K |
| qwen3-8b | Alibaba | $0.18 | $2.10 | 131.1K |
| qwq-plus | Alibaba | $0.80 | $2.40 | 131.1K |
การแก้ปัญหา
429 คือการตอบกลับจำกัดอัตรา ลดการเรียกพร้อมกัน หน่วงเวลาก่อนลองใหม่ หรือเปลี่ยนแพ็กเกจที่มีโควตาสูงกว่า
สาเหตุที่พบบ่อย
- เรียกพร้อมกันมากเกินไป
- โควตาของแพ็กเกจปัจจุบันหมด
- ลองใหม่ทันทีโดยไม่หน่วงเวลา
วิธีแก้ไข
- จำกัดการเรียกพร้อมกันและหน่วงเวลาแบบ exponential
- เปลี่ยนเป็นแพ็กเกจโควตาสูงกว่า
- แคชคำขอที่ซ้ำกัน
วิธีเชื่อมต่อ
curl https://api.airai.cc/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-max",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(
api_key="<YOUR_API_KEY>",
base_url="https://api.airai.cc/v1"
)
response = client.chat.completions.create(
model="qwen-max",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "<YOUR_API_KEY>",
baseURL: "https://api.airai.cc/v1"
});
const response = await client.chat.completions.create({
model: "qwen-max",
messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);const OpenAI = require("openai");
const client = new OpenAI({
apiKey: "<YOUR_API_KEY>",
baseURL: "https://api.airai.cc/v1"
});
client.chat.completions.create({
model: "qwen-max",
messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));แทนที่ <YOUR_API_KEY> ด้วย API Key จากการตั้งค่าโทเค็นของคุณ
เอนด์พอยต์ที่รองรับ
openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search
Gemini SDK · TypeScript
import { GoogleGenerativeAI } from "@google/generative-ai";
const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "qwen-max" });
const result = await model.generateContent(
"Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());การรับรองตัวตน
คำขอทั้งหมดต้องแนบส่วนหัว Authorization: Bearer <TOKEN> เอนด์พอยต์รูปแบบ Anthropic ยังรองรับส่วนหัว x-api-key สร้าง API Key ได้ในหน้าโทเค็น ซึ่งคุณจำกัดตามโมเดล กลุ่ม IP และอัตราได้
พารามิเตอร์ที่รองรับ
| พารามิเตอร์ | ประเภท | ค่าเริ่มต้น | ช่วง | คำอธิบาย |
|---|---|---|---|---|
temperature | float | 1 | 0–2 | อุณหภูมิการสุ่มตัวอย่าง ยิ่งต่ำยิ่งเสถียร |
top_p | float | 1 | 0–1 | ความน่าจะเป็นสะสมของ nucleus sampling |
max_tokens | integer | — | — | จำนวน token สูงสุดในคำตอบ |
frequency_penalty | float | 0 | −2–2 | ลงโทษการทำซ้ำของ token ความถี่สูง |
presence_penalty | float | 0 | −2–2 | ส่งเสริมการนำหัวข้อใหม่มาใช้ |
stop | string[] | null | ≤ 4 | สตริงหยุดการสร้างสูงสุด 4 รายการ |
seed | integer | null | — | เมล็ดสำหรับการสุ่มที่ทำซ้ำได้มากขึ้น |
n | integer | 1 | — | จำนวนผลลัพธ์ที่สร้าง |
stream | boolean | false | — | ส่ง token แบบสตรีมผ่าน SSE |
response_format | object | — | — | บังคับให้ได้ JSON หรือผลลัพธ์ที่ตรงตาม schema |
tools | array | — | — | การประกาศเครื่องมือ / ฟังก์ชันที่โมเดลเรียกใช้ได้ |
tool_choice | string | object | auto | — | กลยุทธ์เลือกเครื่องมือหรือชื่อเครื่องมือเฉพาะ |
logprobs | boolean | false | — | ส่งกลับ log-probability ของแต่ละ token |
top_logprobs | integer | null | 0–20 | จำนวนความน่าจะเป็นสูงสุดที่ส่งคืนต่อ token |
logit_bias | map | — | — | แผนที่ logit bias ตาม token |
user | string | — | — | ตัวระบุผู้ใช้ปลายทางสำหรับการตรวจสอบความเสี่ยง |
ขีดจำกัดอัตรา
| ระดับ | RPM | TPM | RPD |
|---|---|---|---|
| Eco | 990 | 398K | 20K |
| Test | 980 | 393K | 20K |
อัปเดตข้อมูล: 2026-10-10 15:55