3/ If you prefer not to use the API, you can also use the Hugging Face library, which has a pre-trained version of ChatGPT available. 4/ To generate text, you simply need to call the generate() function and provide the model with a prompt or starting text.