> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apia1.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Учет средств (Usage)

> Токены, стоимость и детализация использования

# Учет средств (Usage)

```json theme={null}
{"usage":{"prompt_tokens":150,"completion_tokens":250,"total_tokens":400,"cost_rub":15.75,"prompt_tokens_details":{"cached_tokens":100},"completion_tokens_details":{"reasoning_tokens":50}}}
```

Для каждого запроса сохраняйте model, provider, prompt/completion tokens, cached/reasoning tokens и стоимость. В streaming usage часто приходит в конце.
