runapi-suno 0.5.1 → 0.6.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/runapi/suno/resources/add_instrumental.rb +0 -7
  3. data/lib/runapi/suno/resources/add_samples.rb +0 -4
  4. data/lib/runapi/suno/resources/add_vocals.rb +0 -7
  5. data/lib/runapi/suno/resources/audio_action.rb +0 -1
  6. data/lib/runapi/suno/resources/audio_exports.rb +0 -7
  7. data/lib/runapi/suno/resources/blend_lyrics.rb +0 -1
  8. data/lib/runapi/suno/resources/boost_style.rb +0 -7
  9. data/lib/runapi/suno/resources/check_voice.rb +0 -7
  10. data/lib/runapi/suno/resources/convert_audio.rb +0 -7
  11. data/lib/runapi/suno/resources/cover_audio.rb +0 -7
  12. data/lib/runapi/suno/resources/create_mashup.rb +0 -7
  13. data/lib/runapi/suno/resources/extend_music.rb +0 -7
  14. data/lib/runapi/suno/resources/generate_artwork.rb +0 -7
  15. data/lib/runapi/suno/resources/generate_lyrics.rb +0 -7
  16. data/lib/runapi/suno/resources/generate_midi.rb +0 -7
  17. data/lib/runapi/suno/resources/generate_persona.rb +0 -7
  18. data/lib/runapi/suno/resources/generate_voice.rb +0 -7
  19. data/lib/runapi/suno/resources/get_timestamped_lyrics.rb +0 -7
  20. data/lib/runapi/suno/resources/music_from_sample.rb +0 -7
  21. data/lib/runapi/suno/resources/music_visualizations.rb +0 -7
  22. data/lib/runapi/suno/resources/personas.rb +0 -9
  23. data/lib/runapi/suno/resources/regenerate_validation_phrase.rb +0 -7
  24. data/lib/runapi/suno/resources/replace_section.rb +0 -7
  25. data/lib/runapi/suno/resources/separate_audio_stems.rb +0 -7
  26. data/lib/runapi/suno/resources/style_expansions.rb +0 -7
  27. data/lib/runapi/suno/resources/text_to_music.rb +0 -7
  28. data/lib/runapi/suno/resources/text_to_sound.rb +0 -7
  29. data/lib/runapi/suno/resources/timestamped_lyrics.rb +0 -7
  30. data/lib/runapi/suno/resources/visualize_music.rb +0 -7
  31. data/lib/runapi/suno/resources/voice_to_validation_phrase.rb +0 -7
  32. data/lib/runapi/suno/resources/voices.rb +0 -7
  33. data/lib/runapi/suno.rb +0 -2
  34. metadata +3 -5
  35. data/lib/runapi/suno/contract_gen.rb +0 -2797
  36. data/lib/runapi/suno/validators.rb +0 -232
@@ -1,2797 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RunApi
4
- module Suno
5
- CONTRACT = {
6
- "add-instrumental" => {
7
- "models" => ["suno-v4.5-plus", "suno-v5", "suno-v5.5"],
8
- "fields_by_model" => {
9
- "suno-v4.5-plus" => {
10
- "audio_weight" => {
11
- "min" => 0,
12
- "max" => 1
13
- },
14
- "model" => {
15
- "required" => true
16
- },
17
- "negative_tags" => {
18
- "required" => true,
19
- "max" => 200,
20
- "length" => true
21
- },
22
- "style_weight" => {
23
- "min" => 0,
24
- "max" => 1
25
- },
26
- "tags" => {
27
- "required" => true,
28
- "max" => 1000,
29
- "length" => true
30
- },
31
- "title" => {
32
- "required" => true,
33
- "max" => 80,
34
- "length" => true
35
- },
36
- "upload_url" => {
37
- "required" => true
38
- },
39
- "vocal_gender" => {
40
- "enum" => ["male", "female"]
41
- },
42
- "weirdness_constraint" => {
43
- "min" => 0,
44
- "max" => 1
45
- }
46
- },
47
- "suno-v5" => {
48
- "audio_weight" => {
49
- "min" => 0,
50
- "max" => 1
51
- },
52
- "model" => {
53
- "required" => true
54
- },
55
- "negative_tags" => {
56
- "required" => true,
57
- "max" => 200,
58
- "length" => true
59
- },
60
- "style_weight" => {
61
- "min" => 0,
62
- "max" => 1
63
- },
64
- "tags" => {
65
- "required" => true,
66
- "max" => 1000,
67
- "length" => true
68
- },
69
- "title" => {
70
- "required" => true,
71
- "max" => 80,
72
- "length" => true
73
- },
74
- "upload_url" => {
75
- "required" => true
76
- },
77
- "vocal_gender" => {
78
- "enum" => ["male", "female"]
79
- },
80
- "weirdness_constraint" => {
81
- "min" => 0,
82
- "max" => 1
83
- }
84
- },
85
- "suno-v5.5" => {
86
- "audio_weight" => {
87
- "min" => 0,
88
- "max" => 1
89
- },
90
- "model" => {
91
- "required" => true
92
- },
93
- "negative_tags" => {
94
- "required" => true,
95
- "max" => 200,
96
- "length" => true
97
- },
98
- "style_weight" => {
99
- "min" => 0,
100
- "max" => 1
101
- },
102
- "tags" => {
103
- "required" => true,
104
- "max" => 1000,
105
- "length" => true
106
- },
107
- "title" => {
108
- "required" => true,
109
- "max" => 80,
110
- "length" => true
111
- },
112
- "upload_url" => {
113
- "required" => true
114
- },
115
- "vocal_gender" => {
116
- "enum" => ["male", "female"]
117
- },
118
- "weirdness_constraint" => {
119
- "min" => 0,
120
- "max" => 1
121
- }
122
- }
123
- }
124
- },
125
- "add-samples" => {
126
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-plus", "suno-v5", "suno-v5.5"],
127
- "fields_by_model" => {
128
- "suno-v4" => {
129
- "audio_url" => {
130
- "required" => true
131
- },
132
- "end_seconds" => {
133
- "required" => true,
134
- "min" => 0
135
- },
136
- "model" => {
137
- "required" => true
138
- },
139
- "start_seconds" => {
140
- "required" => true,
141
- "min" => 0
142
- }
143
- },
144
- "suno-v4.5" => {
145
- "audio_url" => {
146
- "required" => true
147
- },
148
- "end_seconds" => {
149
- "required" => true,
150
- "min" => 0
151
- },
152
- "model" => {
153
- "required" => true
154
- },
155
- "start_seconds" => {
156
- "required" => true,
157
- "min" => 0
158
- }
159
- },
160
- "suno-v4.5-plus" => {
161
- "audio_url" => {
162
- "required" => true
163
- },
164
- "end_seconds" => {
165
- "required" => true,
166
- "min" => 0
167
- },
168
- "model" => {
169
- "required" => true
170
- },
171
- "start_seconds" => {
172
- "required" => true,
173
- "min" => 0
174
- }
175
- },
176
- "suno-v5" => {
177
- "audio_url" => {
178
- "required" => true
179
- },
180
- "end_seconds" => {
181
- "required" => true,
182
- "min" => 0
183
- },
184
- "model" => {
185
- "required" => true
186
- },
187
- "start_seconds" => {
188
- "required" => true,
189
- "min" => 0
190
- }
191
- },
192
- "suno-v5.5" => {
193
- "audio_url" => {
194
- "required" => true
195
- },
196
- "end_seconds" => {
197
- "required" => true,
198
- "min" => 0
199
- },
200
- "model" => {
201
- "required" => true
202
- },
203
- "start_seconds" => {
204
- "required" => true,
205
- "min" => 0
206
- }
207
- }
208
- }
209
- },
210
- "add-vocals" => {
211
- "models" => ["suno-v4.5-plus", "suno-v5"],
212
- "fields_by_model" => {
213
- "suno-v4.5-plus" => {
214
- "audio_weight" => {
215
- "min" => 0,
216
- "max" => 1
217
- },
218
- "lyrics" => {
219
- "required" => true,
220
- "max" => 5000,
221
- "length" => true
222
- },
223
- "model" => {
224
- "required" => true
225
- },
226
- "negative_tags" => {
227
- "required" => true,
228
- "max" => 200,
229
- "length" => true
230
- },
231
- "style" => {
232
- "required" => true,
233
- "max" => 1000,
234
- "length" => true
235
- },
236
- "style_weight" => {
237
- "min" => 0,
238
- "max" => 1
239
- },
240
- "title" => {
241
- "required" => true,
242
- "max" => 80,
243
- "length" => true
244
- },
245
- "upload_url" => {
246
- "required" => true
247
- },
248
- "vocal_gender" => {
249
- "enum" => ["male", "female"]
250
- },
251
- "weirdness_constraint" => {
252
- "min" => 0,
253
- "max" => 1
254
- }
255
- },
256
- "suno-v5" => {
257
- "audio_weight" => {
258
- "min" => 0,
259
- "max" => 1
260
- },
261
- "lyrics" => {
262
- "required" => true,
263
- "max" => 5000,
264
- "length" => true
265
- },
266
- "model" => {
267
- "required" => true
268
- },
269
- "negative_tags" => {
270
- "required" => true,
271
- "max" => 200,
272
- "length" => true
273
- },
274
- "style" => {
275
- "required" => true,
276
- "max" => 1000,
277
- "length" => true
278
- },
279
- "style_weight" => {
280
- "min" => 0,
281
- "max" => 1
282
- },
283
- "title" => {
284
- "required" => true,
285
- "max" => 80,
286
- "length" => true
287
- },
288
- "upload_url" => {
289
- "required" => true
290
- },
291
- "vocal_gender" => {
292
- "enum" => ["male", "female"]
293
- },
294
- "weirdness_constraint" => {
295
- "min" => 0,
296
- "max" => 1
297
- }
298
- }
299
- }
300
- },
301
- "audio-exports" => {
302
- "models" => [],
303
- "fields_by_model" => {
304
- "_" => {
305
- "source_audio_id" => {
306
- "required" => true
307
- }
308
- }
309
- }
310
- },
311
- "blend-lyrics" => {
312
- "models" => [],
313
- "fields_by_model" => {
314
- "_" => {
315
- "lyrics_a" => {
316
- "required" => true
317
- },
318
- "lyrics_b" => {
319
- "required" => true
320
- }
321
- }
322
- }
323
- },
324
- "boost-style" => {
325
- "models" => [],
326
- "fields_by_model" => {
327
- "_" => {
328
- "description" => {
329
- "required" => true
330
- }
331
- }
332
- }
333
- },
334
- "check-voice" => {
335
- "models" => [],
336
- "fields_by_model" => {
337
- "_" => {
338
- "task_id" => {
339
- "required" => true
340
- }
341
- }
342
- }
343
- },
344
- "convert-audio" => {
345
- "models" => [],
346
- "fields_by_model" => {
347
- "_" => {
348
- "audio_id" => {
349
- "required" => true
350
- },
351
- "task_id" => {
352
- "required" => true
353
- }
354
- }
355
- }
356
- },
357
- "cover-audio" => {
358
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-all", "suno-v4.5-plus", "suno-v5", "suno-v5.5", "suno-v6", "suno-v6-mini", "suno-v6-wild"],
359
- "fields_by_model" => {
360
- "suno-v4" => {
361
- "audio_weight" => {
362
- "min" => 0,
363
- "max" => 1
364
- },
365
- "lyrics" => {
366
- "max" => 5000,
367
- "length" => true
368
- },
369
- "model" => {
370
- "required" => true
371
- },
372
- "negative_tags" => {
373
- "max" => 200,
374
- "length" => true
375
- },
376
- "persona_type" => {
377
- "enum" => ["style", "voice"]
378
- },
379
- "prompt" => {
380
- "max" => 5000,
381
- "length" => true
382
- },
383
- "style" => {
384
- "max" => 1000,
385
- "length" => true
386
- },
387
- "style_weight" => {
388
- "min" => 0,
389
- "max" => 1
390
- },
391
- "title" => {
392
- "max" => 80,
393
- "length" => true
394
- },
395
- "upload_url" => {
396
- "required" => true
397
- },
398
- "vocal_gender" => {
399
- "enum" => ["male", "female"]
400
- },
401
- "vocal_mode" => {
402
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
403
- "required" => true
404
- },
405
- "weirdness_constraint" => {
406
- "min" => 0,
407
- "max" => 1
408
- }
409
- },
410
- "suno-v4.5" => {
411
- "audio_weight" => {
412
- "min" => 0,
413
- "max" => 1
414
- },
415
- "lyrics" => {
416
- "max" => 5000,
417
- "length" => true
418
- },
419
- "model" => {
420
- "required" => true
421
- },
422
- "negative_tags" => {
423
- "max" => 200,
424
- "length" => true
425
- },
426
- "persona_type" => {
427
- "enum" => ["style", "voice"]
428
- },
429
- "prompt" => {
430
- "max" => 5000,
431
- "length" => true
432
- },
433
- "style" => {
434
- "max" => 1000,
435
- "length" => true
436
- },
437
- "style_weight" => {
438
- "min" => 0,
439
- "max" => 1
440
- },
441
- "title" => {
442
- "max" => 80,
443
- "length" => true
444
- },
445
- "upload_url" => {
446
- "required" => true
447
- },
448
- "vocal_gender" => {
449
- "enum" => ["male", "female"]
450
- },
451
- "vocal_mode" => {
452
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
453
- "required" => true
454
- },
455
- "weirdness_constraint" => {
456
- "min" => 0,
457
- "max" => 1
458
- }
459
- },
460
- "suno-v4.5-all" => {
461
- "audio_weight" => {
462
- "min" => 0,
463
- "max" => 1
464
- },
465
- "lyrics" => {
466
- "max" => 5000,
467
- "length" => true
468
- },
469
- "model" => {
470
- "required" => true
471
- },
472
- "negative_tags" => {
473
- "max" => 200,
474
- "length" => true
475
- },
476
- "persona_type" => {
477
- "enum" => ["style", "voice"]
478
- },
479
- "prompt" => {
480
- "max" => 5000,
481
- "length" => true
482
- },
483
- "style" => {
484
- "max" => 1000,
485
- "length" => true
486
- },
487
- "style_weight" => {
488
- "min" => 0,
489
- "max" => 1
490
- },
491
- "title" => {
492
- "max" => 80,
493
- "length" => true
494
- },
495
- "upload_url" => {
496
- "required" => true
497
- },
498
- "vocal_gender" => {
499
- "enum" => ["male", "female"]
500
- },
501
- "vocal_mode" => {
502
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
503
- "required" => true
504
- },
505
- "weirdness_constraint" => {
506
- "min" => 0,
507
- "max" => 1
508
- }
509
- },
510
- "suno-v4.5-plus" => {
511
- "audio_weight" => {
512
- "min" => 0,
513
- "max" => 1
514
- },
515
- "lyrics" => {
516
- "max" => 5000,
517
- "length" => true
518
- },
519
- "model" => {
520
- "required" => true
521
- },
522
- "negative_tags" => {
523
- "max" => 200,
524
- "length" => true
525
- },
526
- "persona_type" => {
527
- "enum" => ["style", "voice"]
528
- },
529
- "prompt" => {
530
- "max" => 5000,
531
- "length" => true
532
- },
533
- "style" => {
534
- "max" => 1000,
535
- "length" => true
536
- },
537
- "style_weight" => {
538
- "min" => 0,
539
- "max" => 1
540
- },
541
- "title" => {
542
- "max" => 80,
543
- "length" => true
544
- },
545
- "upload_url" => {
546
- "required" => true
547
- },
548
- "vocal_gender" => {
549
- "enum" => ["male", "female"]
550
- },
551
- "vocal_mode" => {
552
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
553
- "required" => true
554
- },
555
- "weirdness_constraint" => {
556
- "min" => 0,
557
- "max" => 1
558
- }
559
- },
560
- "suno-v5" => {
561
- "audio_weight" => {
562
- "min" => 0,
563
- "max" => 1
564
- },
565
- "lyrics" => {
566
- "max" => 5000,
567
- "length" => true
568
- },
569
- "model" => {
570
- "required" => true
571
- },
572
- "negative_tags" => {
573
- "max" => 200,
574
- "length" => true
575
- },
576
- "persona_type" => {
577
- "enum" => ["style", "voice"]
578
- },
579
- "prompt" => {
580
- "max" => 5000,
581
- "length" => true
582
- },
583
- "style" => {
584
- "max" => 1000,
585
- "length" => true
586
- },
587
- "style_weight" => {
588
- "min" => 0,
589
- "max" => 1
590
- },
591
- "title" => {
592
- "max" => 80,
593
- "length" => true
594
- },
595
- "upload_url" => {
596
- "required" => true
597
- },
598
- "vocal_gender" => {
599
- "enum" => ["male", "female"]
600
- },
601
- "vocal_mode" => {
602
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
603
- "required" => true
604
- },
605
- "weirdness_constraint" => {
606
- "min" => 0,
607
- "max" => 1
608
- }
609
- },
610
- "suno-v5.5" => {
611
- "audio_weight" => {
612
- "min" => 0,
613
- "max" => 1
614
- },
615
- "lyrics" => {
616
- "max" => 5000,
617
- "length" => true
618
- },
619
- "model" => {
620
- "required" => true
621
- },
622
- "negative_tags" => {
623
- "max" => 200,
624
- "length" => true
625
- },
626
- "persona_type" => {
627
- "enum" => ["style", "voice"]
628
- },
629
- "prompt" => {
630
- "max" => 5000,
631
- "length" => true
632
- },
633
- "style" => {
634
- "max" => 1000,
635
- "length" => true
636
- },
637
- "style_weight" => {
638
- "min" => 0,
639
- "max" => 1
640
- },
641
- "title" => {
642
- "max" => 80,
643
- "length" => true
644
- },
645
- "upload_url" => {
646
- "required" => true
647
- },
648
- "vocal_gender" => {
649
- "enum" => ["male", "female"]
650
- },
651
- "vocal_mode" => {
652
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
653
- "required" => true
654
- },
655
- "weirdness_constraint" => {
656
- "min" => 0,
657
- "max" => 1
658
- }
659
- },
660
- "suno-v6" => {
661
- "audio_weight" => {
662
- "min" => 0,
663
- "max" => 1
664
- },
665
- "lyrics" => {
666
- "max" => 5000,
667
- "length" => true
668
- },
669
- "model" => {
670
- "required" => true
671
- },
672
- "negative_tags" => {
673
- "max" => 200,
674
- "length" => true
675
- },
676
- "persona_type" => {
677
- "enum" => ["style", "voice"]
678
- },
679
- "prompt" => {
680
- "max" => 5000,
681
- "length" => true
682
- },
683
- "style" => {
684
- "max" => 1000,
685
- "length" => true
686
- },
687
- "style_weight" => {
688
- "min" => 0,
689
- "max" => 1
690
- },
691
- "title" => {
692
- "max" => 80,
693
- "length" => true
694
- },
695
- "upload_url" => {
696
- "required" => true
697
- },
698
- "vocal_gender" => {
699
- "enum" => ["male", "female"]
700
- },
701
- "vocal_mode" => {
702
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
703
- "required" => true
704
- },
705
- "weirdness_constraint" => {
706
- "min" => 0,
707
- "max" => 1
708
- }
709
- },
710
- "suno-v6-mini" => {
711
- "audio_weight" => {
712
- "min" => 0,
713
- "max" => 1
714
- },
715
- "lyrics" => {
716
- "max" => 5000,
717
- "length" => true
718
- },
719
- "model" => {
720
- "required" => true
721
- },
722
- "negative_tags" => {
723
- "max" => 200,
724
- "length" => true
725
- },
726
- "persona_type" => {
727
- "enum" => ["style", "voice"]
728
- },
729
- "prompt" => {
730
- "max" => 5000,
731
- "length" => true
732
- },
733
- "style" => {
734
- "max" => 1000,
735
- "length" => true
736
- },
737
- "style_weight" => {
738
- "min" => 0,
739
- "max" => 1
740
- },
741
- "title" => {
742
- "max" => 80,
743
- "length" => true
744
- },
745
- "upload_url" => {
746
- "required" => true
747
- },
748
- "vocal_gender" => {
749
- "enum" => ["male", "female"]
750
- },
751
- "vocal_mode" => {
752
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
753
- "required" => true
754
- },
755
- "weirdness_constraint" => {
756
- "min" => 0,
757
- "max" => 1
758
- }
759
- },
760
- "suno-v6-wild" => {
761
- "audio_weight" => {
762
- "min" => 0,
763
- "max" => 1
764
- },
765
- "lyrics" => {
766
- "max" => 5000,
767
- "length" => true
768
- },
769
- "model" => {
770
- "required" => true
771
- },
772
- "negative_tags" => {
773
- "max" => 200,
774
- "length" => true
775
- },
776
- "persona_type" => {
777
- "enum" => ["style", "voice"]
778
- },
779
- "prompt" => {
780
- "max" => 5000,
781
- "length" => true
782
- },
783
- "style" => {
784
- "max" => 1000,
785
- "length" => true
786
- },
787
- "style_weight" => {
788
- "min" => 0,
789
- "max" => 1
790
- },
791
- "title" => {
792
- "max" => 80,
793
- "length" => true
794
- },
795
- "upload_url" => {
796
- "required" => true
797
- },
798
- "vocal_gender" => {
799
- "enum" => ["male", "female"]
800
- },
801
- "vocal_mode" => {
802
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
803
- "required" => true
804
- },
805
- "weirdness_constraint" => {
806
- "min" => 0,
807
- "max" => 1
808
- }
809
- }
810
- },
811
- "rules" => [{
812
- "when" => {
813
- "vocal_mode" => "auto_lyrics"
814
- },
815
- "required" => ["prompt"],
816
- "forbidden" => ["lyrics", "style", "title"]
817
- }, {
818
- "when" => {
819
- "vocal_mode" => "exact_lyrics"
820
- },
821
- "required" => ["lyrics", "style", "title"],
822
- "forbidden" => ["prompt"]
823
- }, {
824
- "when" => {
825
- "vocal_mode" => "instrumental"
826
- },
827
- "required" => ["style", "title"],
828
- "forbidden" => ["prompt", "lyrics"]
829
- }]
830
- },
831
- "create-mashup" => {
832
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-all", "suno-v4.5-plus", "suno-v5", "suno-v5.5", "suno-v6", "suno-v6-mini", "suno-v6-wild"],
833
- "fields_by_model" => {
834
- "suno-v4" => {
835
- "audio_weight" => {
836
- "min" => 0,
837
- "max" => 1
838
- },
839
- "lyrics" => {
840
- "max" => 5000,
841
- "length" => true
842
- },
843
- "model" => {
844
- "required" => true
845
- },
846
- "persona_type" => {
847
- "enum" => ["style", "voice"]
848
- },
849
- "prompt" => {
850
- "max" => 5000,
851
- "length" => true
852
- },
853
- "style" => {
854
- "max" => 1000,
855
- "length" => true
856
- },
857
- "style_weight" => {
858
- "min" => 0,
859
- "max" => 1
860
- },
861
- "title" => {
862
- "max" => 80,
863
- "length" => true
864
- },
865
- "upload_url_list" => {
866
- "required" => true,
867
- "min_items" => 2,
868
- "max_items" => 2
869
- },
870
- "vocal_gender" => {
871
- "enum" => ["male", "female"]
872
- },
873
- "vocal_mode" => {
874
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
875
- "required" => true
876
- },
877
- "weirdness_constraint" => {
878
- "min" => 0,
879
- "max" => 1
880
- }
881
- },
882
- "suno-v4.5" => {
883
- "audio_weight" => {
884
- "min" => 0,
885
- "max" => 1
886
- },
887
- "lyrics" => {
888
- "max" => 5000,
889
- "length" => true
890
- },
891
- "model" => {
892
- "required" => true
893
- },
894
- "persona_type" => {
895
- "enum" => ["style", "voice"]
896
- },
897
- "prompt" => {
898
- "max" => 5000,
899
- "length" => true
900
- },
901
- "style" => {
902
- "max" => 1000,
903
- "length" => true
904
- },
905
- "style_weight" => {
906
- "min" => 0,
907
- "max" => 1
908
- },
909
- "title" => {
910
- "max" => 80,
911
- "length" => true
912
- },
913
- "upload_url_list" => {
914
- "required" => true,
915
- "min_items" => 2,
916
- "max_items" => 2
917
- },
918
- "vocal_gender" => {
919
- "enum" => ["male", "female"]
920
- },
921
- "vocal_mode" => {
922
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
923
- "required" => true
924
- },
925
- "weirdness_constraint" => {
926
- "min" => 0,
927
- "max" => 1
928
- }
929
- },
930
- "suno-v4.5-all" => {
931
- "audio_weight" => {
932
- "min" => 0,
933
- "max" => 1
934
- },
935
- "lyrics" => {
936
- "max" => 5000,
937
- "length" => true
938
- },
939
- "model" => {
940
- "required" => true
941
- },
942
- "persona_type" => {
943
- "enum" => ["style", "voice"]
944
- },
945
- "prompt" => {
946
- "max" => 5000,
947
- "length" => true
948
- },
949
- "style" => {
950
- "max" => 1000,
951
- "length" => true
952
- },
953
- "style_weight" => {
954
- "min" => 0,
955
- "max" => 1
956
- },
957
- "title" => {
958
- "max" => 80,
959
- "length" => true
960
- },
961
- "upload_url_list" => {
962
- "required" => true,
963
- "min_items" => 2,
964
- "max_items" => 2
965
- },
966
- "vocal_gender" => {
967
- "enum" => ["male", "female"]
968
- },
969
- "vocal_mode" => {
970
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
971
- "required" => true
972
- },
973
- "weirdness_constraint" => {
974
- "min" => 0,
975
- "max" => 1
976
- }
977
- },
978
- "suno-v4.5-plus" => {
979
- "audio_weight" => {
980
- "min" => 0,
981
- "max" => 1
982
- },
983
- "lyrics" => {
984
- "max" => 5000,
985
- "length" => true
986
- },
987
- "model" => {
988
- "required" => true
989
- },
990
- "persona_type" => {
991
- "enum" => ["style", "voice"]
992
- },
993
- "prompt" => {
994
- "max" => 5000,
995
- "length" => true
996
- },
997
- "style" => {
998
- "max" => 1000,
999
- "length" => true
1000
- },
1001
- "style_weight" => {
1002
- "min" => 0,
1003
- "max" => 1
1004
- },
1005
- "title" => {
1006
- "max" => 80,
1007
- "length" => true
1008
- },
1009
- "upload_url_list" => {
1010
- "required" => true,
1011
- "min_items" => 2,
1012
- "max_items" => 2
1013
- },
1014
- "vocal_gender" => {
1015
- "enum" => ["male", "female"]
1016
- },
1017
- "vocal_mode" => {
1018
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
1019
- "required" => true
1020
- },
1021
- "weirdness_constraint" => {
1022
- "min" => 0,
1023
- "max" => 1
1024
- }
1025
- },
1026
- "suno-v5" => {
1027
- "audio_weight" => {
1028
- "min" => 0,
1029
- "max" => 1
1030
- },
1031
- "lyrics" => {
1032
- "max" => 5000,
1033
- "length" => true
1034
- },
1035
- "model" => {
1036
- "required" => true
1037
- },
1038
- "persona_type" => {
1039
- "enum" => ["style", "voice"]
1040
- },
1041
- "prompt" => {
1042
- "max" => 5000,
1043
- "length" => true
1044
- },
1045
- "style" => {
1046
- "max" => 1000,
1047
- "length" => true
1048
- },
1049
- "style_weight" => {
1050
- "min" => 0,
1051
- "max" => 1
1052
- },
1053
- "title" => {
1054
- "max" => 80,
1055
- "length" => true
1056
- },
1057
- "upload_url_list" => {
1058
- "required" => true,
1059
- "min_items" => 2,
1060
- "max_items" => 2
1061
- },
1062
- "vocal_gender" => {
1063
- "enum" => ["male", "female"]
1064
- },
1065
- "vocal_mode" => {
1066
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
1067
- "required" => true
1068
- },
1069
- "weirdness_constraint" => {
1070
- "min" => 0,
1071
- "max" => 1
1072
- }
1073
- },
1074
- "suno-v5.5" => {
1075
- "audio_weight" => {
1076
- "min" => 0,
1077
- "max" => 1
1078
- },
1079
- "lyrics" => {
1080
- "max" => 5000,
1081
- "length" => true
1082
- },
1083
- "model" => {
1084
- "required" => true
1085
- },
1086
- "persona_type" => {
1087
- "enum" => ["style", "voice"]
1088
- },
1089
- "prompt" => {
1090
- "max" => 5000,
1091
- "length" => true
1092
- },
1093
- "style" => {
1094
- "max" => 1000,
1095
- "length" => true
1096
- },
1097
- "style_weight" => {
1098
- "min" => 0,
1099
- "max" => 1
1100
- },
1101
- "title" => {
1102
- "max" => 80,
1103
- "length" => true
1104
- },
1105
- "upload_url_list" => {
1106
- "required" => true,
1107
- "min_items" => 2,
1108
- "max_items" => 2
1109
- },
1110
- "vocal_gender" => {
1111
- "enum" => ["male", "female"]
1112
- },
1113
- "vocal_mode" => {
1114
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
1115
- "required" => true
1116
- },
1117
- "weirdness_constraint" => {
1118
- "min" => 0,
1119
- "max" => 1
1120
- }
1121
- },
1122
- "suno-v6" => {
1123
- "audio_weight" => {
1124
- "min" => 0,
1125
- "max" => 1
1126
- },
1127
- "lyrics" => {
1128
- "max" => 5000,
1129
- "length" => true
1130
- },
1131
- "model" => {
1132
- "required" => true
1133
- },
1134
- "persona_type" => {
1135
- "enum" => ["style", "voice"]
1136
- },
1137
- "prompt" => {
1138
- "max" => 5000,
1139
- "length" => true
1140
- },
1141
- "style" => {
1142
- "max" => 1000,
1143
- "length" => true
1144
- },
1145
- "style_weight" => {
1146
- "min" => 0,
1147
- "max" => 1
1148
- },
1149
- "title" => {
1150
- "max" => 80,
1151
- "length" => true
1152
- },
1153
- "upload_url_list" => {
1154
- "required" => true,
1155
- "min_items" => 2,
1156
- "max_items" => 2
1157
- },
1158
- "vocal_gender" => {
1159
- "enum" => ["male", "female"]
1160
- },
1161
- "vocal_mode" => {
1162
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
1163
- "required" => true
1164
- },
1165
- "weirdness_constraint" => {
1166
- "min" => 0,
1167
- "max" => 1
1168
- }
1169
- },
1170
- "suno-v6-mini" => {
1171
- "audio_weight" => {
1172
- "min" => 0,
1173
- "max" => 1
1174
- },
1175
- "lyrics" => {
1176
- "max" => 5000,
1177
- "length" => true
1178
- },
1179
- "model" => {
1180
- "required" => true
1181
- },
1182
- "persona_type" => {
1183
- "enum" => ["style", "voice"]
1184
- },
1185
- "prompt" => {
1186
- "max" => 5000,
1187
- "length" => true
1188
- },
1189
- "style" => {
1190
- "max" => 1000,
1191
- "length" => true
1192
- },
1193
- "style_weight" => {
1194
- "min" => 0,
1195
- "max" => 1
1196
- },
1197
- "title" => {
1198
- "max" => 80,
1199
- "length" => true
1200
- },
1201
- "upload_url_list" => {
1202
- "required" => true,
1203
- "min_items" => 2,
1204
- "max_items" => 2
1205
- },
1206
- "vocal_gender" => {
1207
- "enum" => ["male", "female"]
1208
- },
1209
- "vocal_mode" => {
1210
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
1211
- "required" => true
1212
- },
1213
- "weirdness_constraint" => {
1214
- "min" => 0,
1215
- "max" => 1
1216
- }
1217
- },
1218
- "suno-v6-wild" => {
1219
- "audio_weight" => {
1220
- "min" => 0,
1221
- "max" => 1
1222
- },
1223
- "lyrics" => {
1224
- "max" => 5000,
1225
- "length" => true
1226
- },
1227
- "model" => {
1228
- "required" => true
1229
- },
1230
- "persona_type" => {
1231
- "enum" => ["style", "voice"]
1232
- },
1233
- "prompt" => {
1234
- "max" => 5000,
1235
- "length" => true
1236
- },
1237
- "style" => {
1238
- "max" => 1000,
1239
- "length" => true
1240
- },
1241
- "style_weight" => {
1242
- "min" => 0,
1243
- "max" => 1
1244
- },
1245
- "title" => {
1246
- "max" => 80,
1247
- "length" => true
1248
- },
1249
- "upload_url_list" => {
1250
- "required" => true,
1251
- "min_items" => 2,
1252
- "max_items" => 2
1253
- },
1254
- "vocal_gender" => {
1255
- "enum" => ["male", "female"]
1256
- },
1257
- "vocal_mode" => {
1258
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
1259
- "required" => true
1260
- },
1261
- "weirdness_constraint" => {
1262
- "min" => 0,
1263
- "max" => 1
1264
- }
1265
- }
1266
- },
1267
- "rules" => [{
1268
- "when" => {
1269
- "vocal_mode" => "auto_lyrics"
1270
- },
1271
- "required" => ["prompt"],
1272
- "forbidden" => ["lyrics", "style", "title"]
1273
- }, {
1274
- "when" => {
1275
- "vocal_mode" => "exact_lyrics"
1276
- },
1277
- "required" => ["lyrics", "style", "title"],
1278
- "forbidden" => ["prompt"]
1279
- }, {
1280
- "when" => {
1281
- "vocal_mode" => "instrumental"
1282
- },
1283
- "required" => ["style", "title"],
1284
- "forbidden" => ["prompt", "lyrics"]
1285
- }]
1286
- },
1287
- "extend-music" => {
1288
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-all", "suno-v4.5-plus", "suno-v5", "suno-v5.5", "suno-v6", "suno-v6-mini", "suno-v6-wild"],
1289
- "fields_by_model" => {
1290
- "suno-v4" => {
1291
- "audio_weight" => {
1292
- "min" => 0,
1293
- "max" => 1
1294
- },
1295
- "lyrics" => {
1296
- "max" => 5000,
1297
- "length" => true
1298
- },
1299
- "model" => {
1300
- "required" => true
1301
- },
1302
- "negative_tags" => {
1303
- "max" => 200,
1304
- "length" => true
1305
- },
1306
- "parameter_mode" => {
1307
- "enum" => ["source", "custom"],
1308
- "required" => true
1309
- },
1310
- "persona_type" => {
1311
- "enum" => ["style", "voice"]
1312
- },
1313
- "prompt" => {
1314
- "max" => 5000,
1315
- "length" => true
1316
- },
1317
- "style" => {
1318
- "max" => 1000,
1319
- "length" => true
1320
- },
1321
- "style_weight" => {
1322
- "min" => 0,
1323
- "max" => 1
1324
- },
1325
- "title" => {
1326
- "max" => 80,
1327
- "length" => true
1328
- },
1329
- "vocal_gender" => {
1330
- "enum" => ["male", "female"]
1331
- },
1332
- "weirdness_constraint" => {
1333
- "min" => 0,
1334
- "max" => 1
1335
- }
1336
- },
1337
- "suno-v4.5" => {
1338
- "audio_weight" => {
1339
- "min" => 0,
1340
- "max" => 1
1341
- },
1342
- "lyrics" => {
1343
- "max" => 5000,
1344
- "length" => true
1345
- },
1346
- "model" => {
1347
- "required" => true
1348
- },
1349
- "negative_tags" => {
1350
- "max" => 200,
1351
- "length" => true
1352
- },
1353
- "parameter_mode" => {
1354
- "enum" => ["source", "custom"],
1355
- "required" => true
1356
- },
1357
- "persona_type" => {
1358
- "enum" => ["style", "voice"]
1359
- },
1360
- "prompt" => {
1361
- "max" => 5000,
1362
- "length" => true
1363
- },
1364
- "style" => {
1365
- "max" => 1000,
1366
- "length" => true
1367
- },
1368
- "style_weight" => {
1369
- "min" => 0,
1370
- "max" => 1
1371
- },
1372
- "title" => {
1373
- "max" => 80,
1374
- "length" => true
1375
- },
1376
- "vocal_gender" => {
1377
- "enum" => ["male", "female"]
1378
- },
1379
- "weirdness_constraint" => {
1380
- "min" => 0,
1381
- "max" => 1
1382
- }
1383
- },
1384
- "suno-v4.5-all" => {
1385
- "audio_weight" => {
1386
- "min" => 0,
1387
- "max" => 1
1388
- },
1389
- "lyrics" => {
1390
- "max" => 5000,
1391
- "length" => true
1392
- },
1393
- "model" => {
1394
- "required" => true
1395
- },
1396
- "negative_tags" => {
1397
- "max" => 200,
1398
- "length" => true
1399
- },
1400
- "parameter_mode" => {
1401
- "enum" => ["source", "custom"],
1402
- "required" => true
1403
- },
1404
- "persona_type" => {
1405
- "enum" => ["style", "voice"]
1406
- },
1407
- "prompt" => {
1408
- "max" => 5000,
1409
- "length" => true
1410
- },
1411
- "style" => {
1412
- "max" => 1000,
1413
- "length" => true
1414
- },
1415
- "style_weight" => {
1416
- "min" => 0,
1417
- "max" => 1
1418
- },
1419
- "title" => {
1420
- "max" => 80,
1421
- "length" => true
1422
- },
1423
- "vocal_gender" => {
1424
- "enum" => ["male", "female"]
1425
- },
1426
- "weirdness_constraint" => {
1427
- "min" => 0,
1428
- "max" => 1
1429
- }
1430
- },
1431
- "suno-v4.5-plus" => {
1432
- "audio_weight" => {
1433
- "min" => 0,
1434
- "max" => 1
1435
- },
1436
- "lyrics" => {
1437
- "max" => 5000,
1438
- "length" => true
1439
- },
1440
- "model" => {
1441
- "required" => true
1442
- },
1443
- "negative_tags" => {
1444
- "max" => 200,
1445
- "length" => true
1446
- },
1447
- "parameter_mode" => {
1448
- "enum" => ["source", "custom"],
1449
- "required" => true
1450
- },
1451
- "persona_type" => {
1452
- "enum" => ["style", "voice"]
1453
- },
1454
- "prompt" => {
1455
- "max" => 5000,
1456
- "length" => true
1457
- },
1458
- "style" => {
1459
- "max" => 1000,
1460
- "length" => true
1461
- },
1462
- "style_weight" => {
1463
- "min" => 0,
1464
- "max" => 1
1465
- },
1466
- "title" => {
1467
- "max" => 80,
1468
- "length" => true
1469
- },
1470
- "vocal_gender" => {
1471
- "enum" => ["male", "female"]
1472
- },
1473
- "weirdness_constraint" => {
1474
- "min" => 0,
1475
- "max" => 1
1476
- }
1477
- },
1478
- "suno-v5" => {
1479
- "audio_weight" => {
1480
- "min" => 0,
1481
- "max" => 1
1482
- },
1483
- "lyrics" => {
1484
- "max" => 5000,
1485
- "length" => true
1486
- },
1487
- "model" => {
1488
- "required" => true
1489
- },
1490
- "negative_tags" => {
1491
- "max" => 200,
1492
- "length" => true
1493
- },
1494
- "parameter_mode" => {
1495
- "enum" => ["source", "custom"],
1496
- "required" => true
1497
- },
1498
- "persona_type" => {
1499
- "enum" => ["style", "voice"]
1500
- },
1501
- "prompt" => {
1502
- "max" => 5000,
1503
- "length" => true
1504
- },
1505
- "style" => {
1506
- "max" => 1000,
1507
- "length" => true
1508
- },
1509
- "style_weight" => {
1510
- "min" => 0,
1511
- "max" => 1
1512
- },
1513
- "title" => {
1514
- "max" => 80,
1515
- "length" => true
1516
- },
1517
- "vocal_gender" => {
1518
- "enum" => ["male", "female"]
1519
- },
1520
- "weirdness_constraint" => {
1521
- "min" => 0,
1522
- "max" => 1
1523
- }
1524
- },
1525
- "suno-v5.5" => {
1526
- "audio_weight" => {
1527
- "min" => 0,
1528
- "max" => 1
1529
- },
1530
- "lyrics" => {
1531
- "max" => 5000,
1532
- "length" => true
1533
- },
1534
- "model" => {
1535
- "required" => true
1536
- },
1537
- "negative_tags" => {
1538
- "max" => 200,
1539
- "length" => true
1540
- },
1541
- "parameter_mode" => {
1542
- "enum" => ["source", "custom"],
1543
- "required" => true
1544
- },
1545
- "persona_type" => {
1546
- "enum" => ["style", "voice"]
1547
- },
1548
- "prompt" => {
1549
- "max" => 5000,
1550
- "length" => true
1551
- },
1552
- "style" => {
1553
- "max" => 1000,
1554
- "length" => true
1555
- },
1556
- "style_weight" => {
1557
- "min" => 0,
1558
- "max" => 1
1559
- },
1560
- "title" => {
1561
- "max" => 80,
1562
- "length" => true
1563
- },
1564
- "vocal_gender" => {
1565
- "enum" => ["male", "female"]
1566
- },
1567
- "weirdness_constraint" => {
1568
- "min" => 0,
1569
- "max" => 1
1570
- }
1571
- },
1572
- "suno-v6" => {
1573
- "audio_weight" => {
1574
- "min" => 0,
1575
- "max" => 1
1576
- },
1577
- "lyrics" => {
1578
- "max" => 5000,
1579
- "length" => true
1580
- },
1581
- "model" => {
1582
- "required" => true
1583
- },
1584
- "negative_tags" => {
1585
- "max" => 200,
1586
- "length" => true
1587
- },
1588
- "parameter_mode" => {
1589
- "enum" => ["source", "custom"],
1590
- "required" => true
1591
- },
1592
- "persona_type" => {
1593
- "enum" => ["style", "voice"]
1594
- },
1595
- "prompt" => {
1596
- "max" => 5000,
1597
- "length" => true
1598
- },
1599
- "style" => {
1600
- "max" => 1000,
1601
- "length" => true
1602
- },
1603
- "style_weight" => {
1604
- "min" => 0,
1605
- "max" => 1
1606
- },
1607
- "title" => {
1608
- "max" => 80,
1609
- "length" => true
1610
- },
1611
- "vocal_gender" => {
1612
- "enum" => ["male", "female"]
1613
- },
1614
- "weirdness_constraint" => {
1615
- "min" => 0,
1616
- "max" => 1
1617
- }
1618
- },
1619
- "suno-v6-mini" => {
1620
- "audio_weight" => {
1621
- "min" => 0,
1622
- "max" => 1
1623
- },
1624
- "lyrics" => {
1625
- "max" => 5000,
1626
- "length" => true
1627
- },
1628
- "model" => {
1629
- "required" => true
1630
- },
1631
- "negative_tags" => {
1632
- "max" => 200,
1633
- "length" => true
1634
- },
1635
- "parameter_mode" => {
1636
- "enum" => ["source", "custom"],
1637
- "required" => true
1638
- },
1639
- "persona_type" => {
1640
- "enum" => ["style", "voice"]
1641
- },
1642
- "prompt" => {
1643
- "max" => 5000,
1644
- "length" => true
1645
- },
1646
- "style" => {
1647
- "max" => 1000,
1648
- "length" => true
1649
- },
1650
- "style_weight" => {
1651
- "min" => 0,
1652
- "max" => 1
1653
- },
1654
- "title" => {
1655
- "max" => 80,
1656
- "length" => true
1657
- },
1658
- "vocal_gender" => {
1659
- "enum" => ["male", "female"]
1660
- },
1661
- "weirdness_constraint" => {
1662
- "min" => 0,
1663
- "max" => 1
1664
- }
1665
- },
1666
- "suno-v6-wild" => {
1667
- "audio_weight" => {
1668
- "min" => 0,
1669
- "max" => 1
1670
- },
1671
- "lyrics" => {
1672
- "max" => 5000,
1673
- "length" => true
1674
- },
1675
- "model" => {
1676
- "required" => true
1677
- },
1678
- "negative_tags" => {
1679
- "max" => 200,
1680
- "length" => true
1681
- },
1682
- "parameter_mode" => {
1683
- "enum" => ["source", "custom"],
1684
- "required" => true
1685
- },
1686
- "persona_type" => {
1687
- "enum" => ["style", "voice"]
1688
- },
1689
- "prompt" => {
1690
- "max" => 5000,
1691
- "length" => true
1692
- },
1693
- "style" => {
1694
- "max" => 1000,
1695
- "length" => true
1696
- },
1697
- "style_weight" => {
1698
- "min" => 0,
1699
- "max" => 1
1700
- },
1701
- "title" => {
1702
- "max" => 80,
1703
- "length" => true
1704
- },
1705
- "vocal_gender" => {
1706
- "enum" => ["male", "female"]
1707
- },
1708
- "weirdness_constraint" => {
1709
- "min" => 0,
1710
- "max" => 1
1711
- }
1712
- }
1713
- }
1714
- },
1715
- "generate-artwork" => {
1716
- "models" => [],
1717
- "fields_by_model" => {
1718
- "_" => {
1719
- "task_id" => {
1720
- "required" => true
1721
- }
1722
- }
1723
- }
1724
- },
1725
- "generate-lyrics" => {
1726
- "models" => [],
1727
- "fields_by_model" => {
1728
- "_" => {
1729
- "prompt" => {
1730
- "required" => true,
1731
- "max" => 200,
1732
- "length" => true
1733
- }
1734
- }
1735
- }
1736
- },
1737
- "generate-midi" => {
1738
- "models" => [],
1739
- "fields_by_model" => {
1740
- "_" => {
1741
- "task_id" => {
1742
- "required" => true
1743
- }
1744
- }
1745
- }
1746
- },
1747
- "generate-persona" => {
1748
- "models" => [],
1749
- "fields_by_model" => {
1750
- "_" => {
1751
- "audio_id" => {
1752
- "required" => true
1753
- },
1754
- "description" => {
1755
- "required" => true
1756
- },
1757
- "name" => {
1758
- "required" => true
1759
- },
1760
- "task_id" => {
1761
- "required" => true
1762
- }
1763
- }
1764
- }
1765
- },
1766
- "generate-voice" => {
1767
- "models" => [],
1768
- "fields_by_model" => {
1769
- "_" => {
1770
- "singer_skill_level" => {
1771
- "enum" => ["beginner", "intermediate", "advanced", "professional"]
1772
- },
1773
- "task_id" => {
1774
- "required" => true
1775
- },
1776
- "verify_url" => {
1777
- "required" => true
1778
- }
1779
- }
1780
- }
1781
- },
1782
- "get-timestamped-lyrics" => {
1783
- "models" => [],
1784
- "fields_by_model" => {
1785
- "_" => {
1786
- "audio_id" => {
1787
- "required" => true
1788
- },
1789
- "task_id" => {
1790
- "required" => true
1791
- }
1792
- }
1793
- }
1794
- },
1795
- "inspire-music" => {
1796
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-plus", "suno-v5", "suno-v5.5"],
1797
- "fields_by_model" => {
1798
- "suno-v4" => {
1799
- "audio_urls" => {
1800
- "required" => true,
1801
- "min_items" => 1,
1802
- "max_items" => 4
1803
- },
1804
- "model" => {
1805
- "required" => true
1806
- }
1807
- },
1808
- "suno-v4.5" => {
1809
- "audio_urls" => {
1810
- "required" => true,
1811
- "min_items" => 1,
1812
- "max_items" => 4
1813
- },
1814
- "model" => {
1815
- "required" => true
1816
- }
1817
- },
1818
- "suno-v4.5-plus" => {
1819
- "audio_urls" => {
1820
- "required" => true,
1821
- "min_items" => 1,
1822
- "max_items" => 4
1823
- },
1824
- "model" => {
1825
- "required" => true
1826
- }
1827
- },
1828
- "suno-v5" => {
1829
- "audio_urls" => {
1830
- "required" => true,
1831
- "min_items" => 1,
1832
- "max_items" => 4
1833
- },
1834
- "model" => {
1835
- "required" => true
1836
- }
1837
- },
1838
- "suno-v5.5" => {
1839
- "audio_urls" => {
1840
- "required" => true,
1841
- "min_items" => 1,
1842
- "max_items" => 4
1843
- },
1844
- "model" => {
1845
- "required" => true
1846
- }
1847
- }
1848
- }
1849
- },
1850
- "music-from-sample" => {
1851
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-plus", "suno-v5", "suno-v5.5"],
1852
- "fields_by_model" => {
1853
- "suno-v4" => {
1854
- "audio_url" => {
1855
- "required" => true
1856
- },
1857
- "end_seconds" => {
1858
- "required" => true,
1859
- "min" => 0
1860
- },
1861
- "model" => {
1862
- "required" => true
1863
- },
1864
- "start_seconds" => {
1865
- "required" => true,
1866
- "min" => 0
1867
- }
1868
- },
1869
- "suno-v4.5" => {
1870
- "audio_url" => {
1871
- "required" => true
1872
- },
1873
- "end_seconds" => {
1874
- "required" => true,
1875
- "min" => 0
1876
- },
1877
- "model" => {
1878
- "required" => true
1879
- },
1880
- "start_seconds" => {
1881
- "required" => true,
1882
- "min" => 0
1883
- }
1884
- },
1885
- "suno-v4.5-plus" => {
1886
- "audio_url" => {
1887
- "required" => true
1888
- },
1889
- "end_seconds" => {
1890
- "required" => true,
1891
- "min" => 0
1892
- },
1893
- "model" => {
1894
- "required" => true
1895
- },
1896
- "start_seconds" => {
1897
- "required" => true,
1898
- "min" => 0
1899
- }
1900
- },
1901
- "suno-v5" => {
1902
- "audio_url" => {
1903
- "required" => true
1904
- },
1905
- "end_seconds" => {
1906
- "required" => true,
1907
- "min" => 0
1908
- },
1909
- "model" => {
1910
- "required" => true
1911
- },
1912
- "start_seconds" => {
1913
- "required" => true,
1914
- "min" => 0
1915
- }
1916
- },
1917
- "suno-v5.5" => {
1918
- "audio_url" => {
1919
- "required" => true
1920
- },
1921
- "end_seconds" => {
1922
- "required" => true,
1923
- "min" => 0
1924
- },
1925
- "model" => {
1926
- "required" => true
1927
- },
1928
- "start_seconds" => {
1929
- "required" => true,
1930
- "min" => 0
1931
- }
1932
- }
1933
- }
1934
- },
1935
- "music-visualizations" => {
1936
- "models" => [],
1937
- "fields_by_model" => {
1938
- "_" => {
1939
- "source_audio_id" => {
1940
- "required" => true
1941
- }
1942
- }
1943
- }
1944
- },
1945
- "personas" => {
1946
- "models" => [],
1947
- "fields_by_model" => {
1948
- "_" => {
1949
- "description" => {
1950
- "required" => true
1951
- },
1952
- "name" => {
1953
- "required" => true
1954
- },
1955
- "source_audio_id" => {
1956
- "required" => true
1957
- },
1958
- "source_task_id" => {
1959
- "required" => true
1960
- }
1961
- }
1962
- }
1963
- },
1964
- "regenerate-validation-phrase" => {
1965
- "models" => [],
1966
- "fields_by_model" => {
1967
- "_" => {
1968
- "task_id" => {
1969
- "required" => true
1970
- }
1971
- }
1972
- }
1973
- },
1974
- "remaster-audio" => {
1975
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-plus", "suno-v5", "suno-v5.5"],
1976
- "fields_by_model" => {
1977
- "suno-v4" => {
1978
- "audio_id" => {
1979
- "required" => true
1980
- },
1981
- "model" => {
1982
- "required" => true
1983
- },
1984
- "source_task_id" => {
1985
- "required" => true
1986
- },
1987
- "variation_category" => {
1988
- "enum" => ["subtle", "normal", "high"]
1989
- }
1990
- },
1991
- "suno-v4.5" => {
1992
- "audio_id" => {
1993
- "required" => true
1994
- },
1995
- "model" => {
1996
- "required" => true
1997
- },
1998
- "source_task_id" => {
1999
- "required" => true
2000
- },
2001
- "variation_category" => {
2002
- "enum" => ["subtle", "normal", "high"]
2003
- }
2004
- },
2005
- "suno-v4.5-plus" => {
2006
- "audio_id" => {
2007
- "required" => true
2008
- },
2009
- "model" => {
2010
- "required" => true
2011
- },
2012
- "source_task_id" => {
2013
- "required" => true
2014
- },
2015
- "variation_category" => {
2016
- "enum" => ["subtle", "normal", "high"]
2017
- }
2018
- },
2019
- "suno-v5" => {
2020
- "audio_id" => {
2021
- "required" => true
2022
- },
2023
- "model" => {
2024
- "required" => true
2025
- },
2026
- "source_task_id" => {
2027
- "required" => true
2028
- },
2029
- "variation_category" => {
2030
- "enum" => ["subtle", "normal", "high"]
2031
- }
2032
- },
2033
- "suno-v5.5" => {
2034
- "audio_id" => {
2035
- "required" => true
2036
- },
2037
- "model" => {
2038
- "required" => true
2039
- },
2040
- "source_task_id" => {
2041
- "required" => true
2042
- },
2043
- "variation_category" => {
2044
- "enum" => ["subtle", "normal", "high"]
2045
- }
2046
- }
2047
- }
2048
- },
2049
- "replace-section" => {
2050
- "models" => [],
2051
- "fields_by_model" => {
2052
- "_" => {
2053
- "full_lyrics" => {
2054
- "required" => true,
2055
- "max" => 5000,
2056
- "length" => true
2057
- },
2058
- "infill_end_time" => {
2059
- "required" => true
2060
- },
2061
- "infill_start_time" => {
2062
- "required" => true
2063
- },
2064
- "lyrics" => {
2065
- "required" => true,
2066
- "max" => 5000,
2067
- "length" => true
2068
- },
2069
- "model" => {
2070
- "enum" => ["suno-v6", "suno-v6-wild", "suno-v6-mini", "suno-v4", "suno-v4.5", "suno-v4.5-all", "suno-v4.5-plus", "suno-v5", "suno-v5.5"]
2071
- },
2072
- "negative_tags" => {
2073
- "max" => 200,
2074
- "length" => true
2075
- },
2076
- "tags" => {
2077
- "required" => true,
2078
- "max" => 1000,
2079
- "length" => true
2080
- },
2081
- "title" => {
2082
- "required" => true,
2083
- "max" => 80,
2084
- "length" => true
2085
- }
2086
- }
2087
- }
2088
- },
2089
- "separate-audio-stems" => {
2090
- "models" => [],
2091
- "fields_by_model" => {
2092
- "_" => {
2093
- "audio_id" => {
2094
- "required" => true
2095
- },
2096
- "stem_name" => {
2097
- "enum" => ["Lead Vocal", "Drum Kit", "Kick", "Snare", "Risers", "Bass", "Backing Vocals", "Piano", "Electric Guitar", "Percussion", "String Section", "Synth", "Acoustic Guitar", "Sound Effects", "Synth Pad", "Synth Bass", "Guitar", "Brass Section", "Organ", "Electronic Drum Kit", "Lead Electric Guitar", "Synth Keys", "Rhythm Electric Guitar", "Electric Piano", "Upright Bass", "Keyboards", "Distorted Electric Guitar", "Synth Strings", "Synth Lead", "Woodwinds", "Rhythm Acoustic Guitar", "Flute", "Harp", "Tambourine", "Trumpet", "Arpeggiator", "Accordion", "Fiddle", "Pedal Steel Guitar", "Synth Voice", "Violin", "Digital Piano", "Synth Brass", "Mandolin", "Choir", "Banjo", "Bells", "Clarinet", "Tenor Saxophone", "Trombone", "Shaker", "French Horn", "Glockenspiel", "Electric Bass", "Cello", "Timpani", "Harmonica", "Marimba", "Vibraphone", "Lap Steel Guitar", "Saxophone", "Orchestra", "Horns", "Cymbals", "Hand Clap", "Oboe", "Celesta", "Congas", "Drone", "Alto Saxophone", "Double Bass", "Ukulele", "Harpsichord", "Baritone Saxophone", "Xylophone", "Tuba", "Bass Guitar", "Whistle", "Lead Guitar", "Rhodes", "808", "Bongos", "Bassoon", "Cowbell", "Viola", "Sitar", "Steel Drums", "Piccolo", "Theremin", "Bagpipes", "Hi-Hat", "Music Box", "Melodica", "Tabla", "Koto", "Djembe", "Taiko", "Didgeridoo"]
2098
- },
2099
- "task_id" => {
2100
- "required" => true
2101
- },
2102
- "type" => {
2103
- "enum" => ["separate_vocal", "split_stem", "split_stem_advanced"]
2104
- }
2105
- }
2106
- },
2107
- "rules" => [{
2108
- "when" => {
2109
- "type" => "split_stem_advanced"
2110
- },
2111
- "required" => ["stem_name"]
2112
- }]
2113
- },
2114
- "stitch-audio" => {
2115
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-plus", "suno-v5", "suno-v5.5"],
2116
- "fields_by_model" => {
2117
- "suno-v4" => {
2118
- "audio_id" => {
2119
- "required" => true
2120
- },
2121
- "model" => {
2122
- "required" => true
2123
- },
2124
- "source_task_id" => {
2125
- "required" => true
2126
- }
2127
- },
2128
- "suno-v4.5" => {
2129
- "audio_id" => {
2130
- "required" => true
2131
- },
2132
- "model" => {
2133
- "required" => true
2134
- },
2135
- "source_task_id" => {
2136
- "required" => true
2137
- }
2138
- },
2139
- "suno-v4.5-plus" => {
2140
- "audio_id" => {
2141
- "required" => true
2142
- },
2143
- "model" => {
2144
- "required" => true
2145
- },
2146
- "source_task_id" => {
2147
- "required" => true
2148
- }
2149
- },
2150
- "suno-v5" => {
2151
- "audio_id" => {
2152
- "required" => true
2153
- },
2154
- "model" => {
2155
- "required" => true
2156
- },
2157
- "source_task_id" => {
2158
- "required" => true
2159
- }
2160
- },
2161
- "suno-v5.5" => {
2162
- "audio_id" => {
2163
- "required" => true
2164
- },
2165
- "model" => {
2166
- "required" => true
2167
- },
2168
- "source_task_id" => {
2169
- "required" => true
2170
- }
2171
- }
2172
- }
2173
- },
2174
- "style-expansions" => {
2175
- "models" => [],
2176
- "fields_by_model" => {
2177
- "_" => {
2178
- "description" => {
2179
- "required" => true
2180
- }
2181
- }
2182
- }
2183
- },
2184
- "text-to-music" => {
2185
- "models" => ["suno-v4", "suno-v4.5", "suno-v4.5-all", "suno-v4.5-plus", "suno-v5", "suno-v5.5", "suno-v6", "suno-v6-mini", "suno-v6-wild"],
2186
- "fields_by_model" => {
2187
- "suno-v4" => {
2188
- "audio_weight" => {
2189
- "min" => 0,
2190
- "max" => 1
2191
- },
2192
- "duration_seconds" => {
2193
- "min" => 10,
2194
- "max" => 360,
2195
- "type" => "integer"
2196
- },
2197
- "lyrics" => {
2198
- "max" => 5000,
2199
- "length" => true
2200
- },
2201
- "model" => {
2202
- "required" => true
2203
- },
2204
- "negative_tags" => {
2205
- "max" => 200,
2206
- "length" => true
2207
- },
2208
- "persona_type" => {
2209
- "enum" => ["style", "voice"]
2210
- },
2211
- "prompt" => {
2212
- "max" => 5000,
2213
- "length" => true
2214
- },
2215
- "style" => {
2216
- "max" => 1000,
2217
- "length" => true
2218
- },
2219
- "style_weight" => {
2220
- "min" => 0,
2221
- "max" => 1
2222
- },
2223
- "title" => {
2224
- "max" => 80,
2225
- "length" => true
2226
- },
2227
- "vocal_gender" => {
2228
- "enum" => ["male", "female"]
2229
- },
2230
- "vocal_mode" => {
2231
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2232
- "required" => true
2233
- },
2234
- "weirdness_constraint" => {
2235
- "min" => 0,
2236
- "max" => 1
2237
- }
2238
- },
2239
- "suno-v4.5" => {
2240
- "audio_weight" => {
2241
- "min" => 0,
2242
- "max" => 1
2243
- },
2244
- "duration_seconds" => {
2245
- "min" => 10,
2246
- "max" => 360,
2247
- "type" => "integer"
2248
- },
2249
- "lyrics" => {
2250
- "max" => 5000,
2251
- "length" => true
2252
- },
2253
- "model" => {
2254
- "required" => true
2255
- },
2256
- "negative_tags" => {
2257
- "max" => 200,
2258
- "length" => true
2259
- },
2260
- "persona_type" => {
2261
- "enum" => ["style", "voice"]
2262
- },
2263
- "prompt" => {
2264
- "max" => 5000,
2265
- "length" => true
2266
- },
2267
- "style" => {
2268
- "max" => 1000,
2269
- "length" => true
2270
- },
2271
- "style_weight" => {
2272
- "min" => 0,
2273
- "max" => 1
2274
- },
2275
- "title" => {
2276
- "max" => 80,
2277
- "length" => true
2278
- },
2279
- "vocal_gender" => {
2280
- "enum" => ["male", "female"]
2281
- },
2282
- "vocal_mode" => {
2283
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2284
- "required" => true
2285
- },
2286
- "weirdness_constraint" => {
2287
- "min" => 0,
2288
- "max" => 1
2289
- }
2290
- },
2291
- "suno-v4.5-all" => {
2292
- "audio_weight" => {
2293
- "min" => 0,
2294
- "max" => 1
2295
- },
2296
- "duration_seconds" => {
2297
- "min" => 10,
2298
- "max" => 360,
2299
- "type" => "integer"
2300
- },
2301
- "lyrics" => {
2302
- "max" => 5000,
2303
- "length" => true
2304
- },
2305
- "model" => {
2306
- "required" => true
2307
- },
2308
- "negative_tags" => {
2309
- "max" => 200,
2310
- "length" => true
2311
- },
2312
- "persona_type" => {
2313
- "enum" => ["style", "voice"]
2314
- },
2315
- "prompt" => {
2316
- "max" => 5000,
2317
- "length" => true
2318
- },
2319
- "style" => {
2320
- "max" => 1000,
2321
- "length" => true
2322
- },
2323
- "style_weight" => {
2324
- "min" => 0,
2325
- "max" => 1
2326
- },
2327
- "title" => {
2328
- "max" => 80,
2329
- "length" => true
2330
- },
2331
- "vocal_gender" => {
2332
- "enum" => ["male", "female"]
2333
- },
2334
- "vocal_mode" => {
2335
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2336
- "required" => true
2337
- },
2338
- "weirdness_constraint" => {
2339
- "min" => 0,
2340
- "max" => 1
2341
- }
2342
- },
2343
- "suno-v4.5-plus" => {
2344
- "audio_weight" => {
2345
- "min" => 0,
2346
- "max" => 1
2347
- },
2348
- "duration_seconds" => {
2349
- "min" => 10,
2350
- "max" => 360,
2351
- "type" => "integer"
2352
- },
2353
- "lyrics" => {
2354
- "max" => 5000,
2355
- "length" => true
2356
- },
2357
- "model" => {
2358
- "required" => true
2359
- },
2360
- "negative_tags" => {
2361
- "max" => 200,
2362
- "length" => true
2363
- },
2364
- "persona_type" => {
2365
- "enum" => ["style", "voice"]
2366
- },
2367
- "prompt" => {
2368
- "max" => 5000,
2369
- "length" => true
2370
- },
2371
- "style" => {
2372
- "max" => 1000,
2373
- "length" => true
2374
- },
2375
- "style_weight" => {
2376
- "min" => 0,
2377
- "max" => 1
2378
- },
2379
- "title" => {
2380
- "max" => 80,
2381
- "length" => true
2382
- },
2383
- "vocal_gender" => {
2384
- "enum" => ["male", "female"]
2385
- },
2386
- "vocal_mode" => {
2387
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2388
- "required" => true
2389
- },
2390
- "weirdness_constraint" => {
2391
- "min" => 0,
2392
- "max" => 1
2393
- }
2394
- },
2395
- "suno-v5" => {
2396
- "audio_weight" => {
2397
- "min" => 0,
2398
- "max" => 1
2399
- },
2400
- "duration_seconds" => {
2401
- "min" => 10,
2402
- "max" => 360,
2403
- "type" => "integer"
2404
- },
2405
- "lyrics" => {
2406
- "max" => 5000,
2407
- "length" => true
2408
- },
2409
- "model" => {
2410
- "required" => true
2411
- },
2412
- "negative_tags" => {
2413
- "max" => 200,
2414
- "length" => true
2415
- },
2416
- "persona_type" => {
2417
- "enum" => ["style", "voice"]
2418
- },
2419
- "prompt" => {
2420
- "max" => 5000,
2421
- "length" => true
2422
- },
2423
- "style" => {
2424
- "max" => 1000,
2425
- "length" => true
2426
- },
2427
- "style_weight" => {
2428
- "min" => 0,
2429
- "max" => 1
2430
- },
2431
- "title" => {
2432
- "max" => 80,
2433
- "length" => true
2434
- },
2435
- "vocal_gender" => {
2436
- "enum" => ["male", "female"]
2437
- },
2438
- "vocal_mode" => {
2439
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2440
- "required" => true
2441
- },
2442
- "weirdness_constraint" => {
2443
- "min" => 0,
2444
- "max" => 1
2445
- }
2446
- },
2447
- "suno-v5.5" => {
2448
- "audio_weight" => {
2449
- "min" => 0,
2450
- "max" => 1
2451
- },
2452
- "duration_seconds" => {
2453
- "min" => 10,
2454
- "max" => 360,
2455
- "type" => "integer"
2456
- },
2457
- "lyrics" => {
2458
- "max" => 5000,
2459
- "length" => true
2460
- },
2461
- "model" => {
2462
- "required" => true
2463
- },
2464
- "negative_tags" => {
2465
- "max" => 200,
2466
- "length" => true
2467
- },
2468
- "persona_type" => {
2469
- "enum" => ["style", "voice"]
2470
- },
2471
- "prompt" => {
2472
- "max" => 5000,
2473
- "length" => true
2474
- },
2475
- "style" => {
2476
- "max" => 1000,
2477
- "length" => true
2478
- },
2479
- "style_weight" => {
2480
- "min" => 0,
2481
- "max" => 1
2482
- },
2483
- "title" => {
2484
- "max" => 80,
2485
- "length" => true
2486
- },
2487
- "vocal_gender" => {
2488
- "enum" => ["male", "female"]
2489
- },
2490
- "vocal_mode" => {
2491
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2492
- "required" => true
2493
- },
2494
- "weirdness_constraint" => {
2495
- "min" => 0,
2496
- "max" => 1
2497
- }
2498
- },
2499
- "suno-v6" => {
2500
- "audio_weight" => {
2501
- "min" => 0,
2502
- "max" => 1
2503
- },
2504
- "duration_seconds" => {
2505
- "min" => 10,
2506
- "max" => 360,
2507
- "type" => "integer"
2508
- },
2509
- "lyrics" => {
2510
- "max" => 5000,
2511
- "length" => true
2512
- },
2513
- "model" => {
2514
- "required" => true
2515
- },
2516
- "negative_tags" => {
2517
- "max" => 200,
2518
- "length" => true
2519
- },
2520
- "persona_type" => {
2521
- "enum" => ["style", "voice"]
2522
- },
2523
- "prompt" => {
2524
- "max" => 5000,
2525
- "length" => true
2526
- },
2527
- "style" => {
2528
- "max" => 1000,
2529
- "length" => true
2530
- },
2531
- "style_weight" => {
2532
- "min" => 0,
2533
- "max" => 1
2534
- },
2535
- "title" => {
2536
- "max" => 80,
2537
- "length" => true
2538
- },
2539
- "vocal_gender" => {
2540
- "enum" => ["male", "female"]
2541
- },
2542
- "vocal_mode" => {
2543
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2544
- "required" => true
2545
- },
2546
- "weirdness_constraint" => {
2547
- "min" => 0,
2548
- "max" => 1
2549
- }
2550
- },
2551
- "suno-v6-mini" => {
2552
- "audio_weight" => {
2553
- "min" => 0,
2554
- "max" => 1
2555
- },
2556
- "duration_seconds" => {
2557
- "min" => 10,
2558
- "max" => 360,
2559
- "type" => "integer"
2560
- },
2561
- "lyrics" => {
2562
- "max" => 5000,
2563
- "length" => true
2564
- },
2565
- "model" => {
2566
- "required" => true
2567
- },
2568
- "negative_tags" => {
2569
- "max" => 200,
2570
- "length" => true
2571
- },
2572
- "persona_type" => {
2573
- "enum" => ["style", "voice"]
2574
- },
2575
- "prompt" => {
2576
- "max" => 5000,
2577
- "length" => true
2578
- },
2579
- "style" => {
2580
- "max" => 1000,
2581
- "length" => true
2582
- },
2583
- "style_weight" => {
2584
- "min" => 0,
2585
- "max" => 1
2586
- },
2587
- "title" => {
2588
- "max" => 80,
2589
- "length" => true
2590
- },
2591
- "vocal_gender" => {
2592
- "enum" => ["male", "female"]
2593
- },
2594
- "vocal_mode" => {
2595
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2596
- "required" => true
2597
- },
2598
- "weirdness_constraint" => {
2599
- "min" => 0,
2600
- "max" => 1
2601
- }
2602
- },
2603
- "suno-v6-wild" => {
2604
- "audio_weight" => {
2605
- "min" => 0,
2606
- "max" => 1
2607
- },
2608
- "duration_seconds" => {
2609
- "min" => 10,
2610
- "max" => 360,
2611
- "type" => "integer"
2612
- },
2613
- "lyrics" => {
2614
- "max" => 5000,
2615
- "length" => true
2616
- },
2617
- "model" => {
2618
- "required" => true
2619
- },
2620
- "negative_tags" => {
2621
- "max" => 200,
2622
- "length" => true
2623
- },
2624
- "persona_type" => {
2625
- "enum" => ["style", "voice"]
2626
- },
2627
- "prompt" => {
2628
- "max" => 5000,
2629
- "length" => true
2630
- },
2631
- "style" => {
2632
- "max" => 1000,
2633
- "length" => true
2634
- },
2635
- "style_weight" => {
2636
- "min" => 0,
2637
- "max" => 1
2638
- },
2639
- "title" => {
2640
- "max" => 80,
2641
- "length" => true
2642
- },
2643
- "vocal_gender" => {
2644
- "enum" => ["male", "female"]
2645
- },
2646
- "vocal_mode" => {
2647
- "enum" => ["auto_lyrics", "exact_lyrics", "instrumental"],
2648
- "required" => true
2649
- },
2650
- "weirdness_constraint" => {
2651
- "min" => 0,
2652
- "max" => 1
2653
- }
2654
- }
2655
- },
2656
- "rules" => [{
2657
- "when" => {
2658
- "vocal_mode" => "auto_lyrics"
2659
- },
2660
- "required" => ["prompt"],
2661
- "forbidden" => ["lyrics", "style", "title", "negative_tags", "vocal_gender", "duration_seconds"]
2662
- }, {
2663
- "when" => {
2664
- "vocal_mode" => "exact_lyrics"
2665
- },
2666
- "required" => ["lyrics", "style", "title"],
2667
- "forbidden" => ["prompt"]
2668
- }, {
2669
- "when" => {
2670
- "vocal_mode" => "instrumental"
2671
- },
2672
- "required" => ["style", "title"],
2673
- "forbidden" => ["prompt", "lyrics", "vocal_gender"]
2674
- }, {
2675
- "when" => {
2676
- "model" => "suno-v4"
2677
- },
2678
- "forbidden" => ["duration_seconds"]
2679
- }, {
2680
- "when" => {
2681
- "model" => "suno-v4.5"
2682
- },
2683
- "forbidden" => ["duration_seconds"]
2684
- }, {
2685
- "when" => {
2686
- "model" => "suno-v4.5-all"
2687
- },
2688
- "forbidden" => ["duration_seconds"]
2689
- }, {
2690
- "when" => {
2691
- "model" => "suno-v4.5-plus"
2692
- },
2693
- "forbidden" => ["duration_seconds"]
2694
- }, {
2695
- "when" => {
2696
- "model" => "suno-v5"
2697
- },
2698
- "forbidden" => ["duration_seconds"]
2699
- }, {
2700
- "when" => {
2701
- "voice_id" => {
2702
- "present" => true
2703
- }
2704
- },
2705
- "forbidden" => ["persona_id", "persona_type"]
2706
- }]
2707
- },
2708
- "text-to-sound" => {
2709
- "models" => ["suno-v5", "suno-v5.5"],
2710
- "fields_by_model" => {
2711
- "suno-v5" => {
2712
- "model" => {
2713
- "required" => true
2714
- },
2715
- "prompt" => {
2716
- "required" => true
2717
- },
2718
- "sound_key" => {
2719
- "enum" => ["Cm", "C#m", "Dm", "D#m", "Em", "Fm", "F#m", "Gm", "G#m", "Am", "A#m", "Bm", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
2720
- },
2721
- "sound_tempo" => {
2722
- "type" => "integer"
2723
- }
2724
- },
2725
- "suno-v5.5" => {
2726
- "model" => {
2727
- "required" => true
2728
- },
2729
- "prompt" => {
2730
- "required" => true
2731
- },
2732
- "sound_key" => {
2733
- "enum" => ["Cm", "C#m", "Dm", "D#m", "Em", "Fm", "F#m", "Gm", "G#m", "Am", "A#m", "Bm", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
2734
- },
2735
- "sound_tempo" => {
2736
- "type" => "integer"
2737
- }
2738
- }
2739
- }
2740
- },
2741
- "timestamped-lyrics" => {
2742
- "models" => [],
2743
- "fields_by_model" => {
2744
- "_" => {
2745
- "source_audio_id" => {
2746
- "required" => true
2747
- }
2748
- }
2749
- }
2750
- },
2751
- "visualize-music" => {
2752
- "models" => [],
2753
- "fields_by_model" => {
2754
- "_" => {
2755
- "audio_id" => {
2756
- "required" => true
2757
- },
2758
- "task_id" => {
2759
- "required" => true
2760
- }
2761
- }
2762
- }
2763
- },
2764
- "voice-to-validation-phrase" => {
2765
- "models" => [],
2766
- "fields_by_model" => {
2767
- "_" => {
2768
- "language" => {
2769
- "enum" => ["en", "zh", "es", "fr", "pt", "de", "ja", "ko", "hi", "ru"]
2770
- },
2771
- "vocal_end_seconds" => {
2772
- "required" => true,
2773
- "type" => "integer"
2774
- },
2775
- "vocal_start_seconds" => {
2776
- "required" => true,
2777
- "type" => "integer"
2778
- },
2779
- "voice_url" => {
2780
- "required" => true
2781
- }
2782
- }
2783
- }
2784
- },
2785
- "voices" => {
2786
- "models" => [],
2787
- "fields_by_model" => {
2788
- "_" => {
2789
- "source_audio_url" => {
2790
- "required" => true
2791
- }
2792
- }
2793
- }
2794
- }
2795
- }.freeze
2796
- end
2797
- end