diff --git a/.stats.yml b/.stats.yml index e8d3f3c..576d7e0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 3 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-00c8db8bba8ad66c20debdbe1bb3e56123c3e9162f9310c49f1f5d748a40b96b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-e9db3689e5377f05e22b2dd594ac7eea68b859b98ba4d18103ed7376dbd43a4f.yml diff --git a/src/runwayml/resources/image_to_video.py b/src/runwayml/resources/image_to_video.py index 8548800..746d9b9 100644 --- a/src/runwayml/resources/image_to_video.py +++ b/src/runwayml/resources/image_to_video.py @@ -51,7 +51,9 @@ def create( *, model: Literal["gen3a_turbo"], prompt_image: str, + duration: Literal[5, 10] | NotGiven = NOT_GIVEN, prompt_text: str | NotGiven = NOT_GIVEN, + ratio: Literal["16:9", "9:16"] | NotGiven = NOT_GIVEN, seed: int | NotGiven = NOT_GIVEN, watermark: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -70,8 +72,12 @@ def create( prompt_image: A HTTPS URL pointing to an image. Images must be JPEG, PNG, or WebP and are limited to 16MB. Responses must include a valid `Content-Length` header. + duration: The number of seconds of duration for the output video. + prompt_text + ratio: The aspect ratio of the output video. + seed: If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results. @@ -93,7 +99,9 @@ def create( { "model": model, "prompt_image": prompt_image, + "duration": duration, "prompt_text": prompt_text, + "ratio": ratio, "seed": seed, "watermark": watermark, }, @@ -131,7 +139,9 @@ async def create( *, model: Literal["gen3a_turbo"], prompt_image: str, + duration: Literal[5, 10] | NotGiven = NOT_GIVEN, prompt_text: str | NotGiven = NOT_GIVEN, + ratio: Literal["16:9", "9:16"] | NotGiven = NOT_GIVEN, seed: int | NotGiven = NOT_GIVEN, watermark: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -150,8 +160,12 @@ async def create( prompt_image: A HTTPS URL pointing to an image. Images must be JPEG, PNG, or WebP and are limited to 16MB. Responses must include a valid `Content-Length` header. + duration: The number of seconds of duration for the output video. + prompt_text + ratio: The aspect ratio of the output video. + seed: If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results. @@ -173,7 +187,9 @@ async def create( { "model": model, "prompt_image": prompt_image, + "duration": duration, "prompt_text": prompt_text, + "ratio": ratio, "seed": seed, "watermark": watermark, }, diff --git a/src/runwayml/types/image_to_video_create_params.py b/src/runwayml/types/image_to_video_create_params.py index b941b90..8ac74f8 100644 --- a/src/runwayml/types/image_to_video_create_params.py +++ b/src/runwayml/types/image_to_video_create_params.py @@ -20,8 +20,14 @@ class ImageToVideoCreateParams(TypedDict, total=False): include a valid `Content-Length` header. """ + duration: Literal[5, 10] + """The number of seconds of duration for the output video.""" + prompt_text: Annotated[str, PropertyInfo(alias="promptText")] + ratio: Literal["16:9", "9:16"] + """The aspect ratio of the output video.""" + seed: int """If unspecified, a random number is chosen. diff --git a/tests/api_resources/test_image_to_video.py b/tests/api_resources/test_image_to_video.py index a5efc3f..f8dc1c3 100644 --- a/tests/api_resources/test_image_to_video.py +++ b/tests/api_resources/test_image_to_video.py @@ -30,7 +30,9 @@ def test_method_create_with_all_params(self, client: RunwayML) -> None: image_to_video = client.image_to_video.create( model="gen3a_turbo", prompt_image="https://example.com", + duration=5, prompt_text="promptText", + ratio="16:9", seed=0, watermark=True, ) @@ -79,7 +81,9 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunwayML) image_to_video = await async_client.image_to_video.create( model="gen3a_turbo", prompt_image="https://example.com", + duration=5, prompt_text="promptText", + ratio="16:9", seed=0, watermark=True, )