LobeChat Integration
AVELIN API works seamlessly with LobeChat — a modern, feature-rich chat interface with over 40K GitHub stars. LobeChat combines a beautiful UI with a powerful plugin ecosystem, connecting to AVELIN's frontier models via both OpenAI and Anthropic-compatible endpoints.
Why AVELIN + LobeChat? A stunning, plugin-extensible chat interface that deploys in one Docker command, connected to AVELIN's governed API with 200+ plugins for search, code execution, image generation, and more.
LobeChat is a modern, open-source chat client available as a self-hosted Docker deployment or via LobeChat Cloud. With over 40K GitHub stars, it stands out for its polished, contemporary UI and its extensive plugin system featuring 200+ community-built plugins. It supports text-to-speech, vision, multi-modal inputs, conversation management, prompt templates, and model switching — all in a single, beautifully designed interface that feels like a premium product rather than an open-source project.
The killer feature is the plugin marketplace combined with effortless deployment. Install a web search plugin, a calculator, an image generator, or a code executor — all from within the UI — and your AI assistant gains those capabilities instantly. Deploy with one docker run command and you have a ChatGPT-quality interface that connects to any OpenAI or Anthropic-compatible API. It's for developers and teams who want a modern, extensible chat experience with rich plugin integrations and the flexibility to self-host or use the cloud version.
Quick Setup
Step 1: Get your AVELIN API key
Sign up at avelin.ai and generate an API key. It will look like sk-ave...xxxx.
Step 2: Install LobeChat
# Self-hosted via Docker docker run -d -p 3210:3210 \ -e OPENAI_API_KEY=sk-ave...xxxx \ -e OPENAI_PROXY_URL=https://api.avelin.ai/v1 \ --name lobe-chat \ lobehub/lobe-chat
Or use LobeChat Cloud and configure in-app.
LobeChat runs at http://localhost:3210 by default.
Step 3: Configure AVELIN
Via Docker environment variables (recommended for self-hosted):
# OpenAI-compatible endpoint OPENAI_API_KEY=sk-ave...xxxx OPENAI_PROXY_URL=https://api.avelin.ai/v1 # Or Anthropic-compatible endpoint ANTHROPIC_API_KEY=sk-ave...xxxx ANTHROPIC_PROXY_URL=https://api.avelin.ai
Via UI (for cloud or existing deployments):
- Open LobeChat and go to Settings (gear icon)
- Navigate to Language Model > OpenAI
- Set API Proxy to
https://api.avelin.ai/v1 - Enter your API Key:
sk-ave...xxxx
Step 4: Add Models and Start Chatting
- In Settings > Language Model > OpenAI, enable your preferred models
- Or add custom model names manually:
avelin-pro
avelin-ultra
avelin-fast
avelin-coding-pro
avelin-coding-fast
avelin-coding-ultra
avelin-agentic-pro
avelin-agentic-ultra
avelin-agentic-fast
- Return to the chat, select your model, and start chatting
Recommended Models
For General Chat: avelin-pro
For Plugins & Tools: avelin-agentic-ultra
Quick Reference
Why AVELIN for LobeChat?
- Dual endpoint support: Connect via OpenAI (
/v1) or Anthropic (/) compatible endpoints - Plugin synergy: AVELIN's agentic models excel at LobeChat's function-calling plugin system
- Prompt caching: ~80% cost reduction on repeated system prompts across conversations
- Automatic failover: Never interrupted by provider outages — your plugins keep working
- Vision & multi-modal: AVELIN models support vision inputs through LobeChat's upload interface
Advanced Configuration
Anthropic Endpoint
LobeChat natively supports Anthropic's API format. You can use AVELIN through the Anthropic-compatible endpoint:
ANTHROPIC_API_KEY=sk-ave...xxxx ANTHROPIC_PROXY_URL=https://api.avelin.ai
This gives you access to AVELIN models through LobeChat's Anthropic integration path, which may enable additional UI features specific to Anthropic-style conversations.
Plugins
LobeChat's plugin marketplace includes 200+ plugins. Pair them with AVELIN's agentic models for best results:
- Web Search — Give AVELIN models real-time internet access
- Code Runner — Execute code generated by
avelin-coding-pro - Image Generation — Combine text analysis with image creation
- Calculator — Mathematical precision alongside reasoning
TTS (Text-to-Speech)
Enable TTS in LobeChat settings to have AVELIN responses read aloud. Works with any AVELIN model.
Troubleshooting
Related
- API Quickstart — First API call in 5 minutes
- Open WebUI Guide — Self-hosted alternative with Ollama support
- LibreChat Guide — Another self-hosted chat option
- Model Catalog — Full model comparison
- LobeChat Docs — Official documentation