byteplus-video-enhancement.
Workflow
- Submit a public source URL to
POST /api/gengen/v1/video/enhancementswith your GENGEN API key. - Save the returned
id. QueryGET /api/gengen/v1/video/enhancements/{id}with the same API key until the status issucceededorfailed. Use a polling interval of at least 10 seconds. - Read the video URL from
outputs.videos[0]and download it beforeoutputs.expiresAt.
Source requirements
- A public HTTP or HTTPS URL reachable without headers or cookies. Signed URLs are accepted; keep the URL valid while the job waits and processes.
- Source video supports up to 2K; files no larger than 10 GB are recommended. Media compatibility is checked during processing.
- Supply
assets.sourceVideo; direct file uploads andasset://identifiers are not accepted here.
Options
Omit
scene for Professional. natural favors a natural appearance; hd favors stronger sharpness. Output is MP4. Prompt text, custom codecs, bit depth, and arbitrary provider parameters are not supported.
Example
Usage
On success,usage.outputDurationSeconds is the measured output length in seconds and usage.fps is the output frame rate. The price row matches the toolVersion, the resolution tier string and the frame-rate tier. To calculate the charge, divide outputDurationSeconds by 60, then multiply by the per-minute rate for usage.priceRowId in the price catalog.
Billing and failures
In live customer pricing, expand BytePlus and select the enhancement version (Standard or Professional), output resolution, and frame-rate tier to view the applicable USD per minute rate. Frame-rate tiers are up to 30 fps, over 30 up to 60 fps, and over 60 up to 120 fps. The last tier can apply when preserving a source frame rate;controls.fps accepts only 30 or 60. Additional metered output
resolutions are billing references; requests accept only 1080P, 2K, and 4K.
A fixed amount is reserved before processing; it is not a quote or a maximum charge. Successful jobs are charged by actual output duration, enhancement version, resolution, and frame-rate tier. Any unused reservation is released. Costs above the reservation use additional available balance. If the final balance is insufficient, retrieval returns HTTP 402; top up and retry retrieval of the same task. Output expiration still applies. Repeated retrieval does not charge again. Failed jobs release their reserved balance. Check live customer pricing before use.
Statuses are pending, running, succeeded, and failed. A failed result includes failureReason. Invalid requests return HTTP 400, invalid API keys return 401, insufficient balance returns 402, and tasks unavailable to the requesting key return 404. If submission acceptance is uncertain, the task can remain in progress while GENGEN reconciles it; avoid submitting a replacement job automatically.
See Create task and Retrieve task for the endpoint schemas.