Failed to use ChatComplete API with GPT4.0

I have premium account for using GPT4.0 chat.
I’m trying to use it with the API ChatComplete (model gpt-4.0) but i keep recieving “openai.error.InvalidRequestError: The model gpt-4 does not exist or you do not have access to it”

any idea?


ChatGPT Plus and API are billed separately.

I only have to scroll down to "similar topics to grab my own reply to reformat for you.

ChatGPT does not offer any API credits or entitlements. It is a separate end-user product. You already have upgraded to ChatGPT plus with your $20 subscription, which besides upgrading to a gpt-4 powered chatbot, gives you plugins, advanced data analysis code interpretation, beta features, …

This is the access portal to an API account and its payment systems.

Access to use gpt-4 services via API and use higher rate limits is only enabled after purchasing additional API account credits or having been billed for monthly API use.

API usage is charged by the amount of data used - the tokens sent and received by queries to the AI models.