Navigating OpenAI Embeddings API Pricing: Token Count vs. API Calls

On what basis we will be charged for using Openai embeddings API (openai.Embedding.Create). It shows in pricing that we will be charged on the basis of token for example if we use Ada it charges $0.0001/1k Token.Is it not related with Number of API calls?
oe else can you please explain me the pricing for embedding API

Welcome to the forum!

As a moderator I simplified your title.

How you may ask.

I don’t know the conditions for who has this enabled in the Discourse editor but in the menu bar is this icon image

I then used the Suggest topic titles option and picked one.

For all those with Trust Level 3 and higher, use the gas pedal. :slightly_smiling_face:

1 token = approximately 0.75 words or 1k tokens = 750 words, you pay per 1000 tokens $0.0001
Using that it can be shown that you get about 4 characters per token or 4Kb of embedding text per 1k tokens or $0.0001
Using that as your basis you can approximate the cost of your embedding by :
Cost in $ = Size of Data in Kilobytes * 0.000025

API calls in this context are not a factor

1 Like

The calculation of token is quite complex but you can visit OpenAI Platform and try some text there and check how many token it is using and by that you will get rough idea about the pricing.

Thankyou so much for your reply . I got it

1 Like