in reply to Re^2: Artificial Intelligence with Perl in 2023
in thread Artificial Intelligence with Perl in 2023

The API key is free but there is a charge everytime you use it. The cost is dependent on the model used and the number of tokens input and output.

I have set the default model to the lowest price of the useful models as this is a good starting point. If you want more capable models such as ChatGPT-4, you will pay more.

UPDATE - I'll add this to the documentation when I do an update

  • Comment on Re^3: Artificial Intelligence with Perl in 2023