@runwayml/sdk 4.13.2 → 4.15.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 +21 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +17 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +17 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/generate/audio.d.mts +46 -24
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +46 -24
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/generate/generate.d.mts +2 -2
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +2 -2
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +21 -0
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +21 -0
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/generate/index.d.mts +1 -1
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -1
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -1
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/video.d.mts +21 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +21 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +146 -19
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +146 -19
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +17 -0
- package/resources/image-upscale.d.mts.map +1 -1
- package/resources/image-upscale.d.ts +17 -0
- package/resources/image-upscale.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +3 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +9 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +4 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +154 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +154 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +32 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +27 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/organization/webapp/audit-logs.d.mts +216 -0
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
- package/resources/organization/webapp/audit-logs.d.ts +216 -0
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
- package/resources/organization/webapp/audit-logs.js +30 -0
- package/resources/organization/webapp/audit-logs.js.map +1 -0
- package/resources/organization/webapp/audit-logs.mjs +26 -0
- package/resources/organization/webapp/audit-logs.mjs.map +1 -0
- package/resources/organization/webapp/index.d.mts +3 -0
- package/resources/organization/webapp/index.d.mts.map +1 -0
- package/resources/organization/webapp/index.d.ts +3 -0
- package/resources/organization/webapp/index.d.ts.map +1 -0
- package/resources/organization/webapp/index.js +9 -0
- package/resources/organization/webapp/index.js.map +1 -0
- package/resources/organization/webapp/index.mjs +4 -0
- package/resources/organization/webapp/index.mjs.map +1 -0
- package/resources/organization/webapp/webapp.d.mts +73 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -0
- package/resources/organization/webapp/webapp.d.ts +73 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -0
- package/resources/organization/webapp/webapp.js +30 -0
- package/resources/organization/webapp/webapp.js.map +1 -0
- package/resources/organization/webapp/webapp.mjs +25 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -0
- package/resources/organization/webapp.d.mts +2 -0
- package/resources/organization/webapp.d.mts.map +1 -0
- package/resources/organization/webapp.d.ts +2 -0
- package/resources/organization/webapp.d.ts.map +1 -0
- package/resources/organization/webapp.js +6 -0
- package/resources/organization/webapp.js.map +1 -0
- package/resources/organization/webapp.mjs +3 -0
- package/resources/organization/webapp.mjs.map +1 -0
- package/resources/organization.d.mts +1 -149
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +1 -149
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.js +2 -20
- package/resources/organization.js.map +1 -1
- package/resources/organization.mjs +1 -18
- package/resources/organization.mjs.map +1 -1
- package/resources/recipes.d.mts +119 -0
- package/resources/recipes.d.mts.map +1 -1
- package/resources/recipes.d.ts +119 -0
- package/resources/recipes.d.ts.map +1 -1
- package/resources/routers.d.mts +194 -1
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +194 -1
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +10 -0
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +10 -0
- package/resources/routers.mjs.map +1 -1
- package/resources/sound-effect.d.mts +17 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +17 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +17 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +17 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +90 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +90 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +68 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +68 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +77 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +77 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +221 -16
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +221 -16
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +199 -7
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +199 -7
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +17 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +17 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +17 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +17 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +17 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +17 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/character-performance.ts +19 -0
- package/src/resources/generate/audio.ts +57 -27
- package/src/resources/generate/generate.ts +3 -1
- package/src/resources/generate/image.ts +24 -0
- package/src/resources/generate/index.ts +7 -1
- package/src/resources/generate/video.ts +24 -0
- package/src/resources/image-to-video.ts +189 -19
- package/src/resources/image-upscale.ts +19 -0
- package/src/resources/index.ts +4 -1
- package/src/resources/organization/index.ts +14 -0
- package/src/resources/organization/organization.ts +307 -0
- package/src/resources/organization/webapp/audit-logs.ts +440 -0
- package/src/resources/organization/webapp/index.ts +16 -0
- package/src/resources/organization/webapp/webapp.ts +118 -0
- package/src/resources/organization/webapp.ts +3 -0
- package/src/resources/organization.ts +1 -283
- package/src/resources/recipes.ts +133 -0
- package/src/resources/routers.ts +247 -0
- package/src/resources/sound-effect.ts +19 -0
- package/src/resources/speech-to-speech.ts +19 -0
- package/src/resources/tasks.ts +102 -0
- package/src/resources/text-to-image.ts +107 -0
- package/src/resources/text-to-speech.ts +142 -1
- package/src/resources/text-to-video.ts +276 -16
- package/src/resources/video-to-video.ts +252 -7
- package/src/resources/video-upscale.ts +19 -0
- package/src/resources/voice-dubbing.ts +19 -0
- package/src/resources/voice-isolation.ts +19 -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
|
@@ -15,8 +15,25 @@ export interface TextToImageCreateResponse {
|
|
|
15
15
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
20
|
+
* the task completes.
|
|
21
|
+
*/
|
|
22
|
+
estimatedCost: TextToImageCreateResponse.EstimatedCost;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace TextToImageCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
27
|
+
* the task completes.
|
|
28
|
+
*/
|
|
29
|
+
interface EstimatedCost {
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost of the generation in credits.
|
|
32
|
+
*/
|
|
33
|
+
credits: number;
|
|
34
|
+
}
|
|
18
35
|
}
|
|
19
|
-
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.GeminiImage3_1Flash | TextToImageCreateParams.Seedream5Pro | TextToImageCreateParams.Seedream5Lite | TextToImageCreateParams.Gemini2_5Flash;
|
|
36
|
+
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.GeminiImage3_1Flash | TextToImageCreateParams.Seedream5Pro | TextToImageCreateParams.Seedream5Lite | TextToImageCreateParams.GrokImagineImage2 | TextToImageCreateParams.Gemini2_5Flash;
|
|
20
37
|
export declare namespace TextToImageCreateParams {
|
|
21
38
|
interface Gen4ImageTurbo {
|
|
22
39
|
model: 'gen4_image_turbo';
|
|
@@ -315,6 +332,11 @@ export declare namespace TextToImageCreateParams {
|
|
|
315
332
|
* The resolution of the output image, expressed as `<width>:<height>`.
|
|
316
333
|
*/
|
|
317
334
|
ratio: '2048:2048' | '2304:1728' | '1728:2304' | '2848:1600' | '1600:2848' | '2496:1664' | '1664:2496' | '3136:1344' | '3072:3072' | '3456:2592' | '2592:3456' | '4096:2304' | '2304:4096' | '3744:2496' | '2496:3744' | '4704:2016';
|
|
335
|
+
/**
|
|
336
|
+
* When true, enable live web search so the model can use current brand, trend, or
|
|
337
|
+
* event context. Default false for deterministic output.
|
|
338
|
+
*/
|
|
339
|
+
grounding?: boolean;
|
|
318
340
|
/**
|
|
319
341
|
* The number of images to generate. Increasing this number will affect the number
|
|
320
342
|
* of credits consumed by the generation.
|
|
@@ -340,6 +362,51 @@ export declare namespace TextToImageCreateParams {
|
|
|
340
362
|
uri: string;
|
|
341
363
|
}
|
|
342
364
|
}
|
|
365
|
+
interface GrokImagineImage2 {
|
|
366
|
+
model: 'grok_imagine_image_2';
|
|
367
|
+
/**
|
|
368
|
+
* A non-empty text prompt describing what should appear in the output image.
|
|
369
|
+
*/
|
|
370
|
+
promptText: string;
|
|
371
|
+
/**
|
|
372
|
+
* The resolution of the output image, expressed as `<width>:<height>`. 2K ratios
|
|
373
|
+
* cost 2 additional credits per image. Use `auto_1k` or `auto_2k` to pick a
|
|
374
|
+
* resolution tier and let the model choose the framing from the prompt.
|
|
375
|
+
*/
|
|
376
|
+
ratio: '1024:1024' | '1280:720' | '720:1280' | '1152:864' | '864:1152' | '1248:832' | '832:1248' | '1248:576' | '576:1248' | '1280:576' | '576:1280' | '1408:704' | '704:1408' | '2048:2048' | '2816:1584' | '1584:2816' | '2368:1776' | '1776:2368' | '2496:1664' | '1664:2496' | '2912:1344' | '1344:2912' | '3200:1440' | '1440:3200' | '2912:1456' | '1456:2912' | 'auto_1k' | 'auto_2k';
|
|
377
|
+
/**
|
|
378
|
+
* When true with exactly one reference image, edit that image directly instead of
|
|
379
|
+
* using it as a loose visual reference. With several reference images the prompt
|
|
380
|
+
* describes how they should be edited or combined. Requires at least one reference
|
|
381
|
+
* image.
|
|
382
|
+
*/
|
|
383
|
+
edit?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
386
|
+
* of credits consumed by the generation.
|
|
387
|
+
*/
|
|
388
|
+
outputCount?: number;
|
|
389
|
+
/**
|
|
390
|
+
* How much rendering effort the model spends on the output. Defaults to `medium`;
|
|
391
|
+
* `low` is faster and costs 2 fewer credits per image.
|
|
392
|
+
*/
|
|
393
|
+
quality?: 'low' | 'medium';
|
|
394
|
+
/**
|
|
395
|
+
* Up to 3 images to guide the generation. Reference them from `promptText` to
|
|
396
|
+
* describe how each should be used. Each adds 1 credit to the generation.
|
|
397
|
+
*/
|
|
398
|
+
referenceImages?: Array<GrokImagineImage2.ReferenceImage>;
|
|
399
|
+
}
|
|
400
|
+
namespace GrokImagineImage2 {
|
|
401
|
+
interface ReferenceImage {
|
|
402
|
+
/**
|
|
403
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
404
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
405
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
406
|
+
*/
|
|
407
|
+
uri: string;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
343
410
|
interface Gemini2_5Flash {
|
|
344
411
|
model: 'gemini_2.5_flash';
|
|
345
412
|
/**
|
|
@@ -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,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;
|
|
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;IAEX;;;OAGG;IACH,aAAa,EAAE,yBAAyB,CAAC,aAAa,CAAC;CACxD;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,eA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AW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,SAAS,CAAC;QAEd;;;;;WAKG;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;QAE3B;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;KAC3D;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,cAAc;YAC7B;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;;eAIG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -15,8 +15,25 @@ export interface TextToSpeechCreateResponse {
|
|
|
15
15
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
20
|
+
* the task completes.
|
|
21
|
+
*/
|
|
22
|
+
estimatedCost: TextToSpeechCreateResponse.EstimatedCost;
|
|
18
23
|
}
|
|
19
|
-
export
|
|
24
|
+
export declare namespace TextToSpeechCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
27
|
+
* the task completes.
|
|
28
|
+
*/
|
|
29
|
+
interface EstimatedCost {
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost of the generation in credits.
|
|
32
|
+
*/
|
|
33
|
+
credits: number;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export type TextToSpeechCreateParams = TextToSpeechCreateParams.SeedAudio | TextToSpeechCreateParams.ElevenMultilingualV2 | TextToSpeechCreateParams.ElevenV3;
|
|
20
37
|
export declare namespace TextToSpeechCreateParams {
|
|
21
38
|
interface SeedAudio {
|
|
22
39
|
model: 'seed_audio';
|
|
@@ -89,6 +106,65 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
89
106
|
type: 'runway-preset';
|
|
90
107
|
}
|
|
91
108
|
}
|
|
109
|
+
interface ElevenV3 {
|
|
110
|
+
model: 'eleven_v3';
|
|
111
|
+
/**
|
|
112
|
+
* The text to convert to speech. You can include expressive audio tags like
|
|
113
|
+
* [laughs] or [whispers] in the script.
|
|
114
|
+
*/
|
|
115
|
+
promptText: string;
|
|
116
|
+
/**
|
|
117
|
+
* A voice preset from the RunwayML API.
|
|
118
|
+
*/
|
|
119
|
+
voice: ElevenV3.Voice;
|
|
120
|
+
/**
|
|
121
|
+
* Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
|
|
122
|
+
*/
|
|
123
|
+
applyTextNormalization?: 'auto' | 'on' | 'off';
|
|
124
|
+
/**
|
|
125
|
+
* ISO 639-1 language code to enforce pronunciation and normalization.
|
|
126
|
+
*/
|
|
127
|
+
languageCode?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Optional seed for more deterministic output (0–4294967295). Not guaranteed.
|
|
130
|
+
*/
|
|
131
|
+
seed?: number;
|
|
132
|
+
/**
|
|
133
|
+
* How closely the output tracks the original speaker (0–1). Maps to ElevenLabs
|
|
134
|
+
* similarity_boost.
|
|
135
|
+
*/
|
|
136
|
+
similarityBoost?: number;
|
|
137
|
+
/**
|
|
138
|
+
* Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and
|
|
139
|
+
* above speed up.
|
|
140
|
+
*/
|
|
141
|
+
speed?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Voice stability (0–1). Lower values allow broader emotional range; higher values
|
|
144
|
+
* are steadier.
|
|
145
|
+
*/
|
|
146
|
+
stability?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Style exaggeration (0–1). Higher values amplify the speaker style.
|
|
149
|
+
*/
|
|
150
|
+
style?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Boost similarity to the original speaker at a small latency cost.
|
|
153
|
+
*/
|
|
154
|
+
useSpeakerBoost?: boolean;
|
|
155
|
+
}
|
|
156
|
+
namespace ElevenV3 {
|
|
157
|
+
/**
|
|
158
|
+
* A voice preset from the RunwayML API.
|
|
159
|
+
*/
|
|
160
|
+
interface Voice {
|
|
161
|
+
/**
|
|
162
|
+
* The preset voice ID to use for the generated speech.
|
|
163
|
+
*/
|
|
164
|
+
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
165
|
+
type: 'runway-preset';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
92
168
|
}
|
|
93
169
|
export declare namespace TextToSpeech {
|
|
94
170
|
export { type TextToSpeechCreateResponse as TextToSpeechCreateResponse, type TextToSpeechCreateParams as TextToSpeechCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;IAEX;;;OAGG;IACH,aAAa,EAAE,0BAA0B,CAAC,aAAa,CAAC;CACzD;AAED,yBAAiB,0BAA0B,CAAC;IAC1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AAO,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;YAEb,IAAI,EAAE,eAAe,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -15,8 +15,25 @@ export interface TextToSpeechCreateResponse {
|
|
|
15
15
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
20
|
+
* the task completes.
|
|
21
|
+
*/
|
|
22
|
+
estimatedCost: TextToSpeechCreateResponse.EstimatedCost;
|
|
18
23
|
}
|
|
19
|
-
export
|
|
24
|
+
export declare namespace TextToSpeechCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
27
|
+
* the task completes.
|
|
28
|
+
*/
|
|
29
|
+
interface EstimatedCost {
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost of the generation in credits.
|
|
32
|
+
*/
|
|
33
|
+
credits: number;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export type TextToSpeechCreateParams = TextToSpeechCreateParams.SeedAudio | TextToSpeechCreateParams.ElevenMultilingualV2 | TextToSpeechCreateParams.ElevenV3;
|
|
20
37
|
export declare namespace TextToSpeechCreateParams {
|
|
21
38
|
interface SeedAudio {
|
|
22
39
|
model: 'seed_audio';
|
|
@@ -89,6 +106,65 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
89
106
|
type: 'runway-preset';
|
|
90
107
|
}
|
|
91
108
|
}
|
|
109
|
+
interface ElevenV3 {
|
|
110
|
+
model: 'eleven_v3';
|
|
111
|
+
/**
|
|
112
|
+
* The text to convert to speech. You can include expressive audio tags like
|
|
113
|
+
* [laughs] or [whispers] in the script.
|
|
114
|
+
*/
|
|
115
|
+
promptText: string;
|
|
116
|
+
/**
|
|
117
|
+
* A voice preset from the RunwayML API.
|
|
118
|
+
*/
|
|
119
|
+
voice: ElevenV3.Voice;
|
|
120
|
+
/**
|
|
121
|
+
* Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
|
|
122
|
+
*/
|
|
123
|
+
applyTextNormalization?: 'auto' | 'on' | 'off';
|
|
124
|
+
/**
|
|
125
|
+
* ISO 639-1 language code to enforce pronunciation and normalization.
|
|
126
|
+
*/
|
|
127
|
+
languageCode?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Optional seed for more deterministic output (0–4294967295). Not guaranteed.
|
|
130
|
+
*/
|
|
131
|
+
seed?: number;
|
|
132
|
+
/**
|
|
133
|
+
* How closely the output tracks the original speaker (0–1). Maps to ElevenLabs
|
|
134
|
+
* similarity_boost.
|
|
135
|
+
*/
|
|
136
|
+
similarityBoost?: number;
|
|
137
|
+
/**
|
|
138
|
+
* Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and
|
|
139
|
+
* above speed up.
|
|
140
|
+
*/
|
|
141
|
+
speed?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Voice stability (0–1). Lower values allow broader emotional range; higher values
|
|
144
|
+
* are steadier.
|
|
145
|
+
*/
|
|
146
|
+
stability?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Style exaggeration (0–1). Higher values amplify the speaker style.
|
|
149
|
+
*/
|
|
150
|
+
style?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Boost similarity to the original speaker at a small latency cost.
|
|
153
|
+
*/
|
|
154
|
+
useSpeakerBoost?: boolean;
|
|
155
|
+
}
|
|
156
|
+
namespace ElevenV3 {
|
|
157
|
+
/**
|
|
158
|
+
* A voice preset from the RunwayML API.
|
|
159
|
+
*/
|
|
160
|
+
interface Voice {
|
|
161
|
+
/**
|
|
162
|
+
* The preset voice ID to use for the generated speech.
|
|
163
|
+
*/
|
|
164
|
+
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
165
|
+
type: 'runway-preset';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
92
168
|
}
|
|
93
169
|
export declare namespace TextToSpeech {
|
|
94
170
|
export { type TextToSpeechCreateResponse as TextToSpeechCreateResponse, type TextToSpeechCreateParams as TextToSpeechCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCA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O,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;YAEb,IAAI,EAAE,eAAe,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -15,8 +15,25 @@ export interface TextToVideoCreateResponse {
|
|
|
15
15
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
20
|
+
* the task completes.
|
|
21
|
+
*/
|
|
22
|
+
estimatedCost: TextToVideoCreateResponse.EstimatedCost;
|
|
18
23
|
}
|
|
19
|
-
export
|
|
24
|
+
export declare namespace TextToVideoCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
27
|
+
* the task completes.
|
|
28
|
+
*/
|
|
29
|
+
interface EstimatedCost {
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost of the generation in credits.
|
|
32
|
+
*/
|
|
33
|
+
credits: number;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Hailuo3 | TextToVideoCreateParams.Happyhorse1_0 | TextToVideoCreateParams.Seedance2 | TextToVideoCreateParams.Seedance2Fast | TextToVideoCreateParams.Seedance2Mini | TextToVideoCreateParams.GeminiOmniFlash | TextToVideoCreateParams.Seedance2_5 | TextToVideoCreateParams.GrokImagine1_5;
|
|
20
37
|
export declare namespace TextToVideoCreateParams {
|
|
21
38
|
interface Gen4_5 {
|
|
22
39
|
/**
|
|
@@ -38,6 +55,18 @@ export declare namespace TextToVideoCreateParams {
|
|
|
38
55
|
* Settings that affect the behavior of the content moderation system.
|
|
39
56
|
*/
|
|
40
57
|
contentModeration?: Gen4_5.ContentModeration;
|
|
58
|
+
/**
|
|
59
|
+
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
60
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
61
|
+
* (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
|
|
62
|
+
* an additional surcharge of 5 credits per second of output.
|
|
63
|
+
*/
|
|
64
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
65
|
+
/**
|
|
66
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
67
|
+
* to `4444`.
|
|
68
|
+
*/
|
|
69
|
+
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
41
70
|
/**
|
|
42
71
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
43
72
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -105,6 +134,78 @@ export declare namespace TextToVideoCreateParams {
|
|
|
105
134
|
*/
|
|
106
135
|
negativePrompt?: string;
|
|
107
136
|
}
|
|
137
|
+
interface Hailuo3 {
|
|
138
|
+
model: 'hailuo3';
|
|
139
|
+
/**
|
|
140
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
141
|
+
*/
|
|
142
|
+
promptText: string;
|
|
143
|
+
/**
|
|
144
|
+
* The number of seconds of duration for the output video.
|
|
145
|
+
*/
|
|
146
|
+
duration?: number;
|
|
147
|
+
/**
|
|
148
|
+
* The aspect ratio of the output video. Use adaptive only when image or video
|
|
149
|
+
* references are provided; text-only requests require a concrete ratio.
|
|
150
|
+
*/
|
|
151
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
152
|
+
/**
|
|
153
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
154
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
155
|
+
*/
|
|
156
|
+
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
157
|
+
/**
|
|
158
|
+
* An optional array of image references (up to 9). See
|
|
159
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
160
|
+
*/
|
|
161
|
+
references?: Array<Hailuo3.Reference>;
|
|
162
|
+
/**
|
|
163
|
+
* An optional array of video references. The combined duration across all video
|
|
164
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
165
|
+
* video inputs for more information.
|
|
166
|
+
*/
|
|
167
|
+
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
168
|
+
/**
|
|
169
|
+
* The output resolution. Hailuo 3.0 supports 768P and 2K.
|
|
170
|
+
*/
|
|
171
|
+
resolution?: '2K' | '768P';
|
|
172
|
+
}
|
|
173
|
+
namespace Hailuo3 {
|
|
174
|
+
/**
|
|
175
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
176
|
+
* the output.
|
|
177
|
+
*/
|
|
178
|
+
interface ReferenceAudio {
|
|
179
|
+
type: 'audio';
|
|
180
|
+
/**
|
|
181
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
182
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
183
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
184
|
+
*/
|
|
185
|
+
uri: string;
|
|
186
|
+
}
|
|
187
|
+
interface Reference {
|
|
188
|
+
/**
|
|
189
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
190
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
191
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
192
|
+
*/
|
|
193
|
+
uri: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* A video reference allows the model to use the video as additional context for
|
|
197
|
+
* the output.
|
|
198
|
+
*/
|
|
199
|
+
interface ReferenceVideo {
|
|
200
|
+
type: 'video';
|
|
201
|
+
/**
|
|
202
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
203
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
204
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
205
|
+
*/
|
|
206
|
+
uri: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
108
209
|
interface Happyhorse1_0 {
|
|
109
210
|
model: 'happyhorse_1_0';
|
|
110
211
|
/**
|
|
@@ -141,8 +242,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
141
242
|
*/
|
|
142
243
|
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' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920' | '3840:1646' | '3840:2160' | '3840:2880' | '3840:3840' | '2880:3840' | '2160:3840';
|
|
143
244
|
/**
|
|
144
|
-
* An optional array of audio references.
|
|
145
|
-
*
|
|
245
|
+
* An optional array of audio references. The total combined duration must not
|
|
246
|
+
* exceed 15 seconds.
|
|
146
247
|
*/
|
|
147
248
|
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
148
249
|
/**
|
|
@@ -214,8 +315,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
214
315
|
*/
|
|
215
316
|
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';
|
|
216
317
|
/**
|
|
217
|
-
* An optional array of audio references.
|
|
218
|
-
*
|
|
318
|
+
* An optional array of audio references. The total combined duration must not
|
|
319
|
+
* exceed 15 seconds.
|
|
219
320
|
*/
|
|
220
321
|
referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
|
|
221
322
|
/**
|
|
@@ -287,8 +388,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
287
388
|
*/
|
|
288
389
|
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';
|
|
289
390
|
/**
|
|
290
|
-
* An optional array of audio references.
|
|
291
|
-
*
|
|
391
|
+
* An optional array of audio references. The total combined duration must not
|
|
392
|
+
* exceed 15 seconds.
|
|
292
393
|
*/
|
|
293
394
|
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
294
395
|
/**
|
|
@@ -355,25 +456,129 @@ export declare namespace TextToVideoCreateParams {
|
|
|
355
456
|
*/
|
|
356
457
|
ratio?: '1280:720' | '720:1280';
|
|
357
458
|
}
|
|
358
|
-
interface
|
|
459
|
+
interface Seedance2_5 {
|
|
460
|
+
model: 'seedance2_5';
|
|
461
|
+
/**
|
|
462
|
+
* Whether to generate audio for the video.
|
|
463
|
+
*/
|
|
464
|
+
audio?: boolean;
|
|
359
465
|
/**
|
|
360
466
|
* The number of seconds of duration for the output video.
|
|
361
467
|
*/
|
|
362
|
-
duration
|
|
363
|
-
model: 'veo3';
|
|
468
|
+
duration?: number;
|
|
364
469
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
470
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
471
|
+
* the output.
|
|
472
|
+
*/
|
|
473
|
+
promptText?: string;
|
|
474
|
+
/**
|
|
475
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
476
|
+
*/
|
|
477
|
+
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
478
|
+
/**
|
|
479
|
+
* An optional array of audio references. The total combined duration must be less
|
|
480
|
+
* than 30 seconds.
|
|
481
|
+
*/
|
|
482
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
483
|
+
/**
|
|
484
|
+
* An optional array of image references (up to 30). See
|
|
485
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
486
|
+
*/
|
|
487
|
+
references?: Array<Seedance2_5.Reference>;
|
|
488
|
+
/**
|
|
489
|
+
* An optional array of video references. The combined duration across all video
|
|
490
|
+
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
491
|
+
* video inputs for more information.
|
|
492
|
+
*/
|
|
493
|
+
referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
|
|
494
|
+
}
|
|
495
|
+
namespace Seedance2_5 {
|
|
496
|
+
/**
|
|
497
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
498
|
+
* the output.
|
|
499
|
+
*/
|
|
500
|
+
interface ReferenceAudio {
|
|
501
|
+
type: 'audio';
|
|
502
|
+
/**
|
|
503
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
504
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
505
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
506
|
+
*/
|
|
507
|
+
uri: string;
|
|
508
|
+
}
|
|
509
|
+
interface Reference {
|
|
510
|
+
/**
|
|
511
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
512
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
513
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
514
|
+
*/
|
|
515
|
+
uri: string;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* A video reference allows the model to use the video as additional context for
|
|
519
|
+
* the output.
|
|
520
|
+
*/
|
|
521
|
+
interface ReferenceVideo {
|
|
522
|
+
type: 'video';
|
|
523
|
+
/**
|
|
524
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
525
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
526
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
527
|
+
*/
|
|
528
|
+
uri: string;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
interface GrokImagine1_5 {
|
|
532
|
+
model: 'grok_imagine_1_5';
|
|
533
|
+
/**
|
|
534
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
367
535
|
*/
|
|
368
536
|
promptText: string;
|
|
369
537
|
/**
|
|
370
|
-
* The
|
|
538
|
+
* The number of seconds of duration for the output video.
|
|
371
539
|
*/
|
|
372
|
-
|
|
540
|
+
duration?: number;
|
|
373
541
|
/**
|
|
374
|
-
*
|
|
542
|
+
* The aspect ratio of the output video.
|
|
375
543
|
*/
|
|
376
|
-
|
|
544
|
+
ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '3:2' | '2:3';
|
|
545
|
+
/**
|
|
546
|
+
* An optional array of audio references. Audio references require at least one
|
|
547
|
+
* image reference, and each clip must be between 3 and 15 seconds.
|
|
548
|
+
*/
|
|
549
|
+
referenceAudio?: Array<GrokImagine1_5.ReferenceAudio>;
|
|
550
|
+
/**
|
|
551
|
+
* An optional array of image references. Referenced images can be addressed in the
|
|
552
|
+
* prompt as [Image 1], [Image 2], and so on. See [our docs](/assets/inputs#images)
|
|
553
|
+
* on image inputs for more information.
|
|
554
|
+
*/
|
|
555
|
+
references?: Array<GrokImagine1_5.Reference>;
|
|
556
|
+
/**
|
|
557
|
+
* The output resolution. Requests with image references are capped at 720p.
|
|
558
|
+
*/
|
|
559
|
+
resolution?: '480p' | '720p' | '1080p';
|
|
560
|
+
}
|
|
561
|
+
namespace GrokImagine1_5 {
|
|
562
|
+
/**
|
|
563
|
+
* An audio reference allows the model to drive the output with the supplied audio.
|
|
564
|
+
*/
|
|
565
|
+
interface ReferenceAudio {
|
|
566
|
+
type: 'audio';
|
|
567
|
+
/**
|
|
568
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
569
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
570
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
571
|
+
*/
|
|
572
|
+
uri: string;
|
|
573
|
+
}
|
|
574
|
+
interface Reference {
|
|
575
|
+
/**
|
|
576
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
577
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
578
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
579
|
+
*/
|
|
580
|
+
uri: string;
|
|
581
|
+
}
|
|
377
582
|
}
|
|
378
583
|
}
|
|
379
584
|
export declare namespace TextToVideo {
|