claude-opus-4-8 — ราคา, บริบท และประสิทธิภาพ
claude-opus-4-8 เป็นโมเดลของ Anthropic มีบริบท 1M รองรับ Reasoning, Tools, Files, Vision อินพุต $5.00 เอาต์พุต $25.00 ต่อ 1 ล้านโทเค็น
ภาพรวม
| ผู้ให้บริการ | Anthropic |
|---|---|
| บริบท | 1M |
| ความสามารถ | Reasoning, Tools, Files, Vision |
| รูปแบบ API | openai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search |
| สูตรคิดเงิน | p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25 |
Top Claude Opus tier for the hardest reasoning, coding, and long-horizon agentsราคา
| แพ็กเกจ | ตัวคูณ | อินพุต | เอาต์พุต | แคช (อินพุต) | หมายเหตุ |
|---|---|---|---|---|---|
| ราคาฐาน | 1× | $5.00 | $25.00 | $0.50 | |
| Test | 0.1× | $0.50 | $2.50 | $0.05 | Limited — degraded reasoning, unstable. Test only. |
| Eco | 0.3× | $1.50 | $7.50 | $0.15 | Standard — standard reasoning, moderate stability. |
| default | 0.6× | $3.00 | $15.00 | $0.30 | Standard — standard reasoning, moderate stability. |
| Plus | 1× | $5.00 | $25.00 | $0.50 | High — strong reasoning, stable. |
| Pro | 2× | $10.00 | $50.00 | $1.00 | Enterprise — full reasoning, high stability. |
| Max | 4× | $20.00 | $100.00 | $2.00 | Premium — max reasoning & stability. |
แสดงเฉพาะกลุ่มที่เปิดใช้งานสำหรับโมเดลนี้
ประสิทธิภาพ
| ปลายทาง API | https://api.airai.cc/v1 |
|---|---|
| เข้ากันได้กับ OpenAI | OpenAI-compatible |
คำถามที่พบบ่อย
claude-opus-4-8 ราคาเท่าไหร่?
อินพุต $5.00, เอาต์พุต $25.00 ต่อโทเค็น 1 ล้าน
claude-opus-4-8 มีหน้าต่างบริบทเท่าไร?
claude-opus-4-8 มีหน้าต่างบริบท 1M ซึ่งเป็นขีดจำกัดโทเค็นรวมของอินพุตและเอาต์พุตต่อคำขอ
เรียกใช้ claude-opus-4-8 จากโค้ดอย่างไร?
ตั้งค่า base_url เป็น https://api.airai.cc/v1 และ model เป็น claude-opus-4-8 API เข้ากันได้กับ OpenAI ทั้งหมด
ทำไม claude-opus-4-8 คืนค่า error 429?
429 คือการตอบกลับจำกัดอัตรา ลดการเรียกพร้อมกัน หน่วงเวลาก่อนลองใหม่ หรือเปลี่ยนแพ็กเกจที่มีโควตาสูงกว่า
เปรียบเทียบโมเดล
| Model | ผู้ให้บริการ | อินพุต | เอาต์พุต | บริบท |
|---|---|---|---|---|
| claude-opus-4-8 | Anthropic | $5.00 | $25.00 | 1M |
| claude-haiku-4-5-20251001 | Anthropic | $1.00 | $5.00 | 200K |
| claude-sonnet-5 | Anthropic | $2.00 | $10.00 | 1M |
| claude-3-5-haiku-20241022 | Anthropic | $0.80 | $4.00 | ไม่ระบุ |
| claude-opus-4-1-20250805 | Anthropic | $13.50 | $67.50 | ไม่ระบุ |
| claude-haiku-4-5 | Anthropic | $1.00 | $5.00 | 200K |
| claude-sonnet-4-20250514 | Anthropic | $2.70 | $13.50 | ไม่ระบุ |
| claude-sonnet-4-6-thinking | Anthropic | $3.00 | $15.00 | ไม่ระบุ |
| claude-sonnet-5-5 | Anthropic | $2.00 | $10.00 | ไม่ระบุ |
| claude-fable-5.1 | Anthropic | $10.00 | $50.00 | ไม่ระบุ |
| claude-sonnet-4-5-20250929 | Anthropic | $3.00 | $15.00 | 1M |
| claude-opus-4-5-20251101-thinking | Anthropic | $5.00 | $25.00 | ไม่ระบุ |
| claude-opus-4-6 | Anthropic | $5.00 | $25.00 | 1M |
การแก้ปัญหา
429 คือการตอบกลับจำกัดอัตรา ลดการเรียกพร้อมกัน หน่วงเวลาก่อนลองใหม่ หรือเปลี่ยนแพ็กเกจที่มีโควตาสูงกว่า
สาเหตุที่พบบ่อย
- เรียกพร้อมกันมากเกินไป
- โควตาของแพ็กเกจปัจจุบันหมด
- ลองใหม่ทันทีโดยไม่หน่วงเวลา
วิธีแก้ไข
- จำกัดการเรียกพร้อมกันและหน่วงเวลาแบบ exponential
- เปลี่ยนเป็นแพ็กเกจโควตาสูงกว่า
- แคชคำขอที่ซ้ำกัน
วิธีเชื่อมต่อ
curl https://api.airai.cc/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-8",
"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="claude-opus-4-8",
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: "claude-opus-4-8",
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: "claude-opus-4-8",
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: "claude-opus-4-8" });
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 18:35