Skip to content

Commit 9b198d7

Browse files
committed
update
1 parent 30c9820 commit 9b198d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/openai/how-to/manage-costs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Azure OpenAI Service runs on Azure infrastructure that accrues costs when you de
3333

3434
Azure OpenAI base series and Codex series models are charged per 1,000 tokens. Costs vary depending on which model series you choose: Ada, Babbage, Curie, Davinci, or Code-Cushman.
3535

36-
Our models understand and process text by breaking it down into tokens. For reference, each token is roughly four characters for typical English text. Token costs are for both input and output.
36+
Our models understand and process text by breaking it down into tokens. For reference, each token is roughly four characters for typical English text.
3737

38-
For example, if you have a 1,000 token JavaScript code sample that you ask an Azure OpenAI model to convert to Python. You would be charged approximately 1,000 tokens for the initial input request sent, and 1,000 more tokens for the output that is received in response for a total of 2,000 tokens.
38+
Token costs are for both input and output. For example, if you have a 1,000 token JavaScript code sample that you ask an Azure OpenAI model to convert to Python. You would be charged approximately 1,000 tokens for the initial input request sent, and 1,000 more tokens for the output that is received in response for a total of 2,000 tokens.
3939

4040
In practice, for this type of completion call the token input/output wouldn't be perfectly 1:1. A conversion from one programming language to another could result in a longer or shorter output depending on many different factors including the value assigned to the max_tokens parameter.
4141

0 commit comments

Comments
 (0)