1. Overview
The DeepSeek API Usage Analytics Dashboard is a purely browser-side data visualization tool. Simply drag your monthly CSV billing files exported from the DeepSeek Platform onto the page to instantly get:
- Cost Analysis: Total cost, daily cost trends, per API Key cost breakdown
- Usage Analysis: Total tokens, per-key usage details, request counts
- Cache Analysis: Cache hit rate, daily hit rate trends, per-key hits vs. misses comparison
- Trend Analysis: Freely switch between four metrics — cost / tokens / hit rate / requests
Key Feature: All data parsing and chart rendering happens locally in your browser. CSV files are never uploaded to any server, ensuring your billing data privacy.

2. Quick Start
2.1 Export CSV from DeepSeek Platform
- Log in to DeepSeek Platform
- Go to the "Usage" page
- Select the month you want to analyze, click "Export"
- Each month exports two CSV files:
amount-YYYY-M.csv— Usage details (tokens consumed, request counts, cache hit/miss data)cost-YYYY-M.csv— Cost details (daily cost data)

2.2 Upload CSV Files
- Open the dashboard page (landing page by default)
- Drag the downloaded CSV files (multiple months supported) directly onto the upload area in the center of the page
- You can also click the upload area to select files via the system file picker
- The upload area will show a "Processing CSV…" loading state
- Once processing is complete, the page automatically switches to the dashboard view

2.3 View Analytics
After upload completes, the page automatically displays:
- Top KPI cards (total cost, total tokens, cache hit rate, active API Keys)
- Switch between different analysis views via the tab bar below
- If multiple models are detected, use the model filter to view data for a specific model
4. Dashboard Interface
After CSV files are successfully parsed, the page automatically switches from the landing page to the dashboard view.

4.1 Action Bar
Located at the top of the page, with two sections:
Left — File Info:
- Displays the filename label (e.g.,
2026-5or2026-5 ~ 2026-6for multiple months) - Displays the date range (e.g.,
2026-05-01 — 2026-05-31)
Right — Action Buttons:
- Load Different Files: Click to open the file picker and load new CSV files (replaces current data)
- Clear (red text): Clears all current data and returns to the landing page

4.2 Error and Warning Messages
Error Banners
Displayed when CSV parsing encounters critical errors, including:
- Error type title (e.g., "CSV Format Not Recognized", "CSV Parse Error", "Empty File", "Incomplete Upload")
- Detailed error description
- Row and column number where the error occurred (if applicable)
Visual style: light red background + red border + red text.
Warning Banners
Displayed when data has non-critical issues, each warning shown as an independent banner:
- Possible warning types: date mismatch, missing cost data, incomplete cache data, schema drift
Visual style: light amber background + amber border + amber text.
4.3 KPI Cards
"No-card" design: 4-column full-width large numbers + fine labels, separated by thin horizontal dividers.
| Metric | Content |
|---|---|
| Total Cost | Formatted currency amount, subtitle shows date range |
| Total Tokens | Formatted token count, subtitle shows model count |
| Cache Hit Rate | Percentage, subtitle shows tokens saved by cache |
| Active API Keys | Count, no subtitle |

4.4 Tab Navigation and Model Filter
Tab Navigation
Apple-style underline tabs, 4 tabs:
| English | 中文 |
|---|---|
| Overview | 总览 |
| By Key | 按 Key |
| Cache | 缓存 |
| Trends | 趋势 |
- Selected tab: 2px bottom border + primary text color
- Unselected tab: no bottom border + tertiary text color
- Smooth fade-in transition on tab switch
Model Filter
Automatically displayed when data contains 2 or more models. Apple-style pill segmented control:
- All Models: Default selection, shows merged data for all models
- Individual Model Name: Click to view data for that specific model
Visual: rounded pill group, selected item has dark fill + white text, unselected items have transparent background + gray text.
4.5 Overview View
Hero Number
- Large number: Extra-large bold total cost amount
- Label: "Total Cost"
- Date range: Time range covered by the data
Daily Cost Bar Chart
- Type: ECharts bar chart
- Content: Daily cost totals, dark bars with slightly rounded tops
- Interaction: hover tooltips (showing specific date and cost amount)
- X-axis labels auto-rotate when more than 15 days
Cost by Key Donut Chart
- Type: ECharts donut chart
- Content: Per API Key cost proportions
- Legend: vertically aligned on the right
- Interaction: hover highlights labels

4.6 By Key View
Hero Number
- Large number: Active API Key count
- Label: "Active API Keys"
- Subtitle: Key count and model count
Per-Key Details Table
Full-width table with the following columns:
| Column | Description |
|---|---|
| API Key Name | Primary color, bold |
| Tokens | Secondary color, right-aligned |
| Cost | Primary color, bold, right-aligned |
| Cache Hit | Color-coded: >40% green, 20-40% amber, <20% red |
| Requests | Secondary color, right-aligned |
| Cost Bar | Light background track + dark fill bar, width proportional to cost |
Table rows have a subtle background color change on hover.

4.7 Cache View
With Cache Data
Hero Number
- Large number: Cache hit rate percentage
- Label: "Cache Hit Rate"
- Subtitle: Token count served from cache
Daily Cache Hit Rate Trend
- Type: ECharts line chart
- Content: Daily cache hit rate trend (0-100%)
- Style: green line + very light green semi-transparent area fill
Per-Key Cache Hits vs. Misses Stacked Bar Chart
- Type: ECharts stacked bar chart
- Content: Cache hits (green) and misses (gray) token counts per key
- Legend: "Cache Hits" and "Cache Misses" at the bottom
Without Cache Data
- Centered icon + "No Cache Usage Detected" title
- "Enable prompt caching in your DeepSeek API calls to reduce costs." hint text

4.8 Trends View
Hero Number (Dynamic)
- Dynamically displays the aggregate value for the currently selected metric
- Format auto-switches by metric type: cost / tokens / cache hit rate / requests
Metric Switcher
- 4 text labels: Daily Cost / Daily Tokens / Cache Hit Rate / Request Count
- Selected label has an underline
- Hero number and chart update synchronously on switch
Multi-Metric Line Chart
- Type: ECharts line chart
- Content: Daily trend for the currently selected metric
- Style: dark line + very light gradient area fill
- Built-in zoom enabled when date range exceeds 30 days


5. Global Features
5.1 Language Switching
Location: right side of the top navigation bar, Apple-style pill segmented control.
- EN: Switch to English interface
- 中文: Switch to Chinese interface
Language preference is automatically saved to browser local storage and restored on the next visit. Auto-detected from browser language on first visit.
5.2 Theme Switching (Light/Dark)
Location: far right of the top navigation bar, circular icon button.
- Light Mode: Cold gray paper-texture background, dark text
- Dark Mode: Pure black background, light text
Theme preference is automatically saved to browser local storage, with system preference as the initial default.
5.3 Multi-Month Merge
Supports uploading multiple months of CSV files simultaneously. Merge rules:
- The system reads each filename and extracts the year-month key
- Amount and cost files from the same month are automatically paired
- Only months with both amount and cost files are included in the analysis
- After pairing, all monthly data is merged into a single continuous CSV text for parsing
- The file label automatically updates to the range format
6. CSV File Format
Amount CSV Format
| Column | Description |
|---|---|
utc_date | UTC date |
model | Model name |
api_key_name | API Key name |
api_key | API Key value |
type | Type enum |
price | Unit price (empty for request_count type) |
amount | Count |
Cost CSV Format
| Column | Description |
|---|---|
utc_date | UTC date |
model | Model name |
cost | Cost (daily total) |
currency | Currency unit |
Notes
- Files must be UTF-8 encoded
- Column names must match exactly (case-sensitive)
- Optional columns are ignored and will not affect parsing
7. Privacy & Security
| Aspect | Description |
|---|---|
| Data Storage | CSV file contents are processed only in browser memory — never written to disk or uploaded to any server |
| Network Requests | The entire app is a static site — aside from loading page resources initially, no data upload requests are made |
| Third-Party Dependencies | All dependencies run in the browser and do not transmit data through external APIs |
| Open Source Transparency | The project is fully open source (GitHub) — anyone can audit the code and verify privacy claims |
8. Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
| No response after upload | File is not CSV format | Ensure file extension is .csv — do not upload Excel or PDF files |
| "CSV Format Not Recognized" | Column names don't match or file is corrupted | Export from the official DeepSeek Platform; do not modify file contents |
| Cost shows as 0 | Missing cost CSV file | Ensure both amount and cost files for the same month are uploaded together |
| Missing data for a specific day | No API calls on that day | Normal behavior — does not affect other days' data |
| Cache view shows "No Cache Usage Detected" | Prompt caching not enabled in API calls | Enable prompt caching in your DeepSeek API calls |
| "Incomplete Upload" shown | A month has only amount or only cost file | Add the missing file and re-upload |
| Data anomalies after multi-month merge | Non-standard filename format | Ensure filenames follow the standard pattern |
This document is updated with app releases. For questions or suggestions, please reach out via GitHub Issues.
