Most hosted AI models will charge you a fee for a certain number of queries. If you want to experiment, Hugging Face will give you 1000 queries for free.
Start by signing up for an account. https://huggingface.co/login
Login and create an access token.
When you create your token, make sure to choose "Fine-grained" and check "Make calls to the serverless Inference API"
Then scroll to the bottom and generate the token.
Copy your access token and do not lose it. This is your only opportunity to see it.
Open the chatbot.py example in Thonny and paste your access token as shown below.
Run your code and interact with the chatbot in the shell at the bottom.
Remember you get 1000 interactions for free. In your account, click on Usage Quota to see how many you have remaining.