# Is there a way track the token usage for each run in Assistant API?

**URL:** https://community.openai.com/t/is-there-a-way-track-the-token-usage-for-each-run-in-assistant-api/939451
**Category:** API
**Tags:** assistants-api, cost
**Created:** [September 13, 2024, 7:20pm UTC](https://community.openai.com/t/is-there-a-way-track-the-token-usage-for-each-run-in-assistant-api/939451 "2024-09-13T19:20:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![congxing](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/congxing/32/429379_2.png) [@congxing](https://community.openai.com/u/congxing)
#### Post date: [September 13, 2024, 7:20pm UTC](https://community.openai.com/t/is-there-a-way-track-the-token-usage-for-each-run-in-assistant-api/939451/1 "2024-09-13T19:20:12Z")

</div>

I haven’t found a way to do that in the documentation. However, I need that to keep various evaluation pipeline working when switching to assistant API. Thanks for any pointer.

---

<div class="post-metadata">

### Author: ![thinktank](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/thinktank/32/139231_2.png) [@thinktank](https://community.openai.com/u/thinktank)
#### Post date: [September 13, 2024, 11:00pm UTC](https://community.openai.com/t/is-there-a-way-track-the-token-usage-for-each-run-in-assistant-api/939451/2 "2024-09-13T23:00:11Z")

</div>

You can find this information in [Run Steps.](https://platform.openai.com/docs/api-reference/run-steps)

---

<div class="post-metadata">

### Author: ![congxing](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/congxing/32/429379_2.png) [@congxing](https://community.openai.com/u/congxing)
#### Post date: [September 14, 2024, 5:52pm UTC](https://community.openai.com/t/is-there-a-way-track-the-token-usage-for-each-run-in-assistant-api/939451/3 "2024-09-14T17:52:50Z")

</div>

Yeah, found it. Thank you!
