APIMaster.ai

AI 应用平台接入教程

在 Dify、LangChain、LiteLLM、Open WebUI 等 AI 应用平台与框架中配置 APIMaster.ai 的 OpenAI 兼容接口与模型。

AI 应用平台接入教程

Dify 等可视化 AI 应用平台中,通过 OpenAI-API-compatible 供应商接入 APIMaster.ai,即可在 Agent、工作流、Chatbot 里使用广场上的模型。

开始前请 获取 API Key。模型 名称(model id) 请从 模型广场 复制,须与 API 调用参数完全一致。


适用场景

平台 说明
Dify Agent / 工作流 / 对话应用;设置 → 模型供应商 → OpenAI-API-compatible
LangChain Python Agent 框架;init_chat_model + base_url=https://apimaster.ai/v1
LiteLLM 统一 LLM SDK / Proxy;openai/<model id> + api_base=https://apimaster.ai/v1
Open WebUI 自托管聊天 UI;Docker 安装 → Settings → Connections → OpenAI API
更多平台 若支持 OpenAI 兼容 Base URL + API Key + 自定义 model id,配置方式与 Dify 类似

与 CLI / Agent 教程的区别

类型 典型产品 配置入口
本节 Dify 等应用平台 网页 设置 → 模型供应商
CLI 配置教程 Claude Code、Codex、Gemini CLI 终端 / 环境变量
Agent 配置教程 Hermes、Kilo Code、OpenClaw 桌面或 IDE 扩展

通用参数

无论哪一家平台,接入 APIMaster 时通常需要:

参数
API Base URL https://apimaster.ai/v1
API Key APIMaster 控制台创建的令牌
Model / 模型名称 模型广场 复制的 model id(如 deepseek-v4-flashclaude-sonnet-4-6

分平台教程

教程 内容
Dify 配置 APIMaster.ai 登录 Dify → 设置 → 模型供应商 → 添加 OpenAI 兼容模型
LangChain 配置 APIMaster.ai pip install langchain langchain-openaiinit_chat_model 指定 APIMaster base URL
LiteLLM 接入 APIMaster.ai SDK 或 Proxy;openai/<model id> + config.apimaster.yaml
Open WebUI 配置 APIMaster.ai Docker Quick Start 前三步 → http://localhost:3000 → Connections 填写 APIMaster

相关链接