Setting Up the Admin Account and OpenAI API | Alpha | PandaiTech

Setting Up the Admin Account and OpenAI API

Learn how to create your first admin account, generate an OpenAI API key, and link it to OpenWebUI to start chatting.

Learning Timeline
Key Insights

Advantages of Using APIs

Using an API is more cost-effective (pay-as-you-go) if you aren't a heavy user. You only pay for what you use, compared to a fixed $20/month subscription for ChatGPT Plus.

Admin Account Reminder

The first account you create in OpenWebUI will automatically become the Admin. Ensure you use a strong password, as this account controls the entire system's access.

Local Model vs Cloud Model

Llama 3.2 is a local model that utilizes your own server hardware (free), whereas OpenAI models require an API key and paid credits because they are processed in the cloud.
Prompts

Testing AI Model Response

Target: OpenWebUI (Llama 3.2 / GPT)
Hey, how are you?
Step by Step

OpenWebUI Admin Account Setup Steps

  1. Click the 'Manage App' button on your hosting dashboard to open a new tab.
  2. Ensure the new tab displays your public IP address with port 8080.
  3. Click the 'Get started' button at the bottom of the OpenWebUI main screen.
  4. Click on 'Create admin account' to register your first account. This account will have full access (Godlike Powers) over the system.
  5. Once logged in, you can start testing local models like Llama 3.2, which use your server's own resources.

How to Generate an OpenAI API Key

  1. Visit openai.com/api and log in or register a new account.
  2. Click the 'Start building' button located at the top right of the screen.
  3. Enter your credit card details for billing verification. You only need to top-up a minimum of $5 as initial credit.
  4. Click the 'API keys' menu in the left sidebar.
  5. Click the 'Create new secret key' button.
  6. Name your key, leave the 'Default project' selection as is, and click 'Create secret key'.
  7. Copy the API Key that appears. Make sure to save it, as it will not be shown again.

Connecting OpenAI API to OpenWebUI

  1. Return to your OpenWebUI dashboard.
  2. Click on your profile icon at the top right of the screen.
  3. Select 'Admin Panel' from the dropdown list.
  4. Click on the 'Settings' tab within the Admin Panel.
  5. Select the 'Connections' menu on the Settings sidebar.
  6. Paste the OpenAI API Key you copied earlier into the provided field.
  7. Click the 'Save' button to complete the configuration.

More from Local AI & Open Source Deployment

View All