Documentation Index
Fetch the complete documentation index at: https://docs.scenext.cn/llms.txt
Use this file to discover all available pages before exploring further.
Generate Video
This API is used to create video generation tasks.
Request
API key authentication, format: Bearer YOUR_API_KEY
Request content type, must be: application/json
Request Parameters
question and questionImages must include at least one.
Question content (text format)
Question content (image format), input image URLs or base64
Reference answer (text format): ensures accurate explanatory content generation
Reference answer (image format), input image URLs or base64
Video quality level:
h: High quality
m: Medium quality (default)
l: Low quality
Callback URL when the task is completed (optional), complete URL including http
Response
Request status: success or error
Response data object
Task ID, used to query task status
Error message description
Examples
import requests
url = "https://api.scenext.cn/api/gen_video"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"question": "What is Fourier series",
"answer": "",
"questionImages": [],
"answerImages": [],
"quality": "m",
"notify_url": "https://your-domain.com/webhook"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
{
"status": "success",
"data": {
"task_id": "12345"
}
}
Notes
- Video generation is an asynchronous process that may take from a few minutes to several tens of minutes
- Please use the returned
task_id to query task status
- If
notify_url is provided, a callback notification will be sent when the task is completed