@@ -50,13 +50,17 @@ def create(
5050 model : str ,
5151 fps : int | Omit = omit ,
5252 frame_images : Iterable [video_create_params .FrameImage ] | Omit = omit ,
53+ generate_audio : bool | Omit = omit ,
5354 guidance_scale : int | Omit = omit ,
5455 height : int | Omit = omit ,
56+ media : video_create_params .Media | Omit = omit ,
5557 negative_prompt : str | Omit = omit ,
5658 output_format : Literal ["MP4" , "WEBM" ] | Omit = omit ,
5759 output_quality : int | Omit = omit ,
5860 prompt : str | Omit = omit ,
61+ ratio : str | Omit = omit ,
5962 reference_images : SequenceNotStr [str ] | Omit = omit ,
63+ resolution : str | Omit = omit ,
6064 seconds : str | Omit = omit ,
6165 seed : int | Omit = omit ,
6266 steps : int | Omit = omit ,
@@ -76,14 +80,20 @@ def create(
7680
7781 fps: Frames per second. Defaults to 24.
7882
79- frame_images: Array of images to guide video generation, similar to keyframes.
83+ frame_images: Deprecated: use media.frame_images instead. Array of images to guide video
84+ generation, similar to keyframes.
85+
86+ generate_audio: Whether to generate audio for the video.
8087
8188 guidance_scale: Controls how closely the video generation follows your prompt. Higher values
8289 make the model adhere more strictly to your text description, while lower values
8390 allow more creative freedom. guidence_scale affects both visual content and
8491 temporal consistency.Recommended range is 6.0-10.0 for most video models. Values
8592 above 12 may cause over-guidance artifacts or unnatural motion patterns.
8693
94+ media: Media inputs for video generation. The accepted fields depend on the model type
95+ (e.g. i2v, r2v, t2v, videoedit).
96+
8797 negative_prompt: Similar to prompt, but specifies what to avoid instead of what to include
8898
8999 output_format: Specifies the format of the output video. Defaults to MP4.
@@ -92,9 +102,13 @@ def create(
92102
93103 prompt: Text prompt that describes the video to generate.
94104
95- reference_images: Unlike frame_images which constrain specific timeline positions, reference
96- images guide the general appearance that should appear consistently across the
97- video.
105+ ratio: Aspect ratio of the video.
106+
107+ reference_images: Deprecated: use media.reference_images instead. Unlike frame_images which
108+ constrain specific timeline positions, reference images guide the general
109+ appearance that should appear consistently across the video.
110+
111+ resolution: Video resolution.
98112
99113 seconds: Clip duration in seconds.
100114
@@ -121,13 +135,17 @@ def create(
121135 "model" : model ,
122136 "fps" : fps ,
123137 "frame_images" : frame_images ,
138+ "generate_audio" : generate_audio ,
124139 "guidance_scale" : guidance_scale ,
125140 "height" : height ,
141+ "media" : media ,
126142 "negative_prompt" : negative_prompt ,
127143 "output_format" : output_format ,
128144 "output_quality" : output_quality ,
129145 "prompt" : prompt ,
146+ "ratio" : ratio ,
130147 "reference_images" : reference_images ,
148+ "resolution" : resolution ,
131149 "seconds" : seconds ,
132150 "seed" : seed ,
133151 "steps" : steps ,
@@ -204,13 +222,17 @@ async def create(
204222 model : str ,
205223 fps : int | Omit = omit ,
206224 frame_images : Iterable [video_create_params .FrameImage ] | Omit = omit ,
225+ generate_audio : bool | Omit = omit ,
207226 guidance_scale : int | Omit = omit ,
208227 height : int | Omit = omit ,
228+ media : video_create_params .Media | Omit = omit ,
209229 negative_prompt : str | Omit = omit ,
210230 output_format : Literal ["MP4" , "WEBM" ] | Omit = omit ,
211231 output_quality : int | Omit = omit ,
212232 prompt : str | Omit = omit ,
233+ ratio : str | Omit = omit ,
213234 reference_images : SequenceNotStr [str ] | Omit = omit ,
235+ resolution : str | Omit = omit ,
214236 seconds : str | Omit = omit ,
215237 seed : int | Omit = omit ,
216238 steps : int | Omit = omit ,
@@ -230,14 +252,20 @@ async def create(
230252
231253 fps: Frames per second. Defaults to 24.
232254
233- frame_images: Array of images to guide video generation, similar to keyframes.
255+ frame_images: Deprecated: use media.frame_images instead. Array of images to guide video
256+ generation, similar to keyframes.
257+
258+ generate_audio: Whether to generate audio for the video.
234259
235260 guidance_scale: Controls how closely the video generation follows your prompt. Higher values
236261 make the model adhere more strictly to your text description, while lower values
237262 allow more creative freedom. guidence_scale affects both visual content and
238263 temporal consistency.Recommended range is 6.0-10.0 for most video models. Values
239264 above 12 may cause over-guidance artifacts or unnatural motion patterns.
240265
266+ media: Media inputs for video generation. The accepted fields depend on the model type
267+ (e.g. i2v, r2v, t2v, videoedit).
268+
241269 negative_prompt: Similar to prompt, but specifies what to avoid instead of what to include
242270
243271 output_format: Specifies the format of the output video. Defaults to MP4.
@@ -246,9 +274,13 @@ async def create(
246274
247275 prompt: Text prompt that describes the video to generate.
248276
249- reference_images: Unlike frame_images which constrain specific timeline positions, reference
250- images guide the general appearance that should appear consistently across the
251- video.
277+ ratio: Aspect ratio of the video.
278+
279+ reference_images: Deprecated: use media.reference_images instead. Unlike frame_images which
280+ constrain specific timeline positions, reference images guide the general
281+ appearance that should appear consistently across the video.
282+
283+ resolution: Video resolution.
252284
253285 seconds: Clip duration in seconds.
254286
@@ -275,13 +307,17 @@ async def create(
275307 "model" : model ,
276308 "fps" : fps ,
277309 "frame_images" : frame_images ,
310+ "generate_audio" : generate_audio ,
278311 "guidance_scale" : guidance_scale ,
279312 "height" : height ,
313+ "media" : media ,
280314 "negative_prompt" : negative_prompt ,
281315 "output_format" : output_format ,
282316 "output_quality" : output_quality ,
283317 "prompt" : prompt ,
318+ "ratio" : ratio ,
284319 "reference_images" : reference_images ,
320+ "resolution" : resolution ,
285321 "seconds" : seconds ,
286322 "seed" : seed ,
287323 "steps" : steps ,
0 commit comments