Complete guide to connecting Open WebUI with OpenAI compatible APIs

Last update: 22/07/2026

  • Versatile Open WebUI configuration for integrating multiple LLM providers using the OpenAI protocol.
  • Detailed support for external services such as Groq, DeepSeek, Mistral, Gemini, and Anthropic.
  • Advanced deployment options on AWS Bedrock using proxies such as BAG or stdapi.ai.
  • Flexible model management through auto-detection or manual whitelist filters.

How to connect Open WebUI to an OpenAI compatible API

¿How to connect Open WebUI to an OpenAI compatible API? If you've downloaded Open WebUI and want to take the experience to the next level, you'll have noticed that you don't have to stick to the basics. The real meat of it lies in... connect the software with external APIs that follow the OpenAI standard, allowing you to jump from one model to another seamlessly and take advantage of the power of the best servers available.

The best part is that Open WebUI isn't limited to a single provider, but acts as a protocol-based command center. This means that as long as the external service speaks the OpenAI's Chat Completions languageYou can integrate it in just a few clicks, whether you're using ultra-fast models, complex reasoning agents, or integrated solutions in the Amazon cloud.

Basic OpenAI connection configuration

To start tweaking the settings, go to the Administration Panel, enter Settings, and look for the Connections section. There you'll see that you can Add new OpenAI connections by clicking the plus sign icon. At this point, the most important thing is to enter the service's base URL and your personal API key.

Exclusive content - Click Here  How to use default arguments in a function?

If you're using Azure OpenAI, the process changes slightly. You'll need to change the provider type to Azure OpenAI and specify the API version (for example, 2024-02-15-preview) along with the URL of your specific resource in Azure. A vital detail here is that you will need to add the names of the deployments in the model IDs section so that the system knows exactly which instance to interact with.

Integration of compatible providers

There are plenty of services that, while not from OpenAI, use the same structure to make migration a breeze. Here are the most notable ones and how to configure them:

  • Anthropic (Claude): Use the URL https://api.anthropic.com/v1Open WebUI has a compatibility layer that automatically detects models, although to take advantage of advanced features such as PDF processing or extended thinking, its native API is preferable.
  • Google Gemini: It connects via https://generativelanguage.googleapis.com/v1beta/openaiAll you need is your AI Studio key and the models will load automatically.
  • DeepSeek and Mistral AI: Both are fully compatible. For DeepSeek, use https://api.deepseek.com/v1 and for Mistral https://api.mistral.ai/v1In both cases, the automatic pattern detection It works perfectly.
  • Groq: If you're looking for pure speed, use https://api.groq.com/openai/v1It is ideal for running Llama 3 or DeepSeek-R1 with minimal latency.
  • Perplexity: Use https://api.perplexity.aiNote here, that the model IDs (like sonar-pro) must be added manually since they do not self-detect.

Special cases: MiniMax and Vercel AI Gateway

If you're interested in coding, MiniMax is a fantastic option. After subscribing to their coding plan and receiving your key, configure the URL. https://api.minimax.io/v1Since they do not expose a model endpoint, it is mandatory MiniMax-M2.5 handwriting in the Model IDs filter so that it appears in the dropdown menu.

Exclusive content - Click Here  How to create cloud-based web applications with Microsoft Visual Studio?

On the other hand, if you want to manage multiple suppliers from a single site, Vercel AI Gateway That's the solution. With the URL https://ai-gateway.vercel.sh/v1You can monitor spending and routing of requests to different AIs from a centralized panel, while maintaining compatibility with the OpenAI format.

Connecting with Amazon Bedrock (AWS)

NBA AWS

Migrating Open WebUI to AWS Bedrock is a bit more complex but offers professional-grade robustness. There are three main paths depending on your needs:

1. Bedrock Access Gateway (BAG)

It's an AWS proxy that converts Bedrock calls to OpenAI format. Once deployed with Docker, the URL you should enter in Open WebUI is http://host.docker.internal:8000/api/v1By default, the API key is bedrock, unless you have changed it in the configuration file.

2. stdapi.ai

This tool is a more complete gateway that allows multi-region access and support for additional services such as Amazon Polly (text-to-speech) or Transcribe. You can deploy it on ECS Fargate or locally. In Open WebUI, you will configure the environment variables or the control panel using the URL of your stdapi.ai instance and the secret key you define.

3. Bedrock Mantle

It's the simplest option because it's AWS native and it doesn't require installing any extra infrastructure. You only need your Bedrock API key and to configure the URL according to your region (for example, us-east-1The limitation is that it only supports chat completions and one subset of open weights models.

Exclusive content - Click Here  What is the Agentic AI Foundation and why does it matter for open AI?

Advanced tips and troubleshooting

Sometimes, when adding multiple APIs, models can have the same name and cause confusion. To avoid this, use the Prefix ID in the settings; for example, put groq/ so that the model appears as groq/llama3 and know exactly which server you are using.

If you encounter errors in connection failedVerify that the base URL is correct. A common mistake is trying to connect to https://api.openai.com/v1 in the "External Tools" section instead of the OpenAI Connections section. If you use Ollama as your backend, remember that Open WebUI communicates with it internally, but for external APIs You need a valid key and an endpoint accessible from the container.

The versatility of Open WebUI lies in its ability to act as a bridge between the user and any AI engine that respects the OpenAI standard, allowing everything from simple local configurations with Ollama to massive enterprise deployments on AWS Bedrock or the use of specialized code and reasoning models through smart proxies and gateways.

Cristian Garcia

Cristian Garcia

Passionate about technology since he was little. I love being up to date in the sector and, above all, communicating it. That is why I have been dedicated to communication on technology and video game websites for many years. You can find me writing about Android, Windows, MacOS, iOS, Nintendo or any other related topic that comes to mind.