> For the complete documentation index, see [llms.txt](https://docs.poweromni.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.poweromni.ai/administracao-e-configuracao/auditorias/consumo-de-tokens.md).

# Consumo de Tokens

O menu **Consumo de Tokens** é a sua fonte de dados para auditoria detalhada, apresentando um log transacional de cada interação de IA. Ele permite que o administrador rastreie o custo de tokens **por pergunta**, garantindo total transparência no consumo da sua conta Azure.

<figure><img src="/files/6yMdiHbWJWTlY9CBiqOd" alt=""><figcaption></figcaption></figure>

#### Propósito

* **Auditoria Financeira:** Identificar exatamente onde o custo está sendo gerado.
* **Otimização de Custos:** Analisar o consumo por **Modelo** e **Agente** para tomar decisões sobre a escolha do modelo mais eficiente para cada função.
* **Governança:** Vincular cada interação a um usuário e a um projeto específico.

#### Detalhamento da Tabela

A tabela de log mostra os seguintes campos para cada transação (pergunta/resposta):

<table><thead><tr><th width="207">Campo</th><th>Descrição</th></tr></thead><tbody><tr><td><strong>Projeto</strong></td><td>O recurso Azure que gerou o consumo.</td></tr><tr><td><strong>Modelo</strong></td><td>O modelo de IA específico utilizado na interação.</td></tr><tr><td><strong>Agente</strong></td><td>O assistente de IA que o usuário utilizou.</td></tr><tr><td><strong>Usuário</strong></td><td>O usuário que iniciou a interação.</td></tr><tr><td><strong>Tokens de Entrada</strong></td><td>A quantidade de tokens usados no prompt do usuário.</td></tr><tr><td><strong>Tokens de Saída</strong></td><td>A quantidade de tokens usados para gerar a resposta da IA.</td></tr><tr><td><strong>Custo Total</strong></td><td>O custo financeiro da interação específica em dólar (USD).</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.poweromni.ai/administracao-e-configuracao/auditorias/consumo-de-tokens.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
