Create a video enhancement task
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": [],
"images": []
}
}Video Enhancement API
Create a video enhancement task
Enhance a public source video with byteplus-video-enhancement.
Sources support up to 2K; files no larger than 10 GB are recommended.
Accepted requests reserve a fixed balance amount. This reservation is not
a quote or maximum charge; actual output usage is settled on success.
Source download or format errors can appear as asynchronous task failures.
Poll the returned ID for the successful task’s usage, including
outputDurationSeconds and the per-minute priceRowId.
Each POST creates a new job. Download successful outputs before outputs.expiresAt;
results are not archived. Customer webhook subscriptions are not supported.
POST
/
video
/
enhancements
Create a video enhancement task
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": [],
"images": []
}
}Body
application/json
Response
Task durably queued; processing continues in the background.