From aa5085beaa42b0ca67d83dc5fa02b8634b970f4c Mon Sep 17 00:00:00 2001 From: Robin Andeer Date: Mon, 6 Jul 2026 11:13:19 -0400 Subject: [PATCH 1/2] feat(api): add outputCount and quality to marketing stock image --- .stats.yml | 4 ++-- src/resources/recipes.ts | 12 ++++++++++++ tests/api-resources/recipes.test.ts | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) 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/src/resources/recipes.ts b/src/resources/recipes.ts index 7dcee14..1bcf5ac 100644 --- a/src/resources/recipes.ts +++ b/src/resources/recipes.ts @@ -138,6 +138,18 @@ export interface RecipeMarketingStockImageParams { */ version: '2026-06' | 'unsafe-latest'; + /** + * The number of images to generate (1–4). Defaults to 4. Increasing this number + * affects credits consumed. + */ + outputCount?: number; + + /** + * GPT Image 2 rendering quality (`low`, `medium`, or `high`). Lower settings are + * faster and use fewer credits; `high` (default) is slowest and highest fidelity. + */ + quality?: 'low' | 'medium' | 'high'; + /** * Optional brand logo image to guide the generated marketing stock image. See * [our docs](/assets/inputs#images) on image inputs. diff --git a/tests/api-resources/recipes.test.ts b/tests/api-resources/recipes.test.ts index 814acb0..ae4031a 100644 --- a/tests/api-resources/recipes.test.ts +++ b/tests/api-resources/recipes.test.ts @@ -23,6 +23,8 @@ describe('resource recipes', () => { const response = await client.recipes.marketingStockImage({ prompt: 'x', version: '2026-06', + outputCount: 1, + quality: 'low', referenceImage: { uri: 'https://example.com/file' }, }); }); From fb9ebde323143a74e0910210a202f5a15cba40db Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:13:45 +0000 Subject: [PATCH 2/2] release: 4.5.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fb1f343..7aa3d56 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.4.0" + ".": "4.5.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0680c41..8175c6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.5.0 (2026-07-06) + +Full Changelog: [v4.4.0...v4.5.0](https://github.com/runwayml/sdk-node/compare/v4.4.0...v4.5.0) + +### Features + +* **api:** add outputCount and quality to marketing stock image ([aa5085b](https://github.com/runwayml/sdk-node/commit/aa5085beaa42b0ca67d83dc5fa02b8634b970f4c)) + ## 4.4.0 (2026-06-26) Full Changelog: [v4.3.0...v4.4.0](https://github.com/runwayml/sdk-node/compare/v4.3.0...v4.4.0) diff --git a/package.json b/package.json index 5871e46..cf408c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@runwayml/sdk", - "version": "4.4.0", + "version": "4.5.0", "description": "The official TypeScript library for the RunwayML API", "author": "RunwayML ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 8ab2514..dc414ab 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.4.0'; // x-release-please-version +export const VERSION = '4.5.0'; // x-release-please-version