简体中文
了解如何使用API密钥进行身份验证
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
import requests headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" } response = requests.post( "https://api.scenext.cn/api/gen_video", headers=headers, json=your_data )
const headers = { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }; fetch('https://api.scenext.cn/api/gen_video', { method: 'POST', headers: headers, body: JSON.stringify(your_data) });
curl -X POST https://api.scenext.cn/api/gen_video \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"question": "问题", "answer": "参考答案"}'
{ "status": "error", "data": { "messages": "Unauthorized: Invalid API key" } }