Skip to content
Discussion options

You must be logged in to vote

"rawAmount": -000, // what's this?

Raw amount of tokens as counted per the tokenizer algorithm.

"tokenValue": -00000, // what's this?

Token credits value. 1000 credits = $0.001 (1 mill USD)

"rate": 00, // what's this?

The rate at which tokens are charged as credits.

For example, gpt-3.5-turbo-1106 has a rate of 1 for user prompt (input) and 2 for completion (output)

Model Input Output
gpt-3.5-turbo-1106 $0.0010 / 1K tokens $0.0020 / 1K tokens

Given the provided example:

"rawAmount": -137
"tokenValue": -205.5
"rate": 1.5

$\text{Token Value} = (\text{Raw Amount of Tokens}) \times (\text{Rate})$

$137 \times 1.5 = 205.5$

And to get the real amount of USD spend based on Token …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@igodsewer
Comment options

@danny-avila
Comment options

@falquaddoomi
Comment options

Answer selected by danny-avila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
❓ question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #1637 on January 26, 2024 02:31.