Tổng quan
Quota khả dụng
{{ overview.quota?.cubesAvailable || 0 }} Cubes
Đã dùng tháng này
{{ overview.quota?.cubesUsedThisMonth?.toFixed(2) || 0 }} Cubes
Requests hôm nay
{{ overview.usage?.requestsToday || 0 }}
Tokens tháng này
{{ formatNumber(overview.usage?.tokensThisMonth || 0) }}
Sử dụng 7 ngày qua
Requests gần đây
Chưa có request nào
| Thời gian | Model | Status | Tokens | Chi phí |
|---|---|---|---|---|
| {{ formatDate(req.createdAt) }} | {{ req.modelId }} | {{ req.status }} | {{ req.inputTokens + req.outputTokens }} | {{ (req.sellPriceMicro / 1000000).toFixed(4) }} Cube |
API Keys
Bạn chưa có API key nào
{{ cred.name }}
{{ cred.description }}
Prefix:
{{ cred.keyPrefix }}
Tạo: {{ formatDate(cred.createdAt) }}
Dùng lần cuối: {{ formatDate(cred.lastUsedAt) }}
Tạo API Key mới
✓ Key đã được tạo thành công
⚠️ Lưu key này ngay. Bạn sẽ không thể xem lại!
{{ newlyCreatedKey }}
Sử dụng & Chi phí
Usage theo model (7 ngày qua)
Chi tiết sử dụng
| Ngày | Model | Requests | Input Tokens | Output Tokens | Chi phí (Cubes) |
|---|---|---|---|---|---|
| {{ metric.date }} | {{ metric.modelId }} | {{ metric.requests }} | {{ formatNumber(metric.inputTokens) }} | {{ formatNumber(metric.outputTokens) }} | {{ (metric.sellPriceMicro / 1000000).toFixed(4) }} |
Request Logs
| Request ID | Thời gian | Model | Status | Tokens | Latency | Chi phí |
|---|---|---|---|---|---|---|
{{ req.requestId.substring(0, 12) }} |
{{ formatDate(req.createdAt) }} | {{ req.modelId }} | {{ req.status }} | {{ req.inputTokens + req.outputTokens }} | {{ req.latencyMs ? req.latencyMs + 'ms' : '-' }} | {{ (req.sellPriceMicro / 1000000).toFixed(4) }} |
Tổng: {{ requestsTotal }} requests
Models & Pricing
Thông tin pricing và model availability sẽ được cập nhật sớm.
Xem Models APIDocumentation
Quick Start
AI Gateway cung cấp API tương thích với OpenAI và Anthropic:
Base URL
https://ai.wisa.vn/v1
Authentication
Authorization: Bearer YOUR_API_KEY
OpenAI Chat Completions
curl https://ai.wisa.vn/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Anthropic Messages
curl https://ai.wisa.vn/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-3-5-sonnet-20241022",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'