Tổng quan & Tính năng
Lightning-fast responsiveness with high accuracy.
Cửa sổ Ngữ cảnh
200K tokens
Token Đầu ra Tối đa
16,384 tokens
Ngày Phát hành
Nov 04, 2024
Tư duy Suy luận
Tiêu chuẩn
• Hàng đầu
• Hiệu năng đỉnh cao
$
Bảng giá Token (Trên 1M tokens)
Mô hình chi trả Pay-As-You-Go theo lượng token thực tế. Không phí duy trì, không cam kết tối thiểu, tự động trừ tiền ví theo thời gian thực.
Đầu vào (Prompt Tokens)
2.108 ₫/M
$0.0812/M
20.000 ₫/M
$0.80/M
90% OFF
Đầu ra (Completion Tokens)
2.108 ₫/M
$0.0812/M
80.000 ₫/M
$3.20/M
97% OFF
Giá niêm yết chính hãng: $0.80 / $3.20 trên 1M tokens. Tiết kiệm tới 90% qua Gateway.
Tích hợp API Khởi động nhanh
Tương thích hoàn toàn với thư viện OpenAI SDK tiêu chuẩn. Chỉ cần thay Base URL và truyền Model ID claude-3-5-haiku-20241022:
curl https://giahuynexus.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "claude-3-5-haiku-20241022",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, how can you help me today?"}
],
"temperature": 0.7
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://giahuynexus.com/v1"
)
response = client.chat.completions.create(
model="claude-3-5-haiku-20241022",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, world!"}
]
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://giahuynexus.com/v1",
});
const response = await openai.chat.completions.create({
model: "claude-3-5-haiku-20241022",
messages: [{ role: "user", content: "Hello, world!" }],
});
console.log(response.choices[0].message.content);