Retrieve a video enhancement task
curl --request GET \
--url https://gengen.farm/api/gengen/v1/video/enhancements/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/video/enhancements/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/video/enhancements/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "byteplus-enhance:12345678-1234-4234-8234-123456789abc",
"model": "byteplus-video-enhancement",
"status": "pending",
"outputs": {
"videos": [
"<string>"
],
"images": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"failureReason": "<string>"
}Video Enhancement API
Retrieve a video enhancement task
Retrieve using the same API key that created the job. Poll no more often than once every 10 seconds. Repeat queries never charge twice. After outputs.expiresAt, the task remains succeeded but outputs.videos is empty. Querying does not regenerate, renew, or permanently store the video.
GET
/
video
/
enhancements
/
{id}
Retrieve a video enhancement task
curl --request GET \
--url https://gengen.farm/api/gengen/v1/video/enhancements/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/video/enhancements/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/video/enhancements/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "byteplus-enhance:12345678-1234-4234-8234-123456789abc",
"model": "byteplus-video-enhancement",
"status": "pending",
"outputs": {
"videos": [
"<string>"
],
"images": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"failureReason": "<string>"
}Authorizations
A workspace API key beginning with gengen_live_.
Path Parameters
Example:
"byteplus-enhance:12345678-1234-4234-8234-123456789abc"
Response
Current task state. Failed tasks include failureReason.
Example:
"byteplus-enhance:12345678-1234-4234-8234-123456789abc"
Available options:
byteplus-video-enhancement Available options:
pending, running, succeeded, failed Show child attributes
Show child attributes
Safe explanation when status is failed.