Don't Use OPENAI in your projects!

AHMAD SWALIHAHMAD SWALIH
2 min read

As we all know, Everyone is going behind the AI race and people who don't know the ABCD of the AI also want to build AI applications. Unfortunately, these people land on the OPENAI API platform for their project.

The OPENAI works for Majority of the things but the Pricing actually Suckss, Yeah it sucks. The calculation of the pricing is based on the prompt that you give (Prompt Tokens) and the output that it gives back (sampled token), for both answer and question, you get an invoice based on the no.of prompt tokens and sampled tokens. that means if you ask "How are you?" and it gives you the answer "Fine, Thanks".

then the cost for this is kind of like this:

for the prompt token (the question that you asked ) : 3 words ie How, Are, You. $0.03 per 1,000 tokens is the standard pricing for the gpt-4 model, so in this case, we only have 3 words so $0.03 *(3 / 1,000) = $0.00009.

for the sample token ( output that it gives you back) : 2 words ie Fine, Thanks. $0.06 per 1,000 tokens is the standard pricing and in this case, we only have 2 words, ie $0.06* (2 / 1,000) = $0.00012.

so for the total you get: $0.00021 ( 0.0175 inr).

It seems very less for the outsider people who don't even tried this thing but for the folks who actually tried this will get this ( I also tried 😁 ). Usually, If you are building a ChatBot or something using Openai API, the users will randomly type something into it and you get a huge invoice for sure 🙂 .

So again, Don't go for the production if you don't have a decent budget.

So that's it. Comment down if you guys have ever used OPENAI or planning to use OPENAI.

#openai #developer #webdeveloper #chatgpt

0
Subscribe to my newsletter

Read articles from AHMAD SWALIH directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

AHMAD SWALIH
AHMAD SWALIH

I want to build things that make a difference! That's why I started coding when I was in high school—and why I continue to do so today.