# AI Gateway Usage Analytics

Usage Analytics provides visibility into how your AI Gateway is being used, helping you understand consumption patterns, model adoption, and overall usage trends.

<div align="left" data-with-frame="true"><figure><img src="/files/kDWrJJl0mZyV5nOhuIEm" alt=""><figcaption></figcaption></figure></div>

### Available Metrics

The following metrics are available to help you analyze usage at the model level:

* **Token usage by model**\
  Displays the total number of tokens consumed by each model over the selected time range.
* **Request count by model**\
  Shows how many API requests were sent to each model, helping identify traffic distribution.
* **Input tokens**\
  Represents tokens consumed by request inputs, useful for understanding prompt size and request complexity.
* **Output tokens**\
  Represents tokens generated by model responses, useful for evaluating response length and cost impact.

You can select specified AI gateway and filter data by time range (e.g., last 6 hours or custom intervals).

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>

* <mark style="color:blue;">Only models that report input and output token usage are included in analytics.</mark>
* <mark style="color:blue;">Usage data may be delayed by several minutes and may not appear in real time.</mark>
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/ai-gateway/ai-gateway-usage-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
