qwen3.7-flash

Chat

The lightweight vision-language reasoning model of the Qwen3.7 series, strong at object recognition, spatial understanding and real-world visual perception, built for multimodal agents, visual coding, search and computer use.

Giá đầu vào

¥0.201

/ M

Giá đầu ra

¥0.871

/ M

Đọc cache

¥0.0402

/ M

Ghi cache

¥0.2546

/ M

Đầu vào

Văn bản

Đầu ra

Văn bản

Giá động

Giá thay đổi theo bậc sử dụng và điều kiện yêu cầu

Bảng giá theo bậc

  • baseLength < 32K
    Đầu vào¥0.201
    Đầu ra¥0.871
    Đọc cache¥0.0402
    Ghi cache¥0.2546
  • tier_2Length > 32K && Output < 256K
    Đầu vào¥0.67
    Đầu ra¥2.68
    Đọc cache¥0.134
    Ghi cache¥0.8375
  • tier_3
    Đầu vào¥1.34
    Đầu ra¥5.36
    Đọc cache¥0.268
    Ghi cache¥1.675
BậcĐầu vàoĐầu raĐọc cacheGhi cache
baseLength < 32K
¥0.201¥0.871¥0.0402¥0.2546
tier_2Length > 32K && Output < 256K
¥0.67¥2.68¥0.134¥0.8375
tier_3
¥1.34¥5.36¥0.268¥1.675

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 qwen/qwen3.7-flash 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": "qwen/qwen3.7-flash",
  "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":"qwen/qwen3.7-flash","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
qwen/qwen3.7-flash

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