@runwayml/sdk 2.0.1 → 2.0.3
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 +29 -0
- package/README.md +9 -3
- package/package.json +1 -1
- package/resources/image-to-video.d.ts +23 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/src/resources/image-to-video.ts +24 -10
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.3 (2025-05-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.0.2...v2.0.3](https://github.com/runwayml/sdk-node/compare/v2.0.2...v2.0.3)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* **ci:** bump node version for release workflows ([f024169](https://github.com/runwayml/sdk-node/commit/f024169eca8faaddf3d0f39f8a99a6faeff2792f))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Documentation
|
|
13
|
+
|
|
14
|
+
* **readme:** fix typo ([84ba1ba](https://github.com/runwayml/sdk-node/commit/84ba1ba3611532d5b9f6a1f40f49855094566745))
|
|
15
|
+
|
|
16
|
+
## 2.0.2 (2025-04-30)
|
|
17
|
+
|
|
18
|
+
Full Changelog: [v2.0.1...v2.0.2](https://github.com/runwayml/sdk-node/compare/v2.0.1...v2.0.2)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **api:** Fix for parameters with missing descriptions ([8f627e5](https://github.com/runwayml/sdk-node/commit/8f627e50988b5476f225214edd490cf63517a004))
|
|
23
|
+
* **api:** Make `ratio` a required parameter for i2v ([fd6196e](https://github.com/runwayml/sdk-node/commit/fd6196e407231faeaec3a2bcaefe3d493ca1800b))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Chores
|
|
27
|
+
|
|
28
|
+
* **ci:** add timeout thresholds for CI jobs ([c0f4e1f](https://github.com/runwayml/sdk-node/commit/c0f4e1f591bd5fbdb82f6d08ff7963e84864b9b6))
|
|
29
|
+
* **ci:** only use depot for staging repos ([028ff22](https://github.com/runwayml/sdk-node/commit/028ff22bc0fe9f323edac6cbc4a3c3a9f5ca1817))
|
|
30
|
+
* **internal:** codegen related update ([6bf11ee](https://github.com/runwayml/sdk-node/commit/6bf11ee3f3131c45b1c064cced0e65884f699f52))
|
|
31
|
+
|
|
3
32
|
## 2.0.1 (2025-04-15)
|
|
4
33
|
|
|
5
34
|
Full Changelog: [v2.0.0...v2.0.1](https://github.com/runwayml/sdk-node/compare/v2.0.0...v2.0.1)
|
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@ async function main() {
|
|
|
30
30
|
const imageToVideo = await client.imageToVideo.create({
|
|
31
31
|
model: 'gen4_turbo',
|
|
32
32
|
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
33
|
+
ratio: '1280:720',
|
|
33
34
|
promptText: 'The bunny is eating a carrot',
|
|
34
35
|
});
|
|
35
36
|
|
|
@@ -55,6 +56,7 @@ async function main() {
|
|
|
55
56
|
const params: RunwayML.ImageToVideoCreateParams = {
|
|
56
57
|
model: 'gen4_turbo',
|
|
57
58
|
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
59
|
+
ratio: '1280:720',
|
|
58
60
|
promptText: 'The bunny is eating a carrot',
|
|
59
61
|
};
|
|
60
62
|
const imageToVideo: RunwayML.ImageToVideoCreateResponse = await client.imageToVideo.create(params);
|
|
@@ -78,6 +80,7 @@ async function main() {
|
|
|
78
80
|
.create({
|
|
79
81
|
model: 'gen4_turbo',
|
|
80
82
|
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
83
|
+
ratio: '1280:720',
|
|
81
84
|
promptText: 'The bunny is eating a carrot',
|
|
82
85
|
})
|
|
83
86
|
.catch(async (err) => {
|
|
@@ -94,7 +97,7 @@ async function main() {
|
|
|
94
97
|
main();
|
|
95
98
|
```
|
|
96
99
|
|
|
97
|
-
Error codes are as
|
|
100
|
+
Error codes are as follows:
|
|
98
101
|
|
|
99
102
|
| Status Code | Error Type |
|
|
100
103
|
| ----------- | -------------------------- |
|
|
@@ -123,7 +126,7 @@ const client = new RunwayML({
|
|
|
123
126
|
});
|
|
124
127
|
|
|
125
128
|
// Or, configure per-request:
|
|
126
|
-
await client.imageToVideo.create({ model: 'gen4_turbo', promptImage: 'https://example.com/assets/bunny.jpg', promptText: 'The bunny is eating a carrot' }, {
|
|
129
|
+
await client.imageToVideo.create({ model: 'gen4_turbo', promptImage: 'https://example.com/assets/bunny.jpg', ratio: '1280:720', promptText: 'The bunny is eating a carrot' }, {
|
|
127
130
|
maxRetries: 5,
|
|
128
131
|
});
|
|
129
132
|
```
|
|
@@ -140,7 +143,7 @@ const client = new RunwayML({
|
|
|
140
143
|
});
|
|
141
144
|
|
|
142
145
|
// Override per-request:
|
|
143
|
-
await client.imageToVideo.create({ model: 'gen4_turbo', promptImage: 'https://example.com/assets/bunny.jpg', promptText: 'The bunny is eating a carrot' }, {
|
|
146
|
+
await client.imageToVideo.create({ model: 'gen4_turbo', promptImage: 'https://example.com/assets/bunny.jpg', ratio: '1280:720', promptText: 'The bunny is eating a carrot' }, {
|
|
144
147
|
timeout: 5 * 1000,
|
|
145
148
|
});
|
|
146
149
|
```
|
|
@@ -165,6 +168,7 @@ const response = await client.imageToVideo
|
|
|
165
168
|
.create({
|
|
166
169
|
model: 'gen4_turbo',
|
|
167
170
|
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
171
|
+
ratio: '1280:720',
|
|
168
172
|
promptText: 'The bunny is eating a carrot',
|
|
169
173
|
})
|
|
170
174
|
.asResponse();
|
|
@@ -175,6 +179,7 @@ const { data: imageToVideo, response: raw } = await client.imageToVideo
|
|
|
175
179
|
.create({
|
|
176
180
|
model: 'gen4_turbo',
|
|
177
181
|
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
182
|
+
ratio: '1280:720',
|
|
178
183
|
promptText: 'The bunny is eating a carrot',
|
|
179
184
|
})
|
|
180
185
|
.withResponse();
|
|
@@ -287,6 +292,7 @@ await client.imageToVideo.create(
|
|
|
287
292
|
{
|
|
288
293
|
model: 'gen4_turbo',
|
|
289
294
|
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
295
|
+
ratio: '1280:720',
|
|
290
296
|
promptText: 'The bunny is eating a carrot',
|
|
291
297
|
},
|
|
292
298
|
{
|
package/package.json
CHANGED
|
@@ -24,12 +24,34 @@ export interface ImageToVideoCreateParams {
|
|
|
24
24
|
* inputs for more information.
|
|
25
25
|
*/
|
|
26
26
|
promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
|
|
27
|
+
/**
|
|
28
|
+
* The resolution of the output video.
|
|
29
|
+
*
|
|
30
|
+
* `gen4_turbo` supports the following values:
|
|
31
|
+
*
|
|
32
|
+
* - `1280:720`
|
|
33
|
+
* - `720:1280`
|
|
34
|
+
* - `1104:832`
|
|
35
|
+
* - `832:1104`
|
|
36
|
+
* - `960:960`
|
|
37
|
+
* - `1584:672`
|
|
38
|
+
*
|
|
39
|
+
* `gen3a_turbo` supports the following values:
|
|
40
|
+
*
|
|
41
|
+
* - `1280:768`
|
|
42
|
+
* - `768:1280`
|
|
43
|
+
*/
|
|
44
|
+
ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280';
|
|
27
45
|
/**
|
|
28
46
|
* The number of seconds of duration for the output video.
|
|
29
47
|
*/
|
|
30
48
|
duration?: 5 | 10;
|
|
49
|
+
/**
|
|
50
|
+
* A non-empty string up to 1000 UTF-16 code points in length (that is,
|
|
51
|
+
* `promptText.length === 1000` in JavaScript). This should describe in detail what
|
|
52
|
+
* should appear in the output.
|
|
53
|
+
*/
|
|
31
54
|
promptText?: string;
|
|
32
|
-
ratio?: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280';
|
|
33
55
|
/**
|
|
34
56
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
35
57
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAG/C;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,aAAa,CAAC;IAEpC;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElE
|
|
1
|
+
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAG/C;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,aAAa,CAAC;IAEpC;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElE;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAE5G;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,WAAW;QAC1B;;;;;;WAMG;QACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;QAE3B;;;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"}
|
|
@@ -36,23 +36,37 @@ export interface ImageToVideoCreateParams {
|
|
|
36
36
|
*/
|
|
37
37
|
promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* The resolution of the output video.
|
|
41
|
+
*
|
|
42
|
+
* `gen4_turbo` supports the following values:
|
|
43
|
+
*
|
|
44
|
+
* - `1280:720`
|
|
45
|
+
* - `720:1280`
|
|
46
|
+
* - `1104:832`
|
|
47
|
+
* - `832:1104`
|
|
48
|
+
* - `960:960`
|
|
49
|
+
* - `1584:672`
|
|
50
|
+
*
|
|
51
|
+
* `gen3a_turbo` supports the following values:
|
|
52
|
+
*
|
|
53
|
+
* - `1280:768`
|
|
54
|
+
* - `768:1280`
|
|
55
|
+
*/
|
|
56
|
+
ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280';
|
|
57
|
+
|
|
39
58
|
/**
|
|
40
59
|
* The number of seconds of duration for the output video.
|
|
41
60
|
*/
|
|
42
61
|
duration?: 5 | 10;
|
|
43
62
|
|
|
63
|
+
/**
|
|
64
|
+
* A non-empty string up to 1000 UTF-16 code points in length (that is,
|
|
65
|
+
* `promptText.length === 1000` in JavaScript). This should describe in detail what
|
|
66
|
+
* should appear in the output.
|
|
67
|
+
*/
|
|
44
68
|
promptText?: string;
|
|
45
69
|
|
|
46
|
-
ratio?:
|
|
47
|
-
| '1280:720'
|
|
48
|
-
| '720:1280'
|
|
49
|
-
| '1104:832'
|
|
50
|
-
| '832:1104'
|
|
51
|
-
| '960:960'
|
|
52
|
-
| '1584:672'
|
|
53
|
-
| '1280:768'
|
|
54
|
-
| '768:1280';
|
|
55
|
-
|
|
56
70
|
/**
|
|
57
71
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
58
72
|
* get different results for the same other request parameters. Using the same seed
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.0.
|
|
1
|
+
export const VERSION = '2.0.3'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.
|
|
1
|
+
export declare const VERSION = "2.0.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0.
|
|
1
|
+
export const VERSION = '2.0.3'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|