Back to library
AI
best practice

Track AI Spend Instantly with the /stats Command

Run /stats to instantly view your daily token consumption and API costs.

Monitor your AI budget in real-time using the /stats command. This provides an instant summary of your daily token spend, ensuring you stay within financial limits while using high-performance models.

Qwen

The Scenario

You are using powerful models via Together AI or Qwen and need to monitor your daily budget to ensure a project doesn't exceed its allocated API costs.

Before & after

The old way

You wait until the end of the month to see your API bill or manually estimate usage based on log files, a process that takes 15–20 minutes of administrative work.

With AI

Type /stats to see your exact token expenditure for the day. You can check this in 5 seconds to decide if you should switch to a cheaper model for simpler tasks.

The Prompt

/stats

The /stats command provides immediate visibility into daily spend, helping developers stay within budget when using high-end models for intensive coding tasks.

Source

Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs
"/stats shows your daily token spend... clear token-based pricing with no surprises."