claude-opus-5

TEXT

Flagship model for demanding reasoning, coding, and long-horizon agentic work, spanning end-to-end software, code review, parallel subagent coordination, visual analysis of charts and documents, and complex office deliverables.

Giá đầu vào

$4.25Giảm 15%

Thị trường: $5

/ M

Giá đầu ra

$21.25Giảm 15%

Thị trường: $25

/ M

Đọc cache

$0.425Giảm 15%

Thị trường: $0.5

/ M

Ghi cache

$5.3125Giảm 15%

Thị trường: $6.25

/ M

Đầu vào

Văn bản

Đầu ra

Văn bản

API

Bắt đầu nhanh

Mã sẵn sàng để gọi mô hình này qua API tương thích OpenAI của EasyAPI.

1

Lấy API key

Tạo API token trong console và đặt làm biến môi trường:

Thay sk-xxxxxxxx bằng mã API từ console (Bearer Token).

Tạo API token
shell
export EASYAPI_API_KEY=sk-xxxxxxxx
2

Gửi yêu cầu đầu tiên

Dùng anthropic/claude-opus-5 với API EasyAPI:

cURL
curl https://token.easyapi.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{
  "model": "anthropic/claude-opus-5",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'
3

Bật streaming

Thêm "stream": true vào body để nhận phản hồi qua SSE:

curl
curl -N https://token.easyapi.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{"model":"anthropic/claude-opus-5","messages":[{"role":"user","content":"Hello!"}],"stream":true}'

Endpoint

Gửi yêu cầu chat completion. Hỗ trợ streaming và non-streaming.

POSThttps://token.easyapi.com/v1/messages
Authorization
Bearer $EASYAPI_API_KEY
Content-Type
application/json
Model
anthropic/claude-opus-5

Gửi yêu cầu chat completion, hỗ trợ cả phản hồi streaming và không streaming. Tài liệu

POSThttps://token.easyapi.com/v1/messages
Authorization
Bearer $EASYAPI_API_KEY
Content-Type
application/json
Model
anthropic/claude-opus-5

Định dạng tương thích Anthropic Messages API, hỗ trợ văn bản, hình ảnh và gọi công cụ. Tài liệu

GEThttps://token.easyapi.com/v1/models
Authorization
Bearer $EASYAPI_API_KEY

Lấy danh sách mô hình khả dụng cho tài khoản hiện tại. Tài liệu

Tham số

TênKiểuMặc địnhMô tả
modelstringID mô hình, ví dụ openai/gpt-4o hoặc anthropic/claude-3-5-sonnet
messagesarrayDanh sách tin nhắn hội thoại, mỗi mục gồm role và content
streambooleanfalseKhi đặt true, phản hồi được stream qua SSE
temperaturefloat1Nhiệt độ lấy mẫu; càng cao càng ngẫu nhiên
max_tokensintegerSố token tối đa được tạo trong một phản hồi
top_pfloat1Nucleus sampling; giới hạn xác suất tích lũy của các token ứng viên
frequency_penaltyfloat0Phạt tần suất; giảm lặp từ
presence_penaltyfloat0Phạt hiện diện; khuyến khích chủ đề mới

Dùng SDK bên thứ ba

SDK chính thức OpenAI và khác hoạt động khi đổi base URL. Xem hướng dẫn tích hợp