@picsart/ai-sdk 6.55.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,2089 +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-m3": {
1364
- prompt: string;
1365
- imageUrls?: string[];
1366
- };
1367
- "minimax-m3.1-flash": {
1368
- prompt: string;
1369
- imageUrls?: string[];
1370
- thinking?: "low" | "medium" | "high";
1371
- };
1372
- "minimax-music-v2": {
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
- "minimax-music-v3": {
1382
- prompt: string;
1383
- lyricsPrompt?: string;
1384
- lyricsOptimizer?: boolean;
1385
- isInstrumental?: boolean;
1386
- sampleRate?: 16000 | 24000 | 32000 | 44100;
1387
- bitrate?: 32000 | 64000 | 128000 | 256000;
1388
- format?: "mp3" | "wav" | "pcm";
1389
- };
1390
- "mirelo-sfx-2.0-text-to-audio": {
1391
- prompt: string;
1392
- negativePrompt?: string;
1393
- duration?: number;
1394
- count?: 1 | 2 | 3 | 4;
1395
- format?: "wav" | "mp3" | "aac" | "flac";
1396
- bitrateKbps?: number;
1397
- seed?: number;
1398
- };
1399
- "mirelo-sfx-2.0-video-to-audio": {
1400
- videoUrl: string;
1401
- prompt?: string;
1402
- negativePrompt?: string;
1403
- preserveSpeech?: boolean;
1404
- duration?: number;
1405
- count?: 1 | 2 | 3 | 4;
1406
- format?: "wav" | "mp3" | "aac" | "flac";
1407
- bitrateKbps?: number;
1408
- seed?: number;
1409
- };
1410
- "mirelo-sfx-2.0-video-to-video": {
1411
- videoUrl: string;
1412
- prompt?: string;
1413
- negativePrompt?: string;
1414
- preserveSpeech?: boolean;
1415
- duration?: number;
1416
- count?: 1 | 2 | 3 | 4;
1417
- seed?: number;
1418
- };
1419
- "muse-image-1.0": {
1420
- prompt: string;
1421
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
1422
- reasoningStrength?: "low" | "high";
1423
- moderation?: "auto" | "low" | "none";
1424
- enableImageSearch?: boolean;
1425
- enableWebSearch?: boolean;
1426
- enableShell?: boolean;
1427
- outputFormat?: "png" | "jpeg" | "webp";
1428
- count?: 1 | 2 | 4 | 6 | 8 | 10;
1429
- imageUrls?: string[];
1430
- };
1431
- "ovi": {
1432
- prompt: string;
1433
- size?: "9:16" | "16:9" | "1:1" | "9:16+" | "16:9+" | "2:5" | "5:2";
1434
- imageUrls?: string[];
1435
- };
1436
- "picsart-change-bg": {
1437
- imageUrls: [string, ...string[]];
1438
- prompt: string;
1439
- };
1440
- "picsart-enhance": {
1441
- imageUrls: [string, ...string[]];
1442
- };
1443
- "picsart-flow": {
1444
- templateId: string;
1445
- imageUrls: [string, ...string[]];
1446
- };
1447
- "picsart-flow-video": {
1448
- templateId: string;
1449
- imageUrls: [string, ...string[]];
1450
- };
1451
- "picsart-flux-2-klein": {
1452
- prompt: string;
1453
- aspectRatio?: "1:1" | "5:3" | "3:5" | "4:3" | "3:4";
1454
- imageUrls?: string[];
1455
- };
1456
- "picsart-hidream-t2i": {
1457
- prompt: string;
1458
- aspectRatio?: "1:1" | "5:3" | "3:5" | "4:3" | "3:4";
1459
- };
1460
- "picsart-qwen-image-edit": {
1461
- imageUrls: [string, ...string[]];
1462
- prompt: string;
1463
- negativePrompt?: string;
1464
- };
1465
- "picsart-qwen-makeup": {
1466
- imageUrls: [string, ...string[]];
1467
- prompt: string;
1468
- negativePrompt?: string;
1469
- };
1470
- "picsart-sana-sprint-v1": {
1471
- prompt: string;
1472
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1473
- };
1474
- "picsart-sod-v8-2": {
1475
- imageUrls: [string, ...string[]];
1476
- };
1477
- "picsart-videography": {
1478
- imageUrls: [string, ...string[]];
1479
- };
1480
- "pixverse-c1": {
1481
- prompt: string;
1482
- quality?: "360p" | "540p" | "720p" | "1080p";
1483
- duration?: number;
1484
- generateAudio?: boolean;
1485
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1486
- };
1487
- "pixverse-c1-fusion": {
1488
- prompt: string;
1489
- quality?: "360p" | "540p" | "720p" | "1080p";
1490
- duration?: number;
1491
- generateAudio?: boolean;
1492
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1493
- imageUrls: [string, ...string[]];
1494
- };
1495
- "pixverse-c1-image": {
1496
- prompt: string;
1497
- quality?: "360p" | "540p" | "720p" | "1080p";
1498
- duration?: number;
1499
- generateAudio?: boolean;
1500
- imageUrls: [string, ...string[]];
1501
- };
1502
- "pixverse-v6": {
1503
- prompt: string;
1504
- quality?: "360p" | "540p" | "720p" | "1080p";
1505
- duration?: number;
1506
- generateAudio?: boolean;
1507
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1508
- };
1509
- "pixverse-v6-fusion": {
1510
- prompt: string;
1511
- quality?: "360p" | "540p" | "720p" | "1080p";
1512
- duration?: number;
1513
- generateAudio?: boolean;
1514
- aspectRatio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "2:3" | "3:2" | "21:9";
1515
- imageUrls: [string, ...string[]];
1516
- };
1517
- "pixverse-v6-image": {
1518
- prompt: string;
1519
- quality?: "360p" | "540p" | "720p" | "1080p";
1520
- duration?: number;
1521
- generateAudio?: boolean;
1522
- imageUrls: [string, ...string[]];
1523
- };
1524
- "qwen-image-2": {
1525
- prompt: string;
1526
- count?: 1 | 2 | 4 | 6 | 8 | 10;
1527
- imageUrls?: string[];
1528
- };
1529
- "qwen-image-2-pro": {
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
- };
1538
- "qwen-image-3.0": {
1539
- prompt: string;
1540
- negativePrompt?: string;
1541
- resolution?: "2048x2048" | "2688x1536" | "1536x2688" | "2368x1728" | "1728x2368";
1542
- count?: 1 | 2 | 4 | 6;
1543
- enhancePrompt?: boolean;
1544
- imageUrls?: string[];
1545
- seed?: number;
1546
- promptExtendMode?: "direct" | "agent";
1547
- enableThinking?: boolean;
1548
- };
1549
- "qwen-image-3.0-pro": {
1550
- prompt: string;
1551
- negativePrompt?: string;
1552
- resolution?: "2048x2048" | "2688x1536" | "1536x2688" | "2368x1728" | "1728x2368";
1553
- count?: 1 | 2 | 4 | 6;
1554
- enhancePrompt?: boolean;
1555
- imageUrls?: string[];
1556
- seed?: number;
1557
- promptExtendMode?: "direct" | "agent";
1558
- enableThinking?: boolean;
1559
- };
1560
- "recraft-creative-upscale": {
1561
- imageUrls: [string, ...string[]];
1562
- };
1563
- "recraft-crisp-upscale": {
1564
- imageUrls: [string, ...string[]];
1565
- };
1566
- "recraft-explore": {
1567
- prompt: string;
1568
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1569
- };
1570
- "recraft-explore-similar": {
1571
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1572
- sourceImageId: string;
1573
- similarity?: number;
1574
- };
1575
- "recraft-vectorize": {
1576
- prompt?: string;
1577
- imageUrls: [string, ...string[]];
1578
- };
1579
- "recraftv3": {
1580
- prompt: string;
1581
- style?: "realistic_image" | "digital_illustration" | "vector_illustration" | "any";
1582
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1583
- count?: 1 | 2 | 4 | 6;
1584
- negativePrompt?: string;
1585
- imageUrls?: string[];
1586
- imageWeight?: number;
1587
- };
1588
- "recraftv3_vector": {
1589
- prompt: string;
1590
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1591
- count?: 1 | 2 | 4 | 6;
1592
- negativePrompt?: string;
1593
- };
1594
- "recraftv3-replace-bg": {
1595
- prompt?: string;
1596
- imageUrls: [string, ...string[]];
1597
- };
1598
- "recraftv4": {
1599
- prompt: string;
1600
- style?: "raster" | "vector_illustration";
1601
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1602
- count?: 1 | 2 | 4 | 6;
1603
- imageUrls?: string[];
1604
- imageWeight?: number;
1605
- };
1606
- "recraftv4_1": {
1607
- prompt: string;
1608
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1609
- count?: 1 | 2 | 4 | 6;
1610
- imageUrls?: string[];
1611
- imageWeight?: number;
1612
- };
1613
- "recraftv4_1_flash": {
1614
- prompt: string;
1615
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1616
- count?: 1 | 2 | 4 | 6;
1617
- };
1618
- "recraftv4_1_pro": {
1619
- prompt: string;
1620
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1621
- count?: 1 | 2 | 4 | 6;
1622
- imageUrls?: string[];
1623
- imageWeight?: number;
1624
- };
1625
- "recraftv4_1_pro_vector": {
1626
- prompt: string;
1627
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1628
- count?: 1 | 2 | 4 | 6;
1629
- imageUrls?: string[];
1630
- imageWeight?: number;
1631
- };
1632
- "recraftv4_1_utility": {
1633
- prompt: string;
1634
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1635
- count?: 1 | 2 | 4 | 6;
1636
- imageUrls?: string[];
1637
- imageWeight?: number;
1638
- };
1639
- "recraftv4_1_utility_pro": {
1640
- prompt: string;
1641
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1642
- count?: 1 | 2 | 4 | 6;
1643
- imageUrls?: string[];
1644
- imageWeight?: number;
1645
- };
1646
- "recraftv4_1_utility_pro_vector": {
1647
- prompt: string;
1648
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1649
- count?: 1 | 2 | 4 | 6;
1650
- imageUrls?: string[];
1651
- imageWeight?: number;
1652
- };
1653
- "recraftv4_1_utility_vector": {
1654
- prompt: string;
1655
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1656
- count?: 1 | 2 | 4 | 6;
1657
- imageUrls?: string[];
1658
- imageWeight?: number;
1659
- };
1660
- "recraftv4_1_vector": {
1661
- prompt: string;
1662
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1663
- count?: 1 | 2 | 4 | 6;
1664
- imageUrls?: string[];
1665
- imageWeight?: number;
1666
- };
1667
- "recraftv4_pro": {
1668
- prompt: string;
1669
- style?: "raster" | "vector_illustration";
1670
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1671
- count?: 1 | 2 | 4 | 6;
1672
- imageUrls?: string[];
1673
- imageWeight?: number;
1674
- };
1675
- "recraftv4_pro_vector": {
1676
- prompt: string;
1677
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1678
- count?: 1 | 2 | 4 | 6;
1679
- imageUrls?: string[];
1680
- imageWeight?: number;
1681
- };
1682
- "recraftv4_styles": {
1683
- prompt: string;
1684
- imageUrls: [string, ...string[]];
1685
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1686
- count?: 1 | 2 | 4 | 6;
1687
- };
1688
- "recraftv4_styles_pro": {
1689
- prompt: string;
1690
- imageUrls: [string, ...string[]];
1691
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1692
- count?: 1 | 2 | 4 | 6;
1693
- };
1694
- "recraftv4_styles_pro_vector": {
1695
- prompt: string;
1696
- imageUrls: [string, ...string[]];
1697
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1698
- count?: 1 | 2 | 4 | 6;
1699
- };
1700
- "recraftv4_styles_vector": {
1701
- prompt: string;
1702
- imageUrls: [string, ...string[]];
1703
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1704
- count?: 1 | 2 | 4 | 6;
1705
- };
1706
- "recraftv4_vector": {
1707
- prompt: string;
1708
- aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1709
- count?: 1 | 2 | 4 | 6;
1710
- imageUrls?: string[];
1711
- imageWeight?: number;
1712
- };
1713
- "reve": {
1714
- prompt: string;
1715
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3";
1716
- count?: 1 | 2 | 4;
1717
- imageUrls?: string[];
1718
- };
1719
- "runway-aleph2": {
1720
- prompt: string;
1721
- videoUrl: string;
1722
- startFrame?: string;
1723
- endFrame?: string;
1724
- };
1725
- "runway-avatar-video": {
1726
- style?: "game-character" | "music-superstar" | "game-character-man" | "cat-character" | "influencer" | "tennis-coach" | "human-resource" | "fashion-designer" | "cooking-teacher";
1727
- voiceId?: string;
1728
- prompt?: string;
1729
- audioUrl?: string;
1730
- };
1731
- "runway-gen3a-turbo": {
1732
- prompt: string;
1733
- duration?: 5 | 10;
1734
- aspectRatio?: "16:9" | "9:16";
1735
- startFrame: string;
1736
- endFrame?: string;
1737
- };
1738
- "runway-gen4-aleph": {
1739
- prompt: string;
1740
- videoUrl: string;
1741
- };
1742
- "runway-gen4-ref": {
1743
- prompt: string;
1744
- aspectRatio?: "16:9" | "9:16";
1745
- imageUrls: [string, ...string[]];
1746
- };
1747
- "runway-gen4.5": {
1748
- prompt: string;
1749
- duration?: 5 | 8 | 10;
1750
- aspectRatio?: "16:9" | "9:16";
1751
- imageUrls?: string[];
1752
- };
1753
- "sam-3-video": {
1754
- prompt: string;
1755
- videoUrl: string;
1756
- detectionThreshold?: number;
1757
- applyMask?: boolean;
1758
- outputFormat?: "mp4" | "webm";
1759
- };
1760
- "seed-audio-1.0": {
1761
- prompt: string;
1762
- voiceId?: string;
1763
- audioUrls?: string[];
1764
- imageUrls?: string[];
1765
- format?: "wav" | "mp3" | "pcm" | "ogg_opus";
1766
- sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000;
1767
- speechRate?: number;
1768
- loudnessRate?: number;
1769
- pitchRate?: number;
1770
- aigcWatermark?: boolean;
1771
- };
1772
- "seed-audio-1.0-multilingual": {
1773
- prompt: string;
1774
- voiceId?: string;
1775
- audioUrls?: string[];
1776
- imageUrls?: string[];
1777
- format?: "wav" | "mp3" | "pcm" | "ogg_opus";
1778
- sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000;
1779
- speechRate?: number;
1780
- loudnessRate?: number;
1781
- pitchRate?: number;
1782
- aigcWatermark?: boolean;
1783
- };
1784
- "seedance-1.5-pro": {
1785
- prompt: string;
1786
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1787
- resolution?: "480p" | "720p";
1788
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
1789
- generateAudio?: boolean;
1790
- startFrame?: string;
1791
- endFrame?: string;
1792
- };
1793
- "seedance-2.0": {
1794
- prompt: string;
1795
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1796
- resolution?: "480p" | "720p" | "1080p" | "4k";
1797
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1798
- generateAudio?: boolean;
1799
- returnLastFrame?: boolean;
1800
- imageUrls?: string[];
1801
- videoUrls?: string[];
1802
- audioUrls?: string[];
1803
- startFrame?: string;
1804
- endFrame?: string;
1805
- };
1806
- "seedance-2.0-fast": {
1807
- prompt: string;
1808
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1809
- resolution?: "480p" | "720p";
1810
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1811
- generateAudio?: boolean;
1812
- returnLastFrame?: boolean;
1813
- imageUrls?: string[];
1814
- videoUrls?: string[];
1815
- audioUrls?: string[];
1816
- startFrame?: string;
1817
- endFrame?: string;
1818
- };
1819
- "seedance-2.0-fast-video-edit": {
1820
- prompt: string;
1821
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1822
- resolution?: "480p" | "720p";
1823
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1824
- generateAudio?: boolean;
1825
- returnLastFrame?: boolean;
1826
- videoUrl: string;
1827
- imageUrls?: string[];
1828
- };
1829
- "seedance-2.0-fast-video-extend": {
1830
- prompt: string;
1831
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1832
- resolution?: "480p" | "720p";
1833
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1834
- generateAudio?: boolean;
1835
- videoUrls: [string, ...string[]];
1836
- };
1837
- "seedance-2.0-mini": {
1838
- prompt: string;
1839
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1840
- resolution?: "480p" | "720p";
1841
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1842
- generateAudio?: boolean;
1843
- returnLastFrame?: boolean;
1844
- imageUrls?: string[];
1845
- videoUrls?: string[];
1846
- audioUrls?: string[];
1847
- startFrame?: string;
1848
- endFrame?: string;
1849
- };
1850
- "seedance-2.0-mini-video-edit": {
1851
- prompt: string;
1852
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1853
- resolution?: "480p" | "720p";
1854
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1855
- generateAudio?: boolean;
1856
- returnLastFrame?: boolean;
1857
- videoUrl: string;
1858
- imageUrls?: string[];
1859
- };
1860
- "seedance-2.0-mini-video-extend": {
1861
- prompt: string;
1862
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1863
- resolution?: "480p" | "720p";
1864
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1865
- generateAudio?: boolean;
1866
- videoUrls: [string, ...string[]];
1867
- };
1868
- "seedance-2.0-video-edit": {
1869
- prompt: string;
1870
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1871
- resolution?: "480p" | "720p" | "1080p" | "4k";
1872
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1873
- generateAudio?: boolean;
1874
- returnLastFrame?: boolean;
1875
- videoUrl: string;
1876
- imageUrls?: string[];
1877
- };
1878
- "seedance-2.0-video-extend": {
1879
- prompt: string;
1880
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1881
- resolution?: "480p" | "720p" | "1080p" | "4k";
1882
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1883
- generateAudio?: boolean;
1884
- videoUrls: [string, ...string[]];
1885
- };
1886
- "seedance-2.0-without-moderation": {
1887
- prompt: string;
1888
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1889
- resolution?: "480p" | "720p" | "1080p" | "4k";
1890
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1891
- generateAudio?: boolean;
1892
- returnLastFrame?: boolean;
1893
- imageUrls?: string[];
1894
- videoUrls?: string[];
1895
- audioUrls?: string[];
1896
- startFrame?: string;
1897
- endFrame?: string;
1898
- };
1899
- "seedance-2.0-without-moderation-video-edit": {
1900
- prompt: string;
1901
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1902
- resolution?: "480p" | "720p" | "1080p" | "4k";
1903
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1904
- generateAudio?: boolean;
1905
- returnLastFrame?: boolean;
1906
- videoUrl: string;
1907
- imageUrls?: string[];
1908
- };
1909
- "seedance-2.0-without-moderation-video-extend": {
1910
- prompt: string;
1911
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1912
- resolution?: "480p" | "720p" | "1080p" | "4k";
1913
- duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1914
- generateAudio?: boolean;
1915
- videoUrls: [string, ...string[]];
1916
- };
1917
- "seedance-2.5": {
1918
- prompt?: string;
1919
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1920
- resolution?: "480p" | "720p" | "1080p";
1921
- 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;
1922
- generateAudio?: boolean;
1923
- returnLastFrame?: boolean;
1924
- outputFormat?: "mp4" | "mov";
1925
- colorDepth?: "10bit" | "8bit";
1926
- draft?: boolean;
1927
- draftTask?: {
1928
- id: string;
1929
- };
1930
- omniReferenceTaskType?: "auto" | "reference" | "edit" | "extend";
1931
- imageUrls?: string[];
1932
- videoUrls?: string[];
1933
- audioUrls?: string[];
1934
- startFrame?: string;
1935
- endFrame?: string;
1936
- };
1937
- "seedance-2.5-video-edit": {
1938
- prompt: string;
1939
- aspectRatio?: "adaptive";
1940
- resolution?: "480p" | "720p" | "1080p";
1941
- generateAudio?: boolean;
1942
- returnLastFrame?: boolean;
1943
- outputFormat?: "mp4" | "mov";
1944
- colorDepth?: "10bit" | "8bit";
1945
- draft?: boolean;
1946
- videoUrl: string;
1947
- imageUrls?: string[];
1948
- };
1949
- "seedance-2.5-video-extend": {
1950
- prompt: string;
1951
- aspectRatio?: "adaptive";
1952
- resolution?: "480p" | "720p" | "1080p";
1953
- 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;
1954
- generateAudio?: boolean;
1955
- outputFormat?: "mp4" | "mov";
1956
- colorDepth?: "10bit" | "8bit";
1957
- draft?: boolean;
1958
- videoUrls: [string, ...string[]];
1959
- };
1960
- "seedance-2.5-without-moderation": {
1961
- prompt?: string;
1962
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
1963
- resolution?: "480p" | "720p" | "1080p";
1964
- 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;
1965
- generateAudio?: boolean;
1966
- returnLastFrame?: boolean;
1967
- outputFormat?: "mp4" | "mov";
1968
- colorDepth?: "10bit" | "8bit";
1969
- draft?: boolean;
1970
- draftTask?: {
1971
- id: string;
1972
- };
1973
- omniReferenceTaskType?: "auto" | "reference" | "edit" | "extend";
1974
- imageUrls?: string[];
1975
- videoUrls?: string[];
1976
- audioUrls?: string[];
1977
- startFrame?: string;
1978
- endFrame?: string;
1979
- };
1980
- "seedance-2.5-without-moderation-video-edit": {
1981
- prompt: string;
1982
- aspectRatio?: "adaptive";
1983
- resolution?: "480p" | "720p" | "1080p";
1984
- generateAudio?: boolean;
1985
- returnLastFrame?: boolean;
1986
- outputFormat?: "mp4" | "mov";
1987
- colorDepth?: "10bit" | "8bit";
1988
- draft?: boolean;
1989
- videoUrl: string;
1990
- imageUrls?: string[];
1991
- };
1992
- "seedance-2.5-without-moderation-video-extend": {
1993
- prompt: string;
1994
- aspectRatio?: "adaptive";
1995
- resolution?: "480p" | "720p" | "1080p";
1996
- 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;
1997
- generateAudio?: boolean;
1998
- outputFormat?: "mp4" | "mov";
1999
- colorDepth?: "10bit" | "8bit";
2000
- draft?: boolean;
2001
- videoUrls: [string, ...string[]];
2002
- };
2003
- "seedance-i2v": {
2004
- prompt: string;
2005
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
2006
- resolution?: "480p" | "720p" | "1080p";
2007
- duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
2008
- startFrame: string;
2009
- };
2010
- "seedream-4.0": {
2011
- resolution?: "1K" | "2K" | "4K";
2012
- prompt: string;
2013
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2014
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2015
- imageUrls?: string[];
2016
- negativePrompt?: string;
2017
- };
2018
- "seedream-4.5": {
2019
- resolution?: "2K" | "4K";
2020
- prompt: string;
2021
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2022
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2023
- imageUrls?: string[];
2024
- negativePrompt?: string;
2025
- };
2026
- "seedream-4.7": {
2027
- resolution?: "1K" | "2K" | "4K";
2028
- prompt: string;
2029
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2030
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2031
- imageUrls?: string[];
2032
- negativePrompt?: string;
2033
- };
2034
- "seedream-5.0-flash": {
2035
- resolution?: "1K" | "2K";
2036
- prompt: string;
2037
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2038
- imageUrls?: string[];
2039
- negativePrompt?: string;
2040
- };
2041
- "seedream-5.0-lite": {
2042
- resolution?: "2K" | "3K";
2043
- prompt: string;
2044
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2045
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2046
- imageUrls?: string[];
2047
- negativePrompt?: string;
2048
- };
2049
- "seedream-5.0-pro": {
2050
- resolution?: "1K" | "2K";
2051
- prompt: string;
2052
- aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
2053
- imageUrls?: string[];
2054
- negativePrompt?: string;
2055
- };
2056
- "star-swirl-alpha": {
2057
- prompt: string;
2058
- aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
2059
- resolution?: "1K" | "2K" | "4K";
2060
- size?: string;
2061
- reasoningEffort?: "max" | "xhigh" | "high" | "medium" | "low";
2062
- temperature?: number;
2063
- background?: "opaque" | "transparent";
2064
- outputFormat?: "png" | "jpeg" | "webp";
2065
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2066
- imageUrls?: string[];
2067
- };
2068
- "topaz-upscale-image": {
2069
- imageUrls: [string, ...string[]];
2070
- model?: "Standard V2" | "Standard MAX" | "Low Resolution V2" | "High Fidelity V2" | "CGI" | "Text Refine" | "Redefine" | "Recovery" | "Recovery V2" | "Wonder" | "Wonder 3";
2071
- };
2072
- "topaz-upscale-video": {
2073
- videoUrl: string;
2074
- 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";
2075
- };
2076
- "typesafe-evaluate": {
2077
- state: string;
2078
- questions: Record<string, {
2079
- type: "noul" | "choice" | "score";
2080
- instructions: unknown;
2081
- } & Record<string, unknown>>;
2082
- };
2083
- "veed-fabric-v1": {
2084
- prompt?: string;
2085
- resolution?: "480p" | "720p";
2086
- imageUrls: [string, ...string[]];
2087
- audioUrl: string;
2088
- };
2089
- "veed-fabric-v1-fast": {
2090
- prompt?: string;
2091
- resolution?: "480p" | "720p";
2092
- imageUrls: [string, ...string[]];
2093
- audioUrl: string;
2094
- };
2095
- "veo-3.1": {
2096
- prompt: string;
2097
- aspectRatio?: "16:9" | "9:16";
2098
- duration?: 4 | 6 | 8;
2099
- resolution?: "720p" | "1080p" | "4k";
2100
- imageUrls?: string[];
2101
- generateAudio?: boolean;
2102
- negativePrompt?: string;
2103
- startFrame?: string;
2104
- endFrame?: string;
2105
- };
2106
- "veo-3.1-fast": {
2107
- prompt: string;
2108
- aspectRatio?: "16:9" | "9:16";
2109
- duration?: 4 | 6 | 8;
2110
- resolution?: "720p" | "1080p" | "4k";
2111
- imageUrls?: string[];
2112
- generateAudio?: boolean;
2113
- negativePrompt?: string;
2114
- startFrame?: string;
2115
- endFrame?: string;
2116
- };
2117
- "veo-3.1-lite": {
2118
- prompt: string;
2119
- aspectRatio?: "16:9" | "9:16";
2120
- duration?: 4 | 6 | 8;
2121
- resolution?: "720p" | "1080p";
2122
- startFrame?: string;
2123
- };
2124
- "wan-2.6-image": {
2125
- prompt: string;
2126
- count?: 1 | 2 | 4 | 6 | 8 | 10;
2127
- negativePrompt?: string;
2128
- };
2129
- "wan-2.7-i2v": {
2130
- prompt?: string;
2131
- duration?: 5 | 10 | 15;
2132
- resolution?: "720P" | "1080P";
2133
- negativePrompt?: string;
2134
- enhancePrompt?: boolean;
2135
- startFrame: string;
2136
- endFrame?: string;
2137
- audioUrl?: string;
2138
- seed?: number;
2139
- };
2140
- "wan-2.7-r2v": {
2141
- prompt: string;
2142
- duration?: 5 | 10;
2143
- resolution?: "720P" | "1080P";
2144
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
2145
- negativePrompt?: string;
2146
- imageUrls: [string, ...string[]];
2147
- videoUrl: string;
2148
- seed?: number;
2149
- };
2150
- "wan-2.7-t2v": {
2151
- prompt: string;
2152
- duration?: 5 | 10 | 15;
2153
- resolution?: "720P" | "1080P";
2154
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
2155
- negativePrompt?: string;
2156
- enhancePrompt?: boolean;
2157
- audioUrl?: string;
2158
- startFrame?: string;
2159
- seed?: number;
2160
- };
2161
- "wan-2.7-video-edit": {
2162
- prompt?: string;
2163
- resolution?: "720P" | "1080P";
2164
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
2165
- negativePrompt?: string;
2166
- videoUrl: string;
2167
- imageUrls?: string[];
2168
- audioSetting?: "auto" | "origin";
2169
- duration?: number;
2170
- seed?: number;
2171
- };
2172
- "wan-3.0-video": {
2173
- prompt?: string;
2174
- duration?: -1 | 5 | 10 | 15 | 30;
2175
- resolution?: "480P" | "720P" | "1080P";
2176
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive";
2177
- generateAudio?: boolean;
2178
- startFrame?: string;
2179
- endFrame?: string;
2180
- imageUrls?: string[];
2181
- videoUrls?: string[];
2182
- audioUrls?: string[];
2183
- enableThinking?: boolean;
2184
- watermark?: boolean;
2185
- seed?: number;
2186
- };
2187
- "wan-3.0-video-prime": {
2188
- prompt?: string;
2189
- duration?: -1 | 5 | 10 | 15 | 30;
2190
- resolution?: "480P" | "720P" | "1080P";
2191
- aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive";
2192
- generateAudio?: boolean;
2193
- startFrame?: string;
2194
- endFrame?: string;
2195
- imageUrls?: string[];
2196
- videoUrls?: string[];
2197
- audioUrls?: string[];
2198
- enableThinking?: boolean;
2199
- watermark?: boolean;
2200
- seed?: number;
2201
- };
2202
- };
2203
- type TypedModelId = keyof ModelInputById;
2204
- type ModelInput<M extends TypedModelId> = ModelInputById[M];
2205
- /** IDs of text-generation (LLM) models — narrows generateText(). */
2206
- 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" | "minimax-m3" | "minimax-m3.1-flash";
2207
- type TextModelInputById = Pick<ModelInputById, TextModelId>;
2208
- /** IDs of structured-output (json-mode) models — narrows run()'s result type. */
2209
- type JsonModelId = "typesafe-evaluate";
2210
-
2211
129
  interface ParamSchema {
2212
130
  type: 'string' | 'number' | 'boolean' | 'file';
2213
131
  enum?: (string | number)[];
@@ -2534,7 +452,6 @@ interface ModelParamsAccessor {
2534
452
  toSchema(): ModelParamSchema;
2535
453
  transferValues(prev: Record<string, unknown>): Record<string, unknown>;
2536
454
  }
2537
-
2538
455
  /** Credit range for a model — min/max credits across all pricing variants. */
2539
456
  interface CreditRange {
2540
457
  min: number;
@@ -2571,7 +488,7 @@ interface ValidationResult {
2571
488
  errors?: string[];
2572
489
  }
2573
490
  interface ModelDescriptor {
2574
- readonly id: TypedModelId;
491
+ readonly id: string;
2575
492
  readonly name: string;
2576
493
  params(): ModelParamsAccessor;
2577
494
  /** Params with constraint effects pre-applied (disabled options, hidden params). */
@@ -3098,8 +1015,8 @@ interface ApisClient {
3098
1015
  * creation.
3099
1016
  */
3100
1017
 
3101
- /** Model id with autocomplete that still accepts arbitrary strings. */
3102
- type ModelId = TypedModelId | (string & {});
1018
+ /** Model id — any string; concrete ids come from the loaded catalog. */
1019
+ type ModelId = string;
3103
1020
  /** One fetched page. Pass `nextCursor` back to load the next one. */
3104
1021
  interface CatalogPage {
3105
1022
  items: CatalogItem[];
@@ -3230,34 +1147,8 @@ interface AppIdentity {
3230
1147
  id: string;
3231
1148
  type: AppType;
3232
1149
  }
3233
- /**
3234
- * How the client sources its model catalog and builds generation requests.
3235
- * - `'static'` (default) — the bundled catalog: per-model workflows and local
3236
- * payload builders, exactly as before.
3237
- * - `'dynamic'` — generation routes through the models-hub `v1/models`
3238
- * workflow (the server builds the vendor payload), and the model catalog is
3239
- * loaded from the backend via {@link AiClient.initModelCatalog}. Until that
3240
- * load completes, the sync accessors (`Model()`, `catalog.*`) throw
3241
- * `ApiError` 409 `catalog_not_loaded`; `generate()`/`submit()` never wait.
3242
- *
3243
- * The loaded catalog is process-global (`Model()` and `catalog.*` are
3244
- * module-level): one catalog source per process, last install wins.
3245
- *
3246
- * **One catalog MODE per process, too — do not mix static and dynamic
3247
- * clients.** Creating a dynamic client flips the process-global catalog:
3248
- * a static client in the same process then throws `catalog_not_loaded` from
3249
- * its sync accessors until the load lands, and once the loaded catalog is
3250
- * installed its generation pipeline would resolve definitions that carry no
3251
- * payload builders (builders are code and never ride the wire) — producing
3252
- * invalid vendor payloads. Run static clients in a separate process. Static
3253
- * mode is the compatibility path and is slated for removal once all
3254
- * consumers run dynamic.
3255
- */
3256
- type SdkMode = 'static' | 'dynamic';
3257
1150
  /** Settings that apply whichever transport serves the client. */
3258
1151
  interface ClientConfigBase {
3259
- /** Catalog/generation mode — see {@link SdkMode}. Default: `'static'`. */
3260
- mode?: SdkMode;
3261
1152
  /** Enable Drive integration — auto-save generations to a Drive folder. */
3262
1153
  drive?: DriveConfig;
3263
1154
  /**
@@ -3458,32 +1349,45 @@ interface InitModelCatalogOptions {
3458
1349
  /** Restrict what the catalog load requests — mode, provider, release, deprecated, search. */
3459
1350
  filtersOptions?: ModelCatalogFilters;
3460
1351
  }
3461
- /** Non-text (image/video/audio) model IDs — the media generation surface. */
3462
- type MediaModelId = Exclude<TypedModelId, TextModelId | JsonModelId>;
3463
- /** 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. */
3464
1358
  interface AiClient {
3465
1359
  /**
3466
1360
  * Run any model by id and get the task result back, generically — the
3467
1361
  * model-id counterpart of {@link ApisClient.run}. Works on every model:
3468
- * builds and validates the payload from paramConfig, executes the workflow,
1362
+ * models-hub builds and validates the payload, executes the workflow,
3469
1363
  * applies the model's `outputSchema` when declared, and answers the task
3470
1364
  * result as-is (no media-URL/text extraction, no Drive save). The only
3471
1365
  * generation surface for json-mode (structured-output) models. Type the
3472
1366
  * result via `R` (mirrors `ai.apis.run()`): `ai.run<MyResult>(id, params)`.
3473
1367
  */
3474
- 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>>;
3475
1369
  /** Generate content using a media model. Text/LLM models use generateText(). */
3476
- 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>;
3477
1373
  /** Generate text using an LLM model. Returns the generated text plus the raw response. */
3478
- 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>;
3479
1377
  /** Get exact credit cost for a model with specific parameters. */
3480
- 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>;
3481
1381
  /** What the model's /options endpoint answers for these params — credits, how they were derived, and anything else it reports. */
3482
- 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>;
3483
1385
  /** Submit a generation job and get its generation id back. Media models only. */
3484
- 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>;
3485
1389
  /** Poll a submitted job until it completes and return the parsed result. Media models only. */
3486
- result(model: MediaModelId, generationId: string, options?: GenerationOptions): Promise<GenerateResult>;
1390
+ result(model: string, generationId: string, options?: GenerationOptions): Promise<GenerateResult>;
3487
1391
  /**
3488
1392
  * Subscribe to live updates for a submitted job. Yields one
3489
1393
  * {@link GenerationEvent} per poll; the terminal `generation.completed`
@@ -3492,25 +1396,20 @@ interface AiClient {
3492
1396
  * exceptions.
3493
1397
  */
3494
1398
  subscribe(model: MediaModelId, generationId: string, options?: GenerationOptions): AsyncGenerator<GenerationEvent, void, void>;
3495
- /** Build the vendor-specific payload for a model without submitting. Static mode only. */
3496
- buildPayload<M extends TypedModelId>(model: M, params: ModelInputById[M]): Record<string, unknown>;
3497
1399
  /**
3498
- * Dynamic mode only: fetch the model catalog from models-hub and install it
3499
- * as the active catalog — afterwards `Model()`, `catalog.*` and
3500
- * `ai.validate()` serve the loaded data. The ONLY trigger for the load
3501
- * (`createClient` never starts it). Idempotent: concurrent/repeat calls
3502
- * share one in-flight load; a failed load may be retried. Rejects with
3503
- * `ApiError` 400 `invalid_mode` on a static client, and 409
3504
- * `catalog_conflict` when a different url/filters catalog is already loaded
3505
- * 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.
3506
1406
  */
3507
1407
  initModelCatalog(options?: InitModelCatalogOptions): Promise<void>;
3508
1408
  /**
3509
1409
  * Validate params against the model's descriptors without generating.
3510
- * Static mode: resolves immediately off the bundled catalog. Dynamic mode:
3511
- * awaits the catalog load started by {@link initModelCatalog} — rejects
3512
- * with `ApiError` 409 `catalog_not_loaded` when it was never called.
3513
- * 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`.
3514
1413
  */
3515
1414
  validate(model: string, params: Record<string, unknown>): Promise<ValidationResult>;
3516
1415
  /**
@@ -3547,17 +1446,15 @@ interface ModelsCommand {
3547
1446
  /**
3548
1447
  * Create an AI SDK client.
3549
1448
  *
3550
- * @example Simple — pass an authenticated fetch:
3551
- * ```ts
3552
- * const ai = createClient({ fetch: myAuthenticatedFetch });
3553
- * ```
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).
3554
1453
  *
3555
- * @example With Drive — auto-save generations:
1454
+ * @example Simple — pass an authenticated fetch:
3556
1455
  * ```ts
3557
- * const ai = createClient({
3558
- * fetch: myAuthenticatedFetch,
3559
- * drive: { folder: 'AI Playground' },
3560
- * });
1456
+ * const ai = createClient({ fetch: myAuthenticatedFetch, apiUrl });
1457
+ * await ai.initModelCatalog();
3561
1458
  * ```
3562
1459
  *
3563
1460
  * @example With your own transport — the SDK stops talking to the workflows
@@ -3568,280 +1465,6 @@ interface ModelsCommand {
3568
1465
  */
3569
1466
  declare function createClient(config: ClientConfig): AiClient;
3570
1467
 
3571
- declare const Models: {
3572
- readonly AsyncFlashV1: "async-flash-v1";
3573
- readonly AuroraImgAlpha: "aurora-img-alpha";
3574
- readonly BytedanceOmnihumanV15: "bytedance-omnihuman-v1.5";
3575
- readonly BytedanceOmnihumanV20: "bytedance-omnihuman-v2.0";
3576
- readonly BytedanceVideoEnhance: "bytedance-video-enhance";
3577
- readonly BytedanceVideoUpscaler: "bytedance-video-upscaler";
3578
- readonly CaptionsaiVideoCaptions: "captionsai-video-captions";
3579
- readonly ClaudeFable5: "claude-fable-5";
3580
- readonly ClaudeFable51: "claude-fable-5-1";
3581
- readonly ClaudeHaiku45: "claude-haiku-4-5";
3582
- readonly ClaudeHaiku55: "claude-haiku-5-5";
3583
- readonly ClaudeOpus48: "claude-opus-4-8";
3584
- readonly ClaudeOpus5: "claude-opus-5";
3585
- readonly ClaudeSonnet45: "claude-sonnet-4-5";
3586
- readonly ClaudeSonnet46: "claude-sonnet-4-6";
3587
- readonly ClaudeSonnet5: "claude-sonnet-5";
3588
- readonly CreatifyAurora: "creatify-aurora";
3589
- readonly CreatifyBoreal: "creatify-boreal";
3590
- readonly DepthAnythingVideo: "depth-anything-video";
3591
- readonly ElevenAudioIsolation: "eleven-audio-isolation";
3592
- readonly ElevenDialogueV4: "eleven-dialogue-v4";
3593
- readonly ElevenDubbing: "eleven-dubbing";
3594
- readonly ElevenMultilingualStsV2: "eleven-multilingual-sts-v2";
3595
- readonly ElevenMultilingualV2: "eleven-multilingual-v2";
3596
- readonly ElevenSpeechToText: "eleven-speech-to-text";
3597
- readonly ElevenStsV2: "eleven-sts-v2";
3598
- readonly ElevenTextToDialogue: "eleven-text-to-dialogue";
3599
- readonly ElevenV3: "eleven-v3";
3600
- readonly ElevenV4: "eleven-v4";
3601
- readonly ElevenV4Turbo: "eleven-v4-turbo";
3602
- readonly ElevenVideoToMusic: "eleven-video-to-music";
3603
- readonly ElevenVoiceCreate: "eleven-voice-create";
3604
- readonly ElevenVoiceDesignV2: "eleven-voice-design-v2";
3605
- readonly ElevenVoiceDesignV3: "eleven-voice-design-v3";
3606
- readonly ElevenVoiceRemix: "eleven-voice-remix";
3607
- readonly ElevenlabsMusicV2: "elevenlabs-music-v2";
3608
- readonly ElevenlabsSfx: "elevenlabs-sfx";
3609
- readonly Flux2Flex: "flux-2-flex";
3610
- readonly Flux2Max: "flux-2-max";
3611
- readonly Flux2Pro: "flux-2-pro";
3612
- readonly Flux3Image: "flux-3-image";
3613
- readonly Flux3ImageKlein: "flux-3-image-klein";
3614
- readonly Flux3Max: "flux-3-max";
3615
- readonly Flux3MaxKeyframes: "flux-3-max-keyframes";
3616
- readonly Flux3Video: "flux-3-video";
3617
- readonly FluxKontextMax: "flux-kontext-max";
3618
- readonly FluxKontextPro: "flux-kontext-pro";
3619
- readonly FluxVideoEdit: "flux-video-edit";
3620
- readonly FluxVideoUpscale: "flux-video-upscale";
3621
- readonly Gemini25Flash: "gemini-2.5-flash";
3622
- readonly Gemini25FlashImage: "gemini-2.5-flash-image";
3623
- readonly Gemini25FlashTts: "gemini-2.5-flash-tts";
3624
- readonly Gemini25ProTts: "gemini-2.5-pro-tts";
3625
- readonly Gemini3Pro: "gemini-3-pro";
3626
- readonly Gemini3ProImage: "gemini-3-pro-image";
3627
- readonly Gemini31FlashImage: "gemini-3.1-flash-image";
3628
- readonly Gemini31FlashLiteImage: "gemini-3.1-flash-lite-image";
3629
- readonly Gemini35FlashLite: "gemini-3.5-flash-lite";
3630
- readonly Gemini36Flash: "gemini-3.6-flash";
3631
- readonly Gemini37Flash: "gemini-3.7-flash";
3632
- readonly Gemini38Flash: "gemini-3.8-flash";
3633
- readonly Gemini38FlashLiteTts: "gemini-3.8-flash-lite-tts";
3634
- readonly Gemini38FlashTts: "gemini-3.8-flash-tts";
3635
- readonly Gemini4Argon: "gemini-4-argon";
3636
- readonly GeminiNanoBanana21: "gemini-nano-banana-2.1";
3637
- readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
3638
- readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
3639
- readonly Gpt41Mini: "gpt-4.1-mini";
3640
- readonly Gpt41Nano: "gpt-4.1-nano";
3641
- readonly Gpt4o: "gpt-4o";
3642
- readonly Gpt4oMini: "gpt-4o-mini";
3643
- readonly Gpt5: "gpt-5";
3644
- readonly Gpt5Mini: "gpt-5-mini";
3645
- readonly Gpt51: "gpt-5.1";
3646
- readonly Gpt52: "gpt-5.2";
3647
- readonly Gpt55: "gpt-5.5";
3648
- readonly Gpt56Luna: "gpt-5.6-luna";
3649
- readonly Gpt56Sol: "gpt-5.6-sol";
3650
- readonly Gpt56Terra: "gpt-5.6-terra";
3651
- readonly Gpt6Astra: "gpt-6-astra";
3652
- readonly Gpt6Luna: "gpt-6-luna";
3653
- readonly Gpt6Sol: "gpt-6-sol";
3654
- readonly GptImage1: "gpt-image-1";
3655
- readonly GptImage15: "gpt-image-1.5";
3656
- readonly GptImage2: "gpt-image-2";
3657
- readonly GptImage25Flare: "gpt-image-2.5-flare";
3658
- readonly GptImage25Sunburst: "gpt-image-2.5-sunburst";
3659
- readonly Grok47: "grok-4.7";
3660
- readonly GrokEditVideo: "grok-edit-video";
3661
- readonly GrokExtendVideo: "grok-extend-video";
3662
- readonly GrokImagineImage: "grok-imagine-image";
3663
- readonly GrokImagineImage20: "grok-imagine-image-2.0";
3664
- readonly GrokImagineImageQuality: "grok-imagine-image-quality";
3665
- readonly GrokImagineVideo: "grok-imagine-video";
3666
- readonly GrokImagineVideo15: "grok-imagine-video-1.5";
3667
- readonly GrokImagineVideo15Lite: "grok-imagine-video-1.5-lite";
3668
- readonly GrokTts: "grok-tts";
3669
- readonly Hailuo02: "hailuo-02";
3670
- readonly Hailuo23: "hailuo-2.3";
3671
- readonly Hailuo23Fast: "hailuo-2.3-fast";
3672
- readonly Hailuo23FastPro: "hailuo-2.3-fast-pro";
3673
- readonly Hailuo23Pro: "hailuo-2.3-pro";
3674
- readonly Happyhorse10R2v: "happyhorse-1.0-r2v";
3675
- readonly Happyhorse10T2v: "happyhorse-1.0-t2v";
3676
- readonly Happyhorse10VideoEdit: "happyhorse-1.0-video-edit";
3677
- readonly Happyhorse11R2v: "happyhorse-1.1-r2v";
3678
- readonly Happyhorse11T2v: "happyhorse-1.1-t2v";
3679
- readonly HeygenTalkingPhoto: "heygen-talking-photo";
3680
- readonly HeygenVideo1: "heygen-video-1";
3681
- readonly HeygenVideoAvatar: "heygen-video-avatar";
3682
- readonly HunyuanV3: "hunyuan-v3";
3683
- readonly Ideogram45: "ideogram-4-5";
3684
- readonly Ideogram45PreciseEdit: "ideogram-4-5-precise-edit";
3685
- readonly IdeogramCharacter: "ideogram-character";
3686
- readonly IdeogramPImage: "ideogram-p-image";
3687
- readonly IdeogramV3: "ideogram-v3";
3688
- readonly IdeogramV4: "ideogram-v4";
3689
- readonly IdeogramVector1: "ideogram-vector-1";
3690
- readonly IdeogramVector1Vectorize: "ideogram-vector-1-vectorize";
3691
- readonly KimiK3: "kimi-k3";
3692
- readonly Kling30Image: "kling-3.0-image";
3693
- readonly KlingAvatar: "kling-avatar";
3694
- readonly KlingElements: "kling-elements";
3695
- readonly KlingMotionControl: "kling-motion-control";
3696
- readonly KlingMotionControlV3: "kling-motion-control-v3";
3697
- readonly KlingMultiImageV21: "kling-multi-image-v2-1";
3698
- readonly KlingO1Image: "kling-o1-image";
3699
- readonly KlingT2a: "kling-t2a";
3700
- readonly KlingV21Image: "kling-v2-1-image";
3701
- readonly KlingV26: "kling-v2-6";
3702
- readonly KlingV2a: "kling-v2a";
3703
- readonly KlingV3: "kling-v3";
3704
- readonly KlingV3Omni: "kling-v3-omni";
3705
- readonly KlingV3Turbo: "kling-v3-turbo";
3706
- readonly KlingV4: "kling-v4";
3707
- readonly KlingV4Omni: "kling-v4-omni";
3708
- readonly KlingVideoEffects: "kling-video-effects";
3709
- readonly KlingVideoO1: "kling-video-o1";
3710
- readonly Ltx23A2v: "ltx-2.3-a2v";
3711
- readonly LtxV23Extend: "ltx-v2.3-extend";
3712
- readonly LtxV23Fast: "ltx-v2.3-fast";
3713
- readonly LtxV23Outpaint: "ltx-v2.3-outpaint";
3714
- readonly LtxV23Pro: "ltx-v2.3-pro";
3715
- readonly LtxV23Reframe: "ltx-v2.3-reframe";
3716
- readonly LtxV23Retake: "ltx-v2.3-retake";
3717
- readonly LtxV25Fast: "ltx-v2.5-fast";
3718
- readonly LtxV25Pro: "ltx-v2.5-pro";
3719
- readonly LumaRay32: "luma-ray-3.2";
3720
- readonly LumaRay32Edit: "luma-ray-3.2-edit";
3721
- readonly LumaRay32ReframeVideo: "luma-ray-3.2-reframe-video";
3722
- readonly LumaUni1: "luma-uni-1";
3723
- readonly LumaUni1Max: "luma-uni-1-max";
3724
- readonly Lyria3Clip: "lyria-3-clip";
3725
- readonly Lyria3Pro: "lyria-3-pro";
3726
- readonly Lyria35: "lyria-3.5";
3727
- readonly MacaronCookie: "macaron-cookie";
3728
- readonly MinimaxH3: "minimax-h3";
3729
- readonly MinimaxH3ContextIr: "minimax-h3-context-ir";
3730
- readonly MinimaxH3Max: "minimax-h3-max";
3731
- readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
3732
- readonly MinimaxH3MaxExtend: "minimax-h3-max-extend";
3733
- readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
3734
- readonly MinimaxH3MaxRelight: "minimax-h3-max-relight";
3735
- readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
3736
- readonly MinimaxM3: "minimax-m3";
3737
- readonly MinimaxM31Flash: "minimax-m3.1-flash";
3738
- readonly MinimaxMusicV2: "minimax-music-v2";
3739
- readonly MinimaxMusicV3: "minimax-music-v3";
3740
- readonly MireloSfx20TextToAudio: "mirelo-sfx-2.0-text-to-audio";
3741
- readonly MireloSfx20VideoToAudio: "mirelo-sfx-2.0-video-to-audio";
3742
- readonly MireloSfx20VideoToVideo: "mirelo-sfx-2.0-video-to-video";
3743
- readonly MuseImage10: "muse-image-1.0";
3744
- readonly Ovi: "ovi";
3745
- readonly PicsartChangeBg: "picsart-change-bg";
3746
- readonly PicsartEnhance: "picsart-enhance";
3747
- readonly PicsartFlow: "picsart-flow";
3748
- readonly PicsartFlowVideo: "picsart-flow-video";
3749
- readonly PicsartFlux2Klein: "picsart-flux-2-klein";
3750
- readonly PicsartHidreamT2i: "picsart-hidream-t2i";
3751
- readonly PicsartQwenImageEdit: "picsart-qwen-image-edit";
3752
- readonly PicsartQwenMakeup: "picsart-qwen-makeup";
3753
- readonly PicsartSanaSprintV1: "picsart-sana-sprint-v1";
3754
- readonly PicsartSodV82: "picsart-sod-v8-2";
3755
- readonly PicsartVideography: "picsart-videography";
3756
- readonly PixverseC1: "pixverse-c1";
3757
- readonly PixverseC1Fusion: "pixverse-c1-fusion";
3758
- readonly PixverseC1Image: "pixverse-c1-image";
3759
- readonly PixverseV6: "pixverse-v6";
3760
- readonly PixverseV6Fusion: "pixverse-v6-fusion";
3761
- readonly PixverseV6Image: "pixverse-v6-image";
3762
- readonly QwenImage2: "qwen-image-2";
3763
- readonly QwenImage2Pro: "qwen-image-2-pro";
3764
- readonly QwenImage30: "qwen-image-3.0";
3765
- readonly QwenImage30Pro: "qwen-image-3.0-pro";
3766
- readonly RecraftCreativeUpscale: "recraft-creative-upscale";
3767
- readonly RecraftCrispUpscale: "recraft-crisp-upscale";
3768
- readonly RecraftExplore: "recraft-explore";
3769
- readonly RecraftExploreSimilar: "recraft-explore-similar";
3770
- readonly RecraftVectorize: "recraft-vectorize";
3771
- readonly Recraftv3: "recraftv3";
3772
- readonly Recraftv3Vector: "recraftv3_vector";
3773
- readonly Recraftv3ReplaceBg: "recraftv3-replace-bg";
3774
- readonly Recraftv4: "recraftv4";
3775
- readonly Recraftv41: "recraftv4_1";
3776
- readonly Recraftv41Flash: "recraftv4_1_flash";
3777
- readonly Recraftv41Pro: "recraftv4_1_pro";
3778
- readonly Recraftv41ProVector: "recraftv4_1_pro_vector";
3779
- readonly Recraftv41Utility: "recraftv4_1_utility";
3780
- readonly Recraftv41UtilityPro: "recraftv4_1_utility_pro";
3781
- readonly Recraftv41UtilityProVector: "recraftv4_1_utility_pro_vector";
3782
- readonly Recraftv41UtilityVector: "recraftv4_1_utility_vector";
3783
- readonly Recraftv41Vector: "recraftv4_1_vector";
3784
- readonly Recraftv4Pro: "recraftv4_pro";
3785
- readonly Recraftv4ProVector: "recraftv4_pro_vector";
3786
- readonly Recraftv4Styles: "recraftv4_styles";
3787
- readonly Recraftv4StylesPro: "recraftv4_styles_pro";
3788
- readonly Recraftv4StylesProVector: "recraftv4_styles_pro_vector";
3789
- readonly Recraftv4StylesVector: "recraftv4_styles_vector";
3790
- readonly Recraftv4Vector: "recraftv4_vector";
3791
- readonly Reve: "reve";
3792
- readonly RunwayAleph2: "runway-aleph2";
3793
- readonly RunwayAvatarVideo: "runway-avatar-video";
3794
- readonly RunwayGen3aTurbo: "runway-gen3a-turbo";
3795
- readonly RunwayGen4Aleph: "runway-gen4-aleph";
3796
- readonly RunwayGen4Ref: "runway-gen4-ref";
3797
- readonly RunwayGen45: "runway-gen4.5";
3798
- readonly Sam3Video: "sam-3-video";
3799
- readonly SeedAudio10: "seed-audio-1.0";
3800
- readonly SeedAudio10Multilingual: "seed-audio-1.0-multilingual";
3801
- readonly Seedance15Pro: "seedance-1.5-pro";
3802
- readonly Seedance20: "seedance-2.0";
3803
- readonly Seedance20Fast: "seedance-2.0-fast";
3804
- readonly Seedance20FastVideoEdit: "seedance-2.0-fast-video-edit";
3805
- readonly Seedance20FastVideoExtend: "seedance-2.0-fast-video-extend";
3806
- readonly Seedance20Mini: "seedance-2.0-mini";
3807
- readonly Seedance20MiniVideoEdit: "seedance-2.0-mini-video-edit";
3808
- readonly Seedance20MiniVideoExtend: "seedance-2.0-mini-video-extend";
3809
- readonly Seedance20VideoEdit: "seedance-2.0-video-edit";
3810
- readonly Seedance20VideoExtend: "seedance-2.0-video-extend";
3811
- readonly Seedance20WithoutModeration: "seedance-2.0-without-moderation";
3812
- readonly Seedance20WithoutModerationVideoEdit: "seedance-2.0-without-moderation-video-edit";
3813
- readonly Seedance20WithoutModerationVideoExtend: "seedance-2.0-without-moderation-video-extend";
3814
- readonly Seedance25: "seedance-2.5";
3815
- readonly Seedance25VideoEdit: "seedance-2.5-video-edit";
3816
- readonly Seedance25VideoExtend: "seedance-2.5-video-extend";
3817
- readonly Seedance25WithoutModeration: "seedance-2.5-without-moderation";
3818
- readonly Seedance25WithoutModerationVideoEdit: "seedance-2.5-without-moderation-video-edit";
3819
- readonly Seedance25WithoutModerationVideoExtend: "seedance-2.5-without-moderation-video-extend";
3820
- readonly SeedanceI2v: "seedance-i2v";
3821
- readonly Seedream40: "seedream-4.0";
3822
- readonly Seedream45: "seedream-4.5";
3823
- readonly Seedream47: "seedream-4.7";
3824
- readonly Seedream50Flash: "seedream-5.0-flash";
3825
- readonly Seedream50Lite: "seedream-5.0-lite";
3826
- readonly Seedream50Pro: "seedream-5.0-pro";
3827
- readonly StarSwirlAlpha: "star-swirl-alpha";
3828
- readonly TopazUpscaleImage: "topaz-upscale-image";
3829
- readonly TopazUpscaleVideo: "topaz-upscale-video";
3830
- readonly TypesafeEvaluate: "typesafe-evaluate";
3831
- readonly VeedFabricV1: "veed-fabric-v1";
3832
- readonly VeedFabricV1Fast: "veed-fabric-v1-fast";
3833
- readonly Veo31: "veo-3.1";
3834
- readonly Veo31Fast: "veo-3.1-fast";
3835
- readonly Veo31Lite: "veo-3.1-lite";
3836
- readonly Wan26Image: "wan-2.6-image";
3837
- readonly Wan27I2v: "wan-2.7-i2v";
3838
- readonly Wan27R2v: "wan-2.7-r2v";
3839
- readonly Wan27T2v: "wan-2.7-t2v";
3840
- readonly Wan27VideoEdit: "wan-2.7-video-edit";
3841
- readonly Wan30Video: "wan-3.0-video";
3842
- readonly Wan30VideoPrime: "wan-3.0-video-prime";
3843
- };
3844
-
3845
1468
  /**
3846
1469
  * Default voice ids for the catalog-bound TTS params. The voice LISTS are not
3847
1470
  * bundled: options come from the platform catalog tasks at runtime
@@ -3985,22 +1608,6 @@ declare function encodeDeepLinkPayload(modelId: string, context: Partial<Generat
3985
1608
  */
3986
1609
  declare function decodeDeepLinkPayload(encoded: string): DeepLinkResult | null;
3987
1610
 
3988
- /**
3989
- * All models from all vendors.
3990
- * @deprecated Use `catalog.all()` — the descriptor accessors are the supported
3991
- * surface; this raw array will be removed in the next major.
3992
- */
3993
- declare const ALL_MODELS: ModelDefinition[];
3994
- /**
3995
- * Models for a generation mode. By default returns only default-visible models
3996
- * (production / general-availability — preview and deprecated are hidden).
3997
- * `includeHidden = true` returns every model of the mode, bypassing all gates.
3998
- * For release-tier filtering use `catalog.find({ output, release })`.
3999
- * @deprecated Use `catalog.all().filter(m => m.mode === mode)` (or
4000
- * `catalog.find({ output })`) — removed in the next major.
4001
- */
4002
- declare const getModelsByMode: (mode: ModelDefinition["mode"], includeHidden?: boolean) => ModelDefinition[];
4003
-
4004
1611
  /**
4005
1612
  * Release tags shown by default in discovery. `preview` is stage-only and
4006
1613
  * opt-in (pass `release: ['preview', ...]`) — it is never in the default set.
@@ -4030,4 +1637,4 @@ declare const getModel: (id: string) => ModelDefinition | undefined;
4030
1637
  */
4031
1638
  declare const findModel: (ref: string) => ModelDefinition | undefined;
4032
1639
 
4033
- 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 };