ChatGPT4o API Pricing for Input and Output

Hi,
Excuse me for ignorance, but I’m little confused about the API pricing…e.g API pricing for GPT4o is Model

Can anybody explain the input and output pricing…it says that input pricing is $5/1M or for output its $15 …So, is pricing per API Call or is it based on usage of number of tokens irrespective of API calls?

You are charged for tokens used. It doesn’t matter how many requests you make.

Say your query is 100k tokens, and the response from llm is 10k tokens. You will be charged $0.5 for input and $0.15 for output.

Just keep in mind that continuous conversation is sent in full with each request to the LLM

1 Like

Just keep in mind that continuous conversation is sent in full with each request to the LLM

I think it means it takes its previous output into count.
Does it also count the previous inputs too ?

Yes, every API call is independent, and the system message giving behavior and any chat history you want remembered and understood must be sent again for contextual understanding. Here’s 255 tokens of chat, for example (and an additional 4 tokens of overhead per message would be added).

Who discovered the structure of DNA?
The structure of DNA was discovered by James Watson and Francis Crick.
What year was this?
They discovered the structure of DNA in 1953.
Wasn’t there a controversy about this discovery?
Yes, there was. Rosalind Franklin, a British scientist, also contributed significantly to the discovery with her work on X-ray diffraction images of DNA.
Did she get any credit?
Unfortunately, Franklin did not receive the same recognition as Watson and Crick during her lifetime.
Why not?
Franklin passed away in 1958, before the Nobel Prize was awarded to Watson, Crick, and Maurice Wilkins in 1962. The Nobel Prize is not awarded posthumously.
What did Maurice Wilkins do?
Wilkins worked with Franklin and her X-ray diffraction images were instrumental in his own research, which contributed to the discovery of the DNA structure.
What was Rosalind Franklin’s main contribution?
Franklin’s X-ray diffraction work produced clear images of the DNA structure, which were crucial in identifying the double helix.
Did Watson and Crick acknowledge her work?
While Watson and Crick did mention Franklin’s data in their research paper, many argue that she did not receive adequate credit for her contributions.

In chat completions, you can decide the budget of tokens and the cutoff point where the AI would lose only minimal train of thought, because you must program the retention and re-sending of chat yourself. In Assistants, where “threads” keep the conversation server-side, the use of conversation is maximized to the model limit unless you employ “truncation_strategy”.

1 Like