4 ms·
I took a random Java file I had laying around that I was working on lately. ~100 lines of code + whitespace 1300-1900 tokens So if I fed this to OpenAI and s
by MuffinFlavored 4y ago
I took a random Java file I had laying around that I was working on lately.
~100 lines of code + whitespace
1300-1900 tokens
So if I fed this to OpenAI and said "how can I make this file better/improve upon it", it would have cost:
between $0.03 and $0.12 for this one file using GPT-4
not sure I could use gpt-3.5-turbo since it says it is for chat and not code?
Does that sound right? $0.05 for every file of source code scanned sounds too high for realistic usage. Even $0.01 sounds high? Modern company might have 1,000,000+ files of code, no?
- SubiculumCode 4y agoexcuse my ignorance, but I thought it was $20 per month.
- bikingbismuth 4y agoThat is for the interactive chat experience. API calls are sold a la carte. Details here https://openai.com/pricing https://openai.com/pricing.
- SubiculumCode 4y agothanks!
- MuffinFlavored 4y agoIt would be cool if they told their $20/mo users "here's how much your past 30 day usage would have cost if we billed you via the API (aka how many tokens/sessions/chats/whatever did you use)
- engrefoobiz 4y agoGPT-4 costs 30 times more than gpt-3.5-turbo and 60ktimes more if you use the 32k token gpt-4 model. It's by far their most expensive service! I'm using gpt-3.5-turbo, also for coding, and honestly it does just fine.
- maherbeg 4y agoThe seems remarkably cheap compared to engineering hours.
- roflyear 4y agoTo do....?
- smallerfish 4y ago3.5-turbo can definitely understand code, just like ChatGPT can. GPT4 is better at complex tasks, but 3.5-turbo is always worth evaluating.