---
title: "#tokenusage articles | Hashnode"
description: "Explore 2 articles tagged #tokenusage on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/tokenusage"
---

Tag

# #tokenusage

2 posts · 0 followers

[An Vo](https://hashnode.com/@anvodev) · [Oct 1, 2023](https://hashnode.com/posts/calculate-openai-usage-for-chat-completion-api-stream-in-nodejs/6519009d0d7c53d5b12024cc)

### [Calculate OpenAI usage for Chat Completion API stream in NodeJS](https://anvodev.hashnode.dev/calculate-openai-usage-for-chat-completion-api-stream-in-nodejs?utm_source=hashnode&utm_medium=feed)

Introduction OpenAI does have the usage field in its non-stream response. For example with a non-stream request like this (stream: false): { "model": "gpt-3.5-turbo", "messages": \[ { "role": "user", "content": ...

6 min read · [anvodev.hashnode.dev](https://anvodev.hashnode.dev/calculate-openai-usage-for-chat-completion-api-stream-in-nodejs?utm_source=hashnode&utm_medium=feed)
