Open-AI-Dall-E-2-with-React.Js clone npm install create .env file in root dir, place your key as: VITE_Open_AI_Key: "your key for open ai api" npm run dev..... your dev server will be start on localhost and you can add Prompt and image will be load in no time, thank you.