Grok API
  1. Getting started
Grok API
  • Getting started
    • Introduction
    • Models and Pricing
    • Billing
    • Consumption and Rate Limits
    • Usage Explorer
    • Free Credits
  • Guides
    • Asynchronous Requests
    • Image Understanding
    • Structured Outputs
    • Migration from Other Providers
    • Chat
      POST
    • Reasoning
      POST
    • Streaming Response
      POST
    • Deferred Chat Completions
      POST
    • Image Generations
      POST
    • Fingerprint
      POST
  1. Getting started

Usage Explorer

Sometimes as a team admin, you might want to monitor the API consumption, either to track spending, or to detect anomalies. xAI Console provides an easy-to-use Usage Explorer for team admins to track API usage across API keys, models, etc.

Basic usage#

Usage Explorer page provides intuitive dropdown menus for you to customize how you want to view the consumptions.
For example, you can view your daily credit consumption with Granularity: Daily:
632156d639ec3a1a1d69c30dcdf28f75_usage-by-day.png
By default, the usage is calculated by cost in US Dollar. You can select Dimension -> Tokens or Dimension -> Billing items to change the dimension to token count or billing item count.
4e08a7492a455b492cd0041c80d24522_usage-by-token.png
You can also see the usage with grouping. This way, you can easily compare the consumption across groups. In this case, we are trying to compare consumptions across test and production API keys, so we select Group by: API Key:
72c34fefe5b03f3d6a6ddd50db4297e0_group-by-key.png

Filters#

The basic usage should suffice if you are only viewing general information. However, you can also use filters to conditionally display information.
The filters dropdown gives you the options to filter by a particular API key, a model, a request IP, a cluster, or the token type.
b74c47819bcb19d2e8d4b2dfb55cf225_filter.png
Modified at 2025-04-10 08:14:10
Previous
Consumption and Rate Limits
Next
Free Credits
Built with