ChatGPT is free but users pay with their data. Using the OpenAI API on the other hand costs money, but users data (the prompts they send and the replies they receive) is not used for further model training.
Additionally, when using ChatGPT, one can select to disable chat history, which prevents using the data for model training - https://help.openai.com/en/articles/7730893-data-controls-fa...
OpenAI does add some (imo, unnecessary) barriers to this, but that's another story.
Disclaimer: I developed AKME - https://apps.apple.com/app/akme-ai-knowledge/id6446436196 specifically for users that want to use the OpenAI API, but would rather not have their data used to further train models.
Users can enter their own API key (this implies they have an OpenAI account with a payment method connected) and pay directly OpenAI, based on their usage. The app has no tracking, monitoring, data gathering etc and all prompts are sent directly to the OpenAI API in this case.
Users that don't have an OpenAI account (or can't create one) can alternatively buy in-app tokens, though, to cover for the "apple tax", those are a bit more expensive than the OpenAI tokens. In this scenario, the prompt is sent to a (very minimal) proxy that appends my API key to the request.