API 访问

为您的聊天工作区提供基于 JSON 的 REST API。管理用户、用户组和角色,向 AI 智能体发送消息,以及获取日志——全部都能在您自己的系统中完成。

your-service — bash
curl https://your-instance.com/api/v1/agents/\
ag_7f2/messages \
-H "Authorization: Bearer $TM_API_KEY" \
-d '{"message": "Draft the release notes"}'
200 OK · 312 ms
{
"id": "msg_9c1",
"content": "## Release 4.2…",
"tokens": 812
}
集成 API 密钥3
sk-tm-••••••••ci-pipeline
sk-tm-••••••••intranet-bot
每个密钥代表一个用户,受相同的用量限制
端点
GET/users
POST/groups
POST/agents/:id/messages
GET/logs
REST(JSON)
将您的工作区接入现有系统

全球已有 5,000+ 家企业
加入我们

管理面板中的集成 API 密钥列表及新密钥命名对话框

生成密钥,用完即可撤销

前往「集成」,选择「API 集成」,然后生成密钥。为密钥命名,方便日后识别它所属的集成;您也可以在同一页面撤销任意密钥。

每个 API 密钥都会在您的工作区中创建一个专用 API 用户,与其他用户一样,受相同的权限、访问控制和请求频率限制约束。

API 参考文档,列出了用户、智能体对话、审计日志和用户组的端点

工作区中的这些功能,都能通过代码控制

基于 JSON 的 REST API,涵盖用户、用户组、角色、智能体对话和日志。列出、添加、更新和删除——原本需要在管理面板中手动完成的操作,现在都能通过 API 执行。

在请求头中加入您的 API 密钥,即可完成请求身份验证。

POST /v2/users 参考文档,包含请求和响应示例

每个端点都有文档,附带可复制的示例

每个端点都列出了请求体结构、响应以及可直接复制到您自己代码中的请求数据。添加用户时,需提供该用户的邮箱地址和所属用户组,也可填写其他个人资料。

完整参考文档位于 api.typingmind.com/docs,您也可以通过管理面板中的链接访问。

“We’re using TypingMind to wrap our internal use of LLMs and Gen AI. This allows us to control and measure the access to LLMs in a way in which our confidential data isn’t stored directly by the LLM.”

Tim Boughton
Co-founder & CEO at Mention Me
Tim Boughton, Co-founder & CEO at Mention Me

通过 API,让这些任务自动完成

REST API 的请求和响应均使用 JSON 格式的数据。

管理用户

向您的聊天工作区添加用户、获取所有用户、更新用户资料,或移除用户。

管理用户组

获取所有用户组、添加具有特定角色的新用户组,以及更新现有用户组的详细信息。

获取角色

获取聊天工作区中的所有可用角色,以便将其映射到您自己的系统中。

与 AI 智能体对话

向智能体发送消息并获取回复,其使用的插件、知识库和 MCP 连接器会在后台运行。

获取日志

从工作区导出聊天日志和审计日志,将其保存到团队日常查看的系统中。

密钥由您掌控

每个密钥都对应一个独立的 API 用户,受您现有的权限和限额约束,并可单独撤销。

团队可以用 API 构建哪些应用

专为这两种应用场景打造的 API。

大规模用户管理

对于大型团队或社区,通过管理面板逐一手动添加新用户十分耗时。将流程自动化,让成员加入后即可获得访问权限。

在您自己的系统中调整转岗成员的权限或撤销离职成员的访问权限

当成员职责变更或离职时,通过 API 更新其所属用户组或移除该用户,无需再专门到管理面板手动操作。

聊天机器人集成

基于您自己的训练数据构建聊天机器人,并将其部署到用户所在的平台,无论是 Discord、Telegram,还是其他地方。

自由选择驱动模型

同一套集成可搭配 ChatGPT、Claude 或您的自定义大语言模型,让您按任务需求选择合适的模型。

看看客户为何喜爱我们

听听我们最重视的人如何评价我们带来的改变——他们就是我们的客户!

Capterra 最佳性价比
ProductHunt 每日产品榜第 1 名
TP 评级:卓越
G2 顶尖生成式 AI 软件

“I have entirely switched to TypingMind from the normal ChatGPT client. The responses are typically faster, and you can put chats in folders, search them, switch between all sorts of models.”

Thomas Frank

Thomas Frank

YouTuber with 3M+ subscribers

“I'm the CEO/CTO of an AI Edtech startup, and I've been using TypingMind daily since December 2023. Easily one of the best frontends for AI models I've tried: fast, clean, and really optimized for professional workflows.”

Cesar N'Gouan

Cesar N'Gouan

CEO/CTO of AI Edtech

“We started using TypingMind when it was giving out team licenses and our team uses it every day! I use it for my product management work and I'd be quite disappointed if it went away.”

Shavin Peiris

Shavin Peiris

Product Manager at Aristotle

“It's incredibly powerful and flexible. It allows me to centralize all my interactions with the different models. There's almost no reason for me to use any other application.”

Graydon T.

Graydon T.

Founder

“TypingMind is a state of the art user interface for generative AI. I have been using it every day since I stumbled upon it a year ago.”

Roland Priborsky

Roland Priborsky

CEO at Nionium Inc

“I love Typing Mind. One of the best purchases I have made. There is not one single LLM I use — I use ChatGPT for some tasks, Claude for others, and Gemini for others. With TypingMind I don't have to pay a monthly subscription for all of them.”

Larry James

Larry James

Verified Trustpilot User

“We use TypingMind across various tasks to streamline our workflows and enhance productivity. We fell in love with the product and believed it to be the only one of its kind.”

Tommy Cunningham

Tommy Cunningham

Web Developer & Technical Manager of Entrepreneurs Circle

“As a CTO of multiple startups, I love this web app. It works well and I save a lot of money by using it because I don't have to pay a subscription to try different models.”

Youcef Lkml

Youcef Lkml

Verified Trustpilot User

“This is the best ChatGPT client and I tested so many! So much better than the OpenAI user interface. Added my GPT-4 API to bypass the 25 message cap PLUS have a better user experience.”

Mirel Vasile

Mirel Vasile

Digital Creator

以更多方式连接您的工作区

将 API 访问与以下功能结合,打造符合您需求的工作区。

用业界一流的平台,打造您的团队 AI 工作空间