Skip to content

Commit c04c131

Browse files
authored
Merge pull request #236 from togethercomputer/video-media
Add support for alibaba video model params
2 parents e7b9809 + 890985d commit c04c131

File tree

1 file changed

+65
-2
lines changed

1 file changed

+65
-2
lines changed

openapi.yaml

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12588,6 +12588,12 @@ components:
1258812588
type: integer
1258912589
width:
1259012590
type: integer
12591+
resolution:
12592+
type: string
12593+
description: Video resolution.
12594+
ratio:
12595+
type: string
12596+
description: Aspect ratio of the video.
1259112597
seconds:
1259212598
type: string
1259312599
description: Clip duration in seconds.
@@ -12614,8 +12620,15 @@ components:
1261412620
negative_prompt:
1261512621
type: string
1261612622
description: Similar to prompt, but specifies what to avoid instead of what to include
12623+
generate_audio:
12624+
type: boolean
12625+
description: Whether to generate audio for the video.
12626+
media:
12627+
$ref: '#/components/schemas/VideoMedia'
12628+
description: Media inputs for video generation. The accepted fields depend on the model type (e.g. i2v, r2v, t2v, videoedit).
1261712629
frame_images:
12618-
description: Array of images to guide video generation, similar to keyframes.
12630+
deprecated: true
12631+
description: "Deprecated: use media.frame_images instead. Array of images to guide video generation, similar to keyframes."
1261912632
example:
1262012633
- [
1262112634
{
@@ -12635,7 +12648,8 @@ components:
1263512648
items:
1263612649
$ref: '#/components/schemas/VideoFrameImageInput'
1263712650
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.
12651+
deprecated: true
12652+
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."
1263912653
type: array
1264012654
items:
1264112655
type: string
@@ -12667,6 +12681,55 @@ components:
1266712681
- first
1266812682
- last
1266912683

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

0 commit comments

Comments
 (0)