@runwayml/sdk 3.20.0 → 3.21.1
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 +39 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/polling.d.mts.map +1 -1
- package/lib/polling.d.ts.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/avatar-videos.d.mts.map +1 -1
- package/resources/avatar-videos.d.ts.map +1 -1
- package/resources/avatar-videos.mjs.map +1 -1
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts.map +1 -1
- package/resources/avatars.mjs.map +1 -1
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.mjs.map +1 -1
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.mjs.map +1 -1
- package/resources/image-to-video.d.mts +41 -83
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +41 -83
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/resources/realtime-sessions.mjs.map +1 -1
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/sound-effect.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/speech-to-speech.mjs +1 -0
- package/resources/speech-to-speech.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +89 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +89 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts +1 -25
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +1 -25
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.mjs.map +1 -1
- package/resources/video-to-video.d.mts +46 -112
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +46 -112
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.mjs.map +1 -1
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/resources/workflow-invocations.mjs.map +1 -1
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/image-to-video.ts +48 -112
- package/src/resources/organization.ts +2 -0
- package/src/resources/text-to-image.ts +168 -0
- package/src/resources/text-to-video.ts +0 -43
- package/src/resources/video-to-video.ts +47 -149
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -16,7 +16,7 @@ export interface TextToImageCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini2_5Flash;
|
|
19
|
+
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.Gemini2_5Flash;
|
|
20
20
|
export declare namespace TextToImageCreateParams {
|
|
21
21
|
interface Gen4ImageTurbo {
|
|
22
22
|
model: 'gen4_image_turbo';
|
|
@@ -118,6 +118,94 @@ export declare namespace TextToImageCreateParams {
|
|
|
118
118
|
tag?: string;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
interface GptImage2 {
|
|
122
|
+
model: 'gpt_image_2';
|
|
123
|
+
/**
|
|
124
|
+
* A non-empty string up to 32,000 characters describing the desired image.
|
|
125
|
+
*/
|
|
126
|
+
promptText: string;
|
|
127
|
+
/**
|
|
128
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
129
|
+
* to let the model choose.
|
|
130
|
+
*/
|
|
131
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
132
|
+
/**
|
|
133
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
134
|
+
* `transparent` is not supported by this model.
|
|
135
|
+
*/
|
|
136
|
+
background?: 'opaque' | 'auto';
|
|
137
|
+
/**
|
|
138
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
139
|
+
* number of credits consumed by the generation.
|
|
140
|
+
*/
|
|
141
|
+
outputCount?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
144
|
+
*/
|
|
145
|
+
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
146
|
+
/**
|
|
147
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
148
|
+
* output.
|
|
149
|
+
*/
|
|
150
|
+
referenceImages?: Array<GptImage2.ReferenceImage>;
|
|
151
|
+
}
|
|
152
|
+
namespace GptImage2 {
|
|
153
|
+
interface ReferenceImage {
|
|
154
|
+
/**
|
|
155
|
+
* A HTTPS URL.
|
|
156
|
+
*/
|
|
157
|
+
uri: string;
|
|
158
|
+
/**
|
|
159
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
160
|
+
* in prompt text.
|
|
161
|
+
*/
|
|
162
|
+
tag?: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
interface GeminiImage3Pro {
|
|
166
|
+
model: 'gemini_image3_pro';
|
|
167
|
+
/**
|
|
168
|
+
* A non-empty string up to 5,500 characters (measured in UTF-16 code units). This
|
|
169
|
+
* should describe in detail what should appear in the output.
|
|
170
|
+
*/
|
|
171
|
+
promptText: string;
|
|
172
|
+
/**
|
|
173
|
+
* The resolution of the output image.
|
|
174
|
+
*/
|
|
175
|
+
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
176
|
+
/**
|
|
177
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
178
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
179
|
+
* once.
|
|
180
|
+
*/
|
|
181
|
+
outputCount?: 1 | 4;
|
|
182
|
+
/**
|
|
183
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
184
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
185
|
+
* character consistency, and up to nine of those images can pass
|
|
186
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
187
|
+
* output.
|
|
188
|
+
*/
|
|
189
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
190
|
+
}
|
|
191
|
+
namespace GeminiImage3Pro {
|
|
192
|
+
interface ReferenceImage {
|
|
193
|
+
/**
|
|
194
|
+
* A HTTPS URL.
|
|
195
|
+
*/
|
|
196
|
+
uri: string;
|
|
197
|
+
/**
|
|
198
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
199
|
+
* object that appears in the output.
|
|
200
|
+
*/
|
|
201
|
+
subject?: 'object' | 'human';
|
|
202
|
+
/**
|
|
203
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
204
|
+
* prompt text.
|
|
205
|
+
*/
|
|
206
|
+
tag?: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
121
209
|
interface Gemini2_5Flash {
|
|
122
210
|
model: 'gemini_2.5_flash';
|
|
123
211
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,eAAe,GACvC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;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AAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.mjs","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"text-to-image.mjs","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,sBAAsB,CAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"AAEA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AAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.mjs","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"text-to-speech.mjs","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,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"}
|
|
@@ -16,7 +16,7 @@ export interface TextToVideoCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.
|
|
19
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo3;
|
|
20
20
|
export declare namespace TextToVideoCreateParams {
|
|
21
21
|
interface Gen4_5 {
|
|
22
22
|
/**
|
|
@@ -97,30 +97,6 @@ export declare namespace TextToVideoCreateParams {
|
|
|
97
97
|
*/
|
|
98
98
|
duration?: 4 | 6 | 8;
|
|
99
99
|
}
|
|
100
|
-
interface Seedance2 {
|
|
101
|
-
model: 'seedance2';
|
|
102
|
-
/**
|
|
103
|
-
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
104
|
-
* should describe in detail what should appear in the output.
|
|
105
|
-
*/
|
|
106
|
-
promptText: string;
|
|
107
|
-
/**
|
|
108
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
109
|
-
*/
|
|
110
|
-
audio?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* The number of seconds of duration for the output video.
|
|
113
|
-
*/
|
|
114
|
-
duration?: number;
|
|
115
|
-
/**
|
|
116
|
-
* The number of video generations to produce.
|
|
117
|
-
*/
|
|
118
|
-
outputCount?: number;
|
|
119
|
-
/**
|
|
120
|
-
* The resolution of the output video.
|
|
121
|
-
*/
|
|
122
|
-
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
123
|
-
}
|
|
124
100
|
interface Veo3 {
|
|
125
101
|
/**
|
|
126
102
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE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CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -16,7 +16,7 @@ export interface TextToVideoCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.
|
|
19
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo3;
|
|
20
20
|
export declare namespace TextToVideoCreateParams {
|
|
21
21
|
interface Gen4_5 {
|
|
22
22
|
/**
|
|
@@ -97,30 +97,6 @@ export declare namespace TextToVideoCreateParams {
|
|
|
97
97
|
*/
|
|
98
98
|
duration?: 4 | 6 | 8;
|
|
99
99
|
}
|
|
100
|
-
interface Seedance2 {
|
|
101
|
-
model: 'seedance2';
|
|
102
|
-
/**
|
|
103
|
-
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
104
|
-
* should describe in detail what should appear in the output.
|
|
105
|
-
*/
|
|
106
|
-
promptText: string;
|
|
107
|
-
/**
|
|
108
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
109
|
-
*/
|
|
110
|
-
audio?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* The number of seconds of duration for the output video.
|
|
113
|
-
*/
|
|
114
|
-
duration?: number;
|
|
115
|
-
/**
|
|
116
|
-
* The number of video generations to produce.
|
|
117
|
-
*/
|
|
118
|
-
outputCount?: number;
|
|
119
|
-
/**
|
|
120
|
-
* The resolution of the output video.
|
|
121
|
-
*/
|
|
122
|
-
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
123
|
-
}
|
|
124
100
|
interface Veo3 {
|
|
125
101
|
/**
|
|
126
102
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,MAAM,GAC9B,uBAAuB,CAAC,MAAM,GAC9B,uBAAuB,CAAC,UAAU,GAClC,uBAAuB,CAAC,IAAI,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,MAAM;QACrB;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB,KAAK,EAAE,QAAQ,CAAC;QAE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AO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.mjs","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"text-to-video.mjs","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,sBAAsB,CAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,UAAU,EAAE,gCAA4B;AA+DjD,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACG,eAAe,CACnB,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,6BAA6B,CAAC;CA8B1C;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AA+DjD,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACG,eAAe,CACnB,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,6BAA6B,CAAC;CA8B1C;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uplo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AAC,IAAI,EAAE,IAAI,EAAE,WAAoB,EAAE;YAC5D,GAAG,OAAO;SACX,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QACzD,+EAA+E;QAC/E,MAAM,KAAK,GAAI,IAAI,CAAC,OAAuC,CAAC,KAAK,CAAC;QAClE,MAAM,mBAAmB,CACvB,WAAW,CAAC,SAAS,EACrB,WAAW,CAAC,MAAM,EAClB,OAAO,EACP,YAAY,EACZ,OAAO,EACP,KAAK,CACN,CAAC;QAEF,OAAO,EAAE,GAAG,EAAE,WAAW,CAAC,SAAS,EAAE,CAAC;IACxC,CAAC;CACF"}
|
|
@@ -25,125 +25,59 @@ export interface VideoToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export interface VideoToVideoCreateParams {
|
|
29
|
+
model: 'gen4_aleph';
|
|
30
|
+
/**
|
|
31
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
32
|
+
* should describe in detail what should appear in the output.
|
|
33
|
+
*/
|
|
34
|
+
promptText: string;
|
|
35
|
+
/**
|
|
36
|
+
* A HTTPS URL.
|
|
37
|
+
*/
|
|
38
|
+
videoUri: string;
|
|
39
|
+
/**
|
|
40
|
+
* Settings that affect the behavior of the content moderation system.
|
|
41
|
+
*/
|
|
42
|
+
contentModeration?: VideoToVideoCreateParams.ContentModeration;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
45
|
+
* video is determined by the input video.
|
|
46
|
+
*/
|
|
47
|
+
ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
48
|
+
/**
|
|
49
|
+
* An array of references. Currently up to one reference is supported. See
|
|
50
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
51
|
+
*/
|
|
52
|
+
references?: Array<VideoToVideoCreateParams.Reference>;
|
|
53
|
+
/**
|
|
54
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
55
|
+
* get different results for the same other request parameters. Using the same seed
|
|
56
|
+
* integer for an identical request will produce similar results.
|
|
57
|
+
*/
|
|
58
|
+
seed?: number;
|
|
59
|
+
}
|
|
29
60
|
export declare namespace VideoToVideoCreateParams {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* should describe in detail what should appear in the output.
|
|
35
|
-
*/
|
|
36
|
-
promptText: string;
|
|
37
|
-
/**
|
|
38
|
-
* A HTTPS URL.
|
|
39
|
-
*/
|
|
40
|
-
videoUri: string;
|
|
41
|
-
/**
|
|
42
|
-
* Settings that affect the behavior of the content moderation system.
|
|
43
|
-
*/
|
|
44
|
-
contentModeration?: Gen4Aleph.ContentModeration;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
47
|
-
* video is determined by the input video.
|
|
48
|
-
*/
|
|
49
|
-
ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
50
|
-
/**
|
|
51
|
-
* An array of references. Currently up to one reference is supported. See
|
|
52
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
53
|
-
*/
|
|
54
|
-
references?: Array<Gen4Aleph.Reference>;
|
|
55
|
-
/**
|
|
56
|
-
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
57
|
-
* get different results for the same other request parameters. Using the same seed
|
|
58
|
-
* integer for an identical request will produce similar results.
|
|
59
|
-
*/
|
|
60
|
-
seed?: number;
|
|
61
|
-
}
|
|
62
|
-
namespace Gen4Aleph {
|
|
63
|
-
/**
|
|
64
|
-
* Settings that affect the behavior of the content moderation system.
|
|
65
|
-
*/
|
|
66
|
-
interface ContentModeration {
|
|
67
|
-
/**
|
|
68
|
-
* When set to `low`, the content moderation system will be less strict about
|
|
69
|
-
* preventing generations that include recognizable public figures.
|
|
70
|
-
*/
|
|
71
|
-
publicFigureThreshold?: 'auto' | 'low';
|
|
72
|
-
}
|
|
61
|
+
/**
|
|
62
|
+
* Settings that affect the behavior of the content moderation system.
|
|
63
|
+
*/
|
|
64
|
+
interface ContentModeration {
|
|
73
65
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
66
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
67
|
+
* preventing generations that include recognizable public figures.
|
|
76
68
|
*/
|
|
77
|
-
|
|
78
|
-
type: 'image';
|
|
79
|
-
/**
|
|
80
|
-
* A HTTPS URL.
|
|
81
|
-
*/
|
|
82
|
-
uri: string;
|
|
83
|
-
}
|
|
69
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
84
70
|
}
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Passing an image reference allows the model to emulate the style or content of
|
|
73
|
+
* the reference in the output.
|
|
74
|
+
*/
|
|
75
|
+
interface Reference {
|
|
76
|
+
type: 'image';
|
|
87
77
|
/**
|
|
88
78
|
* A HTTPS URL.
|
|
89
79
|
*/
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
93
|
-
*/
|
|
94
|
-
audio?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* The number of seconds of duration for the output video. Must be an integer from
|
|
97
|
-
* 4 to 15.
|
|
98
|
-
*/
|
|
99
|
-
duration?: number;
|
|
100
|
-
/**
|
|
101
|
-
* The number of video generations to produce.
|
|
102
|
-
*/
|
|
103
|
-
outputCount?: number;
|
|
104
|
-
/**
|
|
105
|
-
* An optional text prompt up to 3500 characters describing what should appear in
|
|
106
|
-
* the output video.
|
|
107
|
-
*/
|
|
108
|
-
promptText?: string;
|
|
109
|
-
/**
|
|
110
|
-
* The resolution of the output video.
|
|
111
|
-
*/
|
|
112
|
-
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
113
|
-
/**
|
|
114
|
-
* An optional array of image references (up to 9). See
|
|
115
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
116
|
-
*/
|
|
117
|
-
references?: string | Array<Seedance2.PromptImage>;
|
|
118
|
-
/**
|
|
119
|
-
* An optional array of up to 3 video references. See
|
|
120
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
121
|
-
*/
|
|
122
|
-
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
123
|
-
}
|
|
124
|
-
namespace Seedance2 {
|
|
125
|
-
interface PromptImage {
|
|
126
|
-
/**
|
|
127
|
-
* A HTTPS URL.
|
|
128
|
-
*/
|
|
129
|
-
uri: string;
|
|
130
|
-
/**
|
|
131
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
132
|
-
* first frame, "last" as the last frame. Omit for a reference image.
|
|
133
|
-
*/
|
|
134
|
-
position?: 'first' | 'last';
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* A video reference allows the model to use the video as additional context for
|
|
138
|
-
* the output.
|
|
139
|
-
*/
|
|
140
|
-
interface ReferenceVideo {
|
|
141
|
-
type: 'video';
|
|
142
|
-
/**
|
|
143
|
-
* A HTTPS URL.
|
|
144
|
-
*/
|
|
145
|
-
uri: string;
|
|
146
|
-
}
|
|
80
|
+
uri: string;
|
|
147
81
|
}
|
|
148
82
|
}
|
|
149
83
|
export declare namespace VideoToVideo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC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