Files
open-webui-docs/docs/getting-started/quick-start/starting-with-openai.mdx
2025-11-13 16:03:29 -05:00

77 lines
2.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
sidebar_position: 2
title: "Starting With OpenAI"
---
## Overview
Open WebUI makes it easy to connect and use OpenAI and other OpenAI-compatible APIs. This guide will walk you through adding your API key, setting the correct endpoint, and selecting models — so you can start chatting right away.
---
## Step 1: Get Your OpenAI API Key
To use OpenAI models (such as GPT-4 or o3-mini), you need an API key from a supported provider.
You can use:
- OpenAI directly (https://platform.openai.com/account/api-keys)
- Azure OpenAI
- Any OpenAI-compatible service (e.g., LocalAI, FastChat, Helicone, LiteLLM, OpenRouter etc.)
👉 Once you have the key, copy it and keep it handy.
For most OpenAI usage, the default API base URL is:
https://api.openai.com/v1
Other providers use different URLs — check your providers documentation.
---
## Step 2: Add the API Connection in Open WebUI
Once Open WebUI is running:
1. Go to the ⚙️ **Admin Settings**.
2. Navigate to **Connections > OpenAI > Manage** (look for the wrench icon).
3. Click **Add New Connection**.
4. Fill in the following:
- API URL: https://api.openai.com/v1 (or the URL of your specific provider)
- API Key: Paste your key here
5. Click Save ✅.
This securely stores your credentials and sets up the connection.
Heres what it looks like:
![OpenAI Connection Screen](/images/getting-started/quick-start/manage-openai.png)
---
## Step 3: Start Using Models
Once your connection is saved, you can start using models right inside Open WebUI.
🧠 You dont need to download any models — just select one from the Model Selector and start chatting. If a model is supported by your provider, youll be able to use it instantly via their API.
Heres what model selection looks like:
![OpenAI Model Selector](/images/getting-started/quick-start/selector-openai.png)
Simply choose GPT-4, o3-mini, or any compatible model offered by your provider.
---
## All Set!
Thats it! Your OpenAI-compatible API connection is ready to use.
With Open WebUI and OpenAI, you get powerful language models, an intuitive interface, and instant access to chat capabilities — no setup headaches.
If you run into issues or need additional support, visit our [help section](/troubleshooting).
Happy prompting! 🎉