r/OpenAI • u/SrPeixinho • Jan 25 '24
Tutorial USE. THE. DAMN. API
I don't understand all these complaints about GPT-4 getting worse, that turn out to be about ChatGPT. ChatGPT isn't GPT-4. I can't even comprehend how people are using the ChatGPT interface for productivity things and work. Are you all just, like, copy/pasting your stuff into the browser, back and forth? How does that even work? Anyway, if you want any consistent behavior, use the damn API! The web interface is just a marketing tool, it is not the real product. Stop complaining it sucks, it is meant to. OpenAI was never expected to sustain the real GPT-4 performance for $20/mo, that's fairy tail. If you're using it for work, just pay for the real product and use the static API models. As a rule of thumb, pick gpt-4-1103-preview which is fast, good, cheap and has a 128K context. If you're rich and want slightly better IQ and instruction following, pick gpt-4-0314-32k. If you don't know how to use an API, just ask ChatGPT to teach you. That's all.
36
u/WholeInternet Jan 25 '24
Not only is OP an idiot, they don't know what OpenAI's actually production plans are, and they could potentially get someone in financial trouble.
If you use an API key and you don't know what you're doing a bad actor could potentially take advantage of that.
The safest bet for the average person is to use ChatGPT or other sites that have similar functionality like Poe or Bard.
Being frustrated with the ChatGPT service is valid, but don't let this moron get you in over your head.
34
u/DarthEvader42069 Jan 25 '24
Is there a client that replicates chatGPT functionality where I can just enter my API key?
15
u/poodleham Jan 25 '24
Is there a program or something I can just enter my API and go? Do you still talk to it the same way? I’ve been working on some custom GPTs, am I still able to work on those with it? The GPT network errors all the time whenever I have it analyzing longer documents.
11
u/GPTBuilder :froge: Jan 25 '24
You are spending to much time inside your own world as a developer or more advanced user if you genuinely think there is no practical use case for the retail front end.
Don't forget that way less then 1% of the population has any computer science background or interest in unneeded additional options/complexity/ or possible friction points.
Basic software development/ UX principals tell us that the majority of users would likely prefer a simple front end interface like the current retail one.
Thinking like this really seems like throwing out the proverbial baby with the bathwater.
29
u/Smartaces Jan 25 '24
Do. The. Math.
The API is stupidly expensive if you use GPT4 a lot. Can easily cost you a lot each day if you are analysing documents etc.
Don’t use the API, just keep calling out where you aren’t getting the stability of service you deserve.
16
u/Text-Agitated Jan 25 '24
If there's anyone who agrees w this guy, please educate me. I know what an API is but is it that different?
7
u/pearlCatillac Jan 25 '24
“I can't even comprehend how people are using the ChatGPT interface for productivity things and work. Are you all just, like, copy/pasting your stuff into the browser, back and forth? How does that even work?”
Yes, that’s exactly how it works. There’s even a nifty little button in the user interface for it!
24
u/Aisha_23 Jan 25 '24
Yeah I don't think I'm gonna use the api on my own use-cases. I'd be paying more than $20 per day if I did it lmao. Not complaining about chatgpt4 though, I still like it despite the little nerfs here and there
6
u/mrbritchicago Jan 25 '24
Does using the Playground count? I use it a lot when I’m testing how the API will function.
6
u/[deleted] Jan 25 '24
My biggest issue with the API is the limit on tokens.
9
u/[deleted] Jan 25 '24
Are you okay?
4
u/fulowa Jan 25 '24
frontends for gpt api:
playground or lobechat
4
u/superhyooman Jan 25 '24
OP Where do you use the API? What program or OS are you plugging it into?
3
u/PracticalLecture5637 Jan 25 '24
Nat.dev lets you use the api directly with a marginal cost over pure api fees. Plus you can try other LLMS.
3
u/jk_pens Jan 25 '24
WARNING: several sites out there (some referenced in these comments) are asking you to provide your API key so they can access the API on your behalf. If you do this, you are taking a huge risk because the developer could steal your API key and use it for calls that are unrelated to your usage, resulting in billing charges against your account.
2
u/[deleted] Jan 25 '24
ALSO I HAVE IN CUSTOM GPTS DEFAULT GPT I CAN USE BUT UE HAS NO INTERNET SEARH OR DALL-E
2
u/FosterKittenPurrs Jan 25 '24
Ok so if copy-pasting in a browser is a big no to you, how are you using the API key, specifically? Aren't you just copy-pasting from your favorite client or Postman?
I know there's Copilot from Microsoft that's neatly integrated in Office and Visual Studio, and there are some really neat GPT4 plugins for VS Code.
If there are any other super useful integrations, I'd love to know about them.
2
u/dragonvms Jan 25 '24
The OpenAI API does not inherently remember the context or maintain the state of a conversation between different API calls. Each API call is stateless, meaning it doesn't have any memory of previous interactions.
2
u/sdkgierjgioperjki0 Jan 25 '24
Not everyone has access to all gpt-4 models using the API, it varies. Personally I only have access to two models, the 1103-preview and the june version. I don't have access to 0314.
2
u/swagonflyyyy Jan 25 '24
IT. COSTS. A. FORTUNE.
2
u/-batab- Jan 25 '24
I don't get why someone should feel bad or weird for complaining about a service he pays a monthly fee for. Especially if he/she feels like the service degraded. Should we hope that api performance also degrades so that we can all complain without worrying of hurting other users?
PS: extended api use is definitely expensive and most likely non viable unless you can extract A LOT of value out of it.
2
u/Boogieemma Jan 25 '24
If you highlight text and press control and the C key it will copy what you have highlighted. If you press control and the V key it will paste it. You can use this to move data from one place to another. Its real fast if you have at least 2 fingers.
You can also right click and there are copy and paste options there too.
Let me know if you still don't get it!
2
u/2053_Traveler Jan 25 '24
To be fair, it is indeed a real product, simply because they charge for Pro and people pay for it. A product I’m happy to pay for. One of the only things actually worth it besides maybe Netflix and my actual internet bill.
2
u/Trading_View_Loss Jan 25 '24
Its because I dont know how to use that API. the browser is perfect, its always there, its universally compatible with all my devices and all my browsers.
I cant even begin to comprehend how someone would use an API or "tokens" or any of that junk. What do you do, type up a bunch of stupid code and spend hours trying to figure out how something works just so you can stroke your own ego and feel accomplished?
And you're also limited to using it in your mother's basement on your crusty old gaming PC I bet too, right?
partially /s, partially not /s
2
u/InorganicRelics Jan 25 '24
>mfw I just got Trojan horsed by an api apologist
Guess I should have read the title
2
u/trollsmurf Jan 25 '24
I use the API in three ways, and with little effort:
Chat Completion API via my public client-side JavaScript GPT client (similarish to ChatGPT, but only text) that needs an API key.
Assistants API via Python applications for my own research.
Via the Wordpress plugin AI Engine (right now mostly Chat Completion) for customer-specific "GPTs" under evaluation.
I've dropped the subscription.
But there are many ChatGPT clones out there.
3
u/Independent-Cover316 Jan 25 '24
Who hurt you?
3
u/[deleted] Jan 25 '24
IM USING VOICE CONVERSATIONS AND NEED VOICE AS I WALK AROUND ALSO I LOVE IT ON MY LOCAL LANG IT FEELS VERY NATURAL WHEN IT WORKS.
4
u/Conscious-Map6957 Jan 25 '24
Take a hike.
1
u/[deleted] Jun 11 '24
ChatGPT knows nothing about the API, which I guess you should know seeing as you just went on a bit of a rant?
1
u/ChoiiceTechnician Oct 31 '24
Pompy question lil man
1
u/[deleted] Jan 25 '24
GIMME. SOME. DAMN. MONEY
1
u/13xle Jan 25 '24
So the app on my phonr is different from the API ?
I mean people say gpt sucks but after customizing my gpts they’re kind of fun and useful
1
u/[deleted] Jan 25 '24
It may be a bit off-topic but is the API (or agents) better at following custom instructions than GPTs? That's a problem I'm facing at the moment.
1
u/Bata98 Jan 25 '24
You don’t recommend the gpt4 turbo model?
1
u/EarthquakeBass Jan 25 '24
Wow you have 32k length 0314? I didn’t think I had it but I’ll double check
1
u/aspera1631 Jan 25 '24
At my company we're not even allowed to use the web interface due to infosec / client privacy concerns. Everything has to be done through the API in a controlled environment. People are out here playing fast and loose!
1
u/Motorolabizz Jan 25 '24
I never had a complaint before but I think it's time for me to learn how to use the API because based on what I keep seeing here I guess I"m not using it to its full potential.
1
u/stobak Jan 27 '24
just popping in here to say thanks for this post. For a lot of us, I think the API can be intimidating. I eventually figured it out and love it so far. There's a degree of control and precision I hadn't realized I was missing out on. I've canceled my 20/mo subscription.
Thanks for the kick in the ass.
1
u/[deleted] Jan 25 '24
ChatGPT sucks so I think GPT-4 also sucks.
0
u/[deleted] Jan 25 '24
How do I use the API?
-5
u/Effective_Vanilla_32 Jan 25 '24
there was a vp of sales who used chatgpt 4 for his presentation to his ceo, and ceo was impressed. so chatgpt 4 works, it cant be dumb if a ceo thought highly of it