Hiding API keys proxy using UGS Authentication

Hi there,
I’ve searched for days. Is there any simple way to have authentication which gives token to the client app which then helps with calling functions that require API keys?

I mean, the authentication part is simple nowadays, we just use Unity UGS, PlayFab, [you name it] and get access via the authtoken. But then, calling an API like OpenAI’s ChatGPT with any of the cloud services proved to be hard for us game developers.
We need to hide our API keys, so we obviously can’t simply include the key in our games or client apps because then the API keys can easily be extracted by curious individuals!

Any thoughts on this? Is there any simple way to use UGS and have it act like an API Proxy or something?

Hello,

You can use Cloud Code (or any other intermediate backend function) to call external services that require a secret/api key, that way it is hidden from the client.

Oh, thank you for the direction. I’ll have a look.