Do you have a valid, working API key? Can you hit the API endpoints for any model on command line? Is playground working for you on the openAI website?
Thank you all very much for replies. Fortunately I solved this. This was completely a server issue. I contacted AWS for support, updated the latest PHP version and SQL version, fixed the firewall, and the problem was resolved.