@runwayml/sdk 2.5.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.7.0 (2025-08-05)
4
+
5
+ Full Changelog: [v2.6.0...v2.7.0](https://github.com/runwayml/sdk-node/compare/v2.6.0...v2.7.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add gen4_image_turbo model ([b5b89d0](https://github.com/runwayml/sdk-node/commit/b5b89d060a7a537ebe4ad0c8437ef1077d358197))
10
+
11
+ ## 2.6.0 (2025-08-01)
12
+
13
+ Full Changelog: [v2.5.1...v2.6.0](https://github.com/runwayml/sdk-node/compare/v2.5.1...v2.6.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** Gen-4 Aleph ([94908de](https://github.com/runwayml/sdk-node/commit/94908de32934cd72cac3d7c3f0eea2f0ab8be14c))
18
+
3
19
  ## 2.5.1 (2025-07-30)
4
20
 
5
21
  Full Changelog: [v2.5.0...v2.5.1](https://github.com/runwayml/sdk-node/compare/v2.5.0...v2.5.1)
package/index.d.mts CHANGED
@@ -8,6 +8,7 @@ import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } fr
8
8
  import { Organization, OrganizationRetrieveResponse, OrganizationRetrieveUsageParams, OrganizationRetrieveUsageResponse } from "./resources/organization.js";
9
9
  import { TaskRetrieveResponse, Tasks } from "./resources/tasks.js";
10
10
  import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from "./resources/text-to-image.js";
11
+ import { VideoToVideo, VideoToVideoCreateParams, VideoToVideoCreateResponse } from "./resources/video-to-video.js";
11
12
  import { VideoUpscale, VideoUpscaleCreateParams, VideoUpscaleCreateResponse } from "./resources/video-upscale.js";
12
13
  export interface ClientOptions {
13
14
  /**
@@ -91,6 +92,7 @@ export declare class RunwayML extends Core.APIClient {
91
92
  constructor({ baseURL, apiKey, runwayVersion, ...opts }?: ClientOptions);
92
93
  tasks: API.Tasks;
93
94
  imageToVideo: API.ImageToVideo;
95
+ videoToVideo: API.VideoToVideo;
94
96
  textToImage: API.TextToImage;
95
97
  videoUpscale: API.VideoUpscale;
96
98
  characterPerformance: API.CharacterPerformance;
@@ -120,6 +122,7 @@ export declare namespace RunwayML {
120
122
  export type RequestOptions = Core.RequestOptions;
121
123
  export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
122
124
  export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
125
+ export { VideoToVideo as VideoToVideo, type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
123
126
  export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
124
127
  export { VideoUpscale as VideoUpscale, type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
125
128
  export { CharacterPerformance as CharacterPerformance, type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } fr
8
8
  import { Organization, OrganizationRetrieveResponse, OrganizationRetrieveUsageParams, OrganizationRetrieveUsageResponse } from "./resources/organization.js";
9
9
  import { TaskRetrieveResponse, Tasks } from "./resources/tasks.js";
10
10
  import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from "./resources/text-to-image.js";
11
+ import { VideoToVideo, VideoToVideoCreateParams, VideoToVideoCreateResponse } from "./resources/video-to-video.js";
11
12
  import { VideoUpscale, VideoUpscaleCreateParams, VideoUpscaleCreateResponse } from "./resources/video-upscale.js";
12
13
  export interface ClientOptions {
13
14
  /**
@@ -91,6 +92,7 @@ export declare class RunwayML extends Core.APIClient {
91
92
  constructor({ baseURL, apiKey, runwayVersion, ...opts }?: ClientOptions);
92
93
  tasks: API.Tasks;
93
94
  imageToVideo: API.ImageToVideo;
95
+ videoToVideo: API.VideoToVideo;
94
96
  textToImage: API.TextToImage;
95
97
  videoUpscale: API.VideoUpscale;
96
98
  characterPerformance: API.CharacterPerformance;
@@ -120,6 +122,7 @@ export declare namespace RunwayML {
120
122
  export type RequestOptions = Core.RequestOptions;
121
123
  export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
122
124
  export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
125
+ export { VideoToVideo as VideoToVideo, type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
123
126
  export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
124
127
  export { VideoUpscale as VideoUpscale, type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
125
128
  export { CharacterPerformance as CharacterPerformance, type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,oBAAoB,EACpB,gCAAgC,EAChC,kCAAkC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+B,GACxE,CAAC;CACH;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEzG,eAAe,QAAQ,CAAC"}
package/index.js CHANGED
@@ -35,6 +35,7 @@ const image_to_video_1 = require("./resources/image-to-video.js");
35
35
  const organization_1 = require("./resources/organization.js");
36
36
  const tasks_1 = require("./resources/tasks.js");
37
37
  const text_to_image_1 = require("./resources/text-to-image.js");
38
+ const video_to_video_1 = require("./resources/video-to-video.js");
38
39
  const video_upscale_1 = require("./resources/video-upscale.js");
39
40
  /**
40
41
  * API Client for interfacing with the RunwayML API.
@@ -77,6 +78,7 @@ class RunwayML extends Core.APIClient {
77
78
  _RunwayML_instances.add(this);
78
79
  this.tasks = new API.Tasks(this);
79
80
  this.imageToVideo = new API.ImageToVideo(this);
81
+ this.videoToVideo = new API.VideoToVideo(this);
80
82
  this.textToImage = new API.TextToImage(this);
81
83
  this.videoUpscale = new API.VideoUpscale(this);
82
84
  this.characterPerformance = new API.CharacterPerformance(this);
@@ -122,6 +124,7 @@ RunwayML.toFile = Uploads.toFile;
122
124
  RunwayML.fileFromPath = Uploads.fileFromPath;
123
125
  RunwayML.Tasks = tasks_1.Tasks;
124
126
  RunwayML.ImageToVideo = image_to_video_1.ImageToVideo;
127
+ RunwayML.VideoToVideo = video_to_video_1.VideoToVideo;
125
128
  RunwayML.TextToImage = text_to_image_1.TextToImage;
126
129
  RunwayML.VideoUpscale = video_upscale_1.VideoUpscale;
127
130
  RunwayML.CharacterPerformance = character_performance_1.CharacterPerformance;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,gFAI2C;AAC3C,kEAIoC;AACpC,8DAKkC;AAClC,gDAAgE;AAChE,gEAA4G;AAC5G,gEAImC;AAqEnC;;GAEG;AACH,MAAa,QAAS,SAAQ,IAAI,CAAC,SAAS;IAM1C;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAC3C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAC5C,aAAa,GAAG,YAAY,EAC5B,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,aAAa,CAC5B,6LAA6L,CAC9L,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,aAAa;YACb,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,8BAA8B;SACnD,CAAC;QAEF,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE;YAC7B,MAAM,IAAI,MAAM,CAAC,aAAa,CAC5B,kRAAkR,CACnR,CAAC;SACH;QAED,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CAAC,OAAQ;YACzB,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,KAAK,8BAA8B,CAAC,CAAC,CAAC,KAAK;YAC/E,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC,cAAc;YAChD,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;;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,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,4CAAyG;AAAhG,0GAAA,eAAe,OAAA;AAAE,4GAAA,iBAAiB,OAAA;AAA4B,qGAAA,UAAU,OAAA;AAEjF,kBAAe,QAAQ,CAAC"}
package/index.mjs CHANGED
@@ -9,6 +9,7 @@ import { ImageToVideo, } from "./resources/image-to-video.mjs";
9
9
  import { Organization, } from "./resources/organization.mjs";
10
10
  import { Tasks } from "./resources/tasks.mjs";
11
11
  import { TextToImage } from "./resources/text-to-image.mjs";
12
+ import { VideoToVideo, } from "./resources/video-to-video.mjs";
12
13
  import { VideoUpscale, } from "./resources/video-upscale.mjs";
13
14
  /**
14
15
  * API Client for interfacing with the RunwayML API.
@@ -51,6 +52,7 @@ export class RunwayML extends Core.APIClient {
51
52
  _RunwayML_instances.add(this);
52
53
  this.tasks = new API.Tasks(this);
53
54
  this.imageToVideo = new API.ImageToVideo(this);
55
+ this.videoToVideo = new API.VideoToVideo(this);
54
56
  this.textToImage = new API.TextToImage(this);
55
57
  this.videoUpscale = new API.VideoUpscale(this);
56
58
  this.characterPerformance = new API.CharacterPerformance(this);
@@ -95,6 +97,7 @@ RunwayML.toFile = Uploads.toFile;
95
97
  RunwayML.fileFromPath = Uploads.fileFromPath;
96
98
  RunwayML.Tasks = Tasks;
97
99
  RunwayML.ImageToVideo = ImageToVideo;
100
+ RunwayML.VideoToVideo = VideoToVideo;
98
101
  RunwayML.TextToImage = TextToImage;
99
102
  RunwayML.VideoUpscale = VideoUpscale;
100
103
  RunwayML.CharacterPerformance = CharacterPerformance;
package/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":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AC7C,sBAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,sBAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,uBAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,wBAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,4BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,4BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,8BAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,iCAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,eAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,qBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACrD,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;OA4C9B,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;OAEM,EAAE,eAAe,EAAE,iBAAiB,EAA4B,UAAU,EAAE;AAEnF,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runwayml/sdk",
3
- "version": "2.5.1",
3
+ "version": "2.7.0",
4
4
  "description": "The official TypeScript library for the RunwayML API",
5
5
  "author": "RunwayML <dev-feedback@runwayml.com>",
6
6
  "types": "./index.d.ts",
@@ -3,5 +3,6 @@ export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateP
3
3
  export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.js";
4
4
  export { Tasks, type TaskRetrieveResponse } from "./tasks.js";
5
5
  export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from "./text-to-image.js";
6
+ export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateParams, } from "./video-to-video.js";
6
7
  export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VideoUpscale = exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
4
+ exports.VideoUpscale = exports.VideoToVideo = exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
5
5
  var character_performance_1 = require("./character-performance.js");
6
6
  Object.defineProperty(exports, "CharacterPerformance", { enumerable: true, get: function () { return character_performance_1.CharacterPerformance; } });
7
7
  var image_to_video_1 = require("./image-to-video.js");
@@ -12,6 +12,8 @@ var tasks_1 = require("./tasks.js");
12
12
  Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
13
13
  var text_to_image_1 = require("./text-to-image.js");
14
14
  Object.defineProperty(exports, "TextToImage", { enumerable: true, get: function () { return text_to_image_1.TextToImage; } });
15
+ var video_to_video_1 = require("./video-to-video.js");
16
+ Object.defineProperty(exports, "VideoToVideo", { enumerable: true, get: function () { return video_to_video_1.VideoToVideo; } });
15
17
  var video_upscale_1 = require("./video-upscale.js");
16
18
  Object.defineProperty(exports, "VideoUpscale", { enumerable: true, get: function () { return video_upscale_1.VideoUpscale; } });
17
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,oDAIyB;AAHvB,6GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA"}
@@ -4,5 +4,6 @@ export { ImageToVideo, } from "./image-to-video.mjs";
4
4
  export { Organization, } from "./organization.mjs";
5
5
  export { Tasks } from "./tasks.mjs";
6
6
  export { TextToImage } from "./text-to-image.mjs";
7
+ export { VideoToVideo, } from "./video-to-video.mjs";
7
8
  export { VideoUpscale, } from "./video-upscale.mjs";
8
9
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb"}
@@ -55,10 +55,18 @@ export declare namespace OrganizationRetrieveResponse {
55
55
  * Limits associated with the gen3a_turbo model.
56
56
  */
57
57
  gen3a_turbo?: Models.Gen3aTurbo;
58
+ /**
59
+ * Limits associated with the gen4_aleph model.
60
+ */
61
+ gen4_aleph?: Models.Gen4Aleph;
58
62
  /**
59
63
  * Limits associated with the gen4_image model.
60
64
  */
61
65
  gen4_image?: Models.Gen4Image;
66
+ /**
67
+ * Limits associated with the gen4_image_turbo model.
68
+ */
69
+ gen4_image_turbo?: Models.Gen4ImageTurbo;
62
70
  /**
63
71
  * Limits associated with the gen4_turbo model.
64
72
  */
@@ -95,6 +103,19 @@ export declare namespace OrganizationRetrieveResponse {
95
103
  */
96
104
  maxDailyGenerations: number;
97
105
  }
106
+ /**
107
+ * Limits associated with the gen4_aleph model.
108
+ */
109
+ interface Gen4Aleph {
110
+ /**
111
+ * The maximum number of generations that can be run concurrently for this model.
112
+ */
113
+ maxConcurrentGenerations: number;
114
+ /**
115
+ * The maximum number of generations that can be created each day for this model.
116
+ */
117
+ maxDailyGenerations: number;
118
+ }
98
119
  /**
99
120
  * Limits associated with the gen4_image model.
100
121
  */
@@ -108,6 +129,19 @@ export declare namespace OrganizationRetrieveResponse {
108
129
  */
109
130
  maxDailyGenerations: number;
110
131
  }
132
+ /**
133
+ * Limits associated with the gen4_image_turbo model.
134
+ */
135
+ interface Gen4ImageTurbo {
136
+ /**
137
+ * The maximum number of generations that can be run concurrently for this model.
138
+ */
139
+ maxConcurrentGenerations: number;
140
+ /**
141
+ * The maximum number of generations that can be created each day for this model.
142
+ */
143
+ maxDailyGenerations: number;
144
+ }
111
145
  /**
112
146
  * Limits associated with the gen4_turbo model.
113
147
  */
@@ -158,10 +192,18 @@ export declare namespace OrganizationRetrieveResponse {
158
192
  * Usage data for the gen3a_turbo model.
159
193
  */
160
194
  gen3a_turbo?: Models.Gen3aTurbo;
195
+ /**
196
+ * Usage data for the gen4_aleph model.
197
+ */
198
+ gen4_aleph?: Models.Gen4Aleph;
161
199
  /**
162
200
  * Usage data for the gen4_image model.
163
201
  */
164
202
  gen4_image?: Models.Gen4Image;
203
+ /**
204
+ * Usage data for the gen4_image_turbo model.
205
+ */
206
+ gen4_image_turbo?: Models.Gen4ImageTurbo;
165
207
  /**
166
208
  * Usage data for the gen4_turbo model.
167
209
  */
@@ -190,6 +232,15 @@ export declare namespace OrganizationRetrieveResponse {
190
232
  */
191
233
  dailyGenerations: number;
192
234
  }
235
+ /**
236
+ * Usage data for the gen4_aleph model.
237
+ */
238
+ interface Gen4Aleph {
239
+ /**
240
+ * The number of generations that have been run for this model in the past day.
241
+ */
242
+ dailyGenerations: number;
243
+ }
193
244
  /**
194
245
  * Usage data for the gen4_image model.
195
246
  */
@@ -199,6 +250,15 @@ export declare namespace OrganizationRetrieveResponse {
199
250
  */
200
251
  dailyGenerations: number;
201
252
  }
253
+ /**
254
+ * Usage data for the gen4_image_turbo model.
255
+ */
256
+ interface Gen4ImageTurbo {
257
+ /**
258
+ * The number of generations that have been run for this model in the past day.
259
+ */
260
+ dailyGenerations: number;
261
+ }
202
262
  /**
203
263
  * Usage data for the gen4_turbo model.
204
264
  */
@@ -224,7 +284,7 @@ export interface OrganizationRetrieveUsageResponse {
224
284
  /**
225
285
  * The list of models with usage during the queried time range.
226
286
  */
227
- models: Array<'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo'>;
287
+ models: Array<'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_aleph' | 'gen4_image_turbo'>;
228
288
  results: Array<OrganizationRetrieveUsageResponse.Result>;
229
289
  }
230
290
  export declare namespace OrganizationRetrieveUsageResponse {
@@ -248,7 +308,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
248
308
  /**
249
309
  * The model whose usage resulted in the credit usage.
250
310
  */
251
- model: 'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo';
311
+ model: 'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_aleph' | 'gen4_image_turbo';
252
312
  }
253
313
  }
254
314
  }
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAItF;;;;OAIG;IACH,aAAa,CACX,IAAI,CAAC,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC;IACrD,aAAa,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC;CAUjG;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4B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ACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -17,7 +17,7 @@ export interface TextToImageCreateParams {
17
17
  /**
18
18
  * The model variant to use.
19
19
  */
20
- model: 'gen4_image';
20
+ model: 'gen4_image' | 'gen4_image_turbo';
21
21
  /**
22
22
  * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
23
23
  * should describe in detail what should appear in the output.
@@ -32,8 +32,10 @@ export interface TextToImageCreateParams {
32
32
  */
33
33
  contentModeration?: TextToImageCreateParams.ContentModeration;
34
34
  /**
35
- * An array of images to be used as references for the generated image output. Up
36
- * to three reference images can be provided.
35
+ * An array of up to three images to be used as references for the generated image
36
+ * output.
37
+ *
38
+ * For `gen4_image_turbo`, _at least one_ reference image is required.
37
39
  */
38
40
  referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
39
41
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,2BAA2B,EAA0B,MAAM,gBAAgB,CAAC;AAErF,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC;IAE9D;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;IAEhE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED,UAAiB,cAAc;QAC7B;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
1
+ {"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,2BAA2B,EAA0B,MAAM,gBAAgB,CAAC;AAErF,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,kBAAkB,CAAC;IAEzC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC;IAE9D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;IAEhE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED,UAAiB,cAAc;QAC7B;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,78 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
4
+ export declare class VideoToVideo extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to generate a video from a video.
7
+ */
8
+ create(body: VideoToVideoCreateParams, options?: Core.RequestOptions): APIPromiseWithAwaitableTask<VideoToVideoCreateResponse>;
9
+ }
10
+ export interface VideoToVideoCreateResponse {
11
+ /**
12
+ * The ID of the newly created task.
13
+ */
14
+ id: string;
15
+ }
16
+ export interface VideoToVideoCreateParams {
17
+ /**
18
+ * The model variant to use.
19
+ */
20
+ model: 'gen4_aleph';
21
+ /**
22
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
23
+ * should describe in detail what should appear in the output.
24
+ */
25
+ promptText: string;
26
+ /**
27
+ * The resolution of the output video.
28
+ */
29
+ ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
30
+ /**
31
+ * A HTTPS URL pointing to a video or a data URI containing a video. See
32
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
33
+ */
34
+ videoUri: string;
35
+ /**
36
+ * Settings that affect the behavior of the content moderation system.
37
+ */
38
+ contentModeration?: VideoToVideoCreateParams.ContentModeration;
39
+ /**
40
+ * An array of references. Currently up to one reference is supported. See
41
+ * [our docs](/assets/inputs#images) on image inputs for more information.
42
+ */
43
+ references?: Array<VideoToVideoCreateParams.Reference>;
44
+ /**
45
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
46
+ * get different results for the same other request parameters. Using the same seed
47
+ * integer for an identical request will produce similar results.
48
+ */
49
+ seed?: number;
50
+ }
51
+ export declare namespace VideoToVideoCreateParams {
52
+ /**
53
+ * Settings that affect the behavior of the content moderation system.
54
+ */
55
+ interface ContentModeration {
56
+ /**
57
+ * When set to `low`, the content moderation system will be less strict about
58
+ * preventing generations that include recognizable public figures.
59
+ */
60
+ publicFigureThreshold?: 'auto' | 'low';
61
+ }
62
+ /**
63
+ * Passing an image reference allows the model to emulate the style or content of
64
+ * the reference in the output.
65
+ */
66
+ interface Reference {
67
+ type: 'image';
68
+ /**
69
+ * A HTTPS URL pointing to an image or a data URI containing an image. See
70
+ * [our docs](/assets/inputs#images) on image inputs for more information.
71
+ */
72
+ uri: string;
73
+ }
74
+ }
75
+ export declare namespace VideoToVideo {
76
+ export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
77
+ }
78
+ //# sourceMappingURL=video-to-video.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,2BAA2B,EAA0B,MAAM,gBAAgB,CAAC;AAErF,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAE1G;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAEvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VideoToVideo = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ const polling_1 = require("../lib/polling.js");
7
+ class VideoToVideo extends resource_1.APIResource {
8
+ /**
9
+ * This endpoint will start a new task to generate a video from a video.
10
+ */
11
+ create(body, options) {
12
+ return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/video_to_video', { body, ...options }));
13
+ }
14
+ }
15
+ exports.VideoToVideo = VideoToVideo;
16
+ //# sourceMappingURL=video-to-video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAE1C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAZD,oCAYC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
+ export class VideoToVideo extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to generate a video from a video.
7
+ */
8
+ create(body, options) {
9
+ return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_to_video', { body, ...options }));
10
+ }
11
+ }
12
+ //# sourceMappingURL=video-to-video.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
package/src/index.ts CHANGED
@@ -23,6 +23,11 @@ import {
23
23
  } from './resources/organization';
24
24
  import { TaskRetrieveResponse, Tasks } from './resources/tasks';
25
25
  import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from './resources/text-to-image';
26
+ import {
27
+ VideoToVideo,
28
+ VideoToVideoCreateParams,
29
+ VideoToVideoCreateResponse,
30
+ } from './resources/video-to-video';
26
31
  import {
27
32
  VideoUpscale,
28
33
  VideoUpscaleCreateParams,
@@ -160,6 +165,7 @@ export class RunwayML extends Core.APIClient {
160
165
 
161
166
  tasks: API.Tasks = new API.Tasks(this);
162
167
  imageToVideo: API.ImageToVideo = new API.ImageToVideo(this);
168
+ videoToVideo: API.VideoToVideo = new API.VideoToVideo(this);
163
169
  textToImage: API.TextToImage = new API.TextToImage(this);
164
170
  videoUpscale: API.VideoUpscale = new API.VideoUpscale(this);
165
171
  characterPerformance: API.CharacterPerformance = new API.CharacterPerformance(this);
@@ -211,6 +217,7 @@ export class RunwayML extends Core.APIClient {
211
217
 
212
218
  RunwayML.Tasks = Tasks;
213
219
  RunwayML.ImageToVideo = ImageToVideo;
220
+ RunwayML.VideoToVideo = VideoToVideo;
214
221
  RunwayML.TextToImage = TextToImage;
215
222
  RunwayML.VideoUpscale = VideoUpscale;
216
223
  RunwayML.CharacterPerformance = CharacterPerformance;
@@ -226,6 +233,12 @@ export declare namespace RunwayML {
226
233
  type ImageToVideoCreateParams as ImageToVideoCreateParams,
227
234
  };
228
235
 
236
+ export {
237
+ VideoToVideo as VideoToVideo,
238
+ type VideoToVideoCreateResponse as VideoToVideoCreateResponse,
239
+ type VideoToVideoCreateParams as VideoToVideoCreateParams,
240
+ };
241
+
229
242
  export {
230
243
  TextToImage as TextToImage,
231
244
  type TextToImageCreateResponse as TextToImageCreateResponse,
@@ -18,6 +18,11 @@ export {
18
18
  } from './organization';
19
19
  export { Tasks, type TaskRetrieveResponse } from './tasks';
20
20
  export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
21
+ export {
22
+ VideoToVideo,
23
+ type VideoToVideoCreateResponse,
24
+ type VideoToVideoCreateParams,
25
+ } from './video-to-video';
21
26
  export {
22
27
  VideoUpscale,
23
28
  type VideoUpscaleCreateResponse,
@@ -82,11 +82,21 @@ export namespace OrganizationRetrieveResponse {
82
82
  */
83
83
  gen3a_turbo?: Models.Gen3aTurbo;
84
84
 
85
+ /**
86
+ * Limits associated with the gen4_aleph model.
87
+ */
88
+ gen4_aleph?: Models.Gen4Aleph;
89
+
85
90
  /**
86
91
  * Limits associated with the gen4_image model.
87
92
  */
88
93
  gen4_image?: Models.Gen4Image;
89
94
 
95
+ /**
96
+ * Limits associated with the gen4_image_turbo model.
97
+ */
98
+ gen4_image_turbo?: Models.Gen4ImageTurbo;
99
+
90
100
  /**
91
101
  * Limits associated with the gen4_turbo model.
92
102
  */
@@ -129,6 +139,21 @@ export namespace OrganizationRetrieveResponse {
129
139
  maxDailyGenerations: number;
130
140
  }
131
141
 
142
+ /**
143
+ * Limits associated with the gen4_aleph model.
144
+ */
145
+ export interface Gen4Aleph {
146
+ /**
147
+ * The maximum number of generations that can be run concurrently for this model.
148
+ */
149
+ maxConcurrentGenerations: number;
150
+
151
+ /**
152
+ * The maximum number of generations that can be created each day for this model.
153
+ */
154
+ maxDailyGenerations: number;
155
+ }
156
+
132
157
  /**
133
158
  * Limits associated with the gen4_image model.
134
159
  */
@@ -144,6 +169,21 @@ export namespace OrganizationRetrieveResponse {
144
169
  maxDailyGenerations: number;
145
170
  }
146
171
 
172
+ /**
173
+ * Limits associated with the gen4_image_turbo model.
174
+ */
175
+ export interface Gen4ImageTurbo {
176
+ /**
177
+ * The maximum number of generations that can be run concurrently for this model.
178
+ */
179
+ maxConcurrentGenerations: number;
180
+
181
+ /**
182
+ * The maximum number of generations that can be created each day for this model.
183
+ */
184
+ maxDailyGenerations: number;
185
+ }
186
+
147
187
  /**
148
188
  * Limits associated with the gen4_turbo model.
149
189
  */
@@ -201,11 +241,21 @@ export namespace OrganizationRetrieveResponse {
201
241
  */
202
242
  gen3a_turbo?: Models.Gen3aTurbo;
203
243
 
244
+ /**
245
+ * Usage data for the gen4_aleph model.
246
+ */
247
+ gen4_aleph?: Models.Gen4Aleph;
248
+
204
249
  /**
205
250
  * Usage data for the gen4_image model.
206
251
  */
207
252
  gen4_image?: Models.Gen4Image;
208
253
 
254
+ /**
255
+ * Usage data for the gen4_image_turbo model.
256
+ */
257
+ gen4_image_turbo?: Models.Gen4ImageTurbo;
258
+
209
259
  /**
210
260
  * Usage data for the gen4_turbo model.
211
261
  */
@@ -238,6 +288,16 @@ export namespace OrganizationRetrieveResponse {
238
288
  dailyGenerations: number;
239
289
  }
240
290
 
291
+ /**
292
+ * Usage data for the gen4_aleph model.
293
+ */
294
+ export interface Gen4Aleph {
295
+ /**
296
+ * The number of generations that have been run for this model in the past day.
297
+ */
298
+ dailyGenerations: number;
299
+ }
300
+
241
301
  /**
242
302
  * Usage data for the gen4_image model.
243
303
  */
@@ -248,6 +308,16 @@ export namespace OrganizationRetrieveResponse {
248
308
  dailyGenerations: number;
249
309
  }
250
310
 
311
+ /**
312
+ * Usage data for the gen4_image_turbo model.
313
+ */
314
+ export interface Gen4ImageTurbo {
315
+ /**
316
+ * The number of generations that have been run for this model in the past day.
317
+ */
318
+ dailyGenerations: number;
319
+ }
320
+
251
321
  /**
252
322
  * Usage data for the gen4_turbo model.
253
323
  */
@@ -275,7 +345,9 @@ export interface OrganizationRetrieveUsageResponse {
275
345
  /**
276
346
  * The list of models with usage during the queried time range.
277
347
  */
278
- models: Array<'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo'>;
348
+ models: Array<
349
+ 'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_aleph' | 'gen4_image_turbo'
350
+ >;
279
351
 
280
352
  results: Array<OrganizationRetrieveUsageResponse.Result>;
281
353
  }
@@ -304,7 +376,14 @@ export namespace OrganizationRetrieveUsageResponse {
304
376
  /**
305
377
  * The model whose usage resulted in the credit usage.
306
378
  */
307
- model: 'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo';
379
+ model:
380
+ | 'upscale_v1'
381
+ | 'act_two'
382
+ | 'gen4_image'
383
+ | 'gen3a_turbo'
384
+ | 'gen4_turbo'
385
+ | 'gen4_aleph'
386
+ | 'gen4_image_turbo';
308
387
  }
309
388
  }
310
389
  }
@@ -29,7 +29,7 @@ export interface TextToImageCreateParams {
29
29
  /**
30
30
  * The model variant to use.
31
31
  */
32
- model: 'gen4_image';
32
+ model: 'gen4_image' | 'gen4_image_turbo';
33
33
 
34
34
  /**
35
35
  * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
@@ -64,8 +64,10 @@ export interface TextToImageCreateParams {
64
64
  contentModeration?: TextToImageCreateParams.ContentModeration;
65
65
 
66
66
  /**
67
- * An array of images to be used as references for the generated image output. Up
68
- * to three reference images can be provided.
67
+ * An array of up to three images to be used as references for the generated image
68
+ * output.
69
+ *
70
+ * For `gen4_image_turbo`, _at least one_ reference image is required.
69
71
  */
70
72
  referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
71
73
 
@@ -0,0 +1,102 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class VideoToVideo extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to generate a video from a video.
10
+ */
11
+ create(
12
+ body: VideoToVideoCreateParams,
13
+ options?: Core.RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VideoToVideoCreateResponse> {
15
+ return wrapAsWaitableResource<VideoToVideoCreateResponse>(this._client)(
16
+ this._client.post('/v1/video_to_video', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VideoToVideoCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VideoToVideoCreateParams {
29
+ /**
30
+ * The model variant to use.
31
+ */
32
+ model: 'gen4_aleph';
33
+
34
+ /**
35
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
36
+ * should describe in detail what should appear in the output.
37
+ */
38
+ promptText: string;
39
+
40
+ /**
41
+ * The resolution of the output video.
42
+ */
43
+ ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
44
+
45
+ /**
46
+ * A HTTPS URL pointing to a video or a data URI containing a video. See
47
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
48
+ */
49
+ videoUri: string;
50
+
51
+ /**
52
+ * Settings that affect the behavior of the content moderation system.
53
+ */
54
+ contentModeration?: VideoToVideoCreateParams.ContentModeration;
55
+
56
+ /**
57
+ * An array of references. Currently up to one reference is supported. See
58
+ * [our docs](/assets/inputs#images) on image inputs for more information.
59
+ */
60
+ references?: Array<VideoToVideoCreateParams.Reference>;
61
+
62
+ /**
63
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
64
+ * get different results for the same other request parameters. Using the same seed
65
+ * integer for an identical request will produce similar results.
66
+ */
67
+ seed?: number;
68
+ }
69
+
70
+ export namespace VideoToVideoCreateParams {
71
+ /**
72
+ * Settings that affect the behavior of the content moderation system.
73
+ */
74
+ export interface ContentModeration {
75
+ /**
76
+ * When set to `low`, the content moderation system will be less strict about
77
+ * preventing generations that include recognizable public figures.
78
+ */
79
+ publicFigureThreshold?: 'auto' | 'low';
80
+ }
81
+
82
+ /**
83
+ * Passing an image reference allows the model to emulate the style or content of
84
+ * the reference in the output.
85
+ */
86
+ export interface Reference {
87
+ type: 'image';
88
+
89
+ /**
90
+ * A HTTPS URL pointing to an image or a data URI containing an image. See
91
+ * [our docs](/assets/inputs#images) on image inputs for more information.
92
+ */
93
+ uri: string;
94
+ }
95
+ }
96
+
97
+ export declare namespace VideoToVideo {
98
+ export {
99
+ type VideoToVideoCreateResponse as VideoToVideoCreateResponse,
100
+ type VideoToVideoCreateParams as VideoToVideoCreateParams,
101
+ };
102
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.5.1'; // x-release-please-version
1
+ export const VERSION = '2.7.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.5.1";
1
+ export declare const VERSION = "2.7.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.5.1'; // x-release-please-version
4
+ exports.VERSION = '2.7.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.5.1'; // x-release-please-version
1
+ export const VERSION = '2.7.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map