diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5f7bf25..f425d97 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.4.0" + ".": "5.5.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index aae4eec..02f9be2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 50 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml/runwayml-656482624bcaf91bbc524b761d1b3d9a97f84ea561a5b9f84db4122f38f342d0.yml -openapi_spec_hash: a6f0749dba9a9e3a46e75216b4d14467 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml/runwayml-23ffd494704e138fa0661fe69710c8cb20ba5881471ab1e13cdbf1461c2d6f49.yml +openapi_spec_hash: 26b75f2481835a63237b29404c3b56f1 config_hash: 955a0e451964a44778c5c0f54ca1c994 diff --git a/CHANGELOG.md b/CHANGELOG.md index 26909b0..94c206f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.5.0 (2026-07-06) + +Full Changelog: [v5.4.0...v5.5.0](https://github.com/runwayml/sdk-python/compare/v5.4.0...v5.5.0) + +### Features + +* **api:** add outputCount and quality to marketing stock image ([4fe47ce](https://github.com/runwayml/sdk-python/commit/4fe47ce1776641cfe5ea7946a8c210b3f30f5a27)) + ## 5.4.0 (2026-06-26) Full Changelog: [v5.3.0...v5.4.0](https://github.com/runwayml/sdk-python/compare/v5.3.0...v5.4.0) diff --git a/pyproject.toml b/pyproject.toml index 263dc41..b4dd874 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "runwayml" -version = "5.4.0" +version = "5.5.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 df39732..6cba8f7 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.4.0" # x-release-please-version +__version__ = "5.5.0" # x-release-please-version diff --git a/src/runwayml/resources/recipes.py b/src/runwayml/resources/recipes.py index 31adbc5..be41774 100644 --- a/src/runwayml/resources/recipes.py +++ b/src/runwayml/resources/recipes.py @@ -68,6 +68,8 @@ def marketing_stock_image( *, prompt: str, version: Literal["2026-06", "unsafe-latest"], + output_count: int | Omit = omit, + quality: Literal["low", "medium", "high"] | Omit = omit, reference_image: recipe_marketing_stock_image_params.ReferenceImage | 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. @@ -87,6 +89,12 @@ def marketing_stock_image( version: Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + output_count: The number of images to generate (1–4). Defaults to 4. Increasing this number + affects credits consumed. + + quality: GPT Image 2 rendering quality (`low`, `medium`, or `high`). Lower settings are + faster and use fewer credits; `high` (default) is slowest and highest fidelity. + reference_image: Optional brand logo image to guide the generated marketing stock image. See [our docs](/assets/inputs#images) on image inputs. @@ -104,6 +112,8 @@ def marketing_stock_image( { "prompt": prompt, "version": version, + "output_count": output_count, + "quality": quality, "reference_image": reference_image, }, recipe_marketing_stock_image_params.RecipeMarketingStockImageParams, @@ -559,6 +569,8 @@ async def marketing_stock_image( *, prompt: str, version: Literal["2026-06", "unsafe-latest"], + output_count: int | Omit = omit, + quality: Literal["low", "medium", "high"] | Omit = omit, reference_image: recipe_marketing_stock_image_params.ReferenceImage | 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. @@ -578,6 +590,12 @@ async def marketing_stock_image( version: Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + output_count: The number of images to generate (1–4). Defaults to 4. Increasing this number + affects credits consumed. + + quality: GPT Image 2 rendering quality (`low`, `medium`, or `high`). Lower settings are + faster and use fewer credits; `high` (default) is slowest and highest fidelity. + reference_image: Optional brand logo image to guide the generated marketing stock image. See [our docs](/assets/inputs#images) on image inputs. @@ -595,6 +613,8 @@ async def marketing_stock_image( { "prompt": prompt, "version": version, + "output_count": output_count, + "quality": quality, "reference_image": reference_image, }, recipe_marketing_stock_image_params.RecipeMarketingStockImageParams, diff --git a/src/runwayml/types/recipe_marketing_stock_image_params.py b/src/runwayml/types/recipe_marketing_stock_image_params.py index c316f87..ca80549 100644 --- a/src/runwayml/types/recipe_marketing_stock_image_params.py +++ b/src/runwayml/types/recipe_marketing_stock_image_params.py @@ -24,6 +24,19 @@ class RecipeMarketingStockImageParams(TypedDict, total=False): track the newest stable version (may break without notice). """ + output_count: Annotated[int, PropertyInfo(alias="outputCount")] + """The number of images to generate (1–4). + + Defaults to 4. Increasing this number affects credits consumed. + """ + + quality: Literal["low", "medium", "high"] + """GPT Image 2 rendering quality (`low`, `medium`, or `high`). + + Lower settings are faster and use fewer credits; `high` (default) is slowest and + highest fidelity. + """ + reference_image: Annotated[ReferenceImage, PropertyInfo(alias="referenceImage")] """Optional brand logo image to guide the generated marketing stock image. diff --git a/tests/api_resources/test_recipes.py b/tests/api_resources/test_recipes.py index 6288565..4493307 100644 --- a/tests/api_resources/test_recipes.py +++ b/tests/api_resources/test_recipes.py @@ -37,6 +37,8 @@ def test_method_marketing_stock_image_with_all_params(self, client: RunwayML) -> recipe = client.recipes.marketing_stock_image( prompt="x", version="2026-06", + output_count=1, + quality="low", reference_image={"uri": "https://example.com/file"}, ) assert_matches_type(RecipeMarketingStockImageResponse, recipe, path=["response"]) @@ -432,6 +434,8 @@ async def test_method_marketing_stock_image_with_all_params(self, async_client: recipe = await async_client.recipes.marketing_stock_image( prompt="x", version="2026-06", + output_count=1, + quality="low", reference_image={"uri": "https://example.com/file"}, ) assert_matches_type(RecipeMarketingStockImageResponse, recipe, path=["response"])