> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/api-can-kao/core-api-reference/live-apis-beta.md).

# 实时 API（Beta）

{% hint style="danger" %}
Live API 仅适用于企业版套餐。
{% endhint %}

Convai 的 **Live API** 通过 **WebRTC**.\
这些 API 允许你的应用发送和接收 **音频**, **text**以及其他上下文数据，使与 AI 角色的对话更加流畅且响应迅速。

一旦创建了你的角色，Live API 就会自动管理对话输入和上下文响应，确保在不同会话中保持自然且一致的行为。

#### **借助 Live API，你可以：**

* **进行实时对话** — 发送用户的文本或语音输入，并实时接收有上下文相关性的自然回复。
* **以文本和/或音频形式获取回复** — 同时支持基于文本的聊天和语音对话体验。
* **使用实时模型** — 集成低延迟模型（目前为 Google Realtime；OpenAI 支持即将推出），以获得高速的对话性能。

该 **Live API** 充当你的 AI 角色与用户之间的桥梁，使双方能够进行顺畅的双向通信 **text** 是位于 **voice** 渠道——全部实时进行。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/zh/api-can-kao/core-api-reference/live-apis-beta.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
