LessTokens Logo
Getting Started
Understanding Metrics

Documentation

Getting Started

  • Overview
  • Account Setup
  • First API Key
  • First Request
  • Understanding Metrics

API Reference

  • Overview
  • Authentication
  • Compressionnew
  • MCP Servernew
  • Errors

Integrations

  • Node.js / TypeScript
  • Python
  • cURL

Resources

  • Best Practices

Need help?

Join our community or contact support for assistance.

Contact Support →

Understanding Metrics

Learn how to interpret your dashboard metrics, track token savings, and optimize your compression strategy for maximum cost reduction.

Key Metrics Overview

Your dashboard displays real-time metrics to help you monitor and optimize your token compression:

Input Tokens

The number of tokens in your original prompt before compression. This is what you would normally send to the LLM.

Formula:

Counted using the LLM's tokenizer (e.g., GPT-4 tokenizer)

Example:

'Hello, how are you today?' = 7 tokens

Tokens Saved

The number of tokens eliminated through compression. This directly translates to cost savings.

Formula:

Input Tokens - Compressed Tokens = Tokens Saved

Example:

1000 input - 650 compressed = 350 saved

Compression Ratio

The percentage of tokens reduced from the original prompt. Higher is better.

Formula:

(Tokens Saved / Input Tokens) × 100%

Example:

(350 / 1000) × 100% = 35% compression

Total Savings

The cumulative cost savings across all your compression requests, calculated based on LLM pricing.

Formula:

Tokens Saved × Token Price (input + output)

Example:

10M saved tokens × $0.00003 = $300 saved

How LessToken Works

LessToken uses proprietary intelligent compression algorithms to automatically reduce your token count while preserving semantic meaning and context.

Our system analyzes your content and applies the optimal compression strategy automatically - no configuration or technical knowledge required.

Average Compression Results

20-25%

Average Token Reduction

35%+

For Structured Content

50%+

Best Case Scenarios

Why it matters: With an average of 20-25% compression, processing 1 million tokens per month saves you 200,000-250,000 tokens, translating to $6-$7.50 saved monthly at GPT-4 pricing.

Reading Your Dashboard

Token Usage Chart

Visualizes your token consumption over time, showing both input and saved tokens. Look for:

  • Trends: Are your savings increasing over time?
  • Spikes: High token usage days may indicate large prompt volumes
  • Consistency: Stable compression ratios show reliable optimization

Compression Efficiency

Shows your average compression ratio across all requests:

Good

20-35%

Typical for mixed content

Great

35-50%

Optimized JSON and code

Excellent

50%+

Highly formatted content

Cost Savings Calculator

Translates token savings into dollar amounts based on current LLM pricing:

Example Calculation (GPT-4):

  • Input: $0.03 per 1K tokens
  • 100,000 tokens saved
  • Savings: 100 × $0.03 = $3.00

Optimizing Your Compression

Structure Your Prompts

Well-formatted JSON and code compress better than plain text. Use structured data when possible.

High Impact

Remove Redundancy

Avoid repeating instructions or context. State things once clearly instead of multiple times.

Medium Impact

Monitor Processing Time

If compression takes too long, adjust maxTimeMs option to balance speed vs compression ratio.

Low Impact

Real-World Example

Scenario: API Documentation Compression

Before Compression

{
  "endpoint": "/api/users",
  "method": "GET",
  "description": "Fetch all users from database",
  "parameters": {
    "page": "number",
    "limit": "number"
  },
  "response": {
    "status": 200,
    "data": "Array of user objects"
  }
}
Tokens: 87 tokens

After Compression

{"endpoint":"/api/users","method":"GET","description":"Fetch all users from database","parameters":{"page":"number","limit":"number"},"response":{"status":200,"data":"Array of user objects"}}
Tokens: 58 tokens
Saved: 29 tokens (33.3% reduction)

Impact at Scale

If you send 1,000 similar prompts per day, this saves 29,000 tokens daily (870,000 monthly), translating to $26+ saved per month at GPT-4 pricing.

Monitoring Best Practices

Check Daily

Review your dashboard daily to catch anomalies early

Set Goals

Aim for consistent 30%+ compression on formatted content

Track Trends

Monitor month-over-month savings growth

Next Steps

Now that you understand the metrics, explore advanced features and integrations: