Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.0.0"
".": "5.1.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/runwayml/_version.py
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions src/runwayml/resources/video_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 8 additions & 0 deletions src/runwayml/types/video_to_video_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_video_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down Expand Up @@ -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"])

Expand Down