--- title: Using OpenAI API Key in LobeChat description: >- Learn how to integrate OpenAI API Key in LobeChat. Support GPT-4o / GPT-4-turbo / GPT-4-vision tags: - OpenAI - ChatGPT - GPT-4 - GPT-4o - API Key - Web UI --- # Using OpenAI in LobeChat {'Using This document will guide you on how to use [OpenAI](https://openai.com/) in LobeChat: ### Step 1: Obtain OpenAI API Key - Register for an [OpenAI account](https://platform.openai.com/signup). You will need to register using an international phone number and a non-mainland email address. - After registration, go to the [API Keys](https://platform.openai.com/api-keys) page and click on `Create new secret key` to generate a new API Key. - Open the creation window {'Open - Create API Key {'Create - Retrieve API Key {'Retrieve After registering, you generally have a free credit of $5, but it is only valid for three months. ### Step 2: Configure OpenAI in LobeChat - Visit the `Settings` page in LobeChat - Find the setting for `OpenAI` under `Language Model` {'Enter - Enter the obtained API Key - Choose an OpenAI model for your AI assistant to start the conversation {'Select During usage, you may need to pay the API service provider. Please refer to OpenAI's relevant pricing policies. You can now engage in conversations using the models provided by OpenAI in LobeChat.