curl --request POST \
--url https://gengen.farm/api/gengen/v1/video/enhancements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "byteplus-video-enhancement",
"assets": {
"sourceVideo": "https://example.com/source.mp4"
}
}
'import requests
url = "https://gengen.farm/api/gengen/v1/video/enhancements"
payload = {
"model": "byteplus-video-enhancement",
"assets": { "sourceVideo": "https://example.com/source.mp4" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'byteplus-video-enhancement',
assets: {sourceVideo: 'https://example.com/source.mp4'}
})
};
fetch('https://gengen.farm/api/gengen/v1/video/enhancements', 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>"
}Create a video enhancement task
Enhance a public source video using BytePlus AI MediaKit. This independent endpoint supports only byteplus-video-enhancement. BytePlus supports sources up to 2K and recommends files no larger than 10 GB. GENGEN validates request fields and reserves a fixed balance amount without downloading or probing the source. This reservation is not a quote or maximum charge; actual output usage is settled on success. Source validation failures are asynchronous. Each POST creates a new job. Download successful outputs before outputs.expiresAt; results are not archived. Customer webhook subscriptions are not supported.
curl --request POST \
--url https://gengen.farm/api/gengen/v1/video/enhancements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "byteplus-video-enhancement",
"assets": {
"sourceVideo": "https://example.com/source.mp4"
}
}
'import requests
url = "https://gengen.farm/api/gengen/v1/video/enhancements"
payload = {
"model": "byteplus-video-enhancement",
"assets": { "sourceVideo": "https://example.com/source.mp4" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'byteplus-video-enhancement',
assets: {sourceVideo: 'https://example.com/source.mp4'}
})
};
fetch('https://gengen.farm/api/gengen/v1/video/enhancements', 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_.
Body
Response
Task durably queued; processing continues in the background.
"byteplus-enhance:12345678-1234-4234-8234-123456789abc"
byteplus-video-enhancement pending, running, succeeded, failed Show child attributes
Show child attributes
Safe explanation when status is failed.