Skip to content

Forum in maintenance, we will back soon 🙂

AI mathematical cal...
 
Notifications
Clear all

AI mathematical calculator on WordPress using php

7 Posts
2 Users
1 Reactions
111 Views
(@mathros)
Posts: 36
Trusted Member
Topic starter
 

I am trying to create an online calculator for solving mathematical problems using AI. I took as a basis your article contained in the link https://learnwithhasan.com/create-ai-tools-with-wordpress/. So the question arises where to get my API key?

 
Posted : 08/25/2024 6:04 am
(@husein)
Posts: 534
Member Moderator
 

@mathros You can get your api key from OpenAI's website.

 
Posted : 08/25/2024 7:08 am
(@mathros)
Posts: 36
Trusted Member
Topic starter
 

@husein does it need to be created manually or is it automatically created upon registration?

 
Posted : 08/25/2024 7:56 am
(@husein)
Posts: 534
Member Moderator
 

@mathros No OpenAI automatically generates an OpenAI key for you.

At first, I think you have a free trial(not sure). But you usually purchase some credits and use them. 

For more info, check OpenAI's pricing.

 
Posted : 08/25/2024 10:09 am
(@husein)
Posts: 534
Member Moderator
 

@mathros If you want to start for free you can use Gemini API Key instead of OpenAI. However you'll need to update the code so that it calls the Gemini API.

 
Posted : 08/25/2024 10:10 am
(@mathros)
Posts: 36
Trusted Member
Topic starter
 

The following error occurs when trying to solve a mathematical equation.

"An error occurred: API request failed. Response: { "error": { "message": "You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors .", "type": "insufficient_quota", "param": null, "code": "insufficient_quota" } }"

I don't quite understand what the initial quota is and how I could exceed it if I started the calculator for the first time

 
Posted : 08/25/2024 3:16 pm
(@husein)
Posts: 534
Member Moderator
 

@mathros The quota is the number of credits you charged. So, to keep using the API, you'll have to recharge your account with extra credits.

 
Posted : 08/26/2024 2:37 pm
Rostik reacted
Share: