Node.js SDK
Loxia AI API 的官方 Node.js SDK。非常适合 Next.js、Express 和原生 Node 服务器环境。
npm install loxia-ai使用示例:
const Loxia = require('loxia-ai');
const loxia = new Loxia({ apiKey: process.env.LOXIA_API_KEY });await loxia.calls.create({ to: '+1234567890', agentId: 'ag_123' });
Python SDK
Loxia AI API 的 Python 客户端库。非常适合 Django、Flask 或后台工作者。
pip install loxia-ai使用示例:
import loxia
client = loxia.Client(api_key="YOUR_API_KEY")
client.calls.create(to="+1234567890", agent_id="ag_123")Web Widget (React)
直接在您的网站上用于入站语音聊天的 React 组件。
npm install @loxia-ai/react-widget只需在您的组件树中放置 <LoxiaVoiceWidget agentId="ag_123" />。