Hosted in Germany • GDPR-ready

Open WebUI API: Build AI Features Without Lock-in

Access ChatGPT-like capabilities programmatically. Works with any model. Runs locally. Your data stays yours.

Open WebUI

Why Opsily for Open WebUI API Access

You're busy running a company, not a server.

No setup overhead

Skip Docker, Kubernetes, and DevOps busywork. Your Open WebUI instance is live in minutes with API endpoints ready to call. Focus on building features, not infrastructure.

GDPR-compliant by default

All Open WebUI instances run in German data centers. No US data transfers. Audit-ready logs and webhook tracking. Meets regulated industries out of the box.

Model independence

The same API code calls local Ollama, ChatGPT, Claude, Mistral, or Cohere. Switch providers without code changes. No platform lock-in, ever.

Built for teams who need reliability

170
Monthly searches for Open WebUI API guidance
5K+
GitHub stars - active community
3 min
Average API setup time on Opsily
100%
EU data residency guaranteed

How to Access the Open WebUI API

Simple, secure, and ready to integrate today.

console.opsily.com/deploy
1
App
2
Region
3
Plan
4
Domain

Choose Your App

Select an app to get started.

1

Deploy Open WebUI

Create your instance on Opsily. Choose your plan. Add EU-compliant storage and backups automatically.

2

Generate API Key

Navigate to Settings > API Key in Open WebUI. Copy your JWT token. This authenticates all your API calls.

3

Test with cURL or SDK

Make your first request: curl -H 'Authorization: Bearer YOUR_KEY' https://your-instance.opsily.app/api/chat. Start building immediately.

4

Scale to production

Add rate limiting, webhook integrations, and multi-user access via Open WebUI settings. Monitor API usage in your Opsily dashboard.

API Fundamentals

What the Open WebUI API Gives You

The Open WebUI API is a REST interface to everything in the UI: chat completions, model management, document uploads, and user administration.

Core Endpoints

Chat Completions: POST /api/chat - Send a message and get a response from any configured model. Supports streaming for real-time chat interfaces.

Models: GET /api/models - List available models. Includes local Ollama instances and connected cloud providers (OpenAI, Claude, Mistral, etc.).

RAG: POST /api/documents - Upload files for semantic search and retrieval-augmented generation (RAG). Query with POST /api/search.

Users & Auth: GET /api/users - Manage team members and permissions. Every request requires a valid API key in the Authorization header.

Authentication

All endpoints use bearer token authentication: Authorization: Bearer your-jwt-key

API keys are issued per user in Open WebUI Settings. Revoke them anytime. No credit card required to test locally.

Why Developers Choose Open WebUI API

No SDK overhead. You speak HTTP. Works from Node.js, Python, Go, Rust, even bash. The official API is OpenAI-compatible, so if you've used ChatGPT's API, you already know the syntax. Switch backends (Ollama, OpenAI, Claude) by changing one line of config. Your code stays the same.

Real Python Example

import requests

api_key = 'your-jwt-token'
base_url = 'https://your-instance.opsily.app'

response = requests.post(
  f'{base_url}/api/chat',
  headers={'Authorization': f'Bearer {api_key}'},
  json={
    'model': 'mistral',
    'messages': [
      {'role': 'user', 'content': 'Summarize this: ...'}
    ]
  }
)

print(response.json()['choices'][0]['message']['content'])```

Same API, Multiple Backends

Change 'model': 'mistral' to:

  • 'model': 'gpt-4' - Uses your OpenAI API key
  • 'model': 'ollama:llama2' - Uses local Ollama
  • 'model': 'claude-3' - Uses Claude via Anthropic API

Zero code changes elsewhere. This is why teams avoid lock-in.

App Catalog

Apps That Work With Open WebUI API

Extend Open WebUI into your workflow.

AI & LLM Tools

Self-hosted chat interface for local and private LLMs

Open WebUI logo
Open WebUI

Enterprise-Grade API Security

Built for regulated industries. Audit-ready. No shortcuts.

GDPR Compliant

German data centers. Zero US data transfers. Audit logs for every API call. Meet compliance requirements on day one.

API Rate Limiting

Configurable per user or per app. Prevent abuse. Monitor usage in real time. Webhooks trigger on quota breaches.

Encryption in Transit & Rest

TLS 1.3 for all API traffic. Sensitive data encrypted at rest. Open WebUI stores no chat logs by default unless you configure it.

Webhook Integrations

Send API events to your systems. New chat, model changes, user actions. Build audit trails and compliance dashboards easily.

Frequently Asked Questions

Developers ask these. Here are the answers.

The Open WebUI API is a REST interface that lets you send chat messages, manage models, upload documents, and administer users programmatically. You make HTTP requests to endpoints like POST /api/chat, passing your API key in the Authorization header. For example, a Python script can call the API to send a message to Ollama or OpenAI without touching the web interface. Every endpoint returns JSON, making it easy to integrate with any backend language or framework.

Stop Reinventing Self-hosted AI.

Open WebUI is free. Running it isn't. Get your API-ready instance up today and build in minutes instead of weeks.

Simple, Transparent Pricing

All plans include GDPR-compliant EU hosting. No setup fees. Cancel anytime.

Monthly
Annual

Loading pricing...