diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8e76abb..4808d97 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.0.0" + ".": "5.1.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 0fd103d..dde3b6e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 43 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml/runwayml-e4103e353904891c1dfe59c4cfaefb536c0dc20ae0316f2c18bae77aa4e8d8c7.yml -openapi_spec_hash: 1ff35e9f88f6ed20b58ebdfaadc738c7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml/runwayml-b85d7ddcdd90c3009ccbad953a0f5c1015b6f4acc6196ce47dfaff89873e8831.yml +openapi_spec_hash: c660abf954cb61f065c4f957966776bb config_hash: dbcc649d22e217f477258caee20c63d2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 70401ca..d0e513e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.1.0 (2026-06-12) + +Full Changelog: [v5.0.0...v5.1.0](https://github.com/runwayml/sdk-python/compare/v5.0.0...v5.1.0) + +### Features + +* **api:** add outpaint support for Aleph 2.0 ([673817e](https://github.com/runwayml/sdk-python/commit/673817e3bbc4dc04c2f52153daf00518fae58ed7)) + ## 5.0.0 (2026-06-10) Full Changelog: [v4.18.0...v5.0.0](https://github.com/runwayml/sdk-python/compare/v4.18.0...v5.0.0) diff --git a/pyproject.toml b/pyproject.toml index 096471f..bea7473 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "runwayml" -version = "5.0.0" +version = "5.1.0" description = "The official Python library for the runwayml API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/runwayml/_version.py b/src/runwayml/_version.py index 527e88a..fd68e66 100644 --- a/src/runwayml/_version.py +++ b/src/runwayml/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "runwayml" -__version__ = "5.0.0" # x-release-please-version +__version__ = "5.1.0" # x-release-please-version diff --git a/src/runwayml/resources/video_to_video.py b/src/runwayml/resources/video_to_video.py index f8f49c5..8a41f07 100644 --- a/src/runwayml/resources/video_to_video.py +++ b/src/runwayml/resources/video_to_video.py @@ -62,6 +62,7 @@ def create( content_moderation: video_to_video_create_params.Variant0ContentModeration | Omit = omit, keyframes: Iterable[video_to_video_create_params.Variant0Keyframe] | Omit = omit, seed: int | Omit = omit, + target_aspect_ratio: Literal["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -87,6 +88,9 @@ def create( get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results. + target_aspect_ratio: Target aspect ratio for expand/outpaint. Letterboxes the input video and + keyframes before generation. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -252,6 +256,7 @@ def create( content_moderation: video_to_video_create_params.Variant0ContentModeration | Omit = omit, keyframes: Iterable[video_to_video_create_params.Variant0Keyframe] | Omit = omit, seed: int | Omit = omit, + target_aspect_ratio: Literal["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9"] | Omit = omit, prompt_video: str | Omit = omit, audio: bool | Omit = omit, duration: int | Omit = omit, @@ -316,6 +321,7 @@ def create( "content_moderation": content_moderation, "keyframes": keyframes, "seed": seed, + "target_aspect_ratio": target_aspect_ratio, "prompt_video": prompt_video, "audio": audio, "duration": duration, @@ -365,6 +371,7 @@ async def create( content_moderation: video_to_video_create_params.Variant0ContentModeration | Omit = omit, keyframes: Iterable[video_to_video_create_params.Variant0Keyframe] | Omit = omit, seed: int | Omit = omit, + target_aspect_ratio: Literal["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -390,6 +397,9 @@ async def create( get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results. + target_aspect_ratio: Target aspect ratio for expand/outpaint. Letterboxes the input video and + keyframes before generation. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -555,6 +565,7 @@ async def create( content_moderation: video_to_video_create_params.Variant0ContentModeration | Omit = omit, keyframes: Iterable[video_to_video_create_params.Variant0Keyframe] | Omit = omit, seed: int | Omit = omit, + target_aspect_ratio: Literal["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9"] | Omit = omit, prompt_video: str | Omit = omit, audio: bool | Omit = omit, duration: int | Omit = omit, @@ -619,6 +630,7 @@ async def create( "content_moderation": content_moderation, "keyframes": keyframes, "seed": seed, + "target_aspect_ratio": target_aspect_ratio, "prompt_video": prompt_video, "audio": audio, "duration": duration, diff --git a/src/runwayml/types/video_to_video_create_params.py b/src/runwayml/types/video_to_video_create_params.py index 158309d..cea862a 100644 --- a/src/runwayml/types/video_to_video_create_params.py +++ b/src/runwayml/types/video_to_video_create_params.py @@ -54,6 +54,14 @@ class Variant0(TypedDict, total=False): produce similar results. """ + target_aspect_ratio: Annotated[ + Literal["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9"], PropertyInfo(alias="targetAspectRatio") + ] + """Target aspect ratio for expand/outpaint. + + Letterboxes the input video and keyframes before generation. + """ + class Variant0ContentModeration(TypedDict, total=False): """Settings that affect the behavior of the content moderation system.""" diff --git a/tests/api_resources/test_video_to_video.py b/tests/api_resources/test_video_to_video.py index 2c37e33..151169a 100644 --- a/tests/api_resources/test_video_to_video.py +++ b/tests/api_resources/test_video_to_video.py @@ -40,6 +40,7 @@ def test_method_create_with_all_params_overload_1(self, client: RunwayML) -> Non } ], seed=0, + target_aspect_ratio="16:9", ) assert_matches_type(VideoToVideoCreateResponse, video_to_video, path=["response"]) @@ -228,6 +229,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn } ], seed=0, + target_aspect_ratio="16:9", ) assert_matches_type(VideoToVideoCreateResponse, video_to_video, path=["response"])