@picsart/ai-sdk 6.54.0 → 6.99.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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { WorkflowTypes, ExecutionOptions, WorkflowResponse } from './_vendor/workflows-client/index';
2
2
  export { ExecutionMode as ApiRunMode } from './_vendor/workflows-client/index';
3
+ export { JsonModelId, ModelInput, ModelInputById, TextModelId, TextModelInputById, TypedModelId } from './_vendor/model-types/index';
3
4
  import { ModelPricingClientOptions } from './_vendor/pa-model-pricing-sdk/index';
4
5
 
5
6
  interface WorkflowSubmitRequest<TPayload = Record<string, unknown>> {
@@ -125,2080 +126,6 @@ interface SdkTransport<TPayload = Record<string, unknown>> {
125
126
  options?(workflow: string, payload: Record<string, unknown>): Promise<number | OptionsResult | null>;
126
127
  }
127
128
 
128
- /**
129
- * Per-model compile-time input contracts generated from specs/vendors catalog.
130
- * Regenerate with: npm run build:model-input-types
131
- */
132
- type ModelInputById = {
133
- "async-flash-v1": {
134
- prompt: string;
135
- voiceId?: string;
136
- container?: "mp3" | "wav" | "raw";
137
- sampleRate?: number;
138
- encoding?: "pcm_s16le" | "pcm_f32le";
139
- bitRate?: number;
140
- };
141
- "aurora-img-alpha": {
142
- prompt: string;
143
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
144
- resolution?: "1K" | "2K" | "4K";
145
- size?: string;
146
- reasoningEffort?: "max" | "xhigh" | "high" | "medium" | "low";
147
- temperature?: number;
148
- background?: "opaque" | "transparent";
149
- outputFormat?: "png" | "jpeg" | "webp";
150
- count?: 1 | 2 | 4 | 6 | 8 | 10;
151
- imageUrls?: string[];
152
- };
153
- "bytedance-omnihuman-v1.5": {
154
- prompt?: string;
155
- imageUrls: [string, ...string[]];
156
- audioUrl: string;
157
- resolution?: "720p" | "1080p";
158
- turboMode?: boolean;
159
- seed?: number;
160
- };
161
- "bytedance-omnihuman-v2.0": {
162
- prompt?: string;
163
- imageUrls: [string, ...string[]];
164
- audioUrl: string;
165
- enableWatermark?: boolean;
166
- };
167
- "bytedance-video-enhance": {
168
- videoUrl: string;
169
- quality?: "standard" | "professional";
170
- resolution?: "source" | "720p" | "1080p" | "2k" | "4k" | "8k";
171
- fps?: 30 | 60 | 120;
172
- scene?: "common" | "ugc" | "short_series" | "aigc" | "old_film";
173
- bitrateLevel?: "low" | "medium" | "high";
174
- };
175
- "bytedance-video-upscaler": {
176
- videoUrl: string;
177
- };
178
- "captionsai-video-captions": {
179
- videoUrl: string;
180
- templateId?: string;
181
- };
182
- "claude-fable-5": {
183
- prompt: string;
184
- imageUrls?: string[];
185
- };
186
- "claude-fable-5-1": {
187
- prompt: string;
188
- imageUrls?: string[];
189
- };
190
- "claude-haiku-4-5": {
191
- prompt: string;
192
- imageUrls?: string[];
193
- };
194
- "claude-haiku-5-5": {
195
- prompt: string;
196
- imageUrls?: string[];
197
- };
198
- "claude-opus-4-8": {
199
- prompt: string;
200
- imageUrls?: string[];
201
- };
202
- "claude-opus-5": {
203
- prompt: string;
204
- imageUrls?: string[];
205
- };
206
- "claude-sonnet-4-5": {
207
- prompt: string;
208
- imageUrls?: string[];
209
- };
210
- "claude-sonnet-4-6": {
211
- prompt: string;
212
- imageUrls?: string[];
213
- };
214
- "claude-sonnet-5": {
215
- prompt: string;
216
- imageUrls?: string[];
217
- };
218
- "creatify-aurora": {
219
- prompt?: string;
220
- imageUrls: [string, ...string[]];
221
- audioUrl: string;
222
- };
223
- "creatify-boreal": {
224
- prompt: string;
225
- imageUrls?: string[];
226
- audioUrl?: string;
227
- negativePrompt?: string;
228
- resolution?: "720p" | "1080p" | "2k";
229
- aspectRatio?: "auto" | "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
230
- duration?: number;
231
- manifestDisclosure?: boolean;
232
- };
233
- "depth-anything-video": {
234
- videoUrl: string;
235
- model?: "VDA-Small" | "VDA-Base" | "VDA-Large";
236
- colormap?: "grayscale" | "turbo" | "inferno" | "magma" | "viridis";
237
- resolution?: "auto" | "360p" | "480p" | "720p" | "1080p";
238
- sideBySide?: boolean;
239
- };
240
- "eleven-audio-isolation": {
241
- audioUrl: string;
242
- };
243
- "eleven-dialogue-v4": {
244
- dialogue: Array<{
245
- voiceId: string;
246
- text: string;
247
- }>;
248
- stability?: number;
249
- similarity?: number;
250
- language?: string;
251
- seed?: number;
252
- };
253
- "eleven-dubbing": {
254
- audioUrl: string;
255
- language: string;
256
- };
257
- "eleven-multilingual-sts-v2": {
258
- audioUrl: string;
259
- voiceId?: string;
260
- removeBackgroundNoise?: boolean;
261
- stability?: number;
262
- similarityBoost?: number;
263
- styleExaggeration?: number;
264
- speed?: number;
265
- };
266
- "eleven-multilingual-v2": {
267
- prompt: string;
268
- voiceId?: string;
269
- stability?: number;
270
- similarityBoost?: number;
271
- styleExaggeration?: number;
272
- speed?: number;
273
- useSpeakerBoost?: boolean;
274
- withTimestamps?: boolean;
275
- };
276
- "eleven-speech-to-text": {
277
- audioUrl: string;
278
- language?: string;
279
- diarize?: boolean;
280
- numSpeakers?: number;
281
- timestampsGranularity?: "word" | "character";
282
- tagAudioEvents?: boolean;
283
- seed?: number;
284
- };
285
- "eleven-sts-v2": {
286
- audioUrl: string;
287
- voiceId?: string;
288
- removeBackgroundNoise?: boolean;
289
- stability?: number;
290
- similarityBoost?: number;
291
- styleExaggeration?: number;
292
- speed?: number;
293
- };
294
- "eleven-text-to-dialogue": {
295
- dialogue: Array<{
296
- voiceId: string;
297
- text: string;
298
- }>;
299
- stability?: 0 | 0.5 | 1;
300
- language?: string;
301
- seed?: number;
302
- };
303
- "eleven-v3": {
304
- language?: string;
305
- prompt: string;
306
- voiceId?: string;
307
- stability?: number;
308
- similarityBoost?: number;
309
- styleExaggeration?: number;
310
- speed?: number;
311
- useSpeakerBoost?: boolean;
312
- withTimestamps?: boolean;
313
- };
314
- "eleven-v4": {
315
- language?: string;
316
- prompt: string;
317
- voiceId?: string;
318
- stability?: number;
319
- similarityBoost?: number;
320
- withTimestamps?: boolean;
321
- };
322
- "eleven-v4-turbo": {
323
- language?: string;
324
- prompt: string;
325
- voiceId?: string;
326
- stability?: number;
327
- similarityBoost?: number;
328
- withTimestamps?: boolean;
329
- };
330
- "eleven-video-to-music": {
331
- videoUrls: [string, ...string[]];
332
- prompt?: string;
333
- };
334
- "eleven-voice-create": {
335
- prompt: string;
336
- };
337
- "eleven-voice-design-v2": {
338
- prompt: string;
339
- };
340
- "eleven-voice-design-v3": {
341
- prompt: string;
342
- };
343
- "eleven-voice-remix": {
344
- voiceId: string;
345
- prompt: string;
346
- };
347
- "elevenlabs-music-v2": {
348
- prompt: string;
349
- duration?: 10 | 20 | 30 | 60 | 120 | 180 | 300 | 600;
350
- isInstrumental?: boolean;
351
- };
352
- "elevenlabs-sfx": {
353
- prompt: string;
354
- duration?: number;
355
- };
356
- "flux-2-flex": {
357
- prompt: string;
358
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21";
359
- resolution?: "1K" | "2K" | "4K";
360
- count?: 1 | 2 | 4 | 6 | 8 | 10;
361
- imageUrls?: string[];
362
- };
363
- "flux-2-max": {
364
- prompt: string;
365
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21";
366
- resolution?: "1K" | "2K" | "4K";
367
- count?: 1 | 2 | 4 | 6 | 8 | 10;
368
- imageUrls?: string[];
369
- };
370
- "flux-2-pro": {
371
- prompt: string;
372
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21";
373
- resolution?: "1K" | "2K" | "4K";
374
- count?: 1 | 2 | 4 | 6 | 8 | 10;
375
- imageUrls?: string[];
376
- };
377
- "flux-3-image": {
378
- prompt: string;
379
- aspectRatio?: "auto" | "21:9" | "2:1" | "16:9" | "3:2" | "7:5" | "4:3" | "5:4" | "1:1" | "4:5" | "3:4" | "5:7" | "2:3" | "9:16" | "9:21" | "1:2";
380
- resolution?: "768sq" | "1k" | "1.5k" | "2k" | "4k";
381
- count?: 1 | 2 | 4 | 6 | 8 | 10;
382
- imageUrls?: string[];
383
- safetyTolerance?: number;
384
- };
385
- "flux-3-image-klein": {
386
- prompt: string;
387
- aspectRatio?: "auto" | "21:9" | "2:1" | "16:9" | "3:2" | "7:5" | "4:3" | "5:4" | "1:1" | "4:5" | "3:4" | "5:7" | "2:3" | "9:16" | "9:21" | "1:2";
388
- resolution?: "768sq" | "1k" | "1.5k" | "2k" | "4k";
389
- count?: 1 | 2 | 4 | 6 | 8 | 10;
390
- imageUrls?: string[];
391
- steps?: number;
392
- safetyTolerance?: number;
393
- };
394
- "flux-3-max": {
395
- prompt: string;
396
- startFrame?: string;
397
- endFrame?: string;
398
- aspectRatio?: "auto" | "21:9" | "2:1" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
399
- resolution?: "720p" | "1080p";
400
- duration?: number;
401
- generateAudio?: boolean;
402
- reasoningLevel?: "low" | "high";
403
- seed?: number;
404
- };
405
- "flux-3-max-keyframes": {
406
- prompt: string;
407
- imageUrls: [string, ...string[]];
408
- aspectRatio?: "auto" | "21:9" | "2:1" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
409
- resolution?: "720p" | "1080p";
410
- duration?: number;
411
- generateAudio?: boolean;
412
- reasoningLevel?: "low" | "high";
413
- seed?: number;
414
- };
415
- "flux-3-video": {
416
- prompt: string;
417
- aspectRatio?: "auto" | "21:9" | "2:1" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
418
- resolution?: "hd" | "fhd";
419
- duration?: "auto" | "5" | "10" | "15" | "20";
420
- imageUrls?: string[];
421
- videoUrl?: string;
422
- generateAudio?: boolean;
423
- safetyTolerance?: number;
424
- draft?: boolean;
425
- };
426
- "flux-kontext-max": {
427
- prompt: string;
428
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21";
429
- count?: 1 | 2 | 4 | 6 | 8 | 10;
430
- imageUrls?: string[];
431
- };
432
- "flux-kontext-pro": {
433
- prompt: string;
434
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21";
435
- count?: 1 | 2 | 4 | 6 | 8 | 10;
436
- imageUrls?: string[];
437
- };
438
- "flux-video-edit": {
439
- videoUrl: string;
440
- prompt: string;
441
- safetyTolerance?: number;
442
- };
443
- "flux-video-upscale": {
444
- videoUrl: string;
445
- upscaleFactor?: number;
446
- creativity?: 0 | 1;
447
- prompt?: string;
448
- safetyTolerance?: number;
449
- };
450
- "gemini-2.5-flash": {
451
- prompt: string;
452
- imageUrls?: string[];
453
- thinking?: "off" | "low" | "medium" | "high";
454
- };
455
- "gemini-2.5-flash-image": {
456
- prompt: string;
457
- aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
458
- count?: 1 | 2 | 4 | 6 | 8 | 10;
459
- seed?: number;
460
- imageUrls?: string[];
461
- };
462
- "gemini-2.5-flash-tts": {
463
- language?: string;
464
- accent?: string;
465
- prompt?: string;
466
- voiceId?: string;
467
- parts?: Array<{
468
- text: string;
469
- speaker?: string;
470
- }>;
471
- multiSpeakerVoiceConfigs?: Array<{
472
- speaker: string;
473
- voiceName: string;
474
- }>;
475
- };
476
- "gemini-2.5-pro-tts": {
477
- language?: string;
478
- accent?: string;
479
- prompt?: string;
480
- voiceId?: string;
481
- parts?: Array<{
482
- text: string;
483
- speaker?: string;
484
- }>;
485
- multiSpeakerVoiceConfigs?: Array<{
486
- speaker: string;
487
- voiceName: string;
488
- }>;
489
- };
490
- "gemini-3-pro": {
491
- prompt: string;
492
- imageUrls?: string[];
493
- videoUrl?: string;
494
- thinking?: "off" | "low" | "high";
495
- };
496
- "gemini-3-pro-image": {
497
- prompt: string;
498
- aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
499
- resolution?: "1K" | "2K" | "4K";
500
- count?: 1 | 2 | 4 | 6 | 8 | 10;
501
- seed?: number;
502
- thinkingBudget?: number;
503
- imageUrls?: string[];
504
- };
505
- "gemini-3.1-flash-image": {
506
- prompt: string;
507
- aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9" | "auto";
508
- resolution?: "0.5K" | "1K" | "2K" | "4K";
509
- count?: 1 | 2 | 4 | 6 | 8 | 10;
510
- seed?: number;
511
- thinkingLevel?: "minimal" | "high";
512
- imageUrls?: string[];
513
- };
514
- "gemini-3.1-flash-lite-image": {
515
- prompt: string;
516
- aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9" | "auto";
517
- count?: 1 | 2 | 4 | 6 | 8 | 10;
518
- seed?: number;
519
- thinkingLevel?: "minimal" | "high";
520
- imageUrls?: string[];
521
- };
522
- "gemini-3.5-flash-lite": {
523
- prompt: string;
524
- imageUrls?: string[];
525
- };
526
- "gemini-3.6-flash": {
527
- prompt: string;
528
- imageUrls?: string[];
529
- thinking?: "off" | "low" | "medium" | "high";
530
- };
531
- "gemini-3.7-flash": {
532
- prompt: string;
533
- imageUrls?: string[];
534
- thinking?: "off" | "low" | "medium" | "high";
535
- };
536
- "gemini-3.8-flash": {
537
- prompt: string;
538
- imageUrls?: string[];
539
- thinking?: "off" | "low" | "medium" | "high";
540
- };
541
- "gemini-3.8-flash-lite-tts": {
542
- language?: string;
543
- accent?: string;
544
- prompt?: string;
545
- voiceId?: string;
546
- style?: string;
547
- parts?: Array<{
548
- text: string;
549
- speaker?: string;
550
- style?: string;
551
- }>;
552
- multiSpeakerVoiceConfigs?: Array<{
553
- speaker: string;
554
- voiceName: string;
555
- }>;
556
- };
557
- "gemini-3.8-flash-tts": {
558
- language?: string;
559
- accent?: string;
560
- prompt?: string;
561
- voiceId?: string;
562
- style?: string;
563
- parts?: Array<{
564
- text: string;
565
- speaker?: string;
566
- style?: string;
567
- }>;
568
- multiSpeakerVoiceConfigs?: Array<{
569
- speaker: string;
570
- voiceName: string;
571
- }>;
572
- };
573
- "gemini-4-argon": {
574
- prompt: string;
575
- imageUrls?: string[];
576
- videoUrl?: string;
577
- thinking?: "off" | "low" | "high";
578
- };
579
- "gemini-nano-banana-2.1": {
580
- prompt: string;
581
- aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
582
- resolution?: "1K" | "2K" | "4K";
583
- count?: 1 | 2 | 4 | 6 | 8 | 10;
584
- seed?: number;
585
- thinkingLevel?: "minimal" | "medium" | "high";
586
- imageUrls?: string[];
587
- };
588
- "gemini-omni-1.1-flash-preview": {
589
- prompt: string;
590
- aspectRatio?: "16:9" | "9:16";
591
- resolution?: "360p" | "720p" | "1080p" | "4k";
592
- duration?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
593
- startFrame?: string;
594
- endFrame?: string;
595
- imageUrls?: string[];
596
- videoUrl?: string;
597
- videoUrls?: string[];
598
- };
599
- "gemini-omni-flash-preview": {
600
- prompt: string;
601
- aspectRatio?: "16:9" | "9:16";
602
- duration?: 3 | 5 | 6 | 8 | 10;
603
- imageUrls?: string[];
604
- videoUrl?: string;
605
- };
606
- "gpt-4.1-mini": {
607
- prompt: string;
608
- imageUrls?: string[];
609
- };
610
- "gpt-4.1-nano": {
611
- prompt: string;
612
- imageUrls?: string[];
613
- };
614
- "gpt-4o": {
615
- prompt: string;
616
- imageUrls?: string[];
617
- };
618
- "gpt-4o-mini": {
619
- prompt: string;
620
- imageUrls?: string[];
621
- };
622
- "gpt-5": {
623
- prompt: string;
624
- imageUrls?: string[];
625
- thinking?: "off" | "low" | "medium" | "high";
626
- };
627
- "gpt-5-mini": {
628
- prompt: string;
629
- imageUrls?: string[];
630
- thinking?: "off" | "low" | "medium" | "high";
631
- };
632
- "gpt-5.1": {
633
- prompt: string;
634
- imageUrls?: string[];
635
- thinking?: "off" | "low" | "medium" | "high";
636
- };
637
- "gpt-5.2": {
638
- prompt: string;
639
- imageUrls?: string[];
640
- thinking?: "off" | "low" | "medium" | "high";
641
- };
642
- "gpt-5.5": {
643
- prompt: string;
644
- imageUrls?: string[];
645
- thinking?: "off" | "low" | "medium" | "high";
646
- };
647
- "gpt-5.6-luna": {
648
- prompt: string;
649
- imageUrls?: string[];
650
- thinking?: "off" | "low" | "medium" | "high";
651
- };
652
- "gpt-5.6-sol": {
653
- prompt: string;
654
- imageUrls?: string[];
655
- thinking?: "off" | "low" | "medium" | "high";
656
- };
657
- "gpt-5.6-terra": {
658
- prompt: string;
659
- imageUrls?: string[];
660
- thinking?: "off" | "low" | "medium" | "high";
661
- };
662
- "gpt-6-astra": {
663
- prompt: string;
664
- imageUrls?: string[];
665
- thinking?: "off" | "low" | "medium" | "high";
666
- };
667
- "gpt-6-luna": {
668
- prompt: string;
669
- imageUrls?: string[];
670
- thinking?: "off" | "low" | "medium" | "high";
671
- };
672
- "gpt-6-sol": {
673
- prompt: string;
674
- imageUrls?: string[];
675
- thinking?: "off" | "low" | "medium" | "high";
676
- };
677
- "gpt-image-1": {
678
- prompt: string;
679
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
680
- quality?: "high" | "medium" | "low";
681
- background?: "opaque" | "transparent";
682
- outputFormat?: "png" | "jpeg" | "webp";
683
- count?: 1 | 2 | 4 | 6 | 8 | 10;
684
- imageUrls?: string[];
685
- };
686
- "gpt-image-1.5": {
687
- prompt: string;
688
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
689
- quality?: "high" | "medium" | "low";
690
- background?: "opaque" | "transparent";
691
- outputFormat?: "png" | "jpeg" | "webp";
692
- count?: 1 | 2 | 4 | 6 | 8 | 10;
693
- imageUrls?: string[];
694
- };
695
- "gpt-image-2": {
696
- prompt: string;
697
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
698
- quality?: "high" | "medium" | "low";
699
- outputFormat?: "png" | "jpeg" | "webp";
700
- count?: 1 | 2 | 4 | 6 | 8 | 10;
701
- imageUrls?: string[];
702
- };
703
- "gpt-image-2.5-flare": {
704
- prompt: string;
705
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
706
- resolution?: "1K" | "2K" | "4K";
707
- size?: string;
708
- quality?: "max" | "xhigh" | "high" | "medium" | "low";
709
- background?: "opaque" | "transparent";
710
- outputFormat?: "png" | "jpeg" | "webp";
711
- count?: 1 | 2 | 4 | 6 | 8 | 10;
712
- imageUrls?: string[];
713
- };
714
- "gpt-image-2.5-sunburst": {
715
- prompt: string;
716
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
717
- resolution?: "1K" | "2K" | "4K";
718
- size?: string;
719
- quality?: "max" | "xhigh" | "high" | "medium" | "low";
720
- background?: "opaque" | "transparent";
721
- outputFormat?: "png" | "jpeg" | "webp";
722
- count?: 1 | 2 | 4 | 6 | 8 | 10;
723
- imageUrls?: string[];
724
- };
725
- "grok-4.7": {
726
- prompt: string;
727
- imageUrls?: string[];
728
- thinking?: "low" | "medium" | "high";
729
- };
730
- "grok-edit-video": {
731
- prompt: string;
732
- videoUrl: string;
733
- };
734
- "grok-extend-video": {
735
- prompt: string;
736
- duration?: 3 | 5 | 6 | 8 | 10;
737
- videoUrl: string;
738
- };
739
- "grok-imagine-image": {
740
- prompt: string;
741
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20";
742
- resolution?: "1k" | "2k";
743
- count?: 1 | 2 | 4;
744
- imageUrls?: string[];
745
- };
746
- "grok-imagine-image-2.0": {
747
- prompt: string;
748
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20";
749
- resolution?: "1k" | "2k";
750
- quality?: "low" | "medium";
751
- count?: 1 | 2 | 4;
752
- imageUrls?: string[];
753
- };
754
- "grok-imagine-image-quality": {
755
- prompt: string;
756
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20";
757
- resolution?: "1k" | "2k";
758
- count?: 1 | 2 | 4;
759
- imageUrls?: string[];
760
- };
761
- "grok-imagine-video": {
762
- prompt: string;
763
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3";
764
- resolution?: "480p" | "720p";
765
- duration?: 3 | 5 | 6 | 8 | 10 | 12 | 15;
766
- imageUrls?: string[];
767
- };
768
- "grok-imagine-video-1.5": {
769
- prompt: string;
770
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3";
771
- resolution?: "480p" | "720p" | "1080p";
772
- duration?: 3 | 5 | 6 | 8 | 10 | 12 | 15;
773
- imageUrls?: string[];
774
- };
775
- "grok-imagine-video-1.5-lite": {
776
- prompt: string;
777
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3";
778
- resolution?: "480p" | "720p" | "1080p";
779
- duration?: 3 | 5 | 6 | 8 | 10 | 12 | 15;
780
- imageUrls?: string[];
781
- };
782
- "grok-tts": {
783
- language?: string;
784
- accent?: string;
785
- prompt: string;
786
- voiceId?: string;
787
- };
788
- "hailuo-02": {
789
- prompt: string;
790
- enhancePrompt?: boolean;
791
- resolution?: "512P" | "768P" | "1080P";
792
- duration?: 6 | 10;
793
- startFrame?: string;
794
- endFrame?: string;
795
- imageUrls?: string[];
796
- };
797
- "hailuo-2.3": {
798
- prompt: string;
799
- enhancePrompt?: boolean;
800
- duration?: 6 | 10;
801
- imageUrls?: string[];
802
- };
803
- "hailuo-2.3-fast": {
804
- prompt: string;
805
- enhancePrompt?: boolean;
806
- duration?: 6 | 10;
807
- imageUrls: [string, ...string[]];
808
- };
809
- "hailuo-2.3-fast-pro": {
810
- prompt: string;
811
- enhancePrompt?: boolean;
812
- imageUrls: [string, ...string[]];
813
- };
814
- "hailuo-2.3-pro": {
815
- prompt: string;
816
- enhancePrompt?: boolean;
817
- imageUrls?: string[];
818
- };
819
- "happyhorse-1.0-r2v": {
820
- prompt: string;
821
- seed?: number;
822
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "4:5" | "5:4";
823
- resolution?: "720P" | "1080P";
824
- duration?: number;
825
- imageUrls: [string, ...string[]];
826
- };
827
- "happyhorse-1.0-t2v": {
828
- prompt: string;
829
- seed?: number;
830
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "4:5" | "5:4";
831
- resolution?: "720P" | "1080P";
832
- duration?: number;
833
- startFrame?: string;
834
- };
835
- "happyhorse-1.0-video-edit": {
836
- prompt: string;
837
- seed?: number;
838
- resolution?: "720P" | "1080P";
839
- audioSetting?: "auto" | "origin";
840
- videoUrl: string;
841
- imageUrls?: string[];
842
- };
843
- "happyhorse-1.1-r2v": {
844
- prompt: string;
845
- seed?: number;
846
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "4:5" | "5:4";
847
- resolution?: "720P" | "1080P";
848
- duration?: number;
849
- imageUrls: [string, ...string[]];
850
- };
851
- "happyhorse-1.1-t2v": {
852
- prompt: string;
853
- seed?: number;
854
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "4:5" | "5:4";
855
- resolution?: "720P" | "1080P";
856
- duration?: number;
857
- startFrame?: string;
858
- };
859
- "heygen-talking-photo": {
860
- imageUrls: [string, ...string[]];
861
- resolution?: "4k" | "1080p" | "720p";
862
- aspectRatio?: "16:9" | "9:16" | "4:5" | "5:4" | "1:1" | "auto";
863
- voiceId: string;
864
- prompt: string;
865
- };
866
- "heygen-video-1": {
867
- prompt: string;
868
- startFrame?: string;
869
- imageUrls?: string[];
870
- videoUrls?: string[];
871
- audioUrls?: string[];
872
- resolution?: "480p" | "768p";
873
- duration?: number;
874
- aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
875
- promptEnhancement?: "turbo" | "quality" | "disabled";
876
- seed?: number;
877
- };
878
- "heygen-video-avatar": {
879
- videoId: string;
880
- engine?: "avatar_iv" | "avatar_v";
881
- resolution?: "4k" | "1080p" | "720p";
882
- aspectRatio?: "16:9" | "9:16" | "4:5" | "5:4" | "1:1" | "auto";
883
- voiceId: string;
884
- prompt: string;
885
- };
886
- "hunyuan-v3": {
887
- prompt: string;
888
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4";
889
- count?: 1 | 2 | 4;
890
- negativePrompt?: string;
891
- cfgScale?: number;
892
- };
893
- "ideogram-4-5": {
894
- prompt: string;
895
- imageUrls?: string[];
896
- mask?: string;
897
- aspectRatio?: "auto" | "source" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "8:5" | "5:8" | "2:1" | "1:2" | "3:1" | "1:3";
898
- resolution?: "1K" | "2K";
899
- magicPrompt?: "auto" | "on" | "off";
900
- quality?: "very_low" | "low" | "medium" | "high";
901
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
902
- seed?: number;
903
- enableCopyrightDetection?: boolean;
904
- };
905
- "ideogram-4-5-precise-edit": {
906
- prompt: string;
907
- startFrame: string;
908
- mask?: string;
909
- imageUrls?: string[];
910
- quality?: "very_low" | "low" | "medium" | "high";
911
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
912
- seed?: number;
913
- enableCopyrightDetection?: boolean;
914
- };
915
- "ideogram-character": {
916
- prompt: string;
917
- resolution?: "1024x1024" | "1344x768" | "768x1344" | "1152x864" | "864x1152" | "832x1248" | "1280x800";
918
- renderingSpeed?: "TURBO" | "DEFAULT" | "QUALITY";
919
- style?: "AUTO" | "REALISTIC" | "FICTION";
920
- count?: 1 | 2 | 4 | 6 | 8 | 10;
921
- imageUrls: [string, ...string[]];
922
- };
923
- "ideogram-p-image": {
924
- prompt: string;
925
- resolution?: "2048x2048" | "1440x2880" | "2880x1440" | "1664x2496" | "2496x1664" | "1792x2240" | "2240x1792" | "1440x2560" | "2560x1440" | "1600x2560" | "2560x1600" | "1728x2304" | "2304x1728" | "1296x3168" | "3168x1296" | "1152x2944" | "2944x1152" | "1248x3328" | "3328x1248" | "1280x3072" | "3072x1280" | "1024x3072" | "3072x1024" | "1024x1024" | "896x1120" | "1120x896" | "864x1152" | "1152x864" | "832x1248" | "1248x832" | "800x1280" | "1280x800" | "720x1280" | "1280x720" | "720x1440" | "1440x720";
926
- renderingSpeed?: "very-low" | "low" | "medium" | "high";
927
- };
928
- "ideogram-v3": {
929
- prompt: string;
930
- aspectRatio?: "16:9" | "9:16" | "1:1" | "3:4" | "4:3";
931
- renderingSpeed?: "FLASH" | "TURBO" | "DEFAULT" | "QUALITY";
932
- style?: "GENERAL" | "REALISTIC" | "DESIGN";
933
- count?: 1 | 2 | 4 | 6 | 8 | 10;
934
- negativePrompt?: string;
935
- imageUrls?: string[];
936
- imageWeight?: number;
937
- };
938
- "ideogram-v4": {
939
- prompt: string;
940
- resolution?: "2048x2048" | "1440x2880" | "2880x1440" | "1664x2496" | "2496x1664" | "1792x2240" | "2240x1792" | "1440x2560" | "2560x1440" | "1600x2560" | "2560x1600" | "1728x2304" | "2304x1728" | "1296x3168" | "3168x1296" | "1152x2944" | "2944x1152" | "1248x3328" | "3328x1248" | "1280x3072" | "3072x1280" | "1024x3072" | "3072x1024" | "1024x1024" | "896x1120" | "1120x896" | "864x1152" | "1152x864" | "832x1248" | "1248x832" | "800x1280" | "1280x800" | "720x1280" | "1280x720" | "720x1440" | "1440x720" | "512x1536" | "1536x512";
941
- renderingSpeed?: "TURBO" | "DEFAULT" | "QUALITY";
942
- enableCopyrightDetection?: boolean;
943
- imageUrls?: string[];
944
- imageWeight?: number;
945
- };
946
- "ideogram-vector-1": {
947
- prompt: string;
948
- imageUrls?: string[];
949
- aspectRatio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "16:10" | "10:16" | "2:1" | "1:2" | "3:1" | "1:3" | "4:1" | "1:4";
950
- quality?: "low" | "medium" | "high";
951
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
952
- seed?: number;
953
- };
954
- "ideogram-vector-1-vectorize": {
955
- startFrame: string;
956
- mode?: "default" | "simple";
957
- };
958
- "kimi-k3": {
959
- prompt: string;
960
- imageUrls?: string[];
961
- thinking?: "low" | "high";
962
- };
963
- "kling-3.0-image": {
964
- prompt: string;
965
- aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:2" | "2:3" | "3:4";
966
- resolution?: "1k" | "2k" | "4k";
967
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
968
- imageUrls?: string[];
969
- };
970
- "kling-avatar": {
971
- prompt?: string;
972
- renderingSpeed?: "std" | "pro";
973
- imageUrls: [string, ...string[]];
974
- audioUrl: string;
975
- audioId?: string;
976
- };
977
- "kling-elements": {
978
- elementName: string;
979
- elementDescription: string;
980
- referenceType: "image_refer" | "video_refer";
981
- imageUrls?: string[];
982
- videoUrl?: string;
983
- elementVoiceId?: string;
984
- };
985
- "kling-motion-control": {
986
- prompt?: string;
987
- renderingSpeed?: "std" | "pro";
988
- characterOrientation?: "image" | "video";
989
- keepOriginalSound?: "yes" | "no";
990
- imageUrls: [string, ...string[]];
991
- videoUrl: string;
992
- };
993
- "kling-motion-control-v3": {
994
- prompt?: string;
995
- renderingSpeed?: "std" | "pro";
996
- characterOrientation?: "image" | "video";
997
- keepOriginalSound?: "yes" | "no";
998
- imageUrls: [string, ...string[]];
999
- videoUrl: string;
1000
- };
1001
- "kling-multi-image-v2-1": {
1002
- prompt?: string;
1003
- aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:2" | "2:3" | "3:4";
1004
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
1005
- imageUrls: [string, ...string[]];
1006
- sceneImage?: string;
1007
- styleImage?: string;
1008
- };
1009
- "kling-o1-image": {
1010
- prompt: string;
1011
- aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:2" | "2:3" | "3:4";
1012
- resolution?: "1k" | "2k";
1013
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
1014
- imageUrls?: string[];
1015
- };
1016
- "kling-t2a": {
1017
- prompt: string;
1018
- duration?: number;
1019
- };
1020
- "kling-v2-1-image": {
1021
- prompt: string;
1022
- aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:2" | "2:3" | "3:4";
1023
- count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
1024
- negativePrompt?: string;
1025
- imageUrls?: string[];
1026
- };
1027
- "kling-v2-6": {
1028
- prompt: string;
1029
- aspectRatio?: "16:9" | "9:16" | "1:1";
1030
- duration?: 5 | 10;
1031
- startFrame?: string;
1032
- endFrame?: string;
1033
- negativePrompt?: string;
1034
- generateAudio?: boolean;
1035
- };
1036
- "kling-v2a": {
1037
- videoUrl: string;
1038
- };
1039
- "kling-v3": {
1040
- prompt: string;
1041
- aspectRatio?: "16:9" | "9:16" | "1:1";
1042
- duration?: number;
1043
- startFrame?: string;
1044
- endFrame?: string;
1045
- negativePrompt?: string;
1046
- generateAudio?: boolean;
1047
- multiShot?: boolean;
1048
- shotType?: "customize" | "intelligence";
1049
- multiPrompt?: Array<{
1050
- index: number;
1051
- prompt: string;
1052
- duration: string;
1053
- }>;
1054
- voiceList?: Array<{
1055
- voice_id: string;
1056
- }>;
1057
- elementList?: Array<{
1058
- element_id: string;
1059
- }>;
1060
- renderingSpeed?: "std" | "pro" | "4k";
1061
- };
1062
- "kling-v3-omni": {
1063
- prompt: string;
1064
- aspectRatio?: "16:9" | "9:16" | "1:1";
1065
- duration?: number;
1066
- resolution?: "720p" | "1080p" | "4k";
1067
- generateAudio?: boolean;
1068
- startFrame?: string;
1069
- endFrame?: string;
1070
- imageUrls?: string[];
1071
- videoUrl?: string;
1072
- referType?: "feature" | "base";
1073
- keepOriginalSound?: "yes" | "no";
1074
- multiShot?: boolean;
1075
- shotType?: "customize";
1076
- multiPrompt?: Array<{
1077
- index: number;
1078
- prompt: string;
1079
- duration: string;
1080
- }>;
1081
- elementList?: Array<{
1082
- element_id: string;
1083
- }>;
1084
- };
1085
- "kling-v3-turbo": {
1086
- prompt: string;
1087
- aspectRatio?: "16:9" | "9:16" | "1:1";
1088
- duration?: number;
1089
- negativePrompt?: string;
1090
- resolution?: "720p" | "1080p";
1091
- startFrame?: string;
1092
- };
1093
- "kling-v4": {
1094
- prompt: string;
1095
- aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9";
1096
- duration?: number;
1097
- resolution?: "720p" | "1080p";
1098
- startFrame?: string;
1099
- imageUrls?: string[];
1100
- endFrame?: string;
1101
- };
1102
- "kling-v4-omni": {
1103
- prompt: string;
1104
- aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "adaptive";
1105
- duration?: number;
1106
- resolution?: "720p" | "1080p";
1107
- startFrame?: string;
1108
- endFrame?: string;
1109
- imageUrls?: string[];
1110
- videoUrl?: string;
1111
- referType?: "feature" | "base";
1112
- elementList?: Array<{
1113
- element_id: string;
1114
- }>;
1115
- };
1116
- "kling-video-effects": {
1117
- templateId?: string;
1118
- imageUrls: [string, ...string[]];
1119
- };
1120
- "kling-video-o1": {
1121
- prompt: string;
1122
- aspectRatio?: "16:9" | "9:16" | "1:1";
1123
- duration?: 5 | 10;
1124
- renderingSpeed?: "std" | "pro";
1125
- generateAudio?: boolean;
1126
- };
1127
- "ltx-2.3-a2v": {
1128
- prompt?: string;
1129
- audioUrl: string;
1130
- imageUrls?: string[];
1131
- aspectRatio?: "auto" | "16:9" | "9:16";
1132
- cfgScale?: number;
1133
- };
1134
- "ltx-v2.3-extend": {
1135
- prompt?: string;
1136
- duration?: number;
1137
- mode?: "end" | "start";
1138
- videoUrl: string;
1139
- };
1140
- "ltx-v2.3-fast": {
1141
- prompt: string;
1142
- duration?: 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20;
1143
- resolution?: "1080p" | "1440p" | "2160p";
1144
- aspectRatio?: "16:9" | "9:16";
1145
- fps?: 24 | 25 | 48 | 50;
1146
- generateAudio?: boolean;
1147
- imageUrls?: string[];
1148
- endFrame?: string;
1149
- };
1150
- "ltx-v2.3-outpaint": {
1151
- prompt: string;
1152
- videoUrl: string;
1153
- negativePrompt?: string;
1154
- aspectRatio?: "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "9:21";
1155
- resolution?: "480p" | "720p" | "1080p";
1156
- duration?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
1157
- fps?: number;
1158
- sourceScale?: number;
1159
- videoStrength?: number;
1160
- cfgScale?: number;
1161
- numInferenceSteps?: number;
1162
- videoQuality?: "low" | "medium" | "high" | "maximum";
1163
- videoWriteMode?: "fast" | "balanced" | "small";
1164
- enhancePrompt?: boolean;
1165
- generateAudio?: boolean;
1166
- enableSafetyChecker?: boolean;
1167
- seed?: number;
1168
- };
1169
- "ltx-v2.3-pro": {
1170
- prompt: string;
1171
- duration?: 6 | 8 | 10;
1172
- resolution?: "1080p" | "1440p" | "2160p";
1173
- aspectRatio?: "16:9" | "9:16";
1174
- fps?: 24 | 25 | 48 | 50;
1175
- generateAudio?: boolean;
1176
- imageUrls?: string[];
1177
- endFrame?: string;
1178
- };
1179
- "ltx-v2.3-reframe": {
1180
- videoUrl: string;
1181
- resolution?: "720p" | "1080p";
1182
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:5" | "5:4";
1183
- };
1184
- "ltx-v2.3-retake": {
1185
- prompt: string;
1186
- duration?: number;
1187
- retakeMode?: "replace_audio_and_video" | "replace_audio" | "replace_video";
1188
- startTime?: number;
1189
- videoUrl: string;
1190
- };
1191
- "ltx-v2.5-fast": {
1192
- prompt: string;
1193
- duration?: 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20;
1194
- resolution?: "720p" | "1080p" | "1440p" | "2160p";
1195
- aspectRatio?: "16:9" | "9:16";
1196
- fps?: 24 | 25 | 48 | 50;
1197
- cameraMotion?: "none" | "static" | "dolly_in" | "dolly_out" | "dolly_left" | "dolly_right" | "jib_up" | "jib_down" | "focus_shift";
1198
- generateAudio?: boolean;
1199
- startFrame?: string;
1200
- endFrame?: string;
1201
- };
1202
- "ltx-v2.5-pro": {
1203
- prompt: string;
1204
- duration?: 6 | 8 | 10;
1205
- resolution?: "720p" | "1080p";
1206
- aspectRatio?: "16:9" | "9:16";
1207
- fps?: 24 | 25 | 50;
1208
- cameraMotion?: "none" | "static" | "dolly_in" | "dolly_out" | "dolly_left" | "dolly_right" | "jib_up" | "jib_down" | "focus_shift";
1209
- generateAudio?: boolean;
1210
- startFrame?: string;
1211
- endFrame?: string;
1212
- };
1213
- "luma-ray-3.2": {
1214
- prompt: string;
1215
- aspectRatio?: "9:16" | "3:4" | "1:1" | "4:3" | "16:9" | "21:9";
1216
- resolution?: "540p" | "720p" | "1080p";
1217
- duration?: 5 | 10;
1218
- startFrame?: string;
1219
- endFrame?: string;
1220
- hdr?: boolean;
1221
- exrExport?: boolean;
1222
- loop?: boolean;
1223
- };
1224
- "luma-ray-3.2-edit": {
1225
- prompt: string;
1226
- videoUrl: string;
1227
- resolution?: "540p" | "720p" | "1080p";
1228
- duration?: 5 | 10;
1229
- editStrength?: "adhere_1" | "adhere_2" | "adhere_3" | "flex_1" | "flex_2" | "flex_3" | "reimagine_1" | "reimagine_2" | "reimagine_3";
1230
- hdr?: boolean;
1231
- exrExport?: boolean;
1232
- };
1233
- "luma-ray-3.2-reframe-video": {
1234
- prompt: string;
1235
- aspectRatio?: "9:16" | "3:4" | "1:1" | "4:3" | "16:9" | "21:9";
1236
- videoUrl: string;
1237
- resolution?: "540p" | "720p" | "1080p";
1238
- };
1239
- "luma-uni-1": {
1240
- prompt: string;
1241
- aspectRatio?: "3:1" | "2:1" | "16:9" | "3:2" | "1:1" | "2:3" | "9:16" | "1:2" | "1:3";
1242
- style?: "auto" | "manga";
1243
- imageUrls?: string[];
1244
- };
1245
- "luma-uni-1-max": {
1246
- prompt: string;
1247
- aspectRatio?: "3:1" | "2:1" | "16:9" | "3:2" | "1:1" | "2:3" | "9:16" | "1:2" | "1:3";
1248
- style?: "auto" | "manga";
1249
- imageUrls?: string[];
1250
- };
1251
- "lyria-3-clip": {
1252
- prompt: string;
1253
- imageUrls?: string[];
1254
- };
1255
- "lyria-3-pro": {
1256
- prompt: string;
1257
- imageUrls?: string[];
1258
- };
1259
- "lyria-3.5": {
1260
- prompt: string;
1261
- imageUrls?: string[];
1262
- };
1263
- "macaron-cookie": {
1264
- prompt: string;
1265
- aspectRatio?: "16:9" | "9:16";
1266
- resolution?: "360p" | "720p" | "1080p" | "4k";
1267
- duration?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
1268
- startFrame?: string;
1269
- endFrame?: string;
1270
- imageUrls?: string[];
1271
- videoUrl?: string;
1272
- videoUrls?: string[];
1273
- task?: "edit" | "extend";
1274
- };
1275
- "minimax-h3": {
1276
- prompt: string;
1277
- startFrame?: string;
1278
- endFrame?: string;
1279
- imageUrls?: string[];
1280
- videoUrls?: string[];
1281
- audioUrls?: string[];
1282
- resolution?: "768P" | "2K";
1283
- duration?: number;
1284
- aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1285
- };
1286
- "minimax-h3-context-ir": {
1287
- prompt: string;
1288
- startFrame?: string;
1289
- endFrame?: string;
1290
- imageUrls?: string[];
1291
- videoUrls?: string[];
1292
- audioUrls?: string[];
1293
- duration?: number;
1294
- aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1295
- };
1296
- "minimax-h3-max": {
1297
- prompt: string;
1298
- startFrame?: string;
1299
- endFrame?: string;
1300
- imageUrls?: string[];
1301
- videoUrls?: string[];
1302
- audioUrls?: string[];
1303
- resolution?: "480p" | "768p" | "1080p";
1304
- duration?: number;
1305
- aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1306
- promptExpansionMode?: "balanced" | "quality";
1307
- seed?: number;
1308
- enableSafetyChecker?: boolean;
1309
- };
1310
- "minimax-h3-max-camera-controls": {
1311
- prompt?: string;
1312
- startFrame: string;
1313
- resolution?: "480p" | "768p" | "1080p";
1314
- duration?: number;
1315
- cameraTrajectory?: Array<{
1316
- time: number;
1317
- azimuth: number;
1318
- elevation: number;
1319
- distance: number;
1320
- }>;
1321
- promptExpansionMode?: "balanced" | "quality";
1322
- seed?: number;
1323
- enableSafetyChecker?: boolean;
1324
- };
1325
- "minimax-h3-max-extend": {
1326
- prompt: string;
1327
- videoUrl: string;
1328
- duration?: number;
1329
- output?: "extended" | "continuation";
1330
- aspectRatio?: "auto" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1331
- resolution?: "480p" | "768p" | "1080p" | "2k";
1332
- enhancePrompt?: boolean;
1333
- enableSafetyChecker?: boolean;
1334
- seed?: number;
1335
- };
1336
- "minimax-h3-max-lip-sync": {
1337
- startFrame: string;
1338
- audioUrl: string;
1339
- resolution?: "480p" | "768p" | "1080p" | "2k";
1340
- enableTranscription?: boolean;
1341
- seed?: number;
1342
- enableSafetyChecker?: boolean;
1343
- };
1344
- "minimax-h3-max-relight": {
1345
- videoUrl: string;
1346
- imageUrls: [string, ...string[]];
1347
- resolution?: "480p" | "768p" | "1080p" | "2k";
1348
- aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1349
- seed?: number;
1350
- enableSafetyChecker?: boolean;
1351
- };
1352
- "minimax-h3-max-turbo": {
1353
- prompt: string;
1354
- startFrame?: string;
1355
- endFrame?: string;
1356
- resolution?: "480p" | "768p" | "1080p";
1357
- duration?: number;
1358
- aspectRatio?: "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1359
- promptExpansionMode?: "balanced" | "quality";
1360
- seed?: number;
1361
- enableSafetyChecker?: boolean;
1362
- };
1363
- "minimax-music-v2": {
1364
- prompt: string;
1365
- lyricsPrompt?: string;
1366
- lyricsOptimizer?: boolean;
1367
- isInstrumental?: boolean;
1368
- sampleRate?: 16000 | 24000 | 32000 | 44100;
1369
- bitrate?: 32000 | 64000 | 128000 | 256000;
1370
- format?: "mp3" | "wav" | "pcm";
1371
- };
1372
- "minimax-music-v3": {
1373
- prompt: string;
1374
- lyricsPrompt?: string;
1375
- lyricsOptimizer?: boolean;
1376
- isInstrumental?: boolean;
1377
- sampleRate?: 16000 | 24000 | 32000 | 44100;
1378
- bitrate?: 32000 | 64000 | 128000 | 256000;
1379
- format?: "mp3" | "wav" | "pcm";
1380
- };
1381
- "mirelo-sfx-2.0-text-to-audio": {
1382
- prompt: string;
1383
- negativePrompt?: string;
1384
- duration?: number;
1385
- count?: 1 | 2 | 3 | 4;
1386
- format?: "wav" | "mp3" | "aac" | "flac";
1387
- bitrateKbps?: number;
1388
- seed?: number;
1389
- };
1390
- "mirelo-sfx-2.0-video-to-audio": {
1391
- videoUrl: string;
1392
- prompt?: string;
1393
- negativePrompt?: string;
1394
- preserveSpeech?: boolean;
1395
- duration?: number;
1396
- count?: 1 | 2 | 3 | 4;
1397
- format?: "wav" | "mp3" | "aac" | "flac";
1398
- bitrateKbps?: number;
1399
- seed?: number;
1400
- };
1401
- "mirelo-sfx-2.0-video-to-video": {
1402
- videoUrl: string;
1403
- prompt?: string;
1404
- negativePrompt?: string;
1405
- preserveSpeech?: boolean;
1406
- duration?: number;
1407
- count?: 1 | 2 | 3 | 4;
1408
- seed?: number;
1409
- };
1410
- "muse-image-1.0": {
1411
- prompt: string;
1412
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
1413
- reasoningStrength?: "low" | "high";
1414
- moderation?: "auto" | "low" | "none";
1415
- enableImageSearch?: boolean;
1416
- enableWebSearch?: boolean;
1417
- enableShell?: boolean;
1418
- outputFormat?: "png" | "jpeg" | "webp";
1419
- count?: 1 | 2 | 4 | 6 | 8 | 10;
1420
- imageUrls?: string[];
1421
- };
1422
- "ovi": {
1423
- prompt: string;
1424
- size?: "9:16" | "16:9" | "1:1" | "9:16+" | "16:9+" | "2:5" | "5:2";
1425
- imageUrls?: string[];
1426
- };
1427
- "picsart-change-bg": {
1428
- imageUrls: [string, ...string[]];
1429
- prompt: string;
1430
- };
1431
- "picsart-enhance": {
1432
- imageUrls: [string, ...string[]];
1433
- };
1434
- "picsart-flow": {
1435
- templateId: string;
1436
- imageUrls: [string, ...string[]];
1437
- };
1438
- "picsart-flow-video": {
1439
- templateId: string;
1440
- imageUrls: [string, ...string[]];
1441
- };
1442
- "picsart-flux-2-klein": {
1443
- prompt: string;
1444
- aspectRatio?: "1:1" | "5:3" | "3:5" | "4:3" | "3:4";
1445
- imageUrls?: string[];
1446
- };
1447
- "picsart-hidream-t2i": {
1448
- prompt: string;
1449
- aspectRatio?: "1:1" | "5:3" | "3:5" | "4:3" | "3:4";
1450
- };
1451
- "picsart-qwen-image-edit": {
1452
- imageUrls: [string, ...string[]];
1453
- prompt: string;
1454
- negativePrompt?: string;
1455
- };
1456
- "picsart-qwen-makeup": {
1457
- imageUrls: [string, ...string[]];
1458
- prompt: string;
1459
- negativePrompt?: string;
1460
- };
1461
- "picsart-sana-sprint-v1": {
1462
- prompt: string;
1463
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1464
- };
1465
- "picsart-sod-v8-2": {
1466
- imageUrls: [string, ...string[]];
1467
- };
1468
- "picsart-videography": {
1469
- imageUrls: [string, ...string[]];
1470
- };
1471
- "pixverse-c1": {
1472
- prompt: string;
1473
- quality?: "360p" | "540p" | "720p" | "1080p";
1474
- duration?: number;
1475
- generateAudio?: boolean;
1476
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1477
- };
1478
- "pixverse-c1-fusion": {
1479
- prompt: string;
1480
- quality?: "360p" | "540p" | "720p" | "1080p";
1481
- duration?: number;
1482
- generateAudio?: boolean;
1483
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1484
- imageUrls: [string, ...string[]];
1485
- };
1486
- "pixverse-c1-image": {
1487
- prompt: string;
1488
- quality?: "360p" | "540p" | "720p" | "1080p";
1489
- duration?: number;
1490
- generateAudio?: boolean;
1491
- imageUrls: [string, ...string[]];
1492
- };
1493
- "pixverse-v6": {
1494
- prompt: string;
1495
- quality?: "360p" | "540p" | "720p" | "1080p";
1496
- duration?: number;
1497
- generateAudio?: boolean;
1498
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1499
- };
1500
- "pixverse-v6-fusion": {
1501
- prompt: string;
1502
- quality?: "360p" | "540p" | "720p" | "1080p";
1503
- duration?: number;
1504
- generateAudio?: boolean;
1505
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1506
- imageUrls: [string, ...string[]];
1507
- };
1508
- "pixverse-v6-image": {
1509
- prompt: string;
1510
- quality?: "360p" | "540p" | "720p" | "1080p";
1511
- duration?: number;
1512
- generateAudio?: boolean;
1513
- imageUrls: [string, ...string[]];
1514
- };
1515
- "qwen-image-2": {
1516
- prompt: string;
1517
- count?: 1 | 2 | 4 | 6 | 8 | 10;
1518
- imageUrls?: string[];
1519
- };
1520
- "qwen-image-2-pro": {
1521
- prompt: string;
1522
- negativePrompt?: string;
1523
- resolution?: "2048x2048" | "2688x1536" | "1536x2688" | "2368x1728" | "1728x2368";
1524
- count?: 1 | 2 | 4 | 6;
1525
- enhancePrompt?: boolean;
1526
- imageUrls?: string[];
1527
- seed?: number;
1528
- };
1529
- "qwen-image-3.0": {
1530
- prompt: string;
1531
- negativePrompt?: string;
1532
- resolution?: "2048x2048" | "2688x1536" | "1536x2688" | "2368x1728" | "1728x2368";
1533
- count?: 1 | 2 | 4 | 6;
1534
- enhancePrompt?: boolean;
1535
- imageUrls?: string[];
1536
- seed?: number;
1537
- promptExtendMode?: "direct" | "agent";
1538
- enableThinking?: boolean;
1539
- };
1540
- "qwen-image-3.0-pro": {
1541
- prompt: string;
1542
- negativePrompt?: string;
1543
- resolution?: "2048x2048" | "2688x1536" | "1536x2688" | "2368x1728" | "1728x2368";
1544
- count?: 1 | 2 | 4 | 6;
1545
- enhancePrompt?: boolean;
1546
- imageUrls?: string[];
1547
- seed?: number;
1548
- promptExtendMode?: "direct" | "agent";
1549
- enableThinking?: boolean;
1550
- };
1551
- "recraft-creative-upscale": {
1552
- imageUrls: [string, ...string[]];
1553
- };
1554
- "recraft-crisp-upscale": {
1555
- imageUrls: [string, ...string[]];
1556
- };
1557
- "recraft-explore": {
1558
- prompt: string;
1559
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1560
- };
1561
- "recraft-explore-similar": {
1562
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1563
- sourceImageId: string;
1564
- similarity?: number;
1565
- };
1566
- "recraft-vectorize": {
1567
- prompt?: string;
1568
- imageUrls: [string, ...string[]];
1569
- };
1570
- "recraftv3": {
1571
- prompt: string;
1572
- style?: "realistic_image" | "digital_illustration" | "vector_illustration" | "any";
1573
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1574
- count?: 1 | 2 | 4 | 6;
1575
- negativePrompt?: string;
1576
- imageUrls?: string[];
1577
- imageWeight?: number;
1578
- };
1579
- "recraftv3_vector": {
1580
- prompt: string;
1581
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1582
- count?: 1 | 2 | 4 | 6;
1583
- negativePrompt?: string;
1584
- };
1585
- "recraftv3-replace-bg": {
1586
- prompt?: string;
1587
- imageUrls: [string, ...string[]];
1588
- };
1589
- "recraftv4": {
1590
- prompt: string;
1591
- style?: "raster" | "vector_illustration";
1592
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1593
- count?: 1 | 2 | 4 | 6;
1594
- imageUrls?: string[];
1595
- imageWeight?: number;
1596
- };
1597
- "recraftv4_1": {
1598
- prompt: string;
1599
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1600
- count?: 1 | 2 | 4 | 6;
1601
- imageUrls?: string[];
1602
- imageWeight?: number;
1603
- };
1604
- "recraftv4_1_flash": {
1605
- prompt: string;
1606
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1607
- count?: 1 | 2 | 4 | 6;
1608
- };
1609
- "recraftv4_1_pro": {
1610
- prompt: string;
1611
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1612
- count?: 1 | 2 | 4 | 6;
1613
- imageUrls?: string[];
1614
- imageWeight?: number;
1615
- };
1616
- "recraftv4_1_pro_vector": {
1617
- prompt: string;
1618
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1619
- count?: 1 | 2 | 4 | 6;
1620
- imageUrls?: string[];
1621
- imageWeight?: number;
1622
- };
1623
- "recraftv4_1_utility": {
1624
- prompt: string;
1625
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1626
- count?: 1 | 2 | 4 | 6;
1627
- imageUrls?: string[];
1628
- imageWeight?: number;
1629
- };
1630
- "recraftv4_1_utility_pro": {
1631
- prompt: string;
1632
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1633
- count?: 1 | 2 | 4 | 6;
1634
- imageUrls?: string[];
1635
- imageWeight?: number;
1636
- };
1637
- "recraftv4_1_utility_pro_vector": {
1638
- prompt: string;
1639
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1640
- count?: 1 | 2 | 4 | 6;
1641
- imageUrls?: string[];
1642
- imageWeight?: number;
1643
- };
1644
- "recraftv4_1_utility_vector": {
1645
- prompt: string;
1646
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1647
- count?: 1 | 2 | 4 | 6;
1648
- imageUrls?: string[];
1649
- imageWeight?: number;
1650
- };
1651
- "recraftv4_1_vector": {
1652
- prompt: string;
1653
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1654
- count?: 1 | 2 | 4 | 6;
1655
- imageUrls?: string[];
1656
- imageWeight?: number;
1657
- };
1658
- "recraftv4_pro": {
1659
- prompt: string;
1660
- style?: "raster" | "vector_illustration";
1661
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1662
- count?: 1 | 2 | 4 | 6;
1663
- imageUrls?: string[];
1664
- imageWeight?: number;
1665
- };
1666
- "recraftv4_pro_vector": {
1667
- prompt: string;
1668
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1669
- count?: 1 | 2 | 4 | 6;
1670
- imageUrls?: string[];
1671
- imageWeight?: number;
1672
- };
1673
- "recraftv4_styles": {
1674
- prompt: string;
1675
- imageUrls: [string, ...string[]];
1676
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1677
- count?: 1 | 2 | 4 | 6;
1678
- };
1679
- "recraftv4_styles_pro": {
1680
- prompt: string;
1681
- imageUrls: [string, ...string[]];
1682
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1683
- count?: 1 | 2 | 4 | 6;
1684
- };
1685
- "recraftv4_styles_pro_vector": {
1686
- prompt: string;
1687
- imageUrls: [string, ...string[]];
1688
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1689
- count?: 1 | 2 | 4 | 6;
1690
- };
1691
- "recraftv4_styles_vector": {
1692
- prompt: string;
1693
- imageUrls: [string, ...string[]];
1694
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1695
- count?: 1 | 2 | 4 | 6;
1696
- };
1697
- "recraftv4_vector": {
1698
- prompt: string;
1699
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1700
- count?: 1 | 2 | 4 | 6;
1701
- imageUrls?: string[];
1702
- imageWeight?: number;
1703
- };
1704
- "reve": {
1705
- prompt: string;
1706
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3";
1707
- count?: 1 | 2 | 4;
1708
- imageUrls?: string[];
1709
- };
1710
- "runway-aleph2": {
1711
- prompt: string;
1712
- videoUrl: string;
1713
- startFrame?: string;
1714
- endFrame?: string;
1715
- };
1716
- "runway-avatar-video": {
1717
- style?: "game-character" | "music-superstar" | "game-character-man" | "cat-character" | "influencer" | "tennis-coach" | "human-resource" | "fashion-designer" | "cooking-teacher";
1718
- voiceId?: string;
1719
- prompt?: string;
1720
- audioUrl?: string;
1721
- };
1722
- "runway-gen3a-turbo": {
1723
- prompt: string;
1724
- duration?: 5 | 10;
1725
- aspectRatio?: "16:9" | "9:16";
1726
- startFrame: string;
1727
- endFrame?: string;
1728
- };
1729
- "runway-gen4-aleph": {
1730
- prompt: string;
1731
- videoUrl: string;
1732
- };
1733
- "runway-gen4-ref": {
1734
- prompt: string;
1735
- aspectRatio?: "16:9" | "9:16";
1736
- imageUrls: [string, ...string[]];
1737
- };
1738
- "runway-gen4.5": {
1739
- prompt: string;
1740
- duration?: 5 | 8 | 10;
1741
- aspectRatio?: "16:9" | "9:16";
1742
- imageUrls?: string[];
1743
- };
1744
- "sam-3-video": {
1745
- prompt: string;
1746
- videoUrl: string;
1747
- detectionThreshold?: number;
1748
- applyMask?: boolean;
1749
- outputFormat?: "mp4" | "webm";
1750
- };
1751
- "seed-audio-1.0": {
1752
- prompt: string;
1753
- voiceId?: string;
1754
- audioUrls?: string[];
1755
- imageUrls?: string[];
1756
- format?: "wav" | "mp3" | "pcm" | "ogg_opus";
1757
- sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000;
1758
- speechRate?: number;
1759
- loudnessRate?: number;
1760
- pitchRate?: number;
1761
- aigcWatermark?: boolean;
1762
- };
1763
- "seed-audio-1.0-multilingual": {
1764
- prompt: string;
1765
- voiceId?: string;
1766
- audioUrls?: string[];
1767
- imageUrls?: string[];
1768
- format?: "wav" | "mp3" | "pcm" | "ogg_opus";
1769
- sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000;
1770
- speechRate?: number;
1771
- loudnessRate?: number;
1772
- pitchRate?: number;
1773
- aigcWatermark?: boolean;
1774
- };
1775
- "seedance-1.5-pro": {
1776
- prompt: string;
1777
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1778
- resolution?: "480p" | "720p";
1779
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
1780
- generateAudio?: boolean;
1781
- startFrame?: string;
1782
- endFrame?: string;
1783
- };
1784
- "seedance-2.0": {
1785
- prompt: string;
1786
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1787
- resolution?: "480p" | "720p" | "1080p" | "4k";
1788
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1789
- generateAudio?: boolean;
1790
- returnLastFrame?: boolean;
1791
- imageUrls?: string[];
1792
- videoUrls?: string[];
1793
- audioUrls?: string[];
1794
- startFrame?: string;
1795
- endFrame?: string;
1796
- };
1797
- "seedance-2.0-fast": {
1798
- prompt: string;
1799
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1800
- resolution?: "480p" | "720p";
1801
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1802
- generateAudio?: boolean;
1803
- returnLastFrame?: boolean;
1804
- imageUrls?: string[];
1805
- videoUrls?: string[];
1806
- audioUrls?: string[];
1807
- startFrame?: string;
1808
- endFrame?: string;
1809
- };
1810
- "seedance-2.0-fast-video-edit": {
1811
- prompt: string;
1812
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1813
- resolution?: "480p" | "720p";
1814
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1815
- generateAudio?: boolean;
1816
- returnLastFrame?: boolean;
1817
- videoUrl: string;
1818
- imageUrls?: string[];
1819
- };
1820
- "seedance-2.0-fast-video-extend": {
1821
- prompt: string;
1822
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1823
- resolution?: "480p" | "720p";
1824
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1825
- generateAudio?: boolean;
1826
- videoUrls: [string, ...string[]];
1827
- };
1828
- "seedance-2.0-mini": {
1829
- prompt: string;
1830
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1831
- resolution?: "480p" | "720p";
1832
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1833
- generateAudio?: boolean;
1834
- returnLastFrame?: boolean;
1835
- imageUrls?: string[];
1836
- videoUrls?: string[];
1837
- audioUrls?: string[];
1838
- startFrame?: string;
1839
- endFrame?: string;
1840
- };
1841
- "seedance-2.0-mini-video-edit": {
1842
- prompt: string;
1843
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1844
- resolution?: "480p" | "720p";
1845
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1846
- generateAudio?: boolean;
1847
- returnLastFrame?: boolean;
1848
- videoUrl: string;
1849
- imageUrls?: string[];
1850
- };
1851
- "seedance-2.0-mini-video-extend": {
1852
- prompt: string;
1853
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1854
- resolution?: "480p" | "720p";
1855
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1856
- generateAudio?: boolean;
1857
- videoUrls: [string, ...string[]];
1858
- };
1859
- "seedance-2.0-video-edit": {
1860
- prompt: string;
1861
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1862
- resolution?: "480p" | "720p" | "1080p" | "4k";
1863
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1864
- generateAudio?: boolean;
1865
- returnLastFrame?: boolean;
1866
- videoUrl: string;
1867
- imageUrls?: string[];
1868
- };
1869
- "seedance-2.0-video-extend": {
1870
- prompt: string;
1871
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1872
- resolution?: "480p" | "720p" | "1080p" | "4k";
1873
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1874
- generateAudio?: boolean;
1875
- videoUrls: [string, ...string[]];
1876
- };
1877
- "seedance-2.0-without-moderation": {
1878
- prompt: string;
1879
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1880
- resolution?: "480p" | "720p" | "1080p" | "4k";
1881
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1882
- generateAudio?: boolean;
1883
- returnLastFrame?: boolean;
1884
- imageUrls?: string[];
1885
- videoUrls?: string[];
1886
- audioUrls?: string[];
1887
- startFrame?: string;
1888
- endFrame?: string;
1889
- };
1890
- "seedance-2.0-without-moderation-video-edit": {
1891
- prompt: string;
1892
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1893
- resolution?: "480p" | "720p" | "1080p" | "4k";
1894
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1895
- generateAudio?: boolean;
1896
- returnLastFrame?: boolean;
1897
- videoUrl: string;
1898
- imageUrls?: string[];
1899
- };
1900
- "seedance-2.0-without-moderation-video-extend": {
1901
- prompt: string;
1902
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1903
- resolution?: "480p" | "720p" | "1080p" | "4k";
1904
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1905
- generateAudio?: boolean;
1906
- videoUrls: [string, ...string[]];
1907
- };
1908
- "seedance-2.5": {
1909
- prompt?: string;
1910
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1911
- resolution?: "480p" | "720p" | "1080p";
1912
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
1913
- generateAudio?: boolean;
1914
- returnLastFrame?: boolean;
1915
- outputFormat?: "mp4" | "mov";
1916
- colorDepth?: "10bit" | "8bit";
1917
- draft?: boolean;
1918
- draftTask?: {
1919
- id: string;
1920
- };
1921
- omniReferenceTaskType?: "auto" | "reference" | "edit" | "extend";
1922
- imageUrls?: string[];
1923
- videoUrls?: string[];
1924
- audioUrls?: string[];
1925
- startFrame?: string;
1926
- endFrame?: string;
1927
- };
1928
- "seedance-2.5-video-edit": {
1929
- prompt: string;
1930
- aspectRatio?: "adaptive";
1931
- resolution?: "480p" | "720p" | "1080p";
1932
- generateAudio?: boolean;
1933
- returnLastFrame?: boolean;
1934
- outputFormat?: "mp4" | "mov";
1935
- colorDepth?: "10bit" | "8bit";
1936
- draft?: boolean;
1937
- videoUrl: string;
1938
- imageUrls?: string[];
1939
- };
1940
- "seedance-2.5-video-extend": {
1941
- prompt: string;
1942
- aspectRatio?: "adaptive";
1943
- resolution?: "480p" | "720p" | "1080p";
1944
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
1945
- generateAudio?: boolean;
1946
- outputFormat?: "mp4" | "mov";
1947
- colorDepth?: "10bit" | "8bit";
1948
- draft?: boolean;
1949
- videoUrls: [string, ...string[]];
1950
- };
1951
- "seedance-2.5-without-moderation": {
1952
- prompt?: string;
1953
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1954
- resolution?: "480p" | "720p" | "1080p";
1955
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
1956
- generateAudio?: boolean;
1957
- returnLastFrame?: boolean;
1958
- outputFormat?: "mp4" | "mov";
1959
- colorDepth?: "10bit" | "8bit";
1960
- draft?: boolean;
1961
- draftTask?: {
1962
- id: string;
1963
- };
1964
- omniReferenceTaskType?: "auto" | "reference" | "edit" | "extend";
1965
- imageUrls?: string[];
1966
- videoUrls?: string[];
1967
- audioUrls?: string[];
1968
- startFrame?: string;
1969
- endFrame?: string;
1970
- };
1971
- "seedance-2.5-without-moderation-video-edit": {
1972
- prompt: string;
1973
- aspectRatio?: "adaptive";
1974
- resolution?: "480p" | "720p" | "1080p";
1975
- generateAudio?: boolean;
1976
- returnLastFrame?: boolean;
1977
- outputFormat?: "mp4" | "mov";
1978
- colorDepth?: "10bit" | "8bit";
1979
- draft?: boolean;
1980
- videoUrl: string;
1981
- imageUrls?: string[];
1982
- };
1983
- "seedance-2.5-without-moderation-video-extend": {
1984
- prompt: string;
1985
- aspectRatio?: "adaptive";
1986
- resolution?: "480p" | "720p" | "1080p";
1987
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
1988
- generateAudio?: boolean;
1989
- outputFormat?: "mp4" | "mov";
1990
- colorDepth?: "10bit" | "8bit";
1991
- draft?: boolean;
1992
- videoUrls: [string, ...string[]];
1993
- };
1994
- "seedance-i2v": {
1995
- prompt: string;
1996
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1997
- resolution?: "480p" | "720p" | "1080p";
1998
- duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
1999
- startFrame: string;
2000
- };
2001
- "seedream-4.0": {
2002
- resolution?: "1K" | "2K" | "4K";
2003
- prompt: string;
2004
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2005
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2006
- imageUrls?: string[];
2007
- negativePrompt?: string;
2008
- };
2009
- "seedream-4.5": {
2010
- resolution?: "2K" | "4K";
2011
- prompt: string;
2012
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2013
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2014
- imageUrls?: string[];
2015
- negativePrompt?: string;
2016
- };
2017
- "seedream-4.7": {
2018
- resolution?: "1K" | "2K" | "4K";
2019
- prompt: string;
2020
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2021
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2022
- imageUrls?: string[];
2023
- negativePrompt?: string;
2024
- };
2025
- "seedream-5.0-flash": {
2026
- resolution?: "1K" | "2K";
2027
- prompt: string;
2028
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2029
- imageUrls?: string[];
2030
- negativePrompt?: string;
2031
- };
2032
- "seedream-5.0-lite": {
2033
- resolution?: "2K" | "3K";
2034
- prompt: string;
2035
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2036
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2037
- imageUrls?: string[];
2038
- negativePrompt?: string;
2039
- };
2040
- "seedream-5.0-pro": {
2041
- resolution?: "1K" | "2K";
2042
- prompt: string;
2043
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2044
- imageUrls?: string[];
2045
- negativePrompt?: string;
2046
- };
2047
- "star-swirl-alpha": {
2048
- prompt: string;
2049
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
2050
- resolution?: "1K" | "2K" | "4K";
2051
- size?: string;
2052
- reasoningEffort?: "max" | "xhigh" | "high" | "medium" | "low";
2053
- temperature?: number;
2054
- background?: "opaque" | "transparent";
2055
- outputFormat?: "png" | "jpeg" | "webp";
2056
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2057
- imageUrls?: string[];
2058
- };
2059
- "topaz-upscale-image": {
2060
- imageUrls: [string, ...string[]];
2061
- model?: "Standard V2" | "Standard MAX" | "Low Resolution V2" | "High Fidelity V2" | "CGI" | "Text Refine" | "Redefine" | "Recovery" | "Recovery V2" | "Wonder" | "Wonder 3";
2062
- };
2063
- "topaz-upscale-video": {
2064
- videoUrl: string;
2065
- model?: "Proteus" | "Artemis HQ" | "Artemis MQ" | "Artemis LQ" | "Nyx" | "Nyx Fast" | "Nyx XL" | "Nyx HF" | "Gaia HQ" | "Gaia CG" | "Gaia 2" | "Starlight Precise 2.5" | "Starlight HQ" | "Starlight Mini" | "Starlight Sharp" | "Starlight Fast 2";
2066
- };
2067
- "typesafe-evaluate": {
2068
- state: string;
2069
- questions: Record<string, {
2070
- type: "noul" | "choice" | "score";
2071
- instructions: unknown;
2072
- } & Record<string, unknown>>;
2073
- };
2074
- "veed-fabric-v1": {
2075
- prompt?: string;
2076
- resolution?: "480p" | "720p";
2077
- imageUrls: [string, ...string[]];
2078
- audioUrl: string;
2079
- };
2080
- "veed-fabric-v1-fast": {
2081
- prompt?: string;
2082
- resolution?: "480p" | "720p";
2083
- imageUrls: [string, ...string[]];
2084
- audioUrl: string;
2085
- };
2086
- "veo-3.1": {
2087
- prompt: string;
2088
- aspectRatio?: "16:9" | "9:16";
2089
- duration?: 4 | 6 | 8;
2090
- resolution?: "720p" | "1080p" | "4k";
2091
- imageUrls?: string[];
2092
- generateAudio?: boolean;
2093
- negativePrompt?: string;
2094
- startFrame?: string;
2095
- endFrame?: string;
2096
- };
2097
- "veo-3.1-fast": {
2098
- prompt: string;
2099
- aspectRatio?: "16:9" | "9:16";
2100
- duration?: 4 | 6 | 8;
2101
- resolution?: "720p" | "1080p" | "4k";
2102
- imageUrls?: string[];
2103
- generateAudio?: boolean;
2104
- negativePrompt?: string;
2105
- startFrame?: string;
2106
- endFrame?: string;
2107
- };
2108
- "veo-3.1-lite": {
2109
- prompt: string;
2110
- aspectRatio?: "16:9" | "9:16";
2111
- duration?: 4 | 6 | 8;
2112
- resolution?: "720p" | "1080p";
2113
- startFrame?: string;
2114
- };
2115
- "wan-2.6-image": {
2116
- prompt: string;
2117
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2118
- negativePrompt?: string;
2119
- };
2120
- "wan-2.7-i2v": {
2121
- prompt?: string;
2122
- duration?: 5 | 10 | 15;
2123
- resolution?: "720P" | "1080P";
2124
- negativePrompt?: string;
2125
- enhancePrompt?: boolean;
2126
- startFrame: string;
2127
- endFrame?: string;
2128
- audioUrl?: string;
2129
- seed?: number;
2130
- };
2131
- "wan-2.7-r2v": {
2132
- prompt: string;
2133
- duration?: 5 | 10;
2134
- resolution?: "720P" | "1080P";
2135
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
2136
- negativePrompt?: string;
2137
- imageUrls: [string, ...string[]];
2138
- videoUrl: string;
2139
- seed?: number;
2140
- };
2141
- "wan-2.7-t2v": {
2142
- prompt: string;
2143
- duration?: 5 | 10 | 15;
2144
- resolution?: "720P" | "1080P";
2145
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
2146
- negativePrompt?: string;
2147
- enhancePrompt?: boolean;
2148
- audioUrl?: string;
2149
- startFrame?: string;
2150
- seed?: number;
2151
- };
2152
- "wan-2.7-video-edit": {
2153
- prompt?: string;
2154
- resolution?: "720P" | "1080P";
2155
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
2156
- negativePrompt?: string;
2157
- videoUrl: string;
2158
- imageUrls?: string[];
2159
- audioSetting?: "auto" | "origin";
2160
- duration?: number;
2161
- seed?: number;
2162
- };
2163
- "wan-3.0-video": {
2164
- prompt?: string;
2165
- duration?: -1 | 5 | 10 | 15 | 30;
2166
- resolution?: "480P" | "720P" | "1080P";
2167
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive";
2168
- generateAudio?: boolean;
2169
- startFrame?: string;
2170
- endFrame?: string;
2171
- imageUrls?: string[];
2172
- videoUrls?: string[];
2173
- audioUrls?: string[];
2174
- enableThinking?: boolean;
2175
- watermark?: boolean;
2176
- seed?: number;
2177
- };
2178
- "wan-3.0-video-prime": {
2179
- prompt?: string;
2180
- duration?: -1 | 5 | 10 | 15 | 30;
2181
- resolution?: "480P" | "720P" | "1080P";
2182
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive";
2183
- generateAudio?: boolean;
2184
- startFrame?: string;
2185
- endFrame?: string;
2186
- imageUrls?: string[];
2187
- videoUrls?: string[];
2188
- audioUrls?: string[];
2189
- enableThinking?: boolean;
2190
- watermark?: boolean;
2191
- seed?: number;
2192
- };
2193
- };
2194
- type TypedModelId = keyof ModelInputById;
2195
- type ModelInput<M extends TypedModelId> = ModelInputById[M];
2196
- /** IDs of text-generation (LLM) models — narrows generateText(). */
2197
- type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-haiku-5-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "eleven-speech-to-text" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gemini-4-argon" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra" | "gpt-6-luna" | "gpt-6-sol" | "grok-4.7" | "kimi-k3" | "minimax-h3-context-ir";
2198
- type TextModelInputById = Pick<ModelInputById, TextModelId>;
2199
- /** IDs of structured-output (json-mode) models — narrows run()'s result type. */
2200
- type JsonModelId = "typesafe-evaluate";
2201
-
2202
129
  interface ParamSchema {
2203
130
  type: 'string' | 'number' | 'boolean' | 'file';
2204
131
  enum?: (string | number)[];
@@ -2525,7 +452,6 @@ interface ModelParamsAccessor {
2525
452
  toSchema(): ModelParamSchema;
2526
453
  transferValues(prev: Record<string, unknown>): Record<string, unknown>;
2527
454
  }
2528
-
2529
455
  /** Credit range for a model — min/max credits across all pricing variants. */
2530
456
  interface CreditRange {
2531
457
  min: number;
@@ -2562,7 +488,7 @@ interface ValidationResult {
2562
488
  errors?: string[];
2563
489
  }
2564
490
  interface ModelDescriptor {
2565
- readonly id: TypedModelId;
491
+ readonly id: string;
2566
492
  readonly name: string;
2567
493
  params(): ModelParamsAccessor;
2568
494
  /** Params with constraint effects pre-applied (disabled options, hidden params). */
@@ -3089,8 +1015,8 @@ interface ApisClient {
3089
1015
  * creation.
3090
1016
  */
3091
1017
 
3092
- /** Model id with autocomplete that still accepts arbitrary strings. */
3093
- type ModelId = TypedModelId | (string & {});
1018
+ /** Model id — any string; concrete ids come from the loaded catalog. */
1019
+ type ModelId = string;
3094
1020
  /** One fetched page. Pass `nextCursor` back to load the next one. */
3095
1021
  interface CatalogPage {
3096
1022
  items: CatalogItem[];
@@ -3221,34 +1147,8 @@ interface AppIdentity {
3221
1147
  id: string;
3222
1148
  type: AppType;
3223
1149
  }
3224
- /**
3225
- * How the client sources its model catalog and builds generation requests.
3226
- * - `'static'` (default) — the bundled catalog: per-model workflows and local
3227
- * payload builders, exactly as before.
3228
- * - `'dynamic'` — generation routes through the models-hub `v1/models`
3229
- * workflow (the server builds the vendor payload), and the model catalog is
3230
- * loaded from the backend via {@link AiClient.initModelCatalog}. Until that
3231
- * load completes, the sync accessors (`Model()`, `catalog.*`) throw
3232
- * `ApiError` 409 `catalog_not_loaded`; `generate()`/`submit()` never wait.
3233
- *
3234
- * The loaded catalog is process-global (`Model()` and `catalog.*` are
3235
- * module-level): one catalog source per process, last install wins.
3236
- *
3237
- * **One catalog MODE per process, too — do not mix static and dynamic
3238
- * clients.** Creating a dynamic client flips the process-global catalog:
3239
- * a static client in the same process then throws `catalog_not_loaded` from
3240
- * its sync accessors until the load lands, and once the loaded catalog is
3241
- * installed its generation pipeline would resolve definitions that carry no
3242
- * payload builders (builders are code and never ride the wire) — producing
3243
- * invalid vendor payloads. Run static clients in a separate process. Static
3244
- * mode is the compatibility path and is slated for removal once all
3245
- * consumers run dynamic.
3246
- */
3247
- type SdkMode = 'static' | 'dynamic';
3248
1150
  /** Settings that apply whichever transport serves the client. */
3249
1151
  interface ClientConfigBase {
3250
- /** Catalog/generation mode — see {@link SdkMode}. Default: `'static'`. */
3251
- mode?: SdkMode;
3252
1152
  /** Enable Drive integration — auto-save generations to a Drive folder. */
3253
1153
  drive?: DriveConfig;
3254
1154
  /**
@@ -3449,32 +1349,45 @@ interface InitModelCatalogOptions {
3449
1349
  /** Restrict what the catalog load requests — mode, provider, release, deprecated, search. */
3450
1350
  filtersOptions?: ModelCatalogFilters;
3451
1351
  }
3452
- /** Non-text (image/video/audio) model IDs — the media generation surface. */
3453
- type MediaModelId = Exclude<TypedModelId, TextModelId | JsonModelId>;
3454
- /** AI SDK client with type-safe, model-aware method signatures. */
1352
+ /**
1353
+ * Non-text (image/video/audio) model id. Dynamic-only: ids are plain strings
1354
+ * resolved against the loaded catalog, so there is no compile-time narrowing.
1355
+ */
1356
+ type MediaModelId = string;
1357
+ /** AI SDK client. Model ids are strings resolved against the loaded catalog. */
3455
1358
  interface AiClient {
3456
1359
  /**
3457
1360
  * Run any model by id and get the task result back, generically — the
3458
1361
  * model-id counterpart of {@link ApisClient.run}. Works on every model:
3459
- * builds and validates the payload from paramConfig, executes the workflow,
1362
+ * models-hub builds and validates the payload, executes the workflow,
3460
1363
  * applies the model's `outputSchema` when declared, and answers the task
3461
1364
  * result as-is (no media-URL/text extraction, no Drive save). The only
3462
1365
  * generation surface for json-mode (structured-output) models. Type the
3463
1366
  * result via `R` (mirrors `ai.apis.run()`): `ai.run<MyResult>(id, params)`.
3464
1367
  */
3465
- run<R = unknown, M extends TypedModelId = TypedModelId>(model: M, params: ModelInputById[M], options?: GenerateOptions): Promise<RunResponse<R>>;
1368
+ run<R = unknown>(model: string, params: Record<string, unknown>, options?: GenerateOptions): Promise<RunResponse<R>>;
3466
1369
  /** Generate content using a media model. Text/LLM models use generateText(). */
3467
- generate<M extends MediaModelId>(model: M, params: ModelInputById[M], options?: GenerateOptions): Promise<GenerateResult>;
1370
+ generate(model: string, params: Record<string, unknown> & {
1371
+ prompt: string;
1372
+ }, options?: GenerateOptions): Promise<GenerateResult>;
3468
1373
  /** Generate text using an LLM model. Returns the generated text plus the raw response. */
3469
- generateText<M extends TextModelId>(model: M, params: TextModelInputById[M], options?: GenerateOptions): Promise<GenerateTextResult>;
1374
+ generateText(model: string, params: Record<string, unknown> & {
1375
+ prompt: string;
1376
+ }, options?: GenerateOptions): Promise<GenerateTextResult>;
3470
1377
  /** Get exact credit cost for a model with specific parameters. */
3471
- getCredits<M extends TypedModelId>(model: M, params: ModelInputById[M]): Promise<number | null>;
1378
+ getCredits(model: string, params: Record<string, unknown> & {
1379
+ prompt: string;
1380
+ }): Promise<number | null>;
3472
1381
  /** What the model's /options endpoint answers for these params — credits, how they were derived, and anything else it reports. */
3473
- options<M extends TypedModelId>(model: M, params: ModelInputById[M]): Promise<OptionsResult | null>;
1382
+ options(model: string, params: Record<string, unknown> & {
1383
+ prompt: string;
1384
+ }): Promise<OptionsResult | null>;
3474
1385
  /** Submit a generation job and get its generation id back. Media models only. */
3475
- submit<M extends MediaModelId>(model: M, params: ModelInputById[M], options?: GenerateOptions): Promise<string>;
1386
+ submit(model: string, params: Record<string, unknown> & {
1387
+ prompt: string;
1388
+ }, options?: GenerateOptions): Promise<string>;
3476
1389
  /** Poll a submitted job until it completes and return the parsed result. Media models only. */
3477
- result(model: MediaModelId, generationId: string, options?: GenerationOptions): Promise<GenerateResult>;
1390
+ result(model: string, generationId: string, options?: GenerationOptions): Promise<GenerateResult>;
3478
1391
  /**
3479
1392
  * Subscribe to live updates for a submitted job. Yields one
3480
1393
  * {@link GenerationEvent} per poll; the terminal `generation.completed`
@@ -3483,25 +1396,20 @@ interface AiClient {
3483
1396
  * exceptions.
3484
1397
  */
3485
1398
  subscribe(model: MediaModelId, generationId: string, options?: GenerationOptions): AsyncGenerator<GenerationEvent, void, void>;
3486
- /** Build the vendor-specific payload for a model without submitting. Static mode only. */
3487
- buildPayload<M extends TypedModelId>(model: M, params: ModelInputById[M]): Record<string, unknown>;
3488
1399
  /**
3489
- * Dynamic mode only: fetch the model catalog from models-hub and install it
3490
- * as the active catalog — afterwards `Model()`, `catalog.*` and
3491
- * `ai.validate()` serve the loaded data. The ONLY trigger for the load
3492
- * (`createClient` never starts it). Idempotent: concurrent/repeat calls
3493
- * share one in-flight load; a failed load may be retried. Rejects with
3494
- * `ApiError` 400 `invalid_mode` on a static client, and 409
3495
- * `catalog_conflict` when a different url/filters catalog is already loaded
3496
- * in this process.
1400
+ * Fetch the model catalog from models-hub and install it as the active
1401
+ * catalog — afterwards `Model()`, `catalog.*` and `ai.validate()` serve the
1402
+ * loaded data. The ONLY trigger for the load (`createClient` never starts
1403
+ * it). Idempotent: concurrent/repeat calls share one in-flight load; a
1404
+ * failed load may be retried. Rejects with `ApiError` 409 `catalog_conflict`
1405
+ * when a different url/filters catalog is already loaded in this process.
3497
1406
  */
3498
1407
  initModelCatalog(options?: InitModelCatalogOptions): Promise<void>;
3499
1408
  /**
3500
1409
  * Validate params against the model's descriptors without generating.
3501
- * Static mode: resolves immediately off the bundled catalog. Dynamic mode:
3502
- * awaits the catalog load started by {@link initModelCatalog} — rejects
3503
- * with `ApiError` 409 `catalog_not_loaded` when it was never called.
3504
- * Unknown models reject with `ApiError` 400 `unknown_model`.
1410
+ * Awaits the catalog load started by {@link initModelCatalog} — rejects with
1411
+ * `ApiError` 409 `catalog_not_loaded` when it was never called. Unknown
1412
+ * models reject with `ApiError` 400 `unknown_model`.
3505
1413
  */
3506
1414
  validate(model: string, params: Record<string, unknown>): Promise<ValidationResult>;
3507
1415
  /**
@@ -3538,17 +1446,15 @@ interface ModelsCommand {
3538
1446
  /**
3539
1447
  * Create an AI SDK client.
3540
1448
  *
3541
- * @example Simple — pass an authenticated fetch:
3542
- * ```ts
3543
- * const ai = createClient({ fetch: myAuthenticatedFetch });
3544
- * ```
1449
+ * The SDK is dynamic-only: the model catalog is loaded from models-hub via
1450
+ * {@link AiClient.initModelCatalog}, and every generation rides the one
1451
+ * `v1/models` workflow (the server resolves the model, builds the vendor
1452
+ * payload, and normalizes the result).
3545
1453
  *
3546
- * @example With Drive — auto-save generations:
1454
+ * @example Simple — pass an authenticated fetch:
3547
1455
  * ```ts
3548
- * const ai = createClient({
3549
- * fetch: myAuthenticatedFetch,
3550
- * drive: { folder: 'AI Playground' },
3551
- * });
1456
+ * const ai = createClient({ fetch: myAuthenticatedFetch, apiUrl });
1457
+ * await ai.initModelCatalog();
3552
1458
  * ```
3553
1459
  *
3554
1460
  * @example With your own transport — the SDK stops talking to the workflows
@@ -3559,278 +1465,6 @@ interface ModelsCommand {
3559
1465
  */
3560
1466
  declare function createClient(config: ClientConfig): AiClient;
3561
1467
 
3562
- declare const Models: {
3563
- readonly AsyncFlashV1: "async-flash-v1";
3564
- readonly AuroraImgAlpha: "aurora-img-alpha";
3565
- readonly BytedanceOmnihumanV15: "bytedance-omnihuman-v1.5";
3566
- readonly BytedanceOmnihumanV20: "bytedance-omnihuman-v2.0";
3567
- readonly BytedanceVideoEnhance: "bytedance-video-enhance";
3568
- readonly BytedanceVideoUpscaler: "bytedance-video-upscaler";
3569
- readonly CaptionsaiVideoCaptions: "captionsai-video-captions";
3570
- readonly ClaudeFable5: "claude-fable-5";
3571
- readonly ClaudeFable51: "claude-fable-5-1";
3572
- readonly ClaudeHaiku45: "claude-haiku-4-5";
3573
- readonly ClaudeHaiku55: "claude-haiku-5-5";
3574
- readonly ClaudeOpus48: "claude-opus-4-8";
3575
- readonly ClaudeOpus5: "claude-opus-5";
3576
- readonly ClaudeSonnet45: "claude-sonnet-4-5";
3577
- readonly ClaudeSonnet46: "claude-sonnet-4-6";
3578
- readonly ClaudeSonnet5: "claude-sonnet-5";
3579
- readonly CreatifyAurora: "creatify-aurora";
3580
- readonly CreatifyBoreal: "creatify-boreal";
3581
- readonly DepthAnythingVideo: "depth-anything-video";
3582
- readonly ElevenAudioIsolation: "eleven-audio-isolation";
3583
- readonly ElevenDialogueV4: "eleven-dialogue-v4";
3584
- readonly ElevenDubbing: "eleven-dubbing";
3585
- readonly ElevenMultilingualStsV2: "eleven-multilingual-sts-v2";
3586
- readonly ElevenMultilingualV2: "eleven-multilingual-v2";
3587
- readonly ElevenSpeechToText: "eleven-speech-to-text";
3588
- readonly ElevenStsV2: "eleven-sts-v2";
3589
- readonly ElevenTextToDialogue: "eleven-text-to-dialogue";
3590
- readonly ElevenV3: "eleven-v3";
3591
- readonly ElevenV4: "eleven-v4";
3592
- readonly ElevenV4Turbo: "eleven-v4-turbo";
3593
- readonly ElevenVideoToMusic: "eleven-video-to-music";
3594
- readonly ElevenVoiceCreate: "eleven-voice-create";
3595
- readonly ElevenVoiceDesignV2: "eleven-voice-design-v2";
3596
- readonly ElevenVoiceDesignV3: "eleven-voice-design-v3";
3597
- readonly ElevenVoiceRemix: "eleven-voice-remix";
3598
- readonly ElevenlabsMusicV2: "elevenlabs-music-v2";
3599
- readonly ElevenlabsSfx: "elevenlabs-sfx";
3600
- readonly Flux2Flex: "flux-2-flex";
3601
- readonly Flux2Max: "flux-2-max";
3602
- readonly Flux2Pro: "flux-2-pro";
3603
- readonly Flux3Image: "flux-3-image";
3604
- readonly Flux3ImageKlein: "flux-3-image-klein";
3605
- readonly Flux3Max: "flux-3-max";
3606
- readonly Flux3MaxKeyframes: "flux-3-max-keyframes";
3607
- readonly Flux3Video: "flux-3-video";
3608
- readonly FluxKontextMax: "flux-kontext-max";
3609
- readonly FluxKontextPro: "flux-kontext-pro";
3610
- readonly FluxVideoEdit: "flux-video-edit";
3611
- readonly FluxVideoUpscale: "flux-video-upscale";
3612
- readonly Gemini25Flash: "gemini-2.5-flash";
3613
- readonly Gemini25FlashImage: "gemini-2.5-flash-image";
3614
- readonly Gemini25FlashTts: "gemini-2.5-flash-tts";
3615
- readonly Gemini25ProTts: "gemini-2.5-pro-tts";
3616
- readonly Gemini3Pro: "gemini-3-pro";
3617
- readonly Gemini3ProImage: "gemini-3-pro-image";
3618
- readonly Gemini31FlashImage: "gemini-3.1-flash-image";
3619
- readonly Gemini31FlashLiteImage: "gemini-3.1-flash-lite-image";
3620
- readonly Gemini35FlashLite: "gemini-3.5-flash-lite";
3621
- readonly Gemini36Flash: "gemini-3.6-flash";
3622
- readonly Gemini37Flash: "gemini-3.7-flash";
3623
- readonly Gemini38Flash: "gemini-3.8-flash";
3624
- readonly Gemini38FlashLiteTts: "gemini-3.8-flash-lite-tts";
3625
- readonly Gemini38FlashTts: "gemini-3.8-flash-tts";
3626
- readonly Gemini4Argon: "gemini-4-argon";
3627
- readonly GeminiNanoBanana21: "gemini-nano-banana-2.1";
3628
- readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
3629
- readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
3630
- readonly Gpt41Mini: "gpt-4.1-mini";
3631
- readonly Gpt41Nano: "gpt-4.1-nano";
3632
- readonly Gpt4o: "gpt-4o";
3633
- readonly Gpt4oMini: "gpt-4o-mini";
3634
- readonly Gpt5: "gpt-5";
3635
- readonly Gpt5Mini: "gpt-5-mini";
3636
- readonly Gpt51: "gpt-5.1";
3637
- readonly Gpt52: "gpt-5.2";
3638
- readonly Gpt55: "gpt-5.5";
3639
- readonly Gpt56Luna: "gpt-5.6-luna";
3640
- readonly Gpt56Sol: "gpt-5.6-sol";
3641
- readonly Gpt56Terra: "gpt-5.6-terra";
3642
- readonly Gpt6Astra: "gpt-6-astra";
3643
- readonly Gpt6Luna: "gpt-6-luna";
3644
- readonly Gpt6Sol: "gpt-6-sol";
3645
- readonly GptImage1: "gpt-image-1";
3646
- readonly GptImage15: "gpt-image-1.5";
3647
- readonly GptImage2: "gpt-image-2";
3648
- readonly GptImage25Flare: "gpt-image-2.5-flare";
3649
- readonly GptImage25Sunburst: "gpt-image-2.5-sunburst";
3650
- readonly Grok47: "grok-4.7";
3651
- readonly GrokEditVideo: "grok-edit-video";
3652
- readonly GrokExtendVideo: "grok-extend-video";
3653
- readonly GrokImagineImage: "grok-imagine-image";
3654
- readonly GrokImagineImage20: "grok-imagine-image-2.0";
3655
- readonly GrokImagineImageQuality: "grok-imagine-image-quality";
3656
- readonly GrokImagineVideo: "grok-imagine-video";
3657
- readonly GrokImagineVideo15: "grok-imagine-video-1.5";
3658
- readonly GrokImagineVideo15Lite: "grok-imagine-video-1.5-lite";
3659
- readonly GrokTts: "grok-tts";
3660
- readonly Hailuo02: "hailuo-02";
3661
- readonly Hailuo23: "hailuo-2.3";
3662
- readonly Hailuo23Fast: "hailuo-2.3-fast";
3663
- readonly Hailuo23FastPro: "hailuo-2.3-fast-pro";
3664
- readonly Hailuo23Pro: "hailuo-2.3-pro";
3665
- readonly Happyhorse10R2v: "happyhorse-1.0-r2v";
3666
- readonly Happyhorse10T2v: "happyhorse-1.0-t2v";
3667
- readonly Happyhorse10VideoEdit: "happyhorse-1.0-video-edit";
3668
- readonly Happyhorse11R2v: "happyhorse-1.1-r2v";
3669
- readonly Happyhorse11T2v: "happyhorse-1.1-t2v";
3670
- readonly HeygenTalkingPhoto: "heygen-talking-photo";
3671
- readonly HeygenVideo1: "heygen-video-1";
3672
- readonly HeygenVideoAvatar: "heygen-video-avatar";
3673
- readonly HunyuanV3: "hunyuan-v3";
3674
- readonly Ideogram45: "ideogram-4-5";
3675
- readonly Ideogram45PreciseEdit: "ideogram-4-5-precise-edit";
3676
- readonly IdeogramCharacter: "ideogram-character";
3677
- readonly IdeogramPImage: "ideogram-p-image";
3678
- readonly IdeogramV3: "ideogram-v3";
3679
- readonly IdeogramV4: "ideogram-v4";
3680
- readonly IdeogramVector1: "ideogram-vector-1";
3681
- readonly IdeogramVector1Vectorize: "ideogram-vector-1-vectorize";
3682
- readonly KimiK3: "kimi-k3";
3683
- readonly Kling30Image: "kling-3.0-image";
3684
- readonly KlingAvatar: "kling-avatar";
3685
- readonly KlingElements: "kling-elements";
3686
- readonly KlingMotionControl: "kling-motion-control";
3687
- readonly KlingMotionControlV3: "kling-motion-control-v3";
3688
- readonly KlingMultiImageV21: "kling-multi-image-v2-1";
3689
- readonly KlingO1Image: "kling-o1-image";
3690
- readonly KlingT2a: "kling-t2a";
3691
- readonly KlingV21Image: "kling-v2-1-image";
3692
- readonly KlingV26: "kling-v2-6";
3693
- readonly KlingV2a: "kling-v2a";
3694
- readonly KlingV3: "kling-v3";
3695
- readonly KlingV3Omni: "kling-v3-omni";
3696
- readonly KlingV3Turbo: "kling-v3-turbo";
3697
- readonly KlingV4: "kling-v4";
3698
- readonly KlingV4Omni: "kling-v4-omni";
3699
- readonly KlingVideoEffects: "kling-video-effects";
3700
- readonly KlingVideoO1: "kling-video-o1";
3701
- readonly Ltx23A2v: "ltx-2.3-a2v";
3702
- readonly LtxV23Extend: "ltx-v2.3-extend";
3703
- readonly LtxV23Fast: "ltx-v2.3-fast";
3704
- readonly LtxV23Outpaint: "ltx-v2.3-outpaint";
3705
- readonly LtxV23Pro: "ltx-v2.3-pro";
3706
- readonly LtxV23Reframe: "ltx-v2.3-reframe";
3707
- readonly LtxV23Retake: "ltx-v2.3-retake";
3708
- readonly LtxV25Fast: "ltx-v2.5-fast";
3709
- readonly LtxV25Pro: "ltx-v2.5-pro";
3710
- readonly LumaRay32: "luma-ray-3.2";
3711
- readonly LumaRay32Edit: "luma-ray-3.2-edit";
3712
- readonly LumaRay32ReframeVideo: "luma-ray-3.2-reframe-video";
3713
- readonly LumaUni1: "luma-uni-1";
3714
- readonly LumaUni1Max: "luma-uni-1-max";
3715
- readonly Lyria3Clip: "lyria-3-clip";
3716
- readonly Lyria3Pro: "lyria-3-pro";
3717
- readonly Lyria35: "lyria-3.5";
3718
- readonly MacaronCookie: "macaron-cookie";
3719
- readonly MinimaxH3: "minimax-h3";
3720
- readonly MinimaxH3ContextIr: "minimax-h3-context-ir";
3721
- readonly MinimaxH3Max: "minimax-h3-max";
3722
- readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
3723
- readonly MinimaxH3MaxExtend: "minimax-h3-max-extend";
3724
- readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
3725
- readonly MinimaxH3MaxRelight: "minimax-h3-max-relight";
3726
- readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
3727
- readonly MinimaxMusicV2: "minimax-music-v2";
3728
- readonly MinimaxMusicV3: "minimax-music-v3";
3729
- readonly MireloSfx20TextToAudio: "mirelo-sfx-2.0-text-to-audio";
3730
- readonly MireloSfx20VideoToAudio: "mirelo-sfx-2.0-video-to-audio";
3731
- readonly MireloSfx20VideoToVideo: "mirelo-sfx-2.0-video-to-video";
3732
- readonly MuseImage10: "muse-image-1.0";
3733
- readonly Ovi: "ovi";
3734
- readonly PicsartChangeBg: "picsart-change-bg";
3735
- readonly PicsartEnhance: "picsart-enhance";
3736
- readonly PicsartFlow: "picsart-flow";
3737
- readonly PicsartFlowVideo: "picsart-flow-video";
3738
- readonly PicsartFlux2Klein: "picsart-flux-2-klein";
3739
- readonly PicsartHidreamT2i: "picsart-hidream-t2i";
3740
- readonly PicsartQwenImageEdit: "picsart-qwen-image-edit";
3741
- readonly PicsartQwenMakeup: "picsart-qwen-makeup";
3742
- readonly PicsartSanaSprintV1: "picsart-sana-sprint-v1";
3743
- readonly PicsartSodV82: "picsart-sod-v8-2";
3744
- readonly PicsartVideography: "picsart-videography";
3745
- readonly PixverseC1: "pixverse-c1";
3746
- readonly PixverseC1Fusion: "pixverse-c1-fusion";
3747
- readonly PixverseC1Image: "pixverse-c1-image";
3748
- readonly PixverseV6: "pixverse-v6";
3749
- readonly PixverseV6Fusion: "pixverse-v6-fusion";
3750
- readonly PixverseV6Image: "pixverse-v6-image";
3751
- readonly QwenImage2: "qwen-image-2";
3752
- readonly QwenImage2Pro: "qwen-image-2-pro";
3753
- readonly QwenImage30: "qwen-image-3.0";
3754
- readonly QwenImage30Pro: "qwen-image-3.0-pro";
3755
- readonly RecraftCreativeUpscale: "recraft-creative-upscale";
3756
- readonly RecraftCrispUpscale: "recraft-crisp-upscale";
3757
- readonly RecraftExplore: "recraft-explore";
3758
- readonly RecraftExploreSimilar: "recraft-explore-similar";
3759
- readonly RecraftVectorize: "recraft-vectorize";
3760
- readonly Recraftv3: "recraftv3";
3761
- readonly Recraftv3Vector: "recraftv3_vector";
3762
- readonly Recraftv3ReplaceBg: "recraftv3-replace-bg";
3763
- readonly Recraftv4: "recraftv4";
3764
- readonly Recraftv41: "recraftv4_1";
3765
- readonly Recraftv41Flash: "recraftv4_1_flash";
3766
- readonly Recraftv41Pro: "recraftv4_1_pro";
3767
- readonly Recraftv41ProVector: "recraftv4_1_pro_vector";
3768
- readonly Recraftv41Utility: "recraftv4_1_utility";
3769
- readonly Recraftv41UtilityPro: "recraftv4_1_utility_pro";
3770
- readonly Recraftv41UtilityProVector: "recraftv4_1_utility_pro_vector";
3771
- readonly Recraftv41UtilityVector: "recraftv4_1_utility_vector";
3772
- readonly Recraftv41Vector: "recraftv4_1_vector";
3773
- readonly Recraftv4Pro: "recraftv4_pro";
3774
- readonly Recraftv4ProVector: "recraftv4_pro_vector";
3775
- readonly Recraftv4Styles: "recraftv4_styles";
3776
- readonly Recraftv4StylesPro: "recraftv4_styles_pro";
3777
- readonly Recraftv4StylesProVector: "recraftv4_styles_pro_vector";
3778
- readonly Recraftv4StylesVector: "recraftv4_styles_vector";
3779
- readonly Recraftv4Vector: "recraftv4_vector";
3780
- readonly Reve: "reve";
3781
- readonly RunwayAleph2: "runway-aleph2";
3782
- readonly RunwayAvatarVideo: "runway-avatar-video";
3783
- readonly RunwayGen3aTurbo: "runway-gen3a-turbo";
3784
- readonly RunwayGen4Aleph: "runway-gen4-aleph";
3785
- readonly RunwayGen4Ref: "runway-gen4-ref";
3786
- readonly RunwayGen45: "runway-gen4.5";
3787
- readonly Sam3Video: "sam-3-video";
3788
- readonly SeedAudio10: "seed-audio-1.0";
3789
- readonly SeedAudio10Multilingual: "seed-audio-1.0-multilingual";
3790
- readonly Seedance15Pro: "seedance-1.5-pro";
3791
- readonly Seedance20: "seedance-2.0";
3792
- readonly Seedance20Fast: "seedance-2.0-fast";
3793
- readonly Seedance20FastVideoEdit: "seedance-2.0-fast-video-edit";
3794
- readonly Seedance20FastVideoExtend: "seedance-2.0-fast-video-extend";
3795
- readonly Seedance20Mini: "seedance-2.0-mini";
3796
- readonly Seedance20MiniVideoEdit: "seedance-2.0-mini-video-edit";
3797
- readonly Seedance20MiniVideoExtend: "seedance-2.0-mini-video-extend";
3798
- readonly Seedance20VideoEdit: "seedance-2.0-video-edit";
3799
- readonly Seedance20VideoExtend: "seedance-2.0-video-extend";
3800
- readonly Seedance20WithoutModeration: "seedance-2.0-without-moderation";
3801
- readonly Seedance20WithoutModerationVideoEdit: "seedance-2.0-without-moderation-video-edit";
3802
- readonly Seedance20WithoutModerationVideoExtend: "seedance-2.0-without-moderation-video-extend";
3803
- readonly Seedance25: "seedance-2.5";
3804
- readonly Seedance25VideoEdit: "seedance-2.5-video-edit";
3805
- readonly Seedance25VideoExtend: "seedance-2.5-video-extend";
3806
- readonly Seedance25WithoutModeration: "seedance-2.5-without-moderation";
3807
- readonly Seedance25WithoutModerationVideoEdit: "seedance-2.5-without-moderation-video-edit";
3808
- readonly Seedance25WithoutModerationVideoExtend: "seedance-2.5-without-moderation-video-extend";
3809
- readonly SeedanceI2v: "seedance-i2v";
3810
- readonly Seedream40: "seedream-4.0";
3811
- readonly Seedream45: "seedream-4.5";
3812
- readonly Seedream47: "seedream-4.7";
3813
- readonly Seedream50Flash: "seedream-5.0-flash";
3814
- readonly Seedream50Lite: "seedream-5.0-lite";
3815
- readonly Seedream50Pro: "seedream-5.0-pro";
3816
- readonly StarSwirlAlpha: "star-swirl-alpha";
3817
- readonly TopazUpscaleImage: "topaz-upscale-image";
3818
- readonly TopazUpscaleVideo: "topaz-upscale-video";
3819
- readonly TypesafeEvaluate: "typesafe-evaluate";
3820
- readonly VeedFabricV1: "veed-fabric-v1";
3821
- readonly VeedFabricV1Fast: "veed-fabric-v1-fast";
3822
- readonly Veo31: "veo-3.1";
3823
- readonly Veo31Fast: "veo-3.1-fast";
3824
- readonly Veo31Lite: "veo-3.1-lite";
3825
- readonly Wan26Image: "wan-2.6-image";
3826
- readonly Wan27I2v: "wan-2.7-i2v";
3827
- readonly Wan27R2v: "wan-2.7-r2v";
3828
- readonly Wan27T2v: "wan-2.7-t2v";
3829
- readonly Wan27VideoEdit: "wan-2.7-video-edit";
3830
- readonly Wan30Video: "wan-3.0-video";
3831
- readonly Wan30VideoPrime: "wan-3.0-video-prime";
3832
- };
3833
-
3834
1468
  /**
3835
1469
  * Default voice ids for the catalog-bound TTS params. The voice LISTS are not
3836
1470
  * bundled: options come from the platform catalog tasks at runtime
@@ -3974,22 +1608,6 @@ declare function encodeDeepLinkPayload(modelId: string, context: Partial<Generat
3974
1608
  */
3975
1609
  declare function decodeDeepLinkPayload(encoded: string): DeepLinkResult | null;
3976
1610
 
3977
- /**
3978
- * All models from all vendors.
3979
- * @deprecated Use `catalog.all()` — the descriptor accessors are the supported
3980
- * surface; this raw array will be removed in the next major.
3981
- */
3982
- declare const ALL_MODELS: ModelDefinition[];
3983
- /**
3984
- * Models for a generation mode. By default returns only default-visible models
3985
- * (production / general-availability — preview and deprecated are hidden).
3986
- * `includeHidden = true` returns every model of the mode, bypassing all gates.
3987
- * For release-tier filtering use `catalog.find({ output, release })`.
3988
- * @deprecated Use `catalog.all().filter(m => m.mode === mode)` (or
3989
- * `catalog.find({ output })`) — removed in the next major.
3990
- */
3991
- declare const getModelsByMode: (mode: ModelDefinition["mode"], includeHidden?: boolean) => ModelDefinition[];
3992
-
3993
1611
  /**
3994
1612
  * Release tags shown by default in discovery. `preview` is stage-only and
3995
1613
  * opt-in (pass `release: ['preview', ...]`) — it is never in the default set.
@@ -4019,4 +1637,4 @@ declare const getModel: (id: string) => ModelDefinition | undefined;
4019
1637
  */
4020
1638
  declare const findModel: (ref: string) => ModelDefinition | undefined;
4021
1639
 
4022
- export { ALL_MODELS, type AiClient, ApiError, type ApiErrorCode, type ApiErrorInit, type ApiResponse, type ApiRunOptions, type ApiSchemas, type ApisClient, type AppIdentity, type AppType, type AuthenticatedFetch, type AvatarOption, type BooleanDescriptor, type BooleanEntry, type CatalogDescriptor, type CatalogEntry, type CatalogItem, type CatalogModel, type CatalogModelsResponse, type CatalogPage, type CatalogPageOptions, type CatalogParam, type CatalogPreview, type CatalogProvider, type CatalogQuery, type CatalogResult, type CatalogSource, type CatalogsClient, type CatalogsOptions, type ClientConfig, type CreditRange, type CreditRangeContext, type CreditTier, type CreditUsage, DEFAULT_VISIBLE_RELEASES, type DeepLinkResult, type DriveAttributes, type DriveClient, type DriveConfig, type DriveDraftInfo, type DriveFile, type DriveFileDetails, type DriveFolder, type DriveMediaItem, type DriveSaveResult, type EntryMeta, type EnumDescriptor, type EnumEntry, type EnumOption, type FileDescriptor, type FileEntry, type FlatParamEntry, type GenerateOptions, type GenerateResult, type GenerateResultItem, type GenerateResultItemMetadata, type GenerateTextResult, type GenerationContext, type GenerationEvent, GenerationEventType, type GenerationFile, type GenerationMode, type GenerationOptions, type GenerationProgress, type GenerationProvenance, type InitModelCatalogOptions, type JsonModelId, type ListOptions, type MediaModelId, type MediaTypeFilter, Model, type ModelCatalogFilters, type ModelDefinition, type ModelDescriptor, type ModelFilter, type ModelInput, type ModelInputById, type ModelMeta, type ModelParams, type ModelParamsAccessor, Models, type ModelsCommand, type ModelsGenAIOptions, type ObjectDescriptor, type ObjectEntry, type OptionsResult, type ParamDescriptor, type ParamEntry, type ParamOption, type PayloadDriveFolderOptions, type PayloadDriveOptions, type PayloadInputsTransformationOptions, type PricingOptions, type ProviderInfo, type RangeDescriptor, type RangeEntry, type ReleaseTag, type RunResponse, type SaveParams, type SdkMode, type SdkPayload, type SdkTransport, type SeedanceDraftTask, type TextDescriptor, type TextEntry, type TextModelId, type TextModelInputById, type ToolUsage, type TransportPollOptions, type TransportResult, type TypedModelId, type UnknownDescriptor, type UnknownEntry, type UserReaction, type ValidationResult, type VoiceOption, type WorkflowJobHandle, type WorkflowSubmitRequest, buildFilename, buildGenerationAttributes, catalog, createClient, decodeDeepLinkPayload, encodeDeepLinkPayload, expectedOutputFormat, findModel, getModel, getModelsByMode, getVoiceById, inferResourceType, isVisibleForReleases, parseGeneration, releaseOf, resolveExtension, toAvatarOption, toVoiceOption };
1640
+ export { type AiClient, ApiError, type ApiErrorCode, type ApiErrorInit, type ApiResponse, type ApiRunOptions, type ApiSchemas, type ApisClient, type AppIdentity, type AppType, type AuthenticatedFetch, type AvatarOption, type BooleanDescriptor, type BooleanEntry, type CatalogDescriptor, type CatalogEntry, type CatalogItem, type CatalogModel, type CatalogModelsResponse, type CatalogPage, type CatalogPageOptions, type CatalogParam, type CatalogPreview, type CatalogProvider, type CatalogQuery, type CatalogResult, type CatalogSource, type CatalogsClient, type CatalogsOptions, type ClientConfig, type CreditRange, type CreditRangeContext, type CreditTier, type CreditUsage, DEFAULT_VISIBLE_RELEASES, type DeepLinkResult, type DriveAttributes, type DriveClient, type DriveConfig, type DriveDraftInfo, type DriveFile, type DriveFileDetails, type DriveFolder, type DriveMediaItem, type DriveSaveResult, type EntryMeta, type EnumDescriptor, type EnumEntry, type EnumOption, type FileDescriptor, type FileEntry, type FlatParamEntry, type GenerateOptions, type GenerateResult, type GenerateResultItem, type GenerateResultItemMetadata, type GenerateTextResult, type GenerationContext, type GenerationEvent, GenerationEventType, type GenerationFile, type GenerationMode, type GenerationOptions, type GenerationProgress, type GenerationProvenance, type InitModelCatalogOptions, type ListOptions, type MediaModelId, type MediaTypeFilter, Model, type ModelCatalogFilters, type ModelDefinition, type ModelDescriptor, type ModelFilter, type ModelMeta, type ModelParams, type ModelParamsAccessor, type ModelsCommand, type ModelsGenAIOptions, type ObjectDescriptor, type ObjectEntry, type OptionsResult, type ParamDescriptor, type ParamEntry, type ParamOption, type PayloadDriveFolderOptions, type PayloadDriveOptions, type PayloadInputsTransformationOptions, type PricingOptions, type ProviderInfo, type RangeDescriptor, type RangeEntry, type ReleaseTag, type RunResponse, type SaveParams, type SdkPayload, type SdkTransport, type SeedanceDraftTask, type TextDescriptor, type TextEntry, type ToolUsage, type TransportPollOptions, type TransportResult, type UnknownDescriptor, type UnknownEntry, type UserReaction, type ValidationResult, type VoiceOption, type WorkflowJobHandle, type WorkflowSubmitRequest, buildFilename, buildGenerationAttributes, catalog, createClient, decodeDeepLinkPayload, encodeDeepLinkPayload, expectedOutputFormat, findModel, getModel, getVoiceById, inferResourceType, isVisibleForReleases, parseGeneration, releaseOf, resolveExtension, toAvatarOption, toVoiceOption };