top | item 35155026

(no title)

attilaberczik | 3 years ago

Prices differences with the last models:

ChatGPT API $0.002 per 1k tokens gpt-4 $0.03 per 1k prompt tokens and $0.06 per 1k completion tokens gpt-4 32k context $0.06 per 1k prompt tokens and $0.12 per 1k completion tokens

Does completion tokens mean that you also get charged for the answers that the AI gives?

discuss

order

f_devd|3 years ago

> Does completion tokens mean that you also get charged for the answers that the AI gives?

Seems like it, prompt tokens = input, completion tokens = output

minimaxir|3 years ago

Yes. The `usage` field currently breaks out the token counts for both prompt and completion.

Prompt tokens should have always been cheaper than completion due to how they work.