ChatGPT (OpenAI) is a proprietary model.
The model can be accessed through OpenAI's API.
You need to sign-up and create an API key here:
https://platform.openai.com/api-keys
The API key will be used to communicate with OpenAI's API.
To try out your new API key with curl:
To try out your new API key with Python:
Install the OpenAI Python SDK:
Check OpenAI Python SDK installation:
Execute the code below to generate a haiku for free using the gpt-4o-mini model.