简体中文
几分钟内开始使用Scenext API生成视频
import requests url = "https://api.scenext.cn/api/gen_video" headers = { "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_KEY" } data = { "question": "讲解一下傅里叶级数", "answer": "", "questionImages": [], "answerImages": [], "quality": "m", "notify_url": "https://your-domain.com/webhook" } response = requests.post(url, json=data, headers=headers) print(response.json())
task_id = "your_task_id" # 从上一步获取的task_id status_url = f"https://api.scenext.cn/api/get_status/{task_id}" response = requests.get(status_url, headers=headers) print(response.json())