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

According to google, you need to fund your openai account to get an api key. Is that correct?

Also possible small typo in your "description": "non-deterministic, that, is the same prompt" > "non-deterministic, that is, the same prompt"

UPDATE: I was able to get an API key without paying. https://platform.openai.com/api-keys
  • Comment on Re^2: Artificial Intelligence with Perl in 2023

Replies are listed 'Best First'.
Re^3: Artificial Intelligence with Perl in 2023
by Bod (Parson) on Mar 03, 2024 at 19:48 UTC

    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