List a Video
Get the user-generated video. The URL for the generated video is valid for one hour. Please make sure to download and store it promptly to avoid any issues due to URL expiration.
Set the header 'Authorization: Bearer {your API key}' for authentication
In: header
The requestId returned by the interface submit.
Response Body
Successful response
TypeScript Definitions
Use the response body type in TypeScript.
Status of the operation. Possible values are 'Succeed','InQueue','InProgress','Failed'.
"Succeed" | "InQueue" | "InProgress" | "Failed"Reason for the operation
curl --request POST \
--url https://api.siliconflow.cn/v1/video/status \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"requestId": "c13b5dd0-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}'
import requests
url = "https://api.siliconflow.cn/v1/video/status"
payload = {"requestId": "c13b5dd0-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
{
"status": "Succeed",
"reason": "string",
"results": {
"videos": [
{
"url": "string"
}
],
"timings": {
"inference": 0.1
},
"seed": 0
}
}{
"code": 20012,
"message": "string",
"data": "string"
}"Invalid token""Forbidden""404 page not found"{
"code": 50505,
"message": "Model service overloaded. Please try again later.",
"data": "string"
}"string"Submit a Video POST
Generate a video through the input prompt. This API returns the user's current request ID. The user needs to poll the status interface to get the specific video link. The generated result is valid for 10 minutes, so please retrieve the video link promptly.
List Files GET
Returns a list of files.