58API Help Center58API Help Center
User GuideAI ApplicationsAPI DocumentationHelp & Support

Open WebUI - open source AI conversation platform

Connect Open WebUI to 58API and use multiple compatible models uniformly.

Scope of application

This tutorial is for Open WebUI administrators. After completing the configuration, site users can select the model provided by 58API in the model list for dialogue.

Open WebUI is a self-hosted, open-source AI conversational platform that supports connecting to external model services through an OpenAI-compatible interface.

Preparation before use

  1. Log in 58API, create an API Key and confirm that the account balance is sufficient.
  2. Prepare at least one accurate model ID available for the current account.
  3. Log in using the Open WebUI administrator account; ordinary users cannot add site-wide connections.

Configuration parameters

Open WebUI fieldsFill in the content
URLhttps://api.58api.net/v1
AuthBearer
API KeyAPI Key created in 58API console
API TypeKeep Chat Completions(default)
ProviderLocated within Advanced, keep Default
Model IDsLocated within Advanced; can be left blank to obtain automatically, or manually add the exact model ID

/v1 must be retained here

Open WebUI's URL field requires the API base address, so you should use https://api.58api.net/v1。

Graphical interface configuration

  1. Open Open WebUI, click on the avatar in the lower left corner to enter Admin Panel/Administrator Panel.
  2. Enter Settings → Connections → OpenAI and click Add Connection.
  3. Fill in the URL and API Key in the connection editing window, keep the authentication method Bearer, and API Type Chat Completions。

The picture below shows an example of filling in the API Key.

Fill in the 58API URL, API Key and model ID in Open WebUI

The screenshot is the old version interface: the Provider Type in the picture is changed to Provider in Advanced in the new version (remain Default), Model IDs are also moved into Advanced.

  1. If the model list can be obtained normally, there is no need to fill in the model ID, Open WebUI will automatically include it. https://api.58api.net/v1/models The returned model.
  2. If you only want to display some models, or the connection check cannot obtain the model list, click Advanced at the bottom of the window to expand the advanced options, enter the accurate model ID in Model IDs and click the plus sign; Provider remains Default。
  3. Click Save to save the connection.
  4. Return to the new conversation page, select the model you just added in the model selector and send a test message.

Docker environment variable configuration

Self-hosted administrators can also set environment variables when deploying Open WebUI:

OPENAI_API_BASE_URL=https://api.58api.net/v1
OPENAI_API_KEY=<your 58API API Key>

OPENAI_API_BASE_URL、OPENAI_API_KEY It is a persistent configuration: it is only written to the database when it is first started. Modifying environment variables and restarting the container will not overwrite the saved connection. For instances that are already running, please modify them directly in Administrator Panel → Settings → Connections; if you really need to use environment variables, you can set them at the same time. ENABLE_PERSISTENT_CONFIG=False, at this time, the modifications in the interface are only valid for this run, and will be restored to the value of the environment variable after restarting. Multi-connection deployment can also use the officially provided OPENAI_API_BASE_URLS、OPENAI_API_KEYS or OPENAI_API_CONFIGS, please refer to the current version of the environment variable document for the specific format.

Verification successful

  1. Select the 58API model in Open WebUI and send a simple question.
  2. Confirm that the answer can be streamed back normally.
  3. Open the usage log of the 58API console and confirm that the request record of the corresponding model appears.

Just seeing the model name does not mean the call was successful; a real conversation and log check should be completed at the same time.

Image understanding

Vision-capable models such as deepseek-v4.1-flash need no extra setup. Select the model, click + at the bottom-left of the chat box to upload an image, then ask.

FAQ

Connection check failed, but interface address and key are correct

Open WebUI's connection check requests https://api.58api.net/v1/models. If the model list interface is temporarily unavailable, you can click Advanced and first Model IDs Manually add the accurate model ID to the dialog box, and then conduct the actual conversation test.

Model list is empty

Confirm URL is https://api.58api.net/v1, and then refresh the connection. While still empty, copy the exact model ID from the 58API model list and click Advanced Model IDs Add manually.

Return 401

The API Key is invalid, deleted, or copied with spaces. Please copy the key again and save the connection. Do not send the complete key to chat, screenshots or public logs.

Does Responses API need to be enabled?

Keep the API Type in the connection window as default Chat Completions. Only confirm that the model used supports the Responses API (the endpoint in the 58API model list contains openai-response), switch to Responses;URL still filled in https://api.58api.net/v1。

official basis