If I purchase the $200 Enterprise plan, will I still need to pay separately for an API key? Additionally, if I increase the API credit limit without subscribing to a ChatGPT paid plan, will the API continue to function? Furthermore, please provide detailed information on how API credits work?
Welcome to the community!
Yes! chat.openai.com and platform.openai.com are mananaged and billed completely independently. Whatever happens on one has no effect on the other.
Chat is subscription based, and the platform is prepaid-credits based. Account levels on either site have no impact on the other. You can be tier 5 in the API with a free tier on ChatGPT. It’s possible that if they ban you that both accounts might be affected, but that’s not something I’m willing to test on either end
Could you explain how the $5 API credit is deducted based on input and output tokens?
Yeah! So you can go here, and look at the pricing table
https://openai.com/api/pricing/
Then you can go here
https://platform.openai.com/tokenizer
and punch in some expected input and output text to give you an idea.
You can typically calculate around ~1.3 tokens per English word as a general rule of thumb, but it depends on your actual workload.
Token output length is also not super predictable, but you can tame the output length with a good prompt, and use the max completion token parameter (https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_completion_tokens) to set a hard limit on chat models.
Do note that if you have a “chat conversation”, every time you send a new message, all the old messages are re-counted as input again. So you have a triangular cost as the conversations get longer. Now there is something called prompt-caching (https://platform.openai.com/docs/guides/prompt-caching) that makes this slightly cheaper in theory, but I personally don’t rely on it to manage cost.
With reasoning models (o1, o3) and assistants, this becomes considerably more unpredictable, so you’ll have to test the waters with your use-case and use a stochastic approach to predicting cost.
Does that help?
I suppose, yeah
If you put some credits on your account and go on the playground, you can decide whether they fit your use-case
Thank You so much Diet .
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.