Call logging

Logging model calls records useful information for each request: model, number of tokens, duration, cost, status, and the user concerned. It lets you track spending, investigate errors, and audit usage, while avoiding storing sensitive data in it.

Example

{"model":"m","tokens_in":820,"tokens_out":140,"latency_ms":1900,"status":"ok"}

Related concepts

The whole glossary