In this article, we are trying to figure out,
- how to check if OpenAI/ChatGPT bans my server? And,
- what server still works with OpenAI APIs?
ChatGPT from OpenAI is undoubtedly the most popular topic these days. It is fun to play with, and is productive sometimes. It is worth a try to use APIs from ChatGPT to ease your work automatically, say, generating a VBA snippet to process data inside Excel sheets; or maybe, polishing a given document with better wordings.
APIs are easy to use with ChatGPT SDK, but difficult to be accessed from a server. Servers, or precisely IPs, are banned by OpenAI for good. In fact, virtual servers from many cloud providers are not working with ChatGPT any more, including almost all big names.
Check If My Server is Banned by OpenAI
It turns out that some cool guy has already offered us a simple yet fantastic script, namely OpenAI-Checker, to do the checking for CentOS only. If you have got quite some servers, it will save your day to find out which one works well with OpenAI APIs; if you don’t, just ask your friends to execute the script and enlighten you a promising service provider.
To let Debian and Ubuntu enjoy the script, we have modified it a bit. Here goes the script for CentOS 7, AlmaLinux 8, Debian 10, Debian 11, Ubuntu 20.04, Ubuntu 22.04:
(curl -Ls https://dl.linuxtechtoday.com/openai || wget -O - https://dl.linuxtechtoday.com/openai) | bash
This script checks both via IPv4 and IPv6 (if applicable). You should see a similar outcome if everything goes well:
The image below indicates that you can access to OpenAI APIs via IPv4 only.
While if you not so lucky to receive a result like somthing shown below, you have to find a better service provider or IP subnet.
You may also take a look at the official supported country/territory list here.
Better offers?
As now in February 2023, we have tested quite some bargain VPS providers, and here is a lucky list for your reference.
Provider | Location | Price | Link |
---|---|---|---|
GreenCloudVPS | San Jose/Kansas/… | From $15/year | CLICK HERE |
We are trying our best to keep updating the information. Please come back later if you don’t like providers listed above now.