Results from ChatGPT are quite better than API

I think the trick with the API vs. ChatGPT, is you have to bring in context yourself with the API (history, or other related information via RAG). Whereas the history is built-in using ChatGPT.

What are the specifics of your case?