22
33from __future__ import annotations
44
5+ from typing import Union
56from typing_extensions import Literal
67
78import httpx
@@ -88,10 +89,13 @@ def create(
8889 * ,
8990 aspect_ratio : Literal ["1:1" , "16:9" , "9:16" , "4:3" , "3:4" , "21:9" , "9:21" ] | NotGiven = NOT_GIVEN ,
9091 callback_url : str | NotGiven = NOT_GIVEN ,
92+ duration : Union [Literal ["5s" , "9s" ], str ] | NotGiven = NOT_GIVEN ,
9193 generation_type : Literal ["video" ] | NotGiven = NOT_GIVEN ,
9294 keyframes : generation_create_params .Keyframes | NotGiven = NOT_GIVEN ,
9395 loop : bool | NotGiven = NOT_GIVEN ,
96+ model : Literal ["ray-1-6" , "ray-2" ] | NotGiven = NOT_GIVEN ,
9497 prompt : str | NotGiven = NOT_GIVEN ,
98+ resolution : Union [Literal ["540p" , "720p" ], str ] | NotGiven = NOT_GIVEN ,
9599 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
96100 # The extra values given here take precedence over values defined on the client or passed to this method.
97101 extra_headers : Headers | None = None ,
@@ -109,12 +113,18 @@ def create(
109113 be sent to the callback URL when the generation is dreaming, completed, or
110114 failed
111115
116+ duration: The duration of the generation
117+
112118 keyframes: The keyframes of the generation
113119
114120 loop: Whether to loop the video
115121
122+ model: The model used for the generation
123+
116124 prompt: The prompt of the generation
117125
126+ resolution: The resolution of the generation
127+
118128 extra_headers: Send extra headers
119129
120130 extra_query: Add additional query parameters to the request
@@ -129,10 +139,13 @@ def create(
129139 {
130140 "aspect_ratio" : aspect_ratio ,
131141 "callback_url" : callback_url ,
142+ "duration" : duration ,
132143 "generation_type" : generation_type ,
133144 "keyframes" : keyframes ,
134145 "loop" : loop ,
146+ "model" : model ,
135147 "prompt" : prompt ,
148+ "resolution" : resolution ,
136149 },
137150 generation_create_params .GenerationCreateParams ,
138151 ),
@@ -289,10 +302,13 @@ async def create(
289302 * ,
290303 aspect_ratio : Literal ["1:1" , "16:9" , "9:16" , "4:3" , "3:4" , "21:9" , "9:21" ] | NotGiven = NOT_GIVEN ,
291304 callback_url : str | NotGiven = NOT_GIVEN ,
305+ duration : Union [Literal ["5s" , "9s" ], str ] | NotGiven = NOT_GIVEN ,
292306 generation_type : Literal ["video" ] | NotGiven = NOT_GIVEN ,
293307 keyframes : generation_create_params .Keyframes | NotGiven = NOT_GIVEN ,
294308 loop : bool | NotGiven = NOT_GIVEN ,
309+ model : Literal ["ray-1-6" , "ray-2" ] | NotGiven = NOT_GIVEN ,
295310 prompt : str | NotGiven = NOT_GIVEN ,
311+ resolution : Union [Literal ["540p" , "720p" ], str ] | NotGiven = NOT_GIVEN ,
296312 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
297313 # The extra values given here take precedence over values defined on the client or passed to this method.
298314 extra_headers : Headers | None = None ,
@@ -310,12 +326,18 @@ async def create(
310326 be sent to the callback URL when the generation is dreaming, completed, or
311327 failed
312328
329+ duration: The duration of the generation
330+
313331 keyframes: The keyframes of the generation
314332
315333 loop: Whether to loop the video
316334
335+ model: The model used for the generation
336+
317337 prompt: The prompt of the generation
318338
339+ resolution: The resolution of the generation
340+
319341 extra_headers: Send extra headers
320342
321343 extra_query: Add additional query parameters to the request
@@ -330,10 +352,13 @@ async def create(
330352 {
331353 "aspect_ratio" : aspect_ratio ,
332354 "callback_url" : callback_url ,
355+ "duration" : duration ,
333356 "generation_type" : generation_type ,
334357 "keyframes" : keyframes ,
335358 "loop" : loop ,
359+ "model" : model ,
336360 "prompt" : prompt ,
361+ "resolution" : resolution ,
337362 },
338363 generation_create_params .GenerationCreateParams ,
339364 ),
0 commit comments