OpenAI Developer Forum
How to get token usage for each API call in streaming model?
API
PaulBellow
May 3, 2023, 6:18am
3
Genuinely trying to be helpful here…
helpful
587×755 26.8 KB
show post in topic
Related Topics
Topic
Replies
Views
Activity
OpenAi API - get usage tokens in response when set stream=True
API
27
23430
April 16, 2024
Token usage when using openai.chat.completions.create stream: true
API
gpt-4
,
token
7
2726
November 4, 2023
Why there is no USAGE object returned with Streaming Api Call?
API
api
,
chat-completion
,
completions
19
2965
February 23, 2024
Chat completion "stream" API token usage
API
api
2
4388
December 14, 2023
Usage Info in API Responses
Announcements
20
8800
September 27, 2023