Is chat GPT provided for free

I went to OpenAI API and i generated an API key, then i use it to integrate with chat GPT… i were not asked to pay or to subscribe to any free trials, so is chat gpt API offered for free?

now i went to my profile , and i can see this:-

so seems i am on a free trial, but how the consumption was calculated ?


The first $18 is free (see the little bar titled “Free trial usage”?)

ok thanks , after that how the consumption will be calculated ? they said per token, so is the token what we type to Chat GPT ? or is what we get from chat gpt ? @curt.kennedy

1 Like

1000 tokens is roughly 750 English words. Each time you call the API, you are charged for your Input tokens and your Output tokens. So if your prompt had 1000 tokens on the Input and 300 tokens on the output, you are charged for 1300 tokens. Pricing varies by model, so check the Pricing page for the latest. So in this example, for gpt-3.5-turbo this is $0.0026.

1 Like

@curt.kennedy ok i see, so we will be charged on the input and output am i correct?

second question, how we can define a maximum limit that we do not want to exceed ?is this possible?

Charge is on Total tokens which is Input + Output, so yes.

Maximum tokens varies by model, see the Docs. But generally the current max is around 4000 tokens for most recent models (excluding embeddings which are now around 8000 tokens). The 4000 tokens is around 3000 English words. You can go with these rough guidelines, or if you need a precise token count, you can use tiktoken to get an accurate count specific to each model used.

@curt.kennedy Thanks again for your reply.i am not talking about the limit per request i am talking about the total consumption for our account? so can we say that we only want to spend let say 30 USD this month? and renew it next month? so we do not want to pay more than 30 USD per month, and if the amount reaches 30 USD were are fine to receive errors or having the api stop working till we renew it again and so on …

Go into your account Settings > Billing > Usage limits and you can set the hard and soft limits. The default is $120/month for me, so you should go in and update this if you only want $30.

@curt.kennedy i think i need to have a price plan to set the usage limit, as currently i have free trial so i can not set usage limit,thanks a lot for your help…

1 Like

I have only $5
What are you jealous of?