将企微瓣的AI创作能力集成到您的应用中
毫秒级响应,支持高并发请求
HTTPS加密,API密钥认证
完整的API文档和示例代码
提供Python、Node.js等SDK
登录企微瓣工作台,在「设置」-「API密钥」中创建您的API密钥。
在请求头中携带API密钥进行身份认证:
Authorization: Bearer YOUR_API_KEY/api/v1/video/create/api/v1/video/{id}/api/v1/audio/synthesize/api/v1/text/generate/api/v1/avatars/api/v1/voices// 创建数字人视频示例
const response = await fetch('https://api.qiweiban.com/api/v1/video/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
avatar_id: 'avatar_001',
script: '大家好,欢迎使用企微瓣智能体平台。',
voice_id: 'voice_female_01',
background: {
type: 'color',
value: '#1a1a2e'
}
})
});
const result = await response.json();
console.log(result.video_id); // 视频任务IDv1.2.0
v1.1.5
v1.0.3