Claude Opus 5.5 (High)
claude-opus-5-5-high
Thông số
- Nhà cung cấp
- Anthropic
- Loại
- Chat
- Đầu vào
- Văn bản, Ảnh
- Đầu ra
- Văn bản
- Ngữ cảnh
- 1M
- Output tối đa
- 128K
- Định dạng API
- Chat Completions, Anthropic Messages
Giá
| Mục | VNĐ | Credit | Đơn vị |
|---|---|---|---|
| Input | ~110.000đ | 110.000 credit | / 1M token |
| Output | ~550.000đ | 550.000 credit | / 1M token |
| Đọc bộ nhớ đệm | ~5.500đ | 5.500 credit | / 1M token |
| Ghi bộ nhớ đệm | ~137.500đ | 137.500 credit | / 1M token |
1 credit = 1đ. Credit trừ theo usage thực tế sau mỗi request. Xem bảng giá và gói nạp
Bắt đầu nhanh
- Tạo API key tại trang API key (cần đăng ký trước).
- Lưu key vào biến môi trường
WIROUTER_API_KEY. - Gọi API với base URL
https://api.wirouter.store/v1và modelclaude-opus-5-5-high.
export WIROUTER_API_KEY="your-api-key"
curl -s https://api.wirouter.store/v1/models -H "Authorization: Bearer $WIROUTER_API_KEY"
Gọi API
Chat Completions POST /v1/chat/completions
curl -s https://api.wirouter.store/v1/chat/completions \
-H "Authorization: Bearer $WIROUTER_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<'EOF'
{
"model": "claude-opus-5-5-high",
"messages": [
{
"role": "user",
"content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
]
}
EOF
import base64
import os
import requests
API_KEY = os.environ["WIROUTER_API_KEY"]
resp = requests.post(
"https://api.wirouter.store/v1/chat/completions",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"model": "claude-opus-5-5-high",
"messages": [
{
"role": "user",
"content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
]
},
timeout=300,
)
resp.raise_for_status()
data = resp.json()
print(data["choices"][0]["message"]["content"])
// Node 18+ (lưu thành file .mjs)
import fs from "node:fs";
const apiKey = process.env.WIROUTER_API_KEY;
const resp = await fetch("https://api.wirouter.store/v1/chat/completions", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"model": "claude-opus-5-5-high",
"messages": [
{
"role": "user",
"content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
]
}),
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}: ${await resp.text()}`);
const data = await resp.json();
console.log(data.choices[0].message.content);
Anthropic Messages POST /v1/messages
curl -s https://api.wirouter.store/v1/messages \
-H "x-api-key: $WIROUTER_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
--data @- <<'EOF'
{
"model": "claude-opus-5-5-high",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
]
}
EOF
import base64
import os
import requests
API_KEY = os.environ["WIROUTER_API_KEY"]
resp = requests.post(
"https://api.wirouter.store/v1/messages",
headers={"x-api-key": API_KEY, "anthropic-version": "2023-06-01"},
json={
"model": "claude-opus-5-5-high",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
]
},
timeout=300,
)
resp.raise_for_status()
data = resp.json()
print("".join(b.get("text", "") for b in data["content"]))
// Node 18+ (lưu thành file .mjs)
import fs from "node:fs";
const apiKey = process.env.WIROUTER_API_KEY;
const resp = await fetch("https://api.wirouter.store/v1/messages", {
method: "POST",
headers: { "x-api-key": apiKey, "anthropic-version": "2023-06-01", "Content-Type": "application/json" },
body: JSON.stringify({
"model": "claude-opus-5-5-high",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
]
}),
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}: ${await resp.text()}`);
const data = await resp.json();
console.log(data.content.map((b) => b.text ?? "").join(""));
Gửi ảnh
Ví dụ đọc ảnh từ file photo.jpg.
Chat Completions · ảnh base64 POST /v1/chat/completions
Model này không tải ảnh từ URL: ảnh gửi qua URL bị bỏ qua mà không báo lỗi. Hãy gửi ảnh dạng base64 như ví dụ dưới.
IMG=$(base64 < photo.jpg | tr -d '\n')
curl -s https://api.wirouter.store/v1/chat/completions \
-H "Authorization: Bearer $WIROUTER_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"model": "claude-opus-5-5-high",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Mô tả bức ảnh này trong một câu."
},
{
"type": "image_url",
"image_url": {
"url": "data:image/jpeg;base64,${IMG}"
}
}
]
}
]
}
EOF
import base64
import os
import requests
API_KEY = os.environ["WIROUTER_API_KEY"]
image_b64 = base64.b64encode(open("photo.jpg", "rb").read()).decode()
resp = requests.post(
"https://api.wirouter.store/v1/chat/completions",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"model": "claude-opus-5-5-high",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Mô tả bức ảnh này trong một câu."
},
{
"type": "image_url",
"image_url": {
"url": f"data:image/jpeg;base64,{image_b64}"
}
}
]
}
]
},
timeout=300,
)
resp.raise_for_status()
data = resp.json()
print(data["choices"][0]["message"]["content"])
// Node 18+ (lưu thành file .mjs)
import fs from "node:fs";
const apiKey = process.env.WIROUTER_API_KEY;
const imageB64 = fs.readFileSync("photo.jpg").toString("base64");
const resp = await fetch("https://api.wirouter.store/v1/chat/completions", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"model": "claude-opus-5-5-high",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Mô tả bức ảnh này trong một câu."
},
{
"type": "image_url",
"image_url": {
"url": `data:image/jpeg;base64,${imageB64}`
}
}
]
}
]
}),
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}: ${await resp.text()}`);
const data = await resp.json();
console.log(data.choices[0].message.content);
Anthropic Messages · image POST /v1/messages
IMG=$(base64 < photo.jpg | tr -d '\n')
curl -s https://api.wirouter.store/v1/messages \
-H "x-api-key: $WIROUTER_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
--data @- <<EOF
{
"model": "claude-opus-5-5-high",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": "${IMG}"
}
},
{
"type": "text",
"text": "Mô tả bức ảnh này trong một câu."
}
]
}
]
}
EOF
import base64
import os
import requests
API_KEY = os.environ["WIROUTER_API_KEY"]
image_b64 = base64.b64encode(open("photo.jpg", "rb").read()).decode()
resp = requests.post(
"https://api.wirouter.store/v1/messages",
headers={"x-api-key": API_KEY, "anthropic-version": "2023-06-01"},
json={
"model": "claude-opus-5-5-high",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": image_b64
}
},
{
"type": "text",
"text": "Mô tả bức ảnh này trong một câu."
}
]
}
]
},
timeout=300,
)
resp.raise_for_status()
data = resp.json()
print("".join(b.get("text", "") for b in data["content"]))
// Node 18+ (lưu thành file .mjs)
import fs from "node:fs";
const apiKey = process.env.WIROUTER_API_KEY;
const imageB64 = fs.readFileSync("photo.jpg").toString("base64");
const resp = await fetch("https://api.wirouter.store/v1/messages", {
method: "POST",
headers: { "x-api-key": apiKey, "anthropic-version": "2023-06-01", "Content-Type": "application/json" },
body: JSON.stringify({
"model": "claude-opus-5-5-high",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": imageB64
}
},
{
"type": "text",
"text": "Mô tả bức ảnh này trong một câu."
}
]
}
]
}),
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}: ${await resp.text()}`);
const data = await resp.json();
console.log(data.content.map((b) => b.text ?? "").join(""));
Dùng với công cụ
export ANTHROPIC_BASE_URL="https://api.wirouter.store"
export ANTHROPIC_AUTH_TOKEN="$WIROUTER_API_KEY"
claude --model claude-opus-5-5-high
Base URL: https://api.wirouter.store/v1
API key: $WIROUTER_API_KEY
Model: claude-opus-5-5-high
Lỗi thường gặp
401- API key sai, đã bị thu hồi hoặc tài khoản hết credit. Kiểm tra key và số dư.
429- Model tạm hết quota hoặc đang cooldown. Thử lại sau số giây trong header
Retry-After. 400- Request không hợp lệ, thường do sai model ID. Dùng đúng ID
claude-opus-5-5-high. 524- Request chạy quá 100 giây nên bị cắt. Dùng stream hoặc rút gọn yêu cầu.