Open AI api POST Java ERROR

I’m having this error for a longday, can anyone suggest a code?

Can you share the code raising that error? Specifically, the place where you make the request.

401, if I recall correctly, is an authorization error. My only guess without seeing your code is that the key wasn’t inputted correctly.