POST
/
api
/
v1
/
assets
/
route
Route Operation
curl --request POST \
  --url https://api.example.com/api/v1/assets/route \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "<string>",
  "target_codec": "h264",
  "source_codec": "h264",
  "op": "encode",
  "width": 1920,
  "height": 1080,
  "duration_ms": 0,
  "bit_depth": 8,
  "is_deliverable": false,
  "is_batch": false,
  "hdr": false,
  "dolby_vision": false,
  "hdr10_plus": false,
  "client_caps": {
    "hw_h264": false,
    "hw_vp9": false,
    "hw_av1": false,
    "hw_av1_10bit": false,
    "hw_hevc": false,
    "webgpu": false,
    "max_pixels": 2073600
  }
}
'
{}

Body

application/json

A media op + the caller's client capabilities. The server returns the AUTHORITATIVE plan (the client mirrors the same logic but the server's verdict wins).

kind
string
required
target_codec
string
default:h264
source_codec
string
default:h264
op
string
default:encode
width
integer
default:1920
height
integer
default:1080
duration_ms
integer
default:0
bit_depth
integer
default:8
is_deliverable
boolean
default:false
is_batch
boolean
default:false
hdr
boolean
default:false
dolby_vision
boolean
default:false
hdr10_plus
boolean
default:false
client_caps
_RouteCaps · object

The browser's probed WebCodecs/WebGPU capabilities (advisory; None ⇒ headless).

Response

Successful Response

The response is of type Response Route Operation Api V1 Assets Route Post · object.