Skip to content

Commit 2618775

Browse files
committed
Add support for video model media params
1 parent e7b9809 commit 2618775

1 file changed

Lines changed: 59 additions & 2 deletions

File tree

openapi.yaml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12614,8 +12614,15 @@ components:
1261412614
negative_prompt:
1261512615
type: string
1261612616
description: Similar to prompt, but specifies what to avoid instead of what to include
12617+
generate_audio:
12618+
type: boolean
12619+
description: Whether to generate audio for the video.
12620+
media:
12621+
$ref: '#/components/schemas/VideoMedia'
12622+
description: Media inputs for video generation. The accepted fields depend on the model type (e.g. i2v, r2v, t2v, videoedit).
1261712623
frame_images:
12618-
description: Array of images to guide video generation, similar to keyframes.
12624+
deprecated: true
12625+
description: "Deprecated: use media.frame_images instead. Array of images to guide video generation, similar to keyframes."
1261912626
example:
1262012627
- [
1262112628
{
@@ -12635,7 +12642,8 @@ components:
1263512642
items:
1263612643
$ref: '#/components/schemas/VideoFrameImageInput'
1263712644
reference_images:
12638-
description: Unlike frame_images which constrain specific timeline positions, reference images guide the general appearance that should appear consistently across the video.
12645+
deprecated: true
12646+
description: "Deprecated: use media.reference_images instead. Unlike frame_images which constrain specific timeline positions, reference images guide the general appearance that should appear consistently across the video."
1263912647
type: array
1264012648
items:
1264112649
type: string
@@ -12667,6 +12675,55 @@ components:
1266712675
- first
1266812676
- last
1266912677

12678+
VideoMedia:
12679+
type: object
12680+
description: Contains all media inputs for video generation. Accepted fields depend on the model type.
12681+
properties:
12682+
frame_images:
12683+
description: Array of images to guide video generation at specific timeline positions.
12684+
type: array
12685+
items:
12686+
$ref: '#/components/schemas/VideoFrameImageInput'
12687+
frame_videos:
12688+
description: Array of video clips to use as starting clips.
12689+
type: array
12690+
items:
12691+
$ref: '#/components/schemas/VideoRef'
12692+
reference_images:
12693+
description: Array of image URLs that guide the general appearance across the video.
12694+
type: array
12695+
items:
12696+
type: string
12697+
reference_videos:
12698+
description: Array of reference videos.
12699+
type: array
12700+
items:
12701+
$ref: '#/components/schemas/VideoRef'
12702+
source_video:
12703+
$ref: '#/components/schemas/VideoRef'
12704+
description: Source video to edit.
12705+
audio_inputs:
12706+
description: Array of audio inputs.
12707+
type: array
12708+
items:
12709+
$ref: '#/components/schemas/AudioRef'
12710+
12711+
VideoRef:
12712+
type: object
12713+
required: ['video']
12714+
properties:
12715+
video:
12716+
type: string
12717+
description: URL of the video.
12718+
12719+
AudioRef:
12720+
type: object
12721+
required: ['audio']
12722+
properties:
12723+
audio:
12724+
type: string
12725+
description: URL of the audio.
12726+
1267012727
VideoOutputFormat:
1267112728
type: string
1267212729
enum:

0 commit comments

Comments
 (0)