qwen3-coder-30b-a3b-instruct — ราคา, บริบท และประสิทธิภาพ

qwen3-coder-30b-a3b-instruct เป็นโมเดลของ Alibaba มีบริบท 262.1K รองรับ Tools, Open Weights อินพุต $0.45 เอาต์พุต $2.25 ต่อ 1 ล้านโทเค็น

ภาพรวม

ผู้ให้บริการAlibaba
บริบท262.1K
ความสามารถTools, Open Weights
รูปแบบ APIopenai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search
สูตรคิดเงินp * 0.45 + c * 2.25) : len <= 128000 ? tier("32k_128k", p * 0.75 + c * 3.75) : tier("128k_plus", p * 1.2 + c * 6
Smaller Qwen coder for efficient local agents and repo-level fixes

ราคา

แพ็กเกจตัวคูณอินพุตเอาต์พุตหมายเหตุ
ราคาฐาน1×$0.45$2.25
Pro2×$0.90$4.50Enterprise — full reasoning, high stability.
Max4×$1.80$9.00Premium — max reasoning & stability.

แสดงเฉพาะกลุ่มที่เปิดใช้งานสำหรับโมเดลนี้

ประสิทธิภาพ

ปลายทาง APIhttps://api.airai.cc/v1
เข้ากันได้กับ OpenAIOpenAI-compatible

คำถามที่พบบ่อย

qwen3-coder-30b-a3b-instruct ราคาเท่าไหร่?
อินพุต $0.45, เอาต์พุต $2.25 ต่อโทเค็น 1 ล้าน
qwen3-coder-30b-a3b-instruct มีหน้าต่างบริบทเท่าไร?
qwen3-coder-30b-a3b-instruct มีหน้าต่างบริบท 262.1K ซึ่งเป็นขีดจำกัดโทเค็นรวมของอินพุตและเอาต์พุตต่อคำขอ
เรียกใช้ qwen3-coder-30b-a3b-instruct จากโค้ดอย่างไร?
ตั้งค่า base_url เป็น https://api.airai.cc/v1 และ model เป็น qwen3-coder-30b-a3b-instruct API เข้ากันได้กับ OpenAI ทั้งหมด
ทำไม qwen3-coder-30b-a3b-instruct คืนค่า error 429?
429 คือการตอบกลับจำกัดอัตรา ลดการเรียกพร้อมกัน หน่วงเวลาก่อนลองใหม่ หรือเปลี่ยนแพ็กเกจที่มีโควตาสูงกว่า

เปรียบเทียบโมเดล

Modelผู้ให้บริการอินพุตเอาต์พุตบริบท
qwen3-coder-30b-a3b-instructAlibaba$0.45$2.25262.1K
qwen3-max-2026-01-23Alibaba-—262.1K
qwen3.8-maxAlibaba$2.00$6.001M
qwen3.7-plusAlibaba$0.40$1.601M
qwen-plusAlibaba$0.40$4.001M
qwen3-32bAlibaba$0.70$8.40131.1K
qwen3-coder-flashAlibaba$0.30$1.501M
qwen3.5-plusAlibaba$0.40$2.401M
qwen3.7-maxAlibaba$2.50$7.501M
qwen3.6-plusAlibaba$0.50$3.001M
qwen-maxAlibaba$1.60$6.4032.8K
qwen3-8bAlibaba$0.18$2.10131.1K
qwq-plusAlibaba$0.80$2.40131.1K

การแก้ปัญหา

429 คือการตอบกลับจำกัดอัตรา ลดการเรียกพร้อมกัน หน่วงเวลาก่อนลองใหม่ หรือเปลี่ยนแพ็กเกจที่มีโควตาสูงกว่า

สาเหตุที่พบบ่อย

  • เรียกพร้อมกันมากเกินไป
  • โควตาของแพ็กเกจปัจจุบันหมด
  • ลองใหม่ทันทีโดยไม่หน่วงเวลา

วิธีแก้ไข

  • จำกัดการเรียกพร้อมกันและหน่วงเวลาแบบ exponential
  • เปลี่ยนเป็นแพ็กเกจโควตาสูงกว่า
  • แคชคำขอที่ซ้ำกัน

วิธีเชื่อมต่อ

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-coder-30b-a3b-instruct",
    "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="qwen3-coder-30b-a3b-instruct",
    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: "qwen3-coder-30b-a3b-instruct",
  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: "qwen3-coder-30b-a3b-instruct",
  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: "qwen3-coder-30b-a3b-instruct" });

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 และอัตราได้

พารามิเตอร์ที่รองรับ

พารามิเตอร์ประเภทค่าเริ่มต้นช่วงคำอธิบาย
temperaturefloat10–2อุณหภูมิการสุ่มตัวอย่าง ยิ่งต่ำยิ่งเสถียร
top_pfloat10–1ความน่าจะเป็นสะสมของ nucleus sampling
max_tokensinteger——จำนวน token สูงสุดในคำตอบ
frequency_penaltyfloat0−2–2ลงโทษการทำซ้ำของ token ความถี่สูง
presence_penaltyfloat0−2–2ส่งเสริมการนำหัวข้อใหม่มาใช้
stopstring[]null≤ 4สตริงหยุดการสร้างสูงสุด 4 รายการ
seedintegernull—เมล็ดสำหรับการสุ่มที่ทำซ้ำได้มากขึ้น
ninteger1—จำนวนผลลัพธ์ที่สร้าง
streambooleanfalse—ส่ง token แบบสตรีมผ่าน SSE
response_formatobject——บังคับให้ได้ JSON หรือผลลัพธ์ที่ตรงตาม schema
toolsarray——การประกาศเครื่องมือ / ฟังก์ชันที่โมเดลเรียกใช้ได้
tool_choicestring | objectauto—กลยุทธ์เลือกเครื่องมือหรือชื่อเครื่องมือเฉพาะ
logprobsbooleanfalse—ส่งกลับ log-probability ของแต่ละ token
top_logprobsintegernull0–20จำนวนความน่าจะเป็นสูงสุดที่ส่งคืนต่อ token
logit_biasmap——แผนที่ logit bias ตาม token
userstring——ตัวระบุผู้ใช้ปลายทางสำหรับการตรวจสอบความเสี่ยง

ขีดจำกัดอัตรา

ระดับRPMTPMRPD
Eco990398K20K
Test980393K20K

อัปเดตข้อมูล: 2026-10-10 15:55

ฝ่ายสนับสนุนด้านเทคนิคบริการลูกค้าออนไลน์
กลับไปด้านบน