Add user openai key


I am building a prompt generator app using the open ai and want to use the user API key when calling open ai to build the prompt. I am able to integrate retool open ai integration to run the queries. How do I add the user open ai key to the query?

Thank you!

Hi and welcome - you may want to explore environment configuration variables as a solution. I link to a post and docs here.