Hacker News new | ask | show | jobs
by attilaberczik 1194 days 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?

2 comments

> 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

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.