Hello, I want to clarify if it’s possible to use the GPT chat API from OpenAI on your hosting service? (Important note: the site WILL NOT be used as a host for third-party APIs.) The site will simply send requests to the GPT chat, for example, “translate text to a certain language.” It will be a translation page with a text input field and translation output.
Calling third party APIs is totally acceptable here.
If the APIs are called from frontend only, then there won’t have any issues.
If the APIs are called from backend, then there also usually won’t have any issues, but if the API will actively send data to our servers, it won’t work, due to the security system.
This is correct.
This is being parroted a lot here, and it is wrong.
The only thing this security system will prevent you from doing is hosting APIs with us that are called from other websites or things that are not websites (other servers, native applications, etc.).
You can host a Javascript frontend and PHP backend with us, and have that Javascript frontend query the PHP backend. Reading and writing data in this way is perfectly fine.
The only requirement to keep in mind is that the website and API must be on the same hostname: so if your website is on example.com, then the API must also be on example.com, not on api.example.com or example-api.com.
But calling external APIs, either from the frontend or backend, is no problem at all.
I don’t think it is safe to call api from frontend.
In my opinion, the api-calling to Openai is allowed.
However only browsers are allow to accessing your site. As admin said.
I don’t understand this:
Do you mean you’ll use it by yourself with api? If you are sending direct HTTP request to your site, then it will not work. If you are using this hosting account to build a website that access is by browser, it will work, but you must follow the rule @Admin gives you to call the api.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.