deepseek-v4-pro-0813

Text

The DeepSeek V4 flagship, with the series' strongest deep reasoning and code generation, suited to whole-codebase analysis, multi-step automation and demanding instructions.

Giá đầu vào

¥1.9899Giảm 55%

Thị trường: ¥4.422

/ M

Giá đầu ra

¥5.9697Giảm 55%

Thị trường: ¥13.266

/ M

Đọc cache

¥0.0663Giảm 55%

Thị trường: ¥0.1473

/ M

Đầu vào

Văn bản

Đầu ra

Văn bản

Tính phí theo giờ cao/thấp điểm

Giá thay đổi theo khung giờ UTC+8

Hiện đang giờ cao điểm

Bảng giá theo khung giờ

  • Đầu vào
    Giờ thấp điểm¥1.9899
    Giờ cao điểm¥3.9798
  • Đầu ra
    Giờ thấp điểm¥5.9697
    Giờ cao điểm¥11.9394
  • Đọc cache
    Giờ thấp điểm¥0.0663
    Giờ cao điểm¥0.1327
Hạng mụcGiờ thấp điểmGiờ cao điểm
Đầu vào¥1.9899¥3.9798
Đầu ra¥5.9697¥11.9394
Đọc cache¥0.0663¥0.1327

Giờ cao điểm (UTC+8): 09:00 - 12:00、14:00 - 18:00

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 deepseek/deepseek-v4-pro-0813 với API EasyAPI:

cURL
curl https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{
  "model": "deepseek/deepseek-v4-pro-0813",
  "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/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{"model":"deepseek/deepseek-v4-pro-0813","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/chat/completions
Authorization
Bearer $EASYAPI_API_KEY
Content-Type
application/json
Model
deepseek/deepseek-v4-pro-0813

Gửi yêu cầu chat completion, hỗ trợ cả phản hồi streaming và không streaming. 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ả
modelstring—ID mô hình, ví dụ openai/gpt-4o hoặc anthropic/claude-3-5-sonnet
messagesarray—Danh 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_tokensinteger—Số 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