-
Notifications
You must be signed in to change notification settings - Fork 1.6k
en tags readme
LangBot provides a set of RESTful APIs for external services to integrate and automate management. These APIs are authenticated with API keys, which are a subset of the HTTP API.
Warning
Service API is currently in Beta and some APIs may change frequently.
Click the API Keys button in the sidebar of the WebUI to create an API Key.

After creation, copy the API Key and save it.

All Service APIs support two authentication methods:
-
API Key: Via
X-API-Key: <your-key>orAuthorization: Bearer <your-key>header -
User Token: Via
Authorization: Bearer <user-token>header (obtained after login)
The left sidebar lists all available APIs. You can fill in your instance address (the port address exposed by the backend, default is http://localhost:5300) and API Key, then click the Try it out button to call the API.
LangBot uses a Provider + Model two-layer architecture for AI model management:
-
Provider: Defines the API endpoint (
base_url), requester type, and API keys. A single provider can be associated with multiple models. -
Model: Associated with a provider (via
provider_uuid), defining the specific model name and parameters. Models inherit the provider's API endpoint and keys.
Provider (OpenAI)
├── base_url: https://api.openai.com/v1
├── api_keys: [sk-xxx]
├── LLM: gpt-4o
├── LLM: gpt-4o-mini
└── Embedding: text-embedding-3-small
This architecture allows you to manage multiple models under a single provider, sharing API configuration and avoiding redundant key entries.
A requester defines the communication protocol with AI services. Use GET /api/v1/provider/requesters to list available requesters. Common requesters include:
-
openai-chat-completions— OpenAI-compatible chat completions API (also works with SiliconFlow, DeepSeek, etc.) -
anthropic-messages— Anthropic Claude API -
openai-embeddings— OpenAI-compatible embeddings API
Some operations (plugin install/delete/upgrade) run asynchronously and return a task_id. You can track progress in the WebUI.
Automatically synchronized from langbot-app/langbot-wiki.
简体中文
指南
开发者
- 插件开发
- 插件 SDK API
- 核心开发
文章
- 浏览
- 产品动态
- 技术解析
- 教程与集成
- 公告
API 参考
- Service API
English
Guides
Developers
-
Plugin Development
- Plugin Development Tutorial
- Completing Plugin Configuration Information
- Plugin Directory Structure
- Component Development
- Code Style Guide
- Migration Guide
- Publish Plugin
- Plugin SDK API
- Core Development
Articles
- Browse
- Product Updates
- Engineering
-
Tutorials & Integrations
- LangTARS: Open-Source AI Agent for Remote PC Control — Works with Dify, n8n & 10+ Messaging Platforms
- How to Connect DeepSeek R1 to WeChat, Discord & Telegram in 5 Minutes (FREE)
- Deploy Your Own AI Bot to Discord, Telegram & WeChat in 5 Minutes
- Finally Got My Dify Agent Working in Discord, Telegram and Slack
- How I Built a Multi-Platform AI Bot with Langflow's Drag-and-Drop Workflows
- How I Built a Multi-Platform AI Chatbot with n8n and LangBot
- LangBot 4.6.0 External Knowledge Base Tutorial: Integrating Dify with LangBot for RAG-powered Conversations
- Announcements
API Reference
- Service API
Other pages
日本語
ガイド
開発者
- プラグイン開発
- プラグイン SDK API
- コア開発
記事
- 一覧
- 製品アップデート
- エンジニアリング
-
チュートリアルと連携
- LangTARS:Dify・n8n と連携するオープンソース PC 操作 Agent
- DeepSeek R1 を WeChat・Discord・Telegram に5分で接続する方法
- AI Bot を Discord・Telegram・WeChat に5分でデプロイ
- Dify Agent を Discord・Telegram・Slack で動かす
- Langflow のドラッグ&ドロップでマルチプラットフォーム AI Bot を構築
- n8n と LangBot でマルチプラットフォーム AI Chatbot を構築
- LangBot 4.6.0 外部ナレッジベース入門:Dify と連携した RAG 会話
- お知らせ
API リファレンス
- Service API