Join the Webstudio community

Updated last week

Where to configure OpenAI key to make alpha AI features work?

At a glance

The community member is running a webstudio in a devcontainer and is trying to make the AI features work, but is getting an "Unknown Error: Invalid OpenAI API key" error. The comments suggest that the community member needs to configure an environment variable called OPENAI_KEY in the /apps/builder/.env.development file. Additionally, the community member may need to have their own OpenAI API key, which is a paid service, and may also need to configure a variable called OPENAI_ORG with their OpenAI organization ID and a PEXELS_API_KEY for the Pexels API.

Useful resources
I have webstudio running in devcontainer and I am trying to make the AI features work. I currently get Unknown Error: Invalid OpenAI API key when I try to use the feature. Which file do I edit to configure our key?
Marked as solution
It requires an environment variable called OPENAI_KEY which can be configured in /apps/builder/.env.development
View full solution
m
J
3 comments
It requires an environment variable called OPENAI_KEY which can be configured in /apps/builder/.env.development
I would assume you need to have your own OpenAI API key. https://platform.openai.com/api-keys (this is a paid service)
It also requires a variable called OPENAI_ORG with your Open AI orgnisation id and an API key for pexels (https://www.pexels.com/) called PEXELS_API_KEY
Add a reply
Sign up and join the conversation on Discord