Skip to main content

LLM Token Trend Analysis

Home > Select Project > Analysis > Token Trend

Token Trend analyzes LLM API token usage patterns and processing efficiency on a time-series basis. While the dashboard focuses on real-time status monitoring, this page is used for trend comparison across time ranges and detailed analysis across models/agents.

Set the time range, filters, and search conditions in the top option bar, then query widget data. You can narrow the range by dragging on charts, or navigate to the Prompt Log page by clicking on charts/boxplots.

Token Trend

Token Usage

PropertyValue
Chart TypeLine chart (Input, Output -- 2 series)
FilterTag filter
ActionView individually, View merged, View details

Displays the trend of Input token count and Output token count by time. Input tokens are tokens included in the prompt; Output tokens are response tokens generated by the model.

  • If token usage spikes at a specific time, check for traffic changes, prompt modifications, or abnormal request influx.
  • Changes in the Input/Output ratio reveal shifts in workload characteristics (input-heavy vs. generation-heavy).
  • Use View individually to identify which model or agent concentrates token consumption.

I/O Ratio Trend

PropertyValue
Chart TypeLine chart (%, area fill)
FilterTag filter
ActionView individually, View merged, View details

I/O Ratio is the percentage (%) of Output tokens out of total tokens (Input + Output). A 50% baseline (dotted line) is displayed.

  • Above 50%: Response-generation-heavy workload. Tasks with long outputs such as summarization or code generation are dominant.
  • Below 50%: Input-heavy workload. Tasks with long prompts such as classification, embedding, or RAG retrieval are dominant.
  • A sudden ratio change may indicate workload pattern or prompt structure modifications -- investigate accordingly.
Formula

I/O Ratio = sum of output_tokens / (sum of input_tokens + sum of output_tokens) x 100

TTFT Percentiles

PropertyValue
Chart TypeLine chart (p50, p75, p95, p99 -- 4 series)
FilterTag filter
ActionView individually, View merged, View details, Select percentile

Displays the percentile trend of TTFT (Time To First Token). If TTFT rises alongside a spike in token usage, it indicates that increased token volume is affecting initial response latency.

  • If p50 is stable but p99 spikes, it signals intermittent queue wait or provider delays.
  • When an anomalous interval is found, use the TTFT distribution comparison to identify which model is the cause.

TPOT Percentiles

PropertyValue
Chart TypeLine chart (p50, p75, p95, p99 -- 4 series)
FilterTag filter
ActionView individually, View merged, View details, Select percentile

Displays the percentile trend of TPOT (Time Per Output Token). Viewing alongside TTFT Percentiles helps distinguish between "slow first token and slow generation" intervals and "fast first token but slow generation" intervals.

  • A p99 spike means intermittent requests where token generation stalls or significantly slows down.
  • When an anomalous interval is found, use the TPOT distribution comparison to identify which model is the cause.

TTFT Distribution Comparison

PropertyValue
Chart TypeBoxplot (x-axis: model)
FilterTag filter (always visible)
ActionView details

Compares the distribution of TTFT by tag (model, etc.) using boxplots. The box area represents p25-p75 (middle 50% range), the center line is the median, and whiskers indicate min-max values.

  • Models with a low median and narrow box provide the most stable and fast initial response.
  • Models with long whiskers experience intermittent extreme initial delays.
  • Click a model to navigate to its prompt logs.

TPOT Distribution Comparison

PropertyValue
Chart TypeBoxplot (x-axis: model)
FilterTag filter (always visible)
ActionView details

Compares the distribution of TPOT by tag (model, etc.) using boxplots.

  • Models with a low median and narrow box provide the most stable streaming performance.
  • Models with long whiskers experience intermittent significant slowdowns in token generation.

Output Token Throughput

PropertyValue
Chart TypeLine chart
FilterTag filter
ActionView individually, View merged, View details

A throughput metric representing output tokens generated per second (Tokens Per Second).

  • For intervals where throughput drops, check for model response bottlenecks or Rate Limit effects.
  • Viewing alongside token usage helps identify intervals where "many tokens are used but processing speed is slow."
  • Use View individually to compare throughput by model.

Cache Hit Rate Trend

PropertyValue
Chart TypeLine chart (%, area fill)
FilterTag filter
ActionView individually, View merged, View details

Displays the percentage (%) of tokens retrieved from cache out of total input tokens, by time.

  • Higher hit rates indicate effective prompt caching with greater cost savings.
  • If the hit rate drops suddenly, check for prompt content changes, cache TTL expiration, or new types of request influx.
  • Use View individually to compare cache efficiency by model and identify where caching is most effective.
Formula

Cache Hit Rate = (sum of cached_tokens / sum of input_tokens) x 100

Average Tokens per Request

PropertyValue
Chart TypeLine chart (Input, Output -- 2 series, area fill)
FilterTag filter
ActionView individually, View merged, View details

Displays the time-based trend of average Input/Output token count per request.

  • A spike in Input tokens per request may indicate longer prompts or inclusion of longer context.
  • A spike in Output tokens per request means longer responses, directly impacting cost increases.
  • If this widget's values increase alongside token usage, it means request size has grown. If only token usage increases, it simply means request count has risen.

Token Analysis

PropertyValue
Chart TypeTable
FilterAgent / Model / Provider tab switch
ActionView details, CSV download, Column settings

Organizes key token usage, cache, and cost metrics by tag (Agent, Model, Provider) in a table.

ColumnDescription
NameTag value (agent name, model name, provider name)
RequestsRequest count
Total InputTotal input tokens
Total OutputTotal output tokens
Total TokensTotal token count
I/O Ratio (%)Output token ratio
Cached TokensTotal cached tokens
Cache Hit (%)Cache hit rate
Cached Cost ($)Cached token cost
Input Cost ($)Input cost
Output Cost ($)Output cost
Total Cost ($)Total cost
  • Items with high Total Tokens account for the largest share of total cost and are priority optimization targets.
  • Items with high I/O Ratio are output-heavy workloads, significantly affected by Output token pricing.
  • Items with low Cache Hit should have their caching strategy reviewed for potential cost savings.
  • Sort by Total Cost to quickly determine cost optimization priorities.
  • Use the download button in the upper right to export current data as CSV.
  • Use column settings to select which columns to display.

Reference

Difference from Dashboard

ItemLLM DashboardToken Trend
Time ModeReal-time (Live) + past pointPast range (Range) only
Primary PurposeReal-time status monitoringTrend analysis across time ranges
FilterAgent selectionComplex condition filter (Agent, Model, Provider, Operation, URL)
Prompt Log IntegrationNoneNavigate to Prompt Log on chart click
Data ExportNoneCSV download supported