@runwayml/sdk 3.7.0 → 3.9.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 +24 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/lib/polling.d.mts +2 -2
- package/lib/polling.d.mts.map +1 -1
- package/lib/polling.d.ts +2 -2
- package/lib/polling.d.ts.map +1 -1
- package/lib/polling.js +1 -1
- package/lib/polling.js.map +1 -1
- package/lib/polling.mjs +1 -1
- package/lib/polling.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +3 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +3 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +48 -37
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +48 -37
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization.d.mts +18 -489
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +18 -489
- package/resources/organization.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +3 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +3 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +4 -1
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +4 -1
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +94 -32
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +94 -32
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +162 -88
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +162 -88
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +3 -0
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -0
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +11 -0
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +11 -0
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +3 -0
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +3 -0
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +3 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +3 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +3 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +1 -1
- package/src/lib/polling.ts +4 -4
- package/src/resources/character-performance.ts +3 -0
- package/src/resources/image-to-video.ts +57 -44
- package/src/resources/organization.ts +33 -583
- package/src/resources/sound-effect.ts +3 -0
- package/src/resources/speech-to-speech.ts +4 -1
- package/src/resources/tasks.ts +116 -32
- package/src/resources/text-to-image.ts +262 -114
- package/src/resources/text-to-speech.ts +3 -0
- package/src/resources/text-to-video.ts +13 -0
- package/src/resources/video-to-video.ts +3 -0
- package/src/resources/video-upscale.ts +3 -0
- package/src/resources/voice-dubbing.ts +3 -0
- package/src/resources/voice-isolation.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/tasks.ts
CHANGED
|
@@ -35,56 +35,140 @@ export class Tasks extends APIResource {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
/**
|
|
39
|
+
* A pending task
|
|
40
|
+
*/
|
|
41
|
+
export type TaskRetrieveResponse =
|
|
42
|
+
| TaskRetrieveResponse.Pending
|
|
43
|
+
| TaskRetrieveResponse.Throttled
|
|
44
|
+
| TaskRetrieveResponse.Cancelled
|
|
45
|
+
| TaskRetrieveResponse.Running
|
|
46
|
+
| TaskRetrieveResponse.Failed
|
|
47
|
+
| TaskRetrieveResponse.Succeeded;
|
|
43
48
|
|
|
49
|
+
export namespace TaskRetrieveResponse {
|
|
44
50
|
/**
|
|
45
|
-
*
|
|
51
|
+
* A pending task
|
|
46
52
|
*/
|
|
47
|
-
|
|
53
|
+
export interface Pending {
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the task being returned.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The timestamp that the task was submitted at.
|
|
61
|
+
*/
|
|
62
|
+
createdAt: string;
|
|
63
|
+
|
|
64
|
+
status: 'PENDING';
|
|
65
|
+
}
|
|
48
66
|
|
|
49
67
|
/**
|
|
50
|
-
*
|
|
51
|
-
* - `THROTTLED` tasks are waiting to be enqueued until other jobs have finished
|
|
52
|
-
* running.
|
|
53
|
-
* - `RUNNING` tasks are currently being processed.
|
|
54
|
-
* - `SUCCEEDED` tasks have completed successfully.
|
|
55
|
-
* - `FAILED` tasks have failed.
|
|
56
|
-
* - `CANCELLED` tasks have been aborted.
|
|
68
|
+
* A throttled task
|
|
57
69
|
*/
|
|
58
|
-
|
|
70
|
+
export interface Throttled {
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the task being returned.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The timestamp that the task was submitted at.
|
|
78
|
+
*/
|
|
79
|
+
createdAt: string;
|
|
80
|
+
|
|
81
|
+
status: 'THROTTLED';
|
|
82
|
+
}
|
|
59
83
|
|
|
60
84
|
/**
|
|
61
|
-
*
|
|
62
|
-
* failure.
|
|
85
|
+
* A cancelled or deleted task
|
|
63
86
|
*/
|
|
64
|
-
|
|
87
|
+
export interface Cancelled {
|
|
88
|
+
/**
|
|
89
|
+
* The ID of the task being returned.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The timestamp that the task was submitted at.
|
|
95
|
+
*/
|
|
96
|
+
createdAt: string;
|
|
97
|
+
|
|
98
|
+
status: 'CANCELLED';
|
|
99
|
+
}
|
|
65
100
|
|
|
66
101
|
/**
|
|
67
|
-
*
|
|
68
|
-
* code. This is a dot-separated string, with the leftmost segment being the most
|
|
69
|
-
* generic and the rightmost segment being the most specific. For example,
|
|
70
|
-
* `SAFETY.INPUT.TEXT` would indicate that the task failed due to a content
|
|
71
|
-
* moderation error on the input text.
|
|
102
|
+
* A running task
|
|
72
103
|
*/
|
|
73
|
-
|
|
104
|
+
export interface Running {
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the task being returned.
|
|
107
|
+
*/
|
|
108
|
+
id: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The timestamp that the task was submitted at.
|
|
112
|
+
*/
|
|
113
|
+
createdAt: string;
|
|
114
|
+
|
|
115
|
+
progress: number;
|
|
116
|
+
|
|
117
|
+
status: 'RUNNING';
|
|
118
|
+
}
|
|
74
119
|
|
|
75
120
|
/**
|
|
76
|
-
*
|
|
77
|
-
* will be a URL that returns an output from the task. URLs expire within 24-48
|
|
78
|
-
* hours; fetch the task again to get fresh URLs. It is expected that you download
|
|
79
|
-
* the assets at these URLs and store them in your own storage system.
|
|
121
|
+
* A failed task
|
|
80
122
|
*/
|
|
81
|
-
|
|
123
|
+
export interface Failed {
|
|
124
|
+
/**
|
|
125
|
+
* The ID of the task being returned.
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The timestamp that the task was submitted at.
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* A human-friendly reason for the failure. We do not recommend returning this to
|
|
136
|
+
* users directly without adding context.
|
|
137
|
+
*/
|
|
138
|
+
failure: string;
|
|
139
|
+
|
|
140
|
+
status: 'FAILED';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* A machine-readable error code for the failure. See
|
|
144
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information.
|
|
145
|
+
*/
|
|
146
|
+
failureCode?: string;
|
|
147
|
+
}
|
|
82
148
|
|
|
83
149
|
/**
|
|
84
|
-
*
|
|
85
|
-
* between 0 and 1 representing the progress of the generation.
|
|
150
|
+
* A succeeded task
|
|
86
151
|
*/
|
|
87
|
-
|
|
152
|
+
export interface Succeeded {
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the task being returned.
|
|
155
|
+
*/
|
|
156
|
+
id: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The timestamp that the task was submitted at.
|
|
160
|
+
*/
|
|
161
|
+
createdAt: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* An array of URLs that return the output of the task. These URLs will expire
|
|
165
|
+
* within 24-48 hours; fetch the task again to get fresh URLs. It is expected that
|
|
166
|
+
* you download the assets at these URLs and store them in your own storage system.
|
|
167
|
+
*/
|
|
168
|
+
output: Array<string>;
|
|
169
|
+
|
|
170
|
+
status: 'SUCCEEDED';
|
|
171
|
+
}
|
|
88
172
|
}
|
|
89
173
|
|
|
90
174
|
export declare namespace Tasks {
|
|
@@ -20,139 +20,287 @@ export class TextToImage extends APIResource {
|
|
|
20
20
|
|
|
21
21
|
export interface TextToImageCreateResponse {
|
|
22
22
|
/**
|
|
23
|
-
* The ID of the
|
|
23
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
export type TextToImageCreateParams =
|
|
29
|
+
| TextToImageCreateParams.Gen4ImageTurbo
|
|
30
|
+
| TextToImageCreateParams.Gen4Image
|
|
31
|
+
| TextToImageCreateParams.Gemini3Pro
|
|
32
|
+
| TextToImageCreateParams.Gemini2_5Flash;
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*/
|
|
38
|
-
promptText: string;
|
|
34
|
+
export declare namespace TextToImageCreateParams {
|
|
35
|
+
export interface Gen4ImageTurbo {
|
|
36
|
+
model: 'gen4_image_turbo';
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* - `1920:1080`
|
|
46
|
-
* - `1080:1920`
|
|
47
|
-
* - `1024:1024`
|
|
48
|
-
* - `1360:768`
|
|
49
|
-
* - `1080:1080`
|
|
50
|
-
* - `1168:880`
|
|
51
|
-
* - `1440:1080`
|
|
52
|
-
* - `1080:1440`
|
|
53
|
-
* - `1808:768`
|
|
54
|
-
* - `2112:912`
|
|
55
|
-
* - `1280:720`
|
|
56
|
-
* - `720:1280`
|
|
57
|
-
* - `720:720`
|
|
58
|
-
* - `960:720`
|
|
59
|
-
* - `720:960`
|
|
60
|
-
* - `1680:720`
|
|
61
|
-
*
|
|
62
|
-
* `gemini_2.5_flash` supports the following values:
|
|
63
|
-
*
|
|
64
|
-
* - `1344:768`
|
|
65
|
-
* - `768:1344`
|
|
66
|
-
* - `1024:1024`
|
|
67
|
-
* - `1184:864`
|
|
68
|
-
* - `864:1184`
|
|
69
|
-
* - `1536:672`
|
|
70
|
-
* - `832x1248`
|
|
71
|
-
* - `1248x832`
|
|
72
|
-
* - `896x1152`
|
|
73
|
-
* - `1152x896`
|
|
74
|
-
*/
|
|
75
|
-
ratio:
|
|
76
|
-
| '1920:1080'
|
|
77
|
-
| '1080:1920'
|
|
78
|
-
| '1024:1024'
|
|
79
|
-
| '1360:768'
|
|
80
|
-
| '1080:1080'
|
|
81
|
-
| '1168:880'
|
|
82
|
-
| '1440:1080'
|
|
83
|
-
| '1080:1440'
|
|
84
|
-
| '1808:768'
|
|
85
|
-
| '2112:912'
|
|
86
|
-
| '1280:720'
|
|
87
|
-
| '720:1280'
|
|
88
|
-
| '720:720'
|
|
89
|
-
| '960:720'
|
|
90
|
-
| '720:960'
|
|
91
|
-
| '1680:720'
|
|
92
|
-
| '1344:768'
|
|
93
|
-
| '768:1344'
|
|
94
|
-
| '1184:864'
|
|
95
|
-
| '864:1184'
|
|
96
|
-
| '1536:672'
|
|
97
|
-
| '832x1248'
|
|
98
|
-
| '1248x832'
|
|
99
|
-
| '896x1152'
|
|
100
|
-
| '1152x896';
|
|
38
|
+
/**
|
|
39
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
40
|
+
* should describe in detail what should appear in the output.
|
|
41
|
+
*/
|
|
42
|
+
promptText: string;
|
|
101
43
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
44
|
+
/**
|
|
45
|
+
* The resolution of the output image.
|
|
46
|
+
*/
|
|
47
|
+
ratio:
|
|
48
|
+
| '1024:1024'
|
|
49
|
+
| '1080:1080'
|
|
50
|
+
| '1168:880'
|
|
51
|
+
| '1360:768'
|
|
52
|
+
| '1440:1080'
|
|
53
|
+
| '1080:1440'
|
|
54
|
+
| '1808:768'
|
|
55
|
+
| '1920:1080'
|
|
56
|
+
| '1080:1920'
|
|
57
|
+
| '2112:912'
|
|
58
|
+
| '1280:720'
|
|
59
|
+
| '720:1280'
|
|
60
|
+
| '720:720'
|
|
61
|
+
| '960:720'
|
|
62
|
+
| '720:960'
|
|
63
|
+
| '1680:720';
|
|
109
64
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
*/
|
|
116
|
-
referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
|
|
65
|
+
/**
|
|
66
|
+
* An array of one to three images to be used as references for the generated image
|
|
67
|
+
* output.
|
|
68
|
+
*/
|
|
69
|
+
referenceImages: Array<Gen4ImageTurbo.ReferenceImage>;
|
|
117
70
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Settings that affect the behavior of the content moderation system.
|
|
73
|
+
*/
|
|
74
|
+
contentModeration?: Gen4ImageTurbo.ContentModeration;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
78
|
+
* get different results for the same other request parameters. Using the same seed
|
|
79
|
+
* integer for an identical request will produce similar results.
|
|
80
|
+
*/
|
|
81
|
+
seed?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace Gen4ImageTurbo {
|
|
85
|
+
export interface ReferenceImage {
|
|
86
|
+
/**
|
|
87
|
+
* A HTTPS URL.
|
|
88
|
+
*/
|
|
89
|
+
uri: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
93
|
+
* prompt text.
|
|
94
|
+
*/
|
|
95
|
+
tag?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Settings that affect the behavior of the content moderation system.
|
|
100
|
+
*/
|
|
101
|
+
export interface ContentModeration {
|
|
102
|
+
/**
|
|
103
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
104
|
+
* preventing generations that include recognizable public figures.
|
|
105
|
+
*/
|
|
106
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface Gen4Image {
|
|
111
|
+
model: 'gen4_image';
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
115
|
+
* should describe in detail what should appear in the output.
|
|
116
|
+
*/
|
|
117
|
+
promptText: string;
|
|
125
118
|
|
|
126
|
-
export namespace TextToImageCreateParams {
|
|
127
|
-
/**
|
|
128
|
-
* Settings that affect the behavior of the content moderation system.
|
|
129
|
-
*
|
|
130
|
-
* This field is allowed only for the following model variants: `gen4_image_turbo`,
|
|
131
|
-
* `gen4_image`
|
|
132
|
-
*/
|
|
133
|
-
export interface ContentModeration {
|
|
134
119
|
/**
|
|
135
|
-
*
|
|
136
|
-
* preventing generations that include recognizable public figures.
|
|
120
|
+
* The resolution of the output image.
|
|
137
121
|
*/
|
|
138
|
-
|
|
122
|
+
ratio:
|
|
123
|
+
| '1024:1024'
|
|
124
|
+
| '1080:1080'
|
|
125
|
+
| '1168:880'
|
|
126
|
+
| '1360:768'
|
|
127
|
+
| '1440:1080'
|
|
128
|
+
| '1080:1440'
|
|
129
|
+
| '1808:768'
|
|
130
|
+
| '1920:1080'
|
|
131
|
+
| '1080:1920'
|
|
132
|
+
| '2112:912'
|
|
133
|
+
| '1280:720'
|
|
134
|
+
| '720:1280'
|
|
135
|
+
| '720:720'
|
|
136
|
+
| '960:720'
|
|
137
|
+
| '720:960'
|
|
138
|
+
| '1680:720';
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Settings that affect the behavior of the content moderation system.
|
|
142
|
+
*/
|
|
143
|
+
contentModeration?: Gen4Image.ContentModeration;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* An array of up to three images to be used as references for the generated image
|
|
147
|
+
* output.
|
|
148
|
+
*/
|
|
149
|
+
referenceImages?: Array<Gen4Image.ReferenceImage>;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
153
|
+
* get different results for the same other request parameters. Using the same seed
|
|
154
|
+
* integer for an identical request will produce similar results.
|
|
155
|
+
*/
|
|
156
|
+
seed?: number;
|
|
139
157
|
}
|
|
140
158
|
|
|
141
|
-
export
|
|
159
|
+
export namespace Gen4Image {
|
|
160
|
+
/**
|
|
161
|
+
* Settings that affect the behavior of the content moderation system.
|
|
162
|
+
*/
|
|
163
|
+
export interface ContentModeration {
|
|
164
|
+
/**
|
|
165
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
166
|
+
* preventing generations that include recognizable public figures.
|
|
167
|
+
*/
|
|
168
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface ReferenceImage {
|
|
172
|
+
/**
|
|
173
|
+
* A HTTPS URL.
|
|
174
|
+
*/
|
|
175
|
+
uri: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
179
|
+
* prompt text.
|
|
180
|
+
*/
|
|
181
|
+
tag?: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface Gemini3Pro {
|
|
186
|
+
model: 'gemini_3_pro';
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
190
|
+
* should describe in detail what should appear in the output.
|
|
191
|
+
*/
|
|
192
|
+
promptText: string;
|
|
193
|
+
|
|
142
194
|
/**
|
|
143
|
-
*
|
|
144
|
-
* reference for the generated output image. See [our docs](/assets/inputs#images)
|
|
145
|
-
* on image inputs for more information.
|
|
195
|
+
* The resolution of the output image.
|
|
146
196
|
*/
|
|
147
|
-
|
|
197
|
+
ratio:
|
|
198
|
+
| '1344:768'
|
|
199
|
+
| '768:1344'
|
|
200
|
+
| '1024:1024'
|
|
201
|
+
| '1184:864'
|
|
202
|
+
| '864:1184'
|
|
203
|
+
| '1536:672'
|
|
204
|
+
| '832:1248'
|
|
205
|
+
| '1248:832'
|
|
206
|
+
| '896:1152'
|
|
207
|
+
| '1152:896'
|
|
208
|
+
| '2048:2048'
|
|
209
|
+
| '1696:2528'
|
|
210
|
+
| '2528:1696'
|
|
211
|
+
| '1792:2400'
|
|
212
|
+
| '2400:1792'
|
|
213
|
+
| '1856:2304'
|
|
214
|
+
| '2304:1856'
|
|
215
|
+
| '1536:2752'
|
|
216
|
+
| '2752:1536'
|
|
217
|
+
| '3168:1344'
|
|
218
|
+
| '4096:4096'
|
|
219
|
+
| '3392:5056'
|
|
220
|
+
| '5056:3392'
|
|
221
|
+
| '3584:4800'
|
|
222
|
+
| '4800:3584'
|
|
223
|
+
| '3712:4608'
|
|
224
|
+
| '4608:3712'
|
|
225
|
+
| '3072:5504'
|
|
226
|
+
| '5504:3072'
|
|
227
|
+
| '6336:2688';
|
|
148
228
|
|
|
149
229
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
230
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
231
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
232
|
+
* character consistency, and up to nine of those images can pass
|
|
233
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
234
|
+
* output.
|
|
154
235
|
*/
|
|
155
|
-
|
|
236
|
+
referenceImages?: Array<Gemini3Pro.ReferenceImage>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export namespace Gemini3Pro {
|
|
240
|
+
export interface ReferenceImage {
|
|
241
|
+
/**
|
|
242
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
243
|
+
* object that appears in the output.
|
|
244
|
+
*/
|
|
245
|
+
subject: 'object' | 'human';
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* A HTTPS URL.
|
|
249
|
+
*/
|
|
250
|
+
uri: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
254
|
+
* prompt text.
|
|
255
|
+
*/
|
|
256
|
+
tag?: string;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface Gemini2_5Flash {
|
|
261
|
+
model: 'gemini_2.5_flash';
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
265
|
+
* should describe in detail what should appear in the output.
|
|
266
|
+
*/
|
|
267
|
+
promptText: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The resolution of the output image.
|
|
271
|
+
*/
|
|
272
|
+
ratio:
|
|
273
|
+
| '1344:768'
|
|
274
|
+
| '768:1344'
|
|
275
|
+
| '1024:1024'
|
|
276
|
+
| '1184:864'
|
|
277
|
+
| '864:1184'
|
|
278
|
+
| '1536:672'
|
|
279
|
+
| '832:1248'
|
|
280
|
+
| '1248:832'
|
|
281
|
+
| '896:1152'
|
|
282
|
+
| '1152:896';
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* An array of up to three images to be used as references for the generated image
|
|
286
|
+
* output.
|
|
287
|
+
*/
|
|
288
|
+
referenceImages?: Array<Gemini2_5Flash.ReferenceImage>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export namespace Gemini2_5Flash {
|
|
292
|
+
export interface ReferenceImage {
|
|
293
|
+
/**
|
|
294
|
+
* A HTTPS URL.
|
|
295
|
+
*/
|
|
296
|
+
uri: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
300
|
+
* prompt text.
|
|
301
|
+
*/
|
|
302
|
+
tag?: string;
|
|
303
|
+
}
|
|
156
304
|
}
|
|
157
305
|
}
|
|
158
306
|
|
|
@@ -19,6 +19,9 @@ export class TextToVideo extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface TextToVideoCreateResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
24
|
+
*/
|
|
22
25
|
id: string;
|
|
23
26
|
}
|
|
24
27
|
|
|
@@ -42,6 +45,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
42
45
|
*/
|
|
43
46
|
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
44
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
50
|
+
*/
|
|
51
|
+
audio?: boolean;
|
|
52
|
+
|
|
45
53
|
/**
|
|
46
54
|
* The number of seconds of duration for the output video.
|
|
47
55
|
*/
|
|
@@ -62,6 +70,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
62
70
|
*/
|
|
63
71
|
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
64
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
75
|
+
*/
|
|
76
|
+
audio?: boolean;
|
|
77
|
+
|
|
65
78
|
/**
|
|
66
79
|
* The number of seconds of duration for the output video.
|
|
67
80
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.9.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.9.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|