Skip to content

Commit 30c9820

Browse files
committed
update cost management
1 parent f9d8448 commit 30c9820

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ 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. Token costs are for both input and output.
3737

38-
So if you have a 1,000 token JavaScript code sample that you ask an 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. In practice, the token usage wouldn't be this 1:1. A conversion from one programming language to another could result in a longer or shorter output depending on many different factors.
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.
39+
40+
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.
3941

4042
### Base Series and Codex series fine-tuned models
4143

0 commit comments

Comments
 (0)