Video
Find the request-level parameters for all video endpoints
Every video model, on every video endpoint, takes the same request parameters. Create a request with either endpoint:
POST https://api.topazlabs.com/video/
You can supply full source metadata and want a credit estimate before uploading. Follow with PATCH /video/{requestId}/accept and PATCH /video/{requestId}/complete-upload/.
POST https://api.topazlabs.com/video/express
You only know the container. Returns upload URLs right away, with no accept or complete-upload steps. Note that this endpoint is only available for GAN models (i.e. most creative and generative upscaling models will not be supported).
Requests are JSON with four top-level objects: source, filters, output, and the optional destination and notifications. The models you put in filters decide a few output rules; see Upscaling vs. Frame Interpolation.
source
Describes the input video. On POST /video/ every field except md5Hash and external is required so we can estimate the cost. On POST /video/express only container is required.
source.container
string
Required
3gp, avi, dv, flv, m1v, m2t, m2ts, m2v, m4v, mkv, mov, mp4, mpeg, mpg, mts, mxf, ser, ts, vob, webm, wmv
Container of the source file. Case-insensitive.
source.size
integer
Required on /video/
—
File size in bytes. Must be under 100 GB.
source.duration
number
Required on /video/
—
Duration in seconds.
source.frameCount
integer
Required on /video/
—
Total number of frames.
source.frameRate
number
Required on /video/
—
Frame rate in frames per second.
source.resolution
object
Required on /video/
—
Source width and height in pixels.
source.md5Hash
string
Optional
—
MD5 hash of the source file, used to verify the upload.
source.external
object
Optional
—
Read the source from your own S3 storage instead of uploading it, using a presigned URL or AWS AssumeRole. provider is required inside this object. See the API Reference for the full shape.
filters
filters
array
Required
—
One or more filter objects, applied in order. Each object needs a model value plus that model's settings, which are listed on each model's page under Model Parameters. Chain filters to combine operations, for example a denoise model followed by an upscaling model, or an upscaling model followed by a frame interpolation model.
output
output.resolution
object
Required
—
Output width and height in pixels. Rounded up to a multiple of 4. Forced to the source resolution when no upscaling model is in filters.
output.frameRate
number
Required on /video/
—
Output frame rate. Forced to the source frame rate when no frame interpolation model is in filters. On /video/express, required only when a frame interpolation filter doesn't set its own fps.
output.audioTransfer
string
Required on /video/
Express default: None
Copy, Convert, None
How to handle the source audio track.
output.audioCodec
string
Optional
AAC, AC3, PCM
Audio codec for the output. Required when audioTransfer isn't None.
output.audioBitrate
string
Optional
—
Audio bitrate for the output.
output.videoEncoder
string
Optional
Default: H265
H265, H264, AV1, ProRes, VP9
Video encoder for the output. See Supported Encoders and Profiles.
output.videoProfile
string
Optional
Default: encoder default
—
Profile for the chosen encoder. See Supported Encoders and Profiles.
output.videoBitrate
string
Optional
—
Target video bitrate. Required for VP9. Can't be combined with dynamicCompressionLevel.
output.dynamicCompressionLevel
string
Optional
Default: High
Low, Mid, High
Quality-based bitrate control, used when videoBitrate isn't set. AV1, H264, and H265 only.
output.cropToFit
boolean
Optional
—
Crop the output to fill output.resolution instead of letterboxing when the aspect ratios differ.
output.container
string
Optional
Default: mp4
mp4, mov, mkv
Output container. ProRes always outputs mov; AV1 and VP9 always output mp4.
destination and notifications
destination.external
object
Optional
—
Write the output directly to your own S3 storage. Same shape as source.external.
notifications.webhookUrl
string
Optional
—
URL we POST a JSON notification to when the request completes or fails.
Upscaling vs. Frame Interpolation
The request parameters are the same for every model. What changes is which output values the API honors, based on the models in filters:
Models in filters
output.resolution
output.frameRate
Upscaling or enhancement only
Used as the output size
Forced to the source frame rate
Frame interpolation only
Forced to the source resolution
Used as the output frame rate, unless the filter sets fps
Both (upscale, then interpolate)
Used as the output size
Used as the output frame rate, unless the filter sets fps
Neither (for example, denoising only)
Forced to the source resolution
Forced to the source frame rate
Upscaling, denoising, SDR-to-HDR, and utility models all use the upscaling rules.
Supported Encoders and Profiles
H265
Main10 (default), Main
mp4, mov, mkv
8192 × 8192
2000 Mbps
H264
High
mp4, mov, mkv
4096 × 4096
2000 Mbps
AV1
8-bit (default), 10-bit
mp4
16384 × 8704
800 Mbps
ProRes
422 HQ (default), 422, 422 LT, 422 Proxy
mov
16386 × 16386
Uncapped
VP9
Good (default), Best
mp4
8192 × 8192
2000 Mbps
Max resolution applies in either orientation. Requesting a resolution or bitrate above the encoder's limit returns 400 INVALID_INPUT.
Example
For the full schema, see the API Reference.
Last updated
Was this helpful?