#Open AI Assistants API Pricing

1 messages · Page 1 of 1 (latest)

alpine pagoda
#

Hey, can someone please let me know how to work out the price of 1,000 users sending 1 message each to an OpenAI Assistant via API please?

cedar prism
#

You can find the price in the price page of official website

#

I remember the price counts like the other api

crude solstice
alpine pagoda
#

thanks @cedar prism @crude solstice

it just says Retrieval $0.20 / GB / assistant / day (free until 03/01/2024)

Doesn't really tell me exactly how much?

Example, how much would 1,000 requests to it asking ("What's the Annual Leave Policy?") cost?

crude solstice
#

@alpine pagoda
When you use an LLM you pay the tokens of text you send, in your case your question and the response tokens per token. For that refer to the pricing on models on the same page. See here to count how many tokens a text is here https://platform.openai.com/tokenizer

alpine pagoda
#

I'm so confused

dusk nimbus
alpine pagoda
dusk nimbus
crude solstice
#

The assistants api has no fees unless you get files or use the code interpreter

alpine pagoda
crude solstice
#

However that starts the 1 march, until then it's frez

#

Plus the normal tokens as discussed before obviously

alpine pagoda
dusk nimbus
crude solstice
#

It only billes you once but resets every day so you pay it again every day

crude solstice
alpine pagoda
#

@dusk nimbus @crude solstice

so are you saying Assistants API is not cost efficient? What would you reccomend instead?

crude solstice
alpine pagoda
#

Most cost efficiency

#

And easily really

crude solstice
#

Retrieval is better imo if you want the model to answer from a knowledge base

alpine pagoda
#

I did try fine tuning but it came out with a lot of irrelevant answers

alpine pagoda
#

what's the prise difference between this and assistants please?

crude solstice
#

but this is up to you to decide

alpine pagoda
# crude solstice but this is up to you to decide

Ok, so let's stick with OpenAI assistants.

let's say the message sent is "what is the annual leave policy?" - 7 tokens

the reply from the API is let's say we limit it at 100 tokens.

We use GPT-4 with the Assistants API.

How much would that cost with retrieval too?

crude solstice
# alpine pagoda Ok, so let's stick with OpenAI assistants. let's say the message sent is "what...

For 1,000 users asking "What's the annual leave policy?" (7 tokens) and getting back 100 tokens in response using GPT-4:

  • Input: 7 tokens x 1,000 users = 7,000 tokens. Cost = 7,000 tokens * $0.03/1,000 = $0.21.
  • Output: 100 tokens x 1,000 users = 100,000 tokens. Cost = 100,000 tokens * $0.06/1,000 = $6.

Total token cost = $0.21 + $6 = $6.21.

For retrieval, if you're using 1GB of data, it's $0.20/GB/day. So, if we add that, your total would be $6.21 for the tokens plus $0.20 for the retrieval, making it $6.41 in total. You can then change that based on how large the average file would be in your context.

Prices can change, so check OpenAI's pricing page for the latest. Hope that helps clear things up! Let me know if you need more clarifications.

alpine pagoda
crude solstice
#

Paid every day

alpine pagoda
alpine pagoda
crude solstice
alpine pagoda
crude solstice
alpine pagoda
#

Mh I did try but no reply in a week :(

crude solstice
crude solstice
alpine pagoda
crude solstice
#

no problem let me know if you need anything else

alpine pagoda
#

@crude solstice one more question, do you know how long user messages are sored in a thread for before they're deleted?

crude solstice
alpine pagoda
crude solstice
alpine pagoda
crude solstice
alpine pagoda
#

ah okk

spring mural
alpine pagoda
#

@crude solstice So this would be correct?

crude solstice
alpine pagoda
crude solstice
alpine pagoda