@scenario-labs/sdk 2.4.0-alpha.1 → 2.5.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 (141) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +26 -0
  3. package/client.d.mts +1 -1
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +1 -1
  6. package/client.d.ts.map +1 -1
  7. package/lib/cel/environment.d.mts +38 -0
  8. package/lib/cel/environment.d.mts.map +1 -0
  9. package/lib/cel/environment.d.ts +38 -0
  10. package/lib/cel/environment.d.ts.map +1 -0
  11. package/lib/cel/environment.js +52 -0
  12. package/lib/cel/environment.js.map +1 -0
  13. package/lib/cel/environment.mjs +48 -0
  14. package/lib/cel/environment.mjs.map +1 -0
  15. package/lib/cel/functions.d.mts +4 -0
  16. package/lib/cel/functions.d.mts.map +1 -0
  17. package/lib/cel/functions.d.ts +4 -0
  18. package/lib/cel/functions.d.ts.map +1 -0
  19. package/lib/cel/functions.js +67 -0
  20. package/lib/cel/functions.js.map +1 -0
  21. package/lib/cel/functions.mjs +64 -0
  22. package/lib/cel/functions.mjs.map +1 -0
  23. package/lib/cel/index.d.mts +3 -0
  24. package/lib/cel/index.d.mts.map +1 -0
  25. package/lib/cel/index.d.ts +3 -0
  26. package/lib/cel/index.d.ts.map +1 -0
  27. package/lib/cel/index.js +9 -0
  28. package/lib/cel/index.js.map +1 -0
  29. package/lib/cel/index.mjs +3 -0
  30. package/lib/cel/index.mjs.map +1 -0
  31. package/lib/cel/prng.d.mts +28 -0
  32. package/lib/cel/prng.d.mts.map +1 -0
  33. package/lib/cel/prng.d.ts +28 -0
  34. package/lib/cel/prng.d.ts.map +1 -0
  35. package/lib/cel/prng.js +64 -0
  36. package/lib/cel/prng.js.map +1 -0
  37. package/lib/cel/prng.mjs +58 -0
  38. package/lib/cel/prng.mjs.map +1 -0
  39. package/lib/workflow_converter.d.mts +3 -0
  40. package/lib/workflow_converter.d.mts.map +1 -1
  41. package/lib/workflow_converter.d.ts +3 -0
  42. package/lib/workflow_converter.d.ts.map +1 -1
  43. package/lib/workflow_converter.js +62 -34
  44. package/lib/workflow_converter.js.map +1 -1
  45. package/lib/workflow_converter.mjs +62 -34
  46. package/lib/workflow_converter.mjs.map +1 -1
  47. package/package.json +17 -2
  48. package/resources/assets/assets.d.mts +269 -31
  49. package/resources/assets/assets.d.mts.map +1 -1
  50. package/resources/assets/assets.d.ts +269 -31
  51. package/resources/assets/assets.d.ts.map +1 -1
  52. package/resources/assets/assets.js.map +1 -1
  53. package/resources/assets/assets.mjs.map +1 -1
  54. package/resources/generate.d.mts +157 -51
  55. package/resources/generate.d.mts.map +1 -1
  56. package/resources/generate.d.ts +157 -51
  57. package/resources/generate.d.ts.map +1 -1
  58. package/resources/generate.js +1 -5
  59. package/resources/generate.js.map +1 -1
  60. package/resources/generate.mjs +1 -5
  61. package/resources/generate.mjs.map +1 -1
  62. package/resources/index.d.mts +1 -1
  63. package/resources/index.d.mts.map +1 -1
  64. package/resources/index.d.ts +1 -1
  65. package/resources/index.d.ts.map +1 -1
  66. package/resources/jobs.d.mts +30 -12
  67. package/resources/jobs.d.mts.map +1 -1
  68. package/resources/jobs.d.ts +30 -12
  69. package/resources/jobs.d.ts.map +1 -1
  70. package/resources/models/description.d.mts +62 -4
  71. package/resources/models/description.d.mts.map +1 -1
  72. package/resources/models/description.d.ts +62 -4
  73. package/resources/models/description.d.ts.map +1 -1
  74. package/resources/models/examples.d.mts +94 -64
  75. package/resources/models/examples.d.mts.map +1 -1
  76. package/resources/models/examples.d.ts +94 -64
  77. package/resources/models/examples.d.ts.map +1 -1
  78. package/resources/models/models.d.mts +239 -295
  79. package/resources/models/models.d.mts.map +1 -1
  80. package/resources/models/models.d.ts +239 -295
  81. package/resources/models/models.d.ts.map +1 -1
  82. package/resources/models/models.js.map +1 -1
  83. package/resources/models/models.mjs.map +1 -1
  84. package/resources/models/train.d.mts +92 -110
  85. package/resources/models/train.d.mts.map +1 -1
  86. package/resources/models/train.d.ts +92 -110
  87. package/resources/models/train.d.ts.map +1 -1
  88. package/resources/search.d.mts +2 -2
  89. package/resources/search.d.ts +2 -2
  90. package/resources/uploads.d.mts +2 -3
  91. package/resources/uploads.d.mts.map +1 -1
  92. package/resources/uploads.d.ts +2 -3
  93. package/resources/uploads.d.ts.map +1 -1
  94. package/resources/usages.d.mts +44 -15
  95. package/resources/usages.d.mts.map +1 -1
  96. package/resources/usages.d.ts +44 -15
  97. package/resources/usages.d.ts.map +1 -1
  98. package/resources/workflows.d.mts +63 -45
  99. package/resources/workflows.d.mts.map +1 -1
  100. package/resources/workflows.d.ts +63 -45
  101. package/resources/workflows.d.ts.map +1 -1
  102. package/resources/workflows.js +4 -4
  103. package/resources/workflows.js.map +1 -1
  104. package/resources/workflows.mjs +4 -4
  105. package/resources/workflows.mjs.map +1 -1
  106. package/src/client.ts +1 -1
  107. package/src/lib/cel/environment.ts +81 -0
  108. package/src/lib/cel/functions.ts +109 -0
  109. package/src/lib/cel/index.ts +8 -0
  110. package/src/lib/cel/prng.ts +62 -0
  111. package/src/lib/workflow_converter.ts +91 -35
  112. package/src/resources/assets/assets.ts +300 -62
  113. package/src/resources/generate.ts +157 -129
  114. package/src/resources/index.ts +1 -1
  115. package/src/resources/jobs.ts +27 -37
  116. package/src/resources/models/description.ts +70 -12
  117. package/src/resources/models/examples.ts +100 -88
  118. package/src/resources/models/models.ts +228 -385
  119. package/src/resources/models/train.ts +89 -139
  120. package/src/resources/search.ts +2 -2
  121. package/src/resources/uploads.ts +2 -3
  122. package/src/resources/usages.ts +47 -20
  123. package/src/resources/workflows.ts +48 -157
  124. package/src/tools/cel.ts +4 -0
  125. package/src/version.ts +1 -1
  126. package/tools/cel.d.mts +2 -0
  127. package/tools/cel.d.mts.map +1 -0
  128. package/tools/cel.d.ts +2 -0
  129. package/tools/cel.d.ts.map +1 -0
  130. package/tools/cel.js +8 -0
  131. package/tools/cel.js.map +1 -0
  132. package/tools/cel.mjs +5 -0
  133. package/tools/cel.mjs.map +1 -0
  134. package/version.d.mts +1 -1
  135. package/version.d.mts.map +1 -1
  136. package/version.d.ts +1 -1
  137. package/version.d.ts.map +1 -1
  138. package/version.js +1 -1
  139. package/version.js.map +1 -1
  140. package/version.mjs +1 -1
  141. package/version.mjs.map +1 -1
@@ -295,12 +295,6 @@ export namespace ModelCreateResponse {
295
295
  | 'qwen-image-edit-2511-lora'
296
296
  | 'qwen-image-edit-lora'
297
297
  | 'qwen-image-lora'
298
- | 'sd-1_5'
299
- | 'sd-1_5-composition'
300
- | 'sd-1_5-lora'
301
- | 'sd-xl'
302
- | 'sd-xl-composition'
303
- | 'sd-xl-lora'
304
298
  | 'zimage-de-turbo-lora'
305
299
  | 'zimage-lora'
306
300
  | 'zimage-turbo-lora';
@@ -338,6 +332,13 @@ export namespace ModelCreateResponse {
338
332
  */
339
333
  concepts?: Array<Model.Concept>;
340
334
 
335
+ /**
336
+ * When true, credits spent on a generation with this model are not automatically
337
+ * refunded if the generation fails. Absent or false means failed generations are
338
+ * refunded as usual.
339
+ */
340
+ disableRefund?: boolean;
341
+
341
342
  /**
342
343
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
343
344
  * uses the final model epoch (latest)
@@ -460,7 +461,7 @@ export namespace ModelCreateResponse {
460
461
  conceptPrompt: string;
461
462
 
462
463
  /**
463
- * The model ID of the class (example: "stable-diffusion-v1-5")
464
+ * The model ID of the class. Only available for legacy models.
464
465
  */
465
466
  modelId: string;
466
467
 
@@ -703,12 +704,6 @@ export namespace ModelCreateResponse {
703
704
  | 'qwen-image-edit-2511-lora'
704
705
  | 'qwen-image-edit-lora'
705
706
  | 'qwen-image-lora'
706
- | 'sd-1_5'
707
- | 'sd-1_5-composition'
708
- | 'sd-1_5-lora'
709
- | 'sd-xl'
710
- | 'sd-xl-composition'
711
- | 'sd-xl-lora'
712
707
  | 'zimage-de-turbo-lora'
713
708
  | 'zimage-lora'
714
709
  | 'zimage-turbo-lora'
@@ -825,7 +820,7 @@ export namespace ModelCreateResponse {
825
820
  /**
826
821
  * The prompt to specify images in the same class as provided instance images
827
822
  *
828
- * Only available for SD15 training
823
+ * Deprecated legacy training parameter.
829
824
  */
830
825
  classPrompt?: string;
831
826
 
@@ -841,11 +836,8 @@ export namespace ModelCreateResponse {
841
836
  * The prompt with identifier specifying the instance (or subject) of the class
842
837
  * (example: "a daiton dog")
843
838
  *
844
- * Default value varies depending on the model type:
845
- *
846
- * - For SD1.5: "daiton" if no class is associated with the model
847
- * - For SDXL: "daiton"
848
- * - For Flux: ""
839
+ * Default value varies depending on the model type. For Flux LoRA, the default is
840
+ * an empty string.
849
841
  */
850
842
  conceptPrompt?: string;
851
843
 
@@ -866,32 +858,30 @@ export namespace ModelCreateResponse {
866
858
  /**
867
859
  * Initial learning rate (after the potential warmup period)
868
860
  *
869
- * Default value varies depending on the model type:
870
- *
871
- * - For SD1.5 and SDXL: 0.000005
872
- * - For Flux: 0.0001
861
+ * Default value varies depending on the model type. For Flux LoRA, the default is
862
+ * 0.0001.
873
863
  */
874
864
  learningRate?: number;
875
865
 
876
866
  /**
877
867
  * Initial learning rate (after the potential warmup period) for the text encoder
878
868
  *
879
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
880
- * [SDXL: 0 | Flux LoRA: 0.000001]
869
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
870
+ * 0.000001]
881
871
  */
882
872
  learningRateTextEncoder?: number;
883
873
 
884
874
  /**
885
875
  * Initial learning rate (after the potential warmup period) for the UNet
886
876
  *
887
- * Only available for SDXL LoRA training
877
+ * Deprecated legacy training parameter.
888
878
  */
889
879
  learningRateUnet?: number;
890
880
 
891
881
  /**
892
882
  * The scheduler type to use (default: "constant")
893
883
  *
894
- * Only available for SD15 and SDXL LoRA training
884
+ * Deprecated legacy training parameter.
895
885
  */
896
886
  lrScheduler?:
897
887
  | 'constant'
@@ -905,18 +895,12 @@ export namespace ModelCreateResponse {
905
895
  * Maximum number of training steps to execute (default: varies depending on the
906
896
  * model type)
907
897
  *
908
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
909
- * instead
910
- *
911
898
  * Default value varies depending on the model type:
912
899
  *
913
- * - For SD1.5: round((number of training images \* 225) / 3)
914
- * - For SDXL: number of training images \* 175
915
900
  * - For Flux: number of training images \* 100
916
901
  *
917
902
  * Maximum value varies depending on the model type:
918
903
  *
919
- * - For SD1.5 and SDXL: [0, 40000]
920
904
  * - For Flux: [0, 10000]
921
905
  */
922
906
  maxTrainSteps?: number;
@@ -938,14 +922,14 @@ export namespace ModelCreateResponse {
938
922
  /**
939
923
  * The number of training steps for the text encoder
940
924
  *
941
- * Only available for SDXL LoRA training
925
+ * Deprecated legacy training parameter.
942
926
  */
943
927
  numTextTrainSteps?: number;
944
928
 
945
929
  /**
946
930
  * The number of training steps for the UNet
947
931
  *
948
- * Only available for SDXL LoRA training
932
+ * Deprecated legacy training parameter.
949
933
  */
950
934
  numUNetTrainSteps?: number;
951
935
 
@@ -968,7 +952,7 @@ export namespace ModelCreateResponse {
968
952
  /**
969
953
  * The weight of prior preservation loss
970
954
  *
971
- * Only available for SD15 and SDXL LoRA training
955
+ * Deprecated legacy training parameter.
972
956
  */
973
957
  priorLossWeight?: number;
974
958
 
@@ -976,32 +960,31 @@ export namespace ModelCreateResponse {
976
960
  * Whether to random crop or center crop images before resizing to the working
977
961
  * resolution
978
962
  *
979
- * Only available for SD15 and SDXL LoRA training
963
+ * Deprecated legacy training parameter.
980
964
  */
981
965
  randomCrop?: boolean;
982
966
 
983
967
  /**
984
968
  * Ratio of random crops
985
969
  *
986
- * Only available for SD15 and SDXL LoRA training
970
+ * Deprecated legacy training parameter.
987
971
  */
988
972
  randomCropRatio?: number;
989
973
 
990
974
  /**
991
975
  * Scale of random crops
992
976
  *
993
- * Only available for SD15 and SDXL LoRA training
977
+ * Deprecated legacy training parameter.
994
978
  */
995
979
  randomCropScale?: number;
996
980
 
997
981
  /**
998
982
  * The dimension of the LoRA update matrices
999
983
  *
1000
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
984
+ * Only available for Flux LoRA and Musubi training
1001
985
  *
1002
986
  * Default value varies depending on the model type:
1003
987
  *
1004
- * - For SDXL (deprecated): 64
1005
988
  * - For Flux: 16
1006
989
  * - For Musubi: 64
1007
990
  *
@@ -1034,14 +1017,14 @@ export namespace ModelCreateResponse {
1034
1017
  *
1035
1018
  * Note: Legacy parameter, will be ignored
1036
1019
  *
1037
- * Only available for SD15 and SDXL LoRA training
1020
+ * Deprecated legacy training parameter.
1038
1021
  */
1039
1022
  scaleLr?: boolean;
1040
1023
 
1041
1024
  /**
1042
1025
  * Used to reproduce previous results. Default: randomly generated number.
1043
1026
  *
1044
- * Only available for SD15 and SDXL LoRA training
1027
+ * Deprecated legacy training parameter.
1045
1028
  */
1046
1029
  seed?: number;
1047
1030
 
@@ -1053,21 +1036,21 @@ export namespace ModelCreateResponse {
1053
1036
  *
1054
1037
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
1055
1038
  *
1056
- * Only available for SD15 and SDXL LoRA training
1039
+ * Deprecated legacy training parameter.
1057
1040
  */
1058
1041
  textEncoderTrainingRatio?: number;
1059
1042
 
1060
1043
  /**
1061
1044
  * Validation frequency. Cannot be greater than maxTrainSteps value
1062
1045
  *
1063
- * Only available for SD15 and SDXL LoRA training
1046
+ * Deprecated legacy training parameter.
1064
1047
  */
1065
1048
  validationFrequency?: number;
1066
1049
 
1067
1050
  /**
1068
1051
  * Validation prompt
1069
1052
  *
1070
- * Only available for SD15 and SDXL LoRA training
1053
+ * Deprecated legacy training parameter.
1071
1054
  */
1072
1055
  validationPrompt?: string;
1073
1056
 
@@ -1627,12 +1610,6 @@ export namespace ModelRetrieveResponse {
1627
1610
  | 'qwen-image-edit-2511-lora'
1628
1611
  | 'qwen-image-edit-lora'
1629
1612
  | 'qwen-image-lora'
1630
- | 'sd-1_5'
1631
- | 'sd-1_5-composition'
1632
- | 'sd-1_5-lora'
1633
- | 'sd-xl'
1634
- | 'sd-xl-composition'
1635
- | 'sd-xl-lora'
1636
1613
  | 'zimage-de-turbo-lora'
1637
1614
  | 'zimage-lora'
1638
1615
  | 'zimage-turbo-lora';
@@ -1670,6 +1647,13 @@ export namespace ModelRetrieveResponse {
1670
1647
  */
1671
1648
  concepts?: Array<Model.Concept>;
1672
1649
 
1650
+ /**
1651
+ * When true, credits spent on a generation with this model are not automatically
1652
+ * refunded if the generation fails. Absent or false means failed generations are
1653
+ * refunded as usual.
1654
+ */
1655
+ disableRefund?: boolean;
1656
+
1673
1657
  /**
1674
1658
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
1675
1659
  * uses the final model epoch (latest)
@@ -1792,7 +1776,7 @@ export namespace ModelRetrieveResponse {
1792
1776
  conceptPrompt: string;
1793
1777
 
1794
1778
  /**
1795
- * The model ID of the class (example: "stable-diffusion-v1-5")
1779
+ * The model ID of the class. Only available for legacy models.
1796
1780
  */
1797
1781
  modelId: string;
1798
1782
 
@@ -2035,12 +2019,6 @@ export namespace ModelRetrieveResponse {
2035
2019
  | 'qwen-image-edit-2511-lora'
2036
2020
  | 'qwen-image-edit-lora'
2037
2021
  | 'qwen-image-lora'
2038
- | 'sd-1_5'
2039
- | 'sd-1_5-composition'
2040
- | 'sd-1_5-lora'
2041
- | 'sd-xl'
2042
- | 'sd-xl-composition'
2043
- | 'sd-xl-lora'
2044
2022
  | 'zimage-de-turbo-lora'
2045
2023
  | 'zimage-lora'
2046
2024
  | 'zimage-turbo-lora'
@@ -2157,7 +2135,7 @@ export namespace ModelRetrieveResponse {
2157
2135
  /**
2158
2136
  * The prompt to specify images in the same class as provided instance images
2159
2137
  *
2160
- * Only available for SD15 training
2138
+ * Deprecated legacy training parameter.
2161
2139
  */
2162
2140
  classPrompt?: string;
2163
2141
 
@@ -2173,11 +2151,8 @@ export namespace ModelRetrieveResponse {
2173
2151
  * The prompt with identifier specifying the instance (or subject) of the class
2174
2152
  * (example: "a daiton dog")
2175
2153
  *
2176
- * Default value varies depending on the model type:
2177
- *
2178
- * - For SD1.5: "daiton" if no class is associated with the model
2179
- * - For SDXL: "daiton"
2180
- * - For Flux: ""
2154
+ * Default value varies depending on the model type. For Flux LoRA, the default is
2155
+ * an empty string.
2181
2156
  */
2182
2157
  conceptPrompt?: string;
2183
2158
 
@@ -2198,32 +2173,30 @@ export namespace ModelRetrieveResponse {
2198
2173
  /**
2199
2174
  * Initial learning rate (after the potential warmup period)
2200
2175
  *
2201
- * Default value varies depending on the model type:
2202
- *
2203
- * - For SD1.5 and SDXL: 0.000005
2204
- * - For Flux: 0.0001
2176
+ * Default value varies depending on the model type. For Flux LoRA, the default is
2177
+ * 0.0001.
2205
2178
  */
2206
2179
  learningRate?: number;
2207
2180
 
2208
2181
  /**
2209
2182
  * Initial learning rate (after the potential warmup period) for the text encoder
2210
2183
  *
2211
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
2212
- * [SDXL: 0 | Flux LoRA: 0.000001]
2184
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
2185
+ * 0.000001]
2213
2186
  */
2214
2187
  learningRateTextEncoder?: number;
2215
2188
 
2216
2189
  /**
2217
2190
  * Initial learning rate (after the potential warmup period) for the UNet
2218
2191
  *
2219
- * Only available for SDXL LoRA training
2192
+ * Deprecated legacy training parameter.
2220
2193
  */
2221
2194
  learningRateUnet?: number;
2222
2195
 
2223
2196
  /**
2224
2197
  * The scheduler type to use (default: "constant")
2225
2198
  *
2226
- * Only available for SD15 and SDXL LoRA training
2199
+ * Deprecated legacy training parameter.
2227
2200
  */
2228
2201
  lrScheduler?:
2229
2202
  | 'constant'
@@ -2237,18 +2210,12 @@ export namespace ModelRetrieveResponse {
2237
2210
  * Maximum number of training steps to execute (default: varies depending on the
2238
2211
  * model type)
2239
2212
  *
2240
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
2241
- * instead
2242
- *
2243
2213
  * Default value varies depending on the model type:
2244
2214
  *
2245
- * - For SD1.5: round((number of training images \* 225) / 3)
2246
- * - For SDXL: number of training images \* 175
2247
2215
  * - For Flux: number of training images \* 100
2248
2216
  *
2249
2217
  * Maximum value varies depending on the model type:
2250
2218
  *
2251
- * - For SD1.5 and SDXL: [0, 40000]
2252
2219
  * - For Flux: [0, 10000]
2253
2220
  */
2254
2221
  maxTrainSteps?: number;
@@ -2270,14 +2237,14 @@ export namespace ModelRetrieveResponse {
2270
2237
  /**
2271
2238
  * The number of training steps for the text encoder
2272
2239
  *
2273
- * Only available for SDXL LoRA training
2240
+ * Deprecated legacy training parameter.
2274
2241
  */
2275
2242
  numTextTrainSteps?: number;
2276
2243
 
2277
2244
  /**
2278
2245
  * The number of training steps for the UNet
2279
2246
  *
2280
- * Only available for SDXL LoRA training
2247
+ * Deprecated legacy training parameter.
2281
2248
  */
2282
2249
  numUNetTrainSteps?: number;
2283
2250
 
@@ -2300,7 +2267,7 @@ export namespace ModelRetrieveResponse {
2300
2267
  /**
2301
2268
  * The weight of prior preservation loss
2302
2269
  *
2303
- * Only available for SD15 and SDXL LoRA training
2270
+ * Deprecated legacy training parameter.
2304
2271
  */
2305
2272
  priorLossWeight?: number;
2306
2273
 
@@ -2308,32 +2275,31 @@ export namespace ModelRetrieveResponse {
2308
2275
  * Whether to random crop or center crop images before resizing to the working
2309
2276
  * resolution
2310
2277
  *
2311
- * Only available for SD15 and SDXL LoRA training
2278
+ * Deprecated legacy training parameter.
2312
2279
  */
2313
2280
  randomCrop?: boolean;
2314
2281
 
2315
2282
  /**
2316
2283
  * Ratio of random crops
2317
2284
  *
2318
- * Only available for SD15 and SDXL LoRA training
2285
+ * Deprecated legacy training parameter.
2319
2286
  */
2320
2287
  randomCropRatio?: number;
2321
2288
 
2322
2289
  /**
2323
2290
  * Scale of random crops
2324
2291
  *
2325
- * Only available for SD15 and SDXL LoRA training
2292
+ * Deprecated legacy training parameter.
2326
2293
  */
2327
2294
  randomCropScale?: number;
2328
2295
 
2329
2296
  /**
2330
2297
  * The dimension of the LoRA update matrices
2331
2298
  *
2332
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
2299
+ * Only available for Flux LoRA and Musubi training
2333
2300
  *
2334
2301
  * Default value varies depending on the model type:
2335
2302
  *
2336
- * - For SDXL (deprecated): 64
2337
2303
  * - For Flux: 16
2338
2304
  * - For Musubi: 64
2339
2305
  *
@@ -2366,14 +2332,14 @@ export namespace ModelRetrieveResponse {
2366
2332
  *
2367
2333
  * Note: Legacy parameter, will be ignored
2368
2334
  *
2369
- * Only available for SD15 and SDXL LoRA training
2335
+ * Deprecated legacy training parameter.
2370
2336
  */
2371
2337
  scaleLr?: boolean;
2372
2338
 
2373
2339
  /**
2374
2340
  * Used to reproduce previous results. Default: randomly generated number.
2375
2341
  *
2376
- * Only available for SD15 and SDXL LoRA training
2342
+ * Deprecated legacy training parameter.
2377
2343
  */
2378
2344
  seed?: number;
2379
2345
 
@@ -2385,21 +2351,21 @@ export namespace ModelRetrieveResponse {
2385
2351
  *
2386
2352
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
2387
2353
  *
2388
- * Only available for SD15 and SDXL LoRA training
2354
+ * Deprecated legacy training parameter.
2389
2355
  */
2390
2356
  textEncoderTrainingRatio?: number;
2391
2357
 
2392
2358
  /**
2393
2359
  * Validation frequency. Cannot be greater than maxTrainSteps value
2394
2360
  *
2395
- * Only available for SD15 and SDXL LoRA training
2361
+ * Deprecated legacy training parameter.
2396
2362
  */
2397
2363
  validationFrequency?: number;
2398
2364
 
2399
2365
  /**
2400
2366
  * Validation prompt
2401
2367
  *
2402
- * Only available for SD15 and SDXL LoRA training
2368
+ * Deprecated legacy training parameter.
2403
2369
  */
2404
2370
  validationPrompt?: string;
2405
2371
 
@@ -2959,12 +2925,6 @@ export namespace ModelUpdateResponse {
2959
2925
  | 'qwen-image-edit-2511-lora'
2960
2926
  | 'qwen-image-edit-lora'
2961
2927
  | 'qwen-image-lora'
2962
- | 'sd-1_5'
2963
- | 'sd-1_5-composition'
2964
- | 'sd-1_5-lora'
2965
- | 'sd-xl'
2966
- | 'sd-xl-composition'
2967
- | 'sd-xl-lora'
2968
2928
  | 'zimage-de-turbo-lora'
2969
2929
  | 'zimage-lora'
2970
2930
  | 'zimage-turbo-lora';
@@ -3002,6 +2962,13 @@ export namespace ModelUpdateResponse {
3002
2962
  */
3003
2963
  concepts?: Array<Model.Concept>;
3004
2964
 
2965
+ /**
2966
+ * When true, credits spent on a generation with this model are not automatically
2967
+ * refunded if the generation fails. Absent or false means failed generations are
2968
+ * refunded as usual.
2969
+ */
2970
+ disableRefund?: boolean;
2971
+
3005
2972
  /**
3006
2973
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
3007
2974
  * uses the final model epoch (latest)
@@ -3124,7 +3091,7 @@ export namespace ModelUpdateResponse {
3124
3091
  conceptPrompt: string;
3125
3092
 
3126
3093
  /**
3127
- * The model ID of the class (example: "stable-diffusion-v1-5")
3094
+ * The model ID of the class. Only available for legacy models.
3128
3095
  */
3129
3096
  modelId: string;
3130
3097
 
@@ -3367,12 +3334,6 @@ export namespace ModelUpdateResponse {
3367
3334
  | 'qwen-image-edit-2511-lora'
3368
3335
  | 'qwen-image-edit-lora'
3369
3336
  | 'qwen-image-lora'
3370
- | 'sd-1_5'
3371
- | 'sd-1_5-composition'
3372
- | 'sd-1_5-lora'
3373
- | 'sd-xl'
3374
- | 'sd-xl-composition'
3375
- | 'sd-xl-lora'
3376
3337
  | 'zimage-de-turbo-lora'
3377
3338
  | 'zimage-lora'
3378
3339
  | 'zimage-turbo-lora'
@@ -3489,7 +3450,7 @@ export namespace ModelUpdateResponse {
3489
3450
  /**
3490
3451
  * The prompt to specify images in the same class as provided instance images
3491
3452
  *
3492
- * Only available for SD15 training
3453
+ * Deprecated legacy training parameter.
3493
3454
  */
3494
3455
  classPrompt?: string;
3495
3456
 
@@ -3505,11 +3466,8 @@ export namespace ModelUpdateResponse {
3505
3466
  * The prompt with identifier specifying the instance (or subject) of the class
3506
3467
  * (example: "a daiton dog")
3507
3468
  *
3508
- * Default value varies depending on the model type:
3509
- *
3510
- * - For SD1.5: "daiton" if no class is associated with the model
3511
- * - For SDXL: "daiton"
3512
- * - For Flux: ""
3469
+ * Default value varies depending on the model type. For Flux LoRA, the default is
3470
+ * an empty string.
3513
3471
  */
3514
3472
  conceptPrompt?: string;
3515
3473
 
@@ -3530,32 +3488,30 @@ export namespace ModelUpdateResponse {
3530
3488
  /**
3531
3489
  * Initial learning rate (after the potential warmup period)
3532
3490
  *
3533
- * Default value varies depending on the model type:
3534
- *
3535
- * - For SD1.5 and SDXL: 0.000005
3536
- * - For Flux: 0.0001
3491
+ * Default value varies depending on the model type. For Flux LoRA, the default is
3492
+ * 0.0001.
3537
3493
  */
3538
3494
  learningRate?: number;
3539
3495
 
3540
3496
  /**
3541
3497
  * Initial learning rate (after the potential warmup period) for the text encoder
3542
3498
  *
3543
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
3544
- * [SDXL: 0 | Flux LoRA: 0.000001]
3499
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
3500
+ * 0.000001]
3545
3501
  */
3546
3502
  learningRateTextEncoder?: number;
3547
3503
 
3548
3504
  /**
3549
3505
  * Initial learning rate (after the potential warmup period) for the UNet
3550
3506
  *
3551
- * Only available for SDXL LoRA training
3507
+ * Deprecated legacy training parameter.
3552
3508
  */
3553
3509
  learningRateUnet?: number;
3554
3510
 
3555
3511
  /**
3556
3512
  * The scheduler type to use (default: "constant")
3557
3513
  *
3558
- * Only available for SD15 and SDXL LoRA training
3514
+ * Deprecated legacy training parameter.
3559
3515
  */
3560
3516
  lrScheduler?:
3561
3517
  | 'constant'
@@ -3569,18 +3525,12 @@ export namespace ModelUpdateResponse {
3569
3525
  * Maximum number of training steps to execute (default: varies depending on the
3570
3526
  * model type)
3571
3527
  *
3572
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
3573
- * instead
3574
- *
3575
3528
  * Default value varies depending on the model type:
3576
3529
  *
3577
- * - For SD1.5: round((number of training images \* 225) / 3)
3578
- * - For SDXL: number of training images \* 175
3579
3530
  * - For Flux: number of training images \* 100
3580
3531
  *
3581
3532
  * Maximum value varies depending on the model type:
3582
3533
  *
3583
- * - For SD1.5 and SDXL: [0, 40000]
3584
3534
  * - For Flux: [0, 10000]
3585
3535
  */
3586
3536
  maxTrainSteps?: number;
@@ -3602,14 +3552,14 @@ export namespace ModelUpdateResponse {
3602
3552
  /**
3603
3553
  * The number of training steps for the text encoder
3604
3554
  *
3605
- * Only available for SDXL LoRA training
3555
+ * Deprecated legacy training parameter.
3606
3556
  */
3607
3557
  numTextTrainSteps?: number;
3608
3558
 
3609
3559
  /**
3610
3560
  * The number of training steps for the UNet
3611
3561
  *
3612
- * Only available for SDXL LoRA training
3562
+ * Deprecated legacy training parameter.
3613
3563
  */
3614
3564
  numUNetTrainSteps?: number;
3615
3565
 
@@ -3632,7 +3582,7 @@ export namespace ModelUpdateResponse {
3632
3582
  /**
3633
3583
  * The weight of prior preservation loss
3634
3584
  *
3635
- * Only available for SD15 and SDXL LoRA training
3585
+ * Deprecated legacy training parameter.
3636
3586
  */
3637
3587
  priorLossWeight?: number;
3638
3588
 
@@ -3640,32 +3590,31 @@ export namespace ModelUpdateResponse {
3640
3590
  * Whether to random crop or center crop images before resizing to the working
3641
3591
  * resolution
3642
3592
  *
3643
- * Only available for SD15 and SDXL LoRA training
3593
+ * Deprecated legacy training parameter.
3644
3594
  */
3645
3595
  randomCrop?: boolean;
3646
3596
 
3647
3597
  /**
3648
3598
  * Ratio of random crops
3649
3599
  *
3650
- * Only available for SD15 and SDXL LoRA training
3600
+ * Deprecated legacy training parameter.
3651
3601
  */
3652
3602
  randomCropRatio?: number;
3653
3603
 
3654
3604
  /**
3655
3605
  * Scale of random crops
3656
3606
  *
3657
- * Only available for SD15 and SDXL LoRA training
3607
+ * Deprecated legacy training parameter.
3658
3608
  */
3659
3609
  randomCropScale?: number;
3660
3610
 
3661
3611
  /**
3662
3612
  * The dimension of the LoRA update matrices
3663
3613
  *
3664
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
3614
+ * Only available for Flux LoRA and Musubi training
3665
3615
  *
3666
3616
  * Default value varies depending on the model type:
3667
3617
  *
3668
- * - For SDXL (deprecated): 64
3669
3618
  * - For Flux: 16
3670
3619
  * - For Musubi: 64
3671
3620
  *
@@ -3698,14 +3647,14 @@ export namespace ModelUpdateResponse {
3698
3647
  *
3699
3648
  * Note: Legacy parameter, will be ignored
3700
3649
  *
3701
- * Only available for SD15 and SDXL LoRA training
3650
+ * Deprecated legacy training parameter.
3702
3651
  */
3703
3652
  scaleLr?: boolean;
3704
3653
 
3705
3654
  /**
3706
3655
  * Used to reproduce previous results. Default: randomly generated number.
3707
3656
  *
3708
- * Only available for SD15 and SDXL LoRA training
3657
+ * Deprecated legacy training parameter.
3709
3658
  */
3710
3659
  seed?: number;
3711
3660
 
@@ -3717,21 +3666,21 @@ export namespace ModelUpdateResponse {
3717
3666
  *
3718
3667
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
3719
3668
  *
3720
- * Only available for SD15 and SDXL LoRA training
3669
+ * Deprecated legacy training parameter.
3721
3670
  */
3722
3671
  textEncoderTrainingRatio?: number;
3723
3672
 
3724
3673
  /**
3725
3674
  * Validation frequency. Cannot be greater than maxTrainSteps value
3726
3675
  *
3727
- * Only available for SD15 and SDXL LoRA training
3676
+ * Deprecated legacy training parameter.
3728
3677
  */
3729
3678
  validationFrequency?: number;
3730
3679
 
3731
3680
  /**
3732
3681
  * Validation prompt
3733
3682
  *
3734
- * Only available for SD15 and SDXL LoRA training
3683
+ * Deprecated legacy training parameter.
3735
3684
  */
3736
3685
  validationPrompt?: string;
3737
3686
 
@@ -4286,12 +4235,6 @@ export interface ModelListResponse {
4286
4235
  | 'qwen-image-edit-2511-lora'
4287
4236
  | 'qwen-image-edit-lora'
4288
4237
  | 'qwen-image-lora'
4289
- | 'sd-1_5'
4290
- | 'sd-1_5-composition'
4291
- | 'sd-1_5-lora'
4292
- | 'sd-xl'
4293
- | 'sd-xl-composition'
4294
- | 'sd-xl-lora'
4295
4238
  | 'zimage-de-turbo-lora'
4296
4239
  | 'zimage-lora'
4297
4240
  | 'zimage-turbo-lora';
@@ -4329,6 +4272,13 @@ export interface ModelListResponse {
4329
4272
  */
4330
4273
  concepts?: Array<ModelListResponse.Concept>;
4331
4274
 
4275
+ /**
4276
+ * When true, credits spent on a generation with this model are not automatically
4277
+ * refunded if the generation fails. Absent or false means failed generations are
4278
+ * refunded as usual.
4279
+ */
4280
+ disableRefund?: boolean;
4281
+
4332
4282
  /**
4333
4283
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
4334
4284
  * uses the final model epoch (latest)
@@ -4451,7 +4401,7 @@ export namespace ModelListResponse {
4451
4401
  conceptPrompt: string;
4452
4402
 
4453
4403
  /**
4454
- * The model ID of the class (example: "stable-diffusion-v1-5")
4404
+ * The model ID of the class. Only available for legacy models.
4455
4405
  */
4456
4406
  modelId: string;
4457
4407
 
@@ -4694,12 +4644,6 @@ export namespace ModelListResponse {
4694
4644
  | 'qwen-image-edit-2511-lora'
4695
4645
  | 'qwen-image-edit-lora'
4696
4646
  | 'qwen-image-lora'
4697
- | 'sd-1_5'
4698
- | 'sd-1_5-composition'
4699
- | 'sd-1_5-lora'
4700
- | 'sd-xl'
4701
- | 'sd-xl-composition'
4702
- | 'sd-xl-lora'
4703
4647
  | 'zimage-de-turbo-lora'
4704
4648
  | 'zimage-lora'
4705
4649
  | 'zimage-turbo-lora'
@@ -4816,7 +4760,7 @@ export namespace ModelListResponse {
4816
4760
  /**
4817
4761
  * The prompt to specify images in the same class as provided instance images
4818
4762
  *
4819
- * Only available for SD15 training
4763
+ * Deprecated legacy training parameter.
4820
4764
  */
4821
4765
  classPrompt?: string;
4822
4766
 
@@ -4832,11 +4776,8 @@ export namespace ModelListResponse {
4832
4776
  * The prompt with identifier specifying the instance (or subject) of the class
4833
4777
  * (example: "a daiton dog")
4834
4778
  *
4835
- * Default value varies depending on the model type:
4836
- *
4837
- * - For SD1.5: "daiton" if no class is associated with the model
4838
- * - For SDXL: "daiton"
4839
- * - For Flux: ""
4779
+ * Default value varies depending on the model type. For Flux LoRA, the default is
4780
+ * an empty string.
4840
4781
  */
4841
4782
  conceptPrompt?: string;
4842
4783
 
@@ -4857,32 +4798,30 @@ export namespace ModelListResponse {
4857
4798
  /**
4858
4799
  * Initial learning rate (after the potential warmup period)
4859
4800
  *
4860
- * Default value varies depending on the model type:
4861
- *
4862
- * - For SD1.5 and SDXL: 0.000005
4863
- * - For Flux: 0.0001
4801
+ * Default value varies depending on the model type. For Flux LoRA, the default is
4802
+ * 0.0001.
4864
4803
  */
4865
4804
  learningRate?: number;
4866
4805
 
4867
4806
  /**
4868
4807
  * Initial learning rate (after the potential warmup period) for the text encoder
4869
4808
  *
4870
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
4871
- * [SDXL: 0 | Flux LoRA: 0.000001]
4809
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
4810
+ * 0.000001]
4872
4811
  */
4873
4812
  learningRateTextEncoder?: number;
4874
4813
 
4875
4814
  /**
4876
4815
  * Initial learning rate (after the potential warmup period) for the UNet
4877
4816
  *
4878
- * Only available for SDXL LoRA training
4817
+ * Deprecated legacy training parameter.
4879
4818
  */
4880
4819
  learningRateUnet?: number;
4881
4820
 
4882
4821
  /**
4883
4822
  * The scheduler type to use (default: "constant")
4884
4823
  *
4885
- * Only available for SD15 and SDXL LoRA training
4824
+ * Deprecated legacy training parameter.
4886
4825
  */
4887
4826
  lrScheduler?:
4888
4827
  | 'constant'
@@ -4896,18 +4835,12 @@ export namespace ModelListResponse {
4896
4835
  * Maximum number of training steps to execute (default: varies depending on the
4897
4836
  * model type)
4898
4837
  *
4899
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
4900
- * instead
4901
- *
4902
4838
  * Default value varies depending on the model type:
4903
4839
  *
4904
- * - For SD1.5: round((number of training images \* 225) / 3)
4905
- * - For SDXL: number of training images \* 175
4906
4840
  * - For Flux: number of training images \* 100
4907
4841
  *
4908
4842
  * Maximum value varies depending on the model type:
4909
4843
  *
4910
- * - For SD1.5 and SDXL: [0, 40000]
4911
4844
  * - For Flux: [0, 10000]
4912
4845
  */
4913
4846
  maxTrainSteps?: number;
@@ -4929,14 +4862,14 @@ export namespace ModelListResponse {
4929
4862
  /**
4930
4863
  * The number of training steps for the text encoder
4931
4864
  *
4932
- * Only available for SDXL LoRA training
4865
+ * Deprecated legacy training parameter.
4933
4866
  */
4934
4867
  numTextTrainSteps?: number;
4935
4868
 
4936
4869
  /**
4937
4870
  * The number of training steps for the UNet
4938
4871
  *
4939
- * Only available for SDXL LoRA training
4872
+ * Deprecated legacy training parameter.
4940
4873
  */
4941
4874
  numUNetTrainSteps?: number;
4942
4875
 
@@ -4959,7 +4892,7 @@ export namespace ModelListResponse {
4959
4892
  /**
4960
4893
  * The weight of prior preservation loss
4961
4894
  *
4962
- * Only available for SD15 and SDXL LoRA training
4895
+ * Deprecated legacy training parameter.
4963
4896
  */
4964
4897
  priorLossWeight?: number;
4965
4898
 
@@ -4967,32 +4900,31 @@ export namespace ModelListResponse {
4967
4900
  * Whether to random crop or center crop images before resizing to the working
4968
4901
  * resolution
4969
4902
  *
4970
- * Only available for SD15 and SDXL LoRA training
4903
+ * Deprecated legacy training parameter.
4971
4904
  */
4972
4905
  randomCrop?: boolean;
4973
4906
 
4974
4907
  /**
4975
4908
  * Ratio of random crops
4976
4909
  *
4977
- * Only available for SD15 and SDXL LoRA training
4910
+ * Deprecated legacy training parameter.
4978
4911
  */
4979
4912
  randomCropRatio?: number;
4980
4913
 
4981
4914
  /**
4982
4915
  * Scale of random crops
4983
4916
  *
4984
- * Only available for SD15 and SDXL LoRA training
4917
+ * Deprecated legacy training parameter.
4985
4918
  */
4986
4919
  randomCropScale?: number;
4987
4920
 
4988
4921
  /**
4989
4922
  * The dimension of the LoRA update matrices
4990
4923
  *
4991
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
4924
+ * Only available for Flux LoRA and Musubi training
4992
4925
  *
4993
4926
  * Default value varies depending on the model type:
4994
4927
  *
4995
- * - For SDXL (deprecated): 64
4996
4928
  * - For Flux: 16
4997
4929
  * - For Musubi: 64
4998
4930
  *
@@ -5025,14 +4957,14 @@ export namespace ModelListResponse {
5025
4957
  *
5026
4958
  * Note: Legacy parameter, will be ignored
5027
4959
  *
5028
- * Only available for SD15 and SDXL LoRA training
4960
+ * Deprecated legacy training parameter.
5029
4961
  */
5030
4962
  scaleLr?: boolean;
5031
4963
 
5032
4964
  /**
5033
4965
  * Used to reproduce previous results. Default: randomly generated number.
5034
4966
  *
5035
- * Only available for SD15 and SDXL LoRA training
4967
+ * Deprecated legacy training parameter.
5036
4968
  */
5037
4969
  seed?: number;
5038
4970
 
@@ -5044,21 +4976,21 @@ export namespace ModelListResponse {
5044
4976
  *
5045
4977
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
5046
4978
  *
5047
- * Only available for SD15 and SDXL LoRA training
4979
+ * Deprecated legacy training parameter.
5048
4980
  */
5049
4981
  textEncoderTrainingRatio?: number;
5050
4982
 
5051
4983
  /**
5052
4984
  * Validation frequency. Cannot be greater than maxTrainSteps value
5053
4985
  *
5054
- * Only available for SD15 and SDXL LoRA training
4986
+ * Deprecated legacy training parameter.
5055
4987
  */
5056
4988
  validationFrequency?: number;
5057
4989
 
5058
4990
  /**
5059
4991
  * Validation prompt
5060
4992
  *
5061
- * Only available for SD15 and SDXL LoRA training
4993
+ * Deprecated legacy training parameter.
5062
4994
  */
5063
4995
  validationPrompt?: string;
5064
4996
 
@@ -5619,12 +5551,6 @@ export namespace ModelCopyResponse {
5619
5551
  | 'qwen-image-edit-2511-lora'
5620
5552
  | 'qwen-image-edit-lora'
5621
5553
  | 'qwen-image-lora'
5622
- | 'sd-1_5'
5623
- | 'sd-1_5-composition'
5624
- | 'sd-1_5-lora'
5625
- | 'sd-xl'
5626
- | 'sd-xl-composition'
5627
- | 'sd-xl-lora'
5628
5554
  | 'zimage-de-turbo-lora'
5629
5555
  | 'zimage-lora'
5630
5556
  | 'zimage-turbo-lora';
@@ -5662,6 +5588,13 @@ export namespace ModelCopyResponse {
5662
5588
  */
5663
5589
  concepts?: Array<Model.Concept>;
5664
5590
 
5591
+ /**
5592
+ * When true, credits spent on a generation with this model are not automatically
5593
+ * refunded if the generation fails. Absent or false means failed generations are
5594
+ * refunded as usual.
5595
+ */
5596
+ disableRefund?: boolean;
5597
+
5665
5598
  /**
5666
5599
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
5667
5600
  * uses the final model epoch (latest)
@@ -5784,7 +5717,7 @@ export namespace ModelCopyResponse {
5784
5717
  conceptPrompt: string;
5785
5718
 
5786
5719
  /**
5787
- * The model ID of the class (example: "stable-diffusion-v1-5")
5720
+ * The model ID of the class. Only available for legacy models.
5788
5721
  */
5789
5722
  modelId: string;
5790
5723
 
@@ -6027,12 +5960,6 @@ export namespace ModelCopyResponse {
6027
5960
  | 'qwen-image-edit-2511-lora'
6028
5961
  | 'qwen-image-edit-lora'
6029
5962
  | 'qwen-image-lora'
6030
- | 'sd-1_5'
6031
- | 'sd-1_5-composition'
6032
- | 'sd-1_5-lora'
6033
- | 'sd-xl'
6034
- | 'sd-xl-composition'
6035
- | 'sd-xl-lora'
6036
5963
  | 'zimage-de-turbo-lora'
6037
5964
  | 'zimage-lora'
6038
5965
  | 'zimage-turbo-lora'
@@ -6149,7 +6076,7 @@ export namespace ModelCopyResponse {
6149
6076
  /**
6150
6077
  * The prompt to specify images in the same class as provided instance images
6151
6078
  *
6152
- * Only available for SD15 training
6079
+ * Deprecated legacy training parameter.
6153
6080
  */
6154
6081
  classPrompt?: string;
6155
6082
 
@@ -6165,11 +6092,8 @@ export namespace ModelCopyResponse {
6165
6092
  * The prompt with identifier specifying the instance (or subject) of the class
6166
6093
  * (example: "a daiton dog")
6167
6094
  *
6168
- * Default value varies depending on the model type:
6169
- *
6170
- * - For SD1.5: "daiton" if no class is associated with the model
6171
- * - For SDXL: "daiton"
6172
- * - For Flux: ""
6095
+ * Default value varies depending on the model type. For Flux LoRA, the default is
6096
+ * an empty string.
6173
6097
  */
6174
6098
  conceptPrompt?: string;
6175
6099
 
@@ -6190,32 +6114,30 @@ export namespace ModelCopyResponse {
6190
6114
  /**
6191
6115
  * Initial learning rate (after the potential warmup period)
6192
6116
  *
6193
- * Default value varies depending on the model type:
6194
- *
6195
- * - For SD1.5 and SDXL: 0.000005
6196
- * - For Flux: 0.0001
6117
+ * Default value varies depending on the model type. For Flux LoRA, the default is
6118
+ * 0.0001.
6197
6119
  */
6198
6120
  learningRate?: number;
6199
6121
 
6200
6122
  /**
6201
6123
  * Initial learning rate (after the potential warmup period) for the text encoder
6202
6124
  *
6203
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
6204
- * [SDXL: 0 | Flux LoRA: 0.000001]
6125
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
6126
+ * 0.000001]
6205
6127
  */
6206
6128
  learningRateTextEncoder?: number;
6207
6129
 
6208
6130
  /**
6209
6131
  * Initial learning rate (after the potential warmup period) for the UNet
6210
6132
  *
6211
- * Only available for SDXL LoRA training
6133
+ * Deprecated legacy training parameter.
6212
6134
  */
6213
6135
  learningRateUnet?: number;
6214
6136
 
6215
6137
  /**
6216
6138
  * The scheduler type to use (default: "constant")
6217
6139
  *
6218
- * Only available for SD15 and SDXL LoRA training
6140
+ * Deprecated legacy training parameter.
6219
6141
  */
6220
6142
  lrScheduler?:
6221
6143
  | 'constant'
@@ -6229,18 +6151,12 @@ export namespace ModelCopyResponse {
6229
6151
  * Maximum number of training steps to execute (default: varies depending on the
6230
6152
  * model type)
6231
6153
  *
6232
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
6233
- * instead
6234
- *
6235
6154
  * Default value varies depending on the model type:
6236
6155
  *
6237
- * - For SD1.5: round((number of training images \* 225) / 3)
6238
- * - For SDXL: number of training images \* 175
6239
6156
  * - For Flux: number of training images \* 100
6240
6157
  *
6241
6158
  * Maximum value varies depending on the model type:
6242
6159
  *
6243
- * - For SD1.5 and SDXL: [0, 40000]
6244
6160
  * - For Flux: [0, 10000]
6245
6161
  */
6246
6162
  maxTrainSteps?: number;
@@ -6262,14 +6178,14 @@ export namespace ModelCopyResponse {
6262
6178
  /**
6263
6179
  * The number of training steps for the text encoder
6264
6180
  *
6265
- * Only available for SDXL LoRA training
6181
+ * Deprecated legacy training parameter.
6266
6182
  */
6267
6183
  numTextTrainSteps?: number;
6268
6184
 
6269
6185
  /**
6270
6186
  * The number of training steps for the UNet
6271
6187
  *
6272
- * Only available for SDXL LoRA training
6188
+ * Deprecated legacy training parameter.
6273
6189
  */
6274
6190
  numUNetTrainSteps?: number;
6275
6191
 
@@ -6292,7 +6208,7 @@ export namespace ModelCopyResponse {
6292
6208
  /**
6293
6209
  * The weight of prior preservation loss
6294
6210
  *
6295
- * Only available for SD15 and SDXL LoRA training
6211
+ * Deprecated legacy training parameter.
6296
6212
  */
6297
6213
  priorLossWeight?: number;
6298
6214
 
@@ -6300,32 +6216,31 @@ export namespace ModelCopyResponse {
6300
6216
  * Whether to random crop or center crop images before resizing to the working
6301
6217
  * resolution
6302
6218
  *
6303
- * Only available for SD15 and SDXL LoRA training
6219
+ * Deprecated legacy training parameter.
6304
6220
  */
6305
6221
  randomCrop?: boolean;
6306
6222
 
6307
6223
  /**
6308
6224
  * Ratio of random crops
6309
6225
  *
6310
- * Only available for SD15 and SDXL LoRA training
6226
+ * Deprecated legacy training parameter.
6311
6227
  */
6312
6228
  randomCropRatio?: number;
6313
6229
 
6314
6230
  /**
6315
6231
  * Scale of random crops
6316
6232
  *
6317
- * Only available for SD15 and SDXL LoRA training
6233
+ * Deprecated legacy training parameter.
6318
6234
  */
6319
6235
  randomCropScale?: number;
6320
6236
 
6321
6237
  /**
6322
6238
  * The dimension of the LoRA update matrices
6323
6239
  *
6324
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
6240
+ * Only available for Flux LoRA and Musubi training
6325
6241
  *
6326
6242
  * Default value varies depending on the model type:
6327
6243
  *
6328
- * - For SDXL (deprecated): 64
6329
6244
  * - For Flux: 16
6330
6245
  * - For Musubi: 64
6331
6246
  *
@@ -6358,14 +6273,14 @@ export namespace ModelCopyResponse {
6358
6273
  *
6359
6274
  * Note: Legacy parameter, will be ignored
6360
6275
  *
6361
- * Only available for SD15 and SDXL LoRA training
6276
+ * Deprecated legacy training parameter.
6362
6277
  */
6363
6278
  scaleLr?: boolean;
6364
6279
 
6365
6280
  /**
6366
6281
  * Used to reproduce previous results. Default: randomly generated number.
6367
6282
  *
6368
- * Only available for SD15 and SDXL LoRA training
6283
+ * Deprecated legacy training parameter.
6369
6284
  */
6370
6285
  seed?: number;
6371
6286
 
@@ -6377,21 +6292,21 @@ export namespace ModelCopyResponse {
6377
6292
  *
6378
6293
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
6379
6294
  *
6380
- * Only available for SD15 and SDXL LoRA training
6295
+ * Deprecated legacy training parameter.
6381
6296
  */
6382
6297
  textEncoderTrainingRatio?: number;
6383
6298
 
6384
6299
  /**
6385
6300
  * Validation frequency. Cannot be greater than maxTrainSteps value
6386
6301
  *
6387
- * Only available for SD15 and SDXL LoRA training
6302
+ * Deprecated legacy training parameter.
6388
6303
  */
6389
6304
  validationFrequency?: number;
6390
6305
 
6391
6306
  /**
6392
6307
  * Validation prompt
6393
6308
  *
6394
- * Only available for SD15 and SDXL LoRA training
6309
+ * Deprecated legacy training parameter.
6395
6310
  */
6396
6311
  validationPrompt?: string;
6397
6312
 
@@ -6879,12 +6794,6 @@ export namespace ModelGetBulkResponse {
6879
6794
  | 'qwen-image-edit-2511-lora'
6880
6795
  | 'qwen-image-edit-lora'
6881
6796
  | 'qwen-image-lora'
6882
- | 'sd-1_5'
6883
- | 'sd-1_5-composition'
6884
- | 'sd-1_5-lora'
6885
- | 'sd-xl'
6886
- | 'sd-xl-composition'
6887
- | 'sd-xl-lora'
6888
6797
  | 'zimage-de-turbo-lora'
6889
6798
  | 'zimage-lora'
6890
6799
  | 'zimage-turbo-lora';
@@ -6972,6 +6881,13 @@ export namespace ModelGetBulkResponse {
6972
6881
  */
6973
6882
  custom?: boolean;
6974
6883
 
6884
+ /**
6885
+ * When true, credits spent on a generation with this model are not automatically
6886
+ * refunded if the generation fails. Absent or false means failed generations are
6887
+ * refunded as usual.
6888
+ */
6889
+ disableRefund?: boolean;
6890
+
6975
6891
  /**
6976
6892
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
6977
6893
  * uses the final model epoch (latest)
@@ -7125,7 +7041,7 @@ export namespace ModelGetBulkResponse {
7125
7041
  conceptPrompt: string;
7126
7042
 
7127
7043
  /**
7128
- * The model ID of the class (example: "stable-diffusion-v1-5")
7044
+ * The model ID of the class. Only available for legacy models.
7129
7045
  */
7130
7046
  modelId: string;
7131
7047
 
@@ -7368,12 +7284,6 @@ export namespace ModelGetBulkResponse {
7368
7284
  | 'qwen-image-edit-2511-lora'
7369
7285
  | 'qwen-image-edit-lora'
7370
7286
  | 'qwen-image-lora'
7371
- | 'sd-1_5'
7372
- | 'sd-1_5-composition'
7373
- | 'sd-1_5-lora'
7374
- | 'sd-xl'
7375
- | 'sd-xl-composition'
7376
- | 'sd-xl-lora'
7377
7287
  | 'zimage-de-turbo-lora'
7378
7288
  | 'zimage-lora'
7379
7289
  | 'zimage-turbo-lora'
@@ -7490,7 +7400,7 @@ export namespace ModelGetBulkResponse {
7490
7400
  /**
7491
7401
  * The prompt to specify images in the same class as provided instance images
7492
7402
  *
7493
- * Only available for SD15 training
7403
+ * Deprecated legacy training parameter.
7494
7404
  */
7495
7405
  classPrompt?: string;
7496
7406
 
@@ -7506,11 +7416,8 @@ export namespace ModelGetBulkResponse {
7506
7416
  * The prompt with identifier specifying the instance (or subject) of the class
7507
7417
  * (example: "a daiton dog")
7508
7418
  *
7509
- * Default value varies depending on the model type:
7510
- *
7511
- * - For SD1.5: "daiton" if no class is associated with the model
7512
- * - For SDXL: "daiton"
7513
- * - For Flux: ""
7419
+ * Default value varies depending on the model type. For Flux LoRA, the default is
7420
+ * an empty string.
7514
7421
  */
7515
7422
  conceptPrompt?: string;
7516
7423
 
@@ -7531,32 +7438,30 @@ export namespace ModelGetBulkResponse {
7531
7438
  /**
7532
7439
  * Initial learning rate (after the potential warmup period)
7533
7440
  *
7534
- * Default value varies depending on the model type:
7535
- *
7536
- * - For SD1.5 and SDXL: 0.000005
7537
- * - For Flux: 0.0001
7441
+ * Default value varies depending on the model type. For Flux LoRA, the default is
7442
+ * 0.0001.
7538
7443
  */
7539
7444
  learningRate?: number;
7540
7445
 
7541
7446
  /**
7542
7447
  * Initial learning rate (after the potential warmup period) for the text encoder
7543
7448
  *
7544
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
7545
- * [SDXL: 0 | Flux LoRA: 0.000001]
7449
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
7450
+ * 0.000001]
7546
7451
  */
7547
7452
  learningRateTextEncoder?: number;
7548
7453
 
7549
7454
  /**
7550
7455
  * Initial learning rate (after the potential warmup period) for the UNet
7551
7456
  *
7552
- * Only available for SDXL LoRA training
7457
+ * Deprecated legacy training parameter.
7553
7458
  */
7554
7459
  learningRateUnet?: number;
7555
7460
 
7556
7461
  /**
7557
7462
  * The scheduler type to use (default: "constant")
7558
7463
  *
7559
- * Only available for SD15 and SDXL LoRA training
7464
+ * Deprecated legacy training parameter.
7560
7465
  */
7561
7466
  lrScheduler?:
7562
7467
  | 'constant'
@@ -7570,18 +7475,12 @@ export namespace ModelGetBulkResponse {
7570
7475
  * Maximum number of training steps to execute (default: varies depending on the
7571
7476
  * model type)
7572
7477
  *
7573
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
7574
- * instead
7575
- *
7576
7478
  * Default value varies depending on the model type:
7577
7479
  *
7578
- * - For SD1.5: round((number of training images \* 225) / 3)
7579
- * - For SDXL: number of training images \* 175
7580
7480
  * - For Flux: number of training images \* 100
7581
7481
  *
7582
7482
  * Maximum value varies depending on the model type:
7583
7483
  *
7584
- * - For SD1.5 and SDXL: [0, 40000]
7585
7484
  * - For Flux: [0, 10000]
7586
7485
  */
7587
7486
  maxTrainSteps?: number;
@@ -7603,14 +7502,14 @@ export namespace ModelGetBulkResponse {
7603
7502
  /**
7604
7503
  * The number of training steps for the text encoder
7605
7504
  *
7606
- * Only available for SDXL LoRA training
7505
+ * Deprecated legacy training parameter.
7607
7506
  */
7608
7507
  numTextTrainSteps?: number;
7609
7508
 
7610
7509
  /**
7611
7510
  * The number of training steps for the UNet
7612
7511
  *
7613
- * Only available for SDXL LoRA training
7512
+ * Deprecated legacy training parameter.
7614
7513
  */
7615
7514
  numUNetTrainSteps?: number;
7616
7515
 
@@ -7633,7 +7532,7 @@ export namespace ModelGetBulkResponse {
7633
7532
  /**
7634
7533
  * The weight of prior preservation loss
7635
7534
  *
7636
- * Only available for SD15 and SDXL LoRA training
7535
+ * Deprecated legacy training parameter.
7637
7536
  */
7638
7537
  priorLossWeight?: number;
7639
7538
 
@@ -7641,32 +7540,31 @@ export namespace ModelGetBulkResponse {
7641
7540
  * Whether to random crop or center crop images before resizing to the working
7642
7541
  * resolution
7643
7542
  *
7644
- * Only available for SD15 and SDXL LoRA training
7543
+ * Deprecated legacy training parameter.
7645
7544
  */
7646
7545
  randomCrop?: boolean;
7647
7546
 
7648
7547
  /**
7649
7548
  * Ratio of random crops
7650
7549
  *
7651
- * Only available for SD15 and SDXL LoRA training
7550
+ * Deprecated legacy training parameter.
7652
7551
  */
7653
7552
  randomCropRatio?: number;
7654
7553
 
7655
7554
  /**
7656
7555
  * Scale of random crops
7657
7556
  *
7658
- * Only available for SD15 and SDXL LoRA training
7557
+ * Deprecated legacy training parameter.
7659
7558
  */
7660
7559
  randomCropScale?: number;
7661
7560
 
7662
7561
  /**
7663
7562
  * The dimension of the LoRA update matrices
7664
7563
  *
7665
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
7564
+ * Only available for Flux LoRA and Musubi training
7666
7565
  *
7667
7566
  * Default value varies depending on the model type:
7668
7567
  *
7669
- * - For SDXL (deprecated): 64
7670
7568
  * - For Flux: 16
7671
7569
  * - For Musubi: 64
7672
7570
  *
@@ -7699,14 +7597,14 @@ export namespace ModelGetBulkResponse {
7699
7597
  *
7700
7598
  * Note: Legacy parameter, will be ignored
7701
7599
  *
7702
- * Only available for SD15 and SDXL LoRA training
7600
+ * Deprecated legacy training parameter.
7703
7601
  */
7704
7602
  scaleLr?: boolean;
7705
7603
 
7706
7604
  /**
7707
7605
  * Used to reproduce previous results. Default: randomly generated number.
7708
7606
  *
7709
- * Only available for SD15 and SDXL LoRA training
7607
+ * Deprecated legacy training parameter.
7710
7608
  */
7711
7609
  seed?: number;
7712
7610
 
@@ -7718,21 +7616,21 @@ export namespace ModelGetBulkResponse {
7718
7616
  *
7719
7617
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
7720
7618
  *
7721
- * Only available for SD15 and SDXL LoRA training
7619
+ * Deprecated legacy training parameter.
7722
7620
  */
7723
7621
  textEncoderTrainingRatio?: number;
7724
7622
 
7725
7623
  /**
7726
7624
  * Validation frequency. Cannot be greater than maxTrainSteps value
7727
7625
  *
7728
- * Only available for SD15 and SDXL LoRA training
7626
+ * Deprecated legacy training parameter.
7729
7627
  */
7730
7628
  validationFrequency?: number;
7731
7629
 
7732
7630
  /**
7733
7631
  * Validation prompt
7734
7632
  *
7735
- * Only available for SD15 and SDXL LoRA training
7633
+ * Deprecated legacy training parameter.
7736
7634
  */
7737
7635
  validationPrompt?: string;
7738
7636
 
@@ -8292,12 +8190,6 @@ export namespace ModelTransferResponse {
8292
8190
  | 'qwen-image-edit-2511-lora'
8293
8191
  | 'qwen-image-edit-lora'
8294
8192
  | 'qwen-image-lora'
8295
- | 'sd-1_5'
8296
- | 'sd-1_5-composition'
8297
- | 'sd-1_5-lora'
8298
- | 'sd-xl'
8299
- | 'sd-xl-composition'
8300
- | 'sd-xl-lora'
8301
8193
  | 'zimage-de-turbo-lora'
8302
8194
  | 'zimage-lora'
8303
8195
  | 'zimage-turbo-lora';
@@ -8335,6 +8227,13 @@ export namespace ModelTransferResponse {
8335
8227
  */
8336
8228
  concepts?: Array<Model.Concept>;
8337
8229
 
8230
+ /**
8231
+ * When true, credits spent on a generation with this model are not automatically
8232
+ * refunded if the generation fails. Absent or false means failed generations are
8233
+ * refunded as usual.
8234
+ */
8235
+ disableRefund?: boolean;
8236
+
8338
8237
  /**
8339
8238
  * The epoch of the model. Only available for Flux Lora Trained models. If not set,
8340
8239
  * uses the final model epoch (latest)
@@ -8457,7 +8356,7 @@ export namespace ModelTransferResponse {
8457
8356
  conceptPrompt: string;
8458
8357
 
8459
8358
  /**
8460
- * The model ID of the class (example: "stable-diffusion-v1-5")
8359
+ * The model ID of the class. Only available for legacy models.
8461
8360
  */
8462
8361
  modelId: string;
8463
8362
 
@@ -8700,12 +8599,6 @@ export namespace ModelTransferResponse {
8700
8599
  | 'qwen-image-edit-2511-lora'
8701
8600
  | 'qwen-image-edit-lora'
8702
8601
  | 'qwen-image-lora'
8703
- | 'sd-1_5'
8704
- | 'sd-1_5-composition'
8705
- | 'sd-1_5-lora'
8706
- | 'sd-xl'
8707
- | 'sd-xl-composition'
8708
- | 'sd-xl-lora'
8709
8602
  | 'zimage-de-turbo-lora'
8710
8603
  | 'zimage-lora'
8711
8604
  | 'zimage-turbo-lora'
@@ -8822,7 +8715,7 @@ export namespace ModelTransferResponse {
8822
8715
  /**
8823
8716
  * The prompt to specify images in the same class as provided instance images
8824
8717
  *
8825
- * Only available for SD15 training
8718
+ * Deprecated legacy training parameter.
8826
8719
  */
8827
8720
  classPrompt?: string;
8828
8721
 
@@ -8838,11 +8731,8 @@ export namespace ModelTransferResponse {
8838
8731
  * The prompt with identifier specifying the instance (or subject) of the class
8839
8732
  * (example: "a daiton dog")
8840
8733
  *
8841
- * Default value varies depending on the model type:
8842
- *
8843
- * - For SD1.5: "daiton" if no class is associated with the model
8844
- * - For SDXL: "daiton"
8845
- * - For Flux: ""
8734
+ * Default value varies depending on the model type. For Flux LoRA, the default is
8735
+ * an empty string.
8846
8736
  */
8847
8737
  conceptPrompt?: string;
8848
8738
 
@@ -8863,32 +8753,30 @@ export namespace ModelTransferResponse {
8863
8753
  /**
8864
8754
  * Initial learning rate (after the potential warmup period)
8865
8755
  *
8866
- * Default value varies depending on the model type:
8867
- *
8868
- * - For SD1.5 and SDXL: 0.000005
8869
- * - For Flux: 0.0001
8756
+ * Default value varies depending on the model type. For Flux LoRA, the default is
8757
+ * 0.0001.
8870
8758
  */
8871
8759
  learningRate?: number;
8872
8760
 
8873
8761
  /**
8874
8762
  * Initial learning rate (after the potential warmup period) for the text encoder
8875
8763
  *
8876
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
8877
- * [SDXL: 0 | Flux LoRA: 0.000001]
8764
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
8765
+ * 0.000001]
8878
8766
  */
8879
8767
  learningRateTextEncoder?: number;
8880
8768
 
8881
8769
  /**
8882
8770
  * Initial learning rate (after the potential warmup period) for the UNet
8883
8771
  *
8884
- * Only available for SDXL LoRA training
8772
+ * Deprecated legacy training parameter.
8885
8773
  */
8886
8774
  learningRateUnet?: number;
8887
8775
 
8888
8776
  /**
8889
8777
  * The scheduler type to use (default: "constant")
8890
8778
  *
8891
- * Only available for SD15 and SDXL LoRA training
8779
+ * Deprecated legacy training parameter.
8892
8780
  */
8893
8781
  lrScheduler?:
8894
8782
  | 'constant'
@@ -8902,18 +8790,12 @@ export namespace ModelTransferResponse {
8902
8790
  * Maximum number of training steps to execute (default: varies depending on the
8903
8791
  * model type)
8904
8792
  *
8905
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
8906
- * instead
8907
- *
8908
8793
  * Default value varies depending on the model type:
8909
8794
  *
8910
- * - For SD1.5: round((number of training images \* 225) / 3)
8911
- * - For SDXL: number of training images \* 175
8912
8795
  * - For Flux: number of training images \* 100
8913
8796
  *
8914
8797
  * Maximum value varies depending on the model type:
8915
8798
  *
8916
- * - For SD1.5 and SDXL: [0, 40000]
8917
8799
  * - For Flux: [0, 10000]
8918
8800
  */
8919
8801
  maxTrainSteps?: number;
@@ -8935,14 +8817,14 @@ export namespace ModelTransferResponse {
8935
8817
  /**
8936
8818
  * The number of training steps for the text encoder
8937
8819
  *
8938
- * Only available for SDXL LoRA training
8820
+ * Deprecated legacy training parameter.
8939
8821
  */
8940
8822
  numTextTrainSteps?: number;
8941
8823
 
8942
8824
  /**
8943
8825
  * The number of training steps for the UNet
8944
8826
  *
8945
- * Only available for SDXL LoRA training
8827
+ * Deprecated legacy training parameter.
8946
8828
  */
8947
8829
  numUNetTrainSteps?: number;
8948
8830
 
@@ -8965,7 +8847,7 @@ export namespace ModelTransferResponse {
8965
8847
  /**
8966
8848
  * The weight of prior preservation loss
8967
8849
  *
8968
- * Only available for SD15 and SDXL LoRA training
8850
+ * Deprecated legacy training parameter.
8969
8851
  */
8970
8852
  priorLossWeight?: number;
8971
8853
 
@@ -8973,32 +8855,31 @@ export namespace ModelTransferResponse {
8973
8855
  * Whether to random crop or center crop images before resizing to the working
8974
8856
  * resolution
8975
8857
  *
8976
- * Only available for SD15 and SDXL LoRA training
8858
+ * Deprecated legacy training parameter.
8977
8859
  */
8978
8860
  randomCrop?: boolean;
8979
8861
 
8980
8862
  /**
8981
8863
  * Ratio of random crops
8982
8864
  *
8983
- * Only available for SD15 and SDXL LoRA training
8865
+ * Deprecated legacy training parameter.
8984
8866
  */
8985
8867
  randomCropRatio?: number;
8986
8868
 
8987
8869
  /**
8988
8870
  * Scale of random crops
8989
8871
  *
8990
- * Only available for SD15 and SDXL LoRA training
8872
+ * Deprecated legacy training parameter.
8991
8873
  */
8992
8874
  randomCropScale?: number;
8993
8875
 
8994
8876
  /**
8995
8877
  * The dimension of the LoRA update matrices
8996
8878
  *
8997
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
8879
+ * Only available for Flux LoRA and Musubi training
8998
8880
  *
8999
8881
  * Default value varies depending on the model type:
9000
8882
  *
9001
- * - For SDXL (deprecated): 64
9002
8883
  * - For Flux: 16
9003
8884
  * - For Musubi: 64
9004
8885
  *
@@ -9031,14 +8912,14 @@ export namespace ModelTransferResponse {
9031
8912
  *
9032
8913
  * Note: Legacy parameter, will be ignored
9033
8914
  *
9034
- * Only available for SD15 and SDXL LoRA training
8915
+ * Deprecated legacy training parameter.
9035
8916
  */
9036
8917
  scaleLr?: boolean;
9037
8918
 
9038
8919
  /**
9039
8920
  * Used to reproduce previous results. Default: randomly generated number.
9040
8921
  *
9041
- * Only available for SD15 and SDXL LoRA training
8922
+ * Deprecated legacy training parameter.
9042
8923
  */
9043
8924
  seed?: number;
9044
8925
 
@@ -9050,21 +8931,21 @@ export namespace ModelTransferResponse {
9050
8931
  *
9051
8932
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
9052
8933
  *
9053
- * Only available for SD15 and SDXL LoRA training
8934
+ * Deprecated legacy training parameter.
9054
8935
  */
9055
8936
  textEncoderTrainingRatio?: number;
9056
8937
 
9057
8938
  /**
9058
8939
  * Validation frequency. Cannot be greater than maxTrainSteps value
9059
8940
  *
9060
- * Only available for SD15 and SDXL LoRA training
8941
+ * Deprecated legacy training parameter.
9061
8942
  */
9062
8943
  validationFrequency?: number;
9063
8944
 
9064
8945
  /**
9065
8946
  * Validation prompt
9066
8947
  *
9067
- * Only available for SD15 and SDXL LoRA training
8948
+ * Deprecated legacy training parameter.
9068
8949
  */
9069
8950
  validationPrompt?: string;
9070
8951
 
@@ -9537,7 +9418,7 @@ export interface ModelCreateParams {
9537
9418
  * Body param: The concepts is required for composition models. With one or more
9538
9419
  * loras
9539
9420
  *
9540
- * Only applicable to Flux based models (and older SD1.5 and SDXL models)
9421
+ * Only applicable to Flux based models.
9541
9422
  */
9542
9423
  concepts?: Array<ModelCreateParams.Concept>;
9543
9424
 
@@ -9592,12 +9473,6 @@ export interface ModelCreateParams {
9592
9473
  | 'qwen-image-edit-2511-lora'
9593
9474
  | 'qwen-image-edit-lora'
9594
9475
  | 'qwen-image-lora'
9595
- | 'sd-1_5'
9596
- | 'sd-1_5-composition'
9597
- | 'sd-1_5-lora'
9598
- | 'sd-xl'
9599
- | 'sd-xl-composition'
9600
- | 'sd-xl-lora'
9601
9476
  | 'zimage-de-turbo-lora'
9602
9477
  | 'zimage-lora'
9603
9478
  | 'zimage-turbo-lora';
@@ -9647,7 +9522,7 @@ export interface ModelUpdateParams {
9647
9522
  * Body param: The concepts is required for composition models. With one or more
9648
9523
  * loras
9649
9524
  *
9650
- * Only applicable to Flux based models (and older SD1.5 and SDXL models)
9525
+ * Only applicable to Flux based models.
9651
9526
  */
9652
9527
  concepts?: Array<ModelUpdateParams.Concept>;
9653
9528
 
@@ -9736,12 +9611,6 @@ export interface ModelUpdateParams {
9736
9611
  | 'qwen-image-edit-2511-lora'
9737
9612
  | 'qwen-image-edit-lora'
9738
9613
  | 'qwen-image-lora'
9739
- | 'sd-1_5'
9740
- | 'sd-1_5-composition'
9741
- | 'sd-1_5-lora'
9742
- | 'sd-xl'
9743
- | 'sd-xl-composition'
9744
- | 'sd-xl-lora'
9745
9614
  | 'zimage-de-turbo-lora'
9746
9615
  | 'zimage-lora'
9747
9616
  | 'zimage-turbo-lora';
@@ -9788,7 +9657,7 @@ export namespace ModelUpdateParams {
9788
9657
  /**
9789
9658
  * The prompt to specify images in the same class as provided instance images
9790
9659
  *
9791
- * Only available for SD15 training
9660
+ * Deprecated legacy training parameter.
9792
9661
  */
9793
9662
  classPrompt?: string;
9794
9663
 
@@ -9804,11 +9673,8 @@ export namespace ModelUpdateParams {
9804
9673
  * The prompt with identifier specifying the instance (or subject) of the class
9805
9674
  * (example: "a daiton dog")
9806
9675
  *
9807
- * Default value varies depending on the model type:
9808
- *
9809
- * - For SD1.5: "daiton" if no class is associated with the model
9810
- * - For SDXL: "daiton"
9811
- * - For Flux: ""
9676
+ * Default value varies depending on the model type. For Flux LoRA, the default is
9677
+ * an empty string.
9812
9678
  */
9813
9679
  conceptPrompt?: string;
9814
9680
 
@@ -9829,32 +9695,30 @@ export namespace ModelUpdateParams {
9829
9695
  /**
9830
9696
  * Initial learning rate (after the potential warmup period)
9831
9697
  *
9832
- * Default value varies depending on the model type:
9833
- *
9834
- * - For SD1.5 and SDXL: 0.000005
9835
- * - For Flux: 0.0001
9698
+ * Default value varies depending on the model type. For Flux LoRA, the default is
9699
+ * 0.0001.
9836
9700
  */
9837
9701
  learningRate?: number;
9838
9702
 
9839
9703
  /**
9840
9704
  * Initial learning rate (after the potential warmup period) for the text encoder
9841
9705
  *
9842
- * Maximum [Flux LoRA: 0.001] Default [SDXL: 0.00005 | Flux LoRA: 0.00001] Minimum
9843
- * [SDXL: 0 | Flux LoRA: 0.000001]
9706
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
9707
+ * 0.000001]
9844
9708
  */
9845
9709
  learningRateTextEncoder?: number;
9846
9710
 
9847
9711
  /**
9848
9712
  * Initial learning rate (after the potential warmup period) for the UNet
9849
9713
  *
9850
- * Only available for SDXL LoRA training
9714
+ * Deprecated legacy training parameter.
9851
9715
  */
9852
9716
  learningRateUnet?: number;
9853
9717
 
9854
9718
  /**
9855
9719
  * The scheduler type to use (default: "constant")
9856
9720
  *
9857
- * Only available for SD15 and SDXL LoRA training
9721
+ * Deprecated legacy training parameter.
9858
9722
  */
9859
9723
  lrScheduler?:
9860
9724
  | 'constant'
@@ -9868,18 +9732,12 @@ export namespace ModelUpdateParams {
9868
9732
  * Maximum number of training steps to execute (default: varies depending on the
9869
9733
  * model type)
9870
9734
  *
9871
- * For SDXL LoRA training, please use `numTextTrainSteps` and `numUNetTrainSteps`
9872
- * instead
9873
- *
9874
9735
  * Default value varies depending on the model type:
9875
9736
  *
9876
- * - For SD1.5: round((number of training images \* 225) / 3)
9877
- * - For SDXL: number of training images \* 175
9878
9737
  * - For Flux: number of training images \* 100
9879
9738
  *
9880
9739
  * Maximum value varies depending on the model type:
9881
9740
  *
9882
- * - For SD1.5 and SDXL: [0, 40000]
9883
9741
  * - For Flux: [0, 10000]
9884
9742
  */
9885
9743
  maxTrainSteps?: number;
@@ -9901,14 +9759,14 @@ export namespace ModelUpdateParams {
9901
9759
  /**
9902
9760
  * The number of training steps for the text encoder
9903
9761
  *
9904
- * Only available for SDXL LoRA training
9762
+ * Deprecated legacy training parameter.
9905
9763
  */
9906
9764
  numTextTrainSteps?: number;
9907
9765
 
9908
9766
  /**
9909
9767
  * The number of training steps for the UNet
9910
9768
  *
9911
- * Only available for SDXL LoRA training
9769
+ * Deprecated legacy training parameter.
9912
9770
  */
9913
9771
  numUNetTrainSteps?: number;
9914
9772
 
@@ -9931,7 +9789,7 @@ export namespace ModelUpdateParams {
9931
9789
  /**
9932
9790
  * The weight of prior preservation loss
9933
9791
  *
9934
- * Only available for SD15 and SDXL LoRA training
9792
+ * Deprecated legacy training parameter.
9935
9793
  */
9936
9794
  priorLossWeight?: number;
9937
9795
 
@@ -9939,32 +9797,31 @@ export namespace ModelUpdateParams {
9939
9797
  * Whether to random crop or center crop images before resizing to the working
9940
9798
  * resolution
9941
9799
  *
9942
- * Only available for SD15 and SDXL LoRA training
9800
+ * Deprecated legacy training parameter.
9943
9801
  */
9944
9802
  randomCrop?: boolean;
9945
9803
 
9946
9804
  /**
9947
9805
  * Ratio of random crops
9948
9806
  *
9949
- * Only available for SD15 and SDXL LoRA training
9807
+ * Deprecated legacy training parameter.
9950
9808
  */
9951
9809
  randomCropRatio?: number;
9952
9810
 
9953
9811
  /**
9954
9812
  * Scale of random crops
9955
9813
  *
9956
- * Only available for SD15 and SDXL LoRA training
9814
+ * Deprecated legacy training parameter.
9957
9815
  */
9958
9816
  randomCropScale?: number;
9959
9817
 
9960
9818
  /**
9961
9819
  * The dimension of the LoRA update matrices
9962
9820
  *
9963
- * Only available for SDXL (deprecated), Flux LoRA and Musubi training
9821
+ * Only available for Flux LoRA and Musubi training
9964
9822
  *
9965
9823
  * Default value varies depending on the model type:
9966
9824
  *
9967
- * - For SDXL (deprecated): 64
9968
9825
  * - For Flux: 16
9969
9826
  * - For Musubi: 64
9970
9827
  *
@@ -9997,14 +9854,14 @@ export namespace ModelUpdateParams {
9997
9854
  *
9998
9855
  * Note: Legacy parameter, will be ignored
9999
9856
  *
10000
- * Only available for SD15 and SDXL LoRA training
9857
+ * Deprecated legacy training parameter.
10001
9858
  */
10002
9859
  scaleLr?: boolean;
10003
9860
 
10004
9861
  /**
10005
9862
  * Used to reproduce previous results. Default: randomly generated number.
10006
9863
  *
10007
- * Only available for SD15 and SDXL LoRA training
9864
+ * Deprecated legacy training parameter.
10008
9865
  */
10009
9866
  seed?: number;
10010
9867
 
@@ -10016,21 +9873,21 @@ export namespace ModelUpdateParams {
10016
9873
  *
10017
9874
  * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
10018
9875
  *
10019
- * Only available for SD15 and SDXL LoRA training
9876
+ * Deprecated legacy training parameter.
10020
9877
  */
10021
9878
  textEncoderTrainingRatio?: number;
10022
9879
 
10023
9880
  /**
10024
9881
  * Validation frequency. Cannot be greater than maxTrainSteps value
10025
9882
  *
10026
- * Only available for SD15 and SDXL LoRA training
9883
+ * Deprecated legacy training parameter.
10027
9884
  */
10028
9885
  validationFrequency?: number;
10029
9886
 
10030
9887
  /**
10031
9888
  * Validation prompt
10032
9889
  *
10033
- * Only available for SD15 and SDXL LoRA training
9890
+ * Deprecated legacy training parameter.
10034
9891
  */
10035
9892
  validationPrompt?: string;
10036
9893
 
@@ -10131,8 +9988,7 @@ export interface ModelListParams extends ModelsCursorParams {
10131
9988
 
10132
9989
  /**
10133
9990
  * List all the models of a specific type. The parameter "type" and "types" cannot
10134
- * be used together. Can be any of the following values: sd-1_5, sd-1_5-lora,
10135
- * sd-1_5-composition, sd-xl, sd-xl-lora, sd-xl-composition, flux.1, flux.1-lora,
9991
+ * be used together. Can be any of the following values: flux.1, flux.1-lora,
10136
9992
  * flux.1-kontext-dev, flux.1-krea-dev, flux.1-kontext-lora, flux.1-krea-lora,
10137
9993
  * flux.1-composition, flux.1-pro, flux1.1-pro, flux.1.1-pro-ultra,
10138
9994
  * flux.2-dev-lora, flux.2-dev-edit-lora, flux.2-klein-4b-lora,
@@ -10145,12 +10001,6 @@ export interface ModelListParams extends ModelsCursorParams {
10145
10001
  * available when privacy=public
10146
10002
  */
10147
10003
  type?:
10148
- | 'sd-1_5'
10149
- | 'sd-1_5-lora'
10150
- | 'sd-1_5-composition'
10151
- | 'sd-xl'
10152
- | 'sd-xl-lora'
10153
- | 'sd-xl-composition'
10154
10004
  | 'flux.1'
10155
10005
  | 'flux.1-lora'
10156
10006
  | 'flux.1-kontext-dev'
@@ -10185,8 +10035,7 @@ export interface ModelListParams extends ModelsCursorParams {
10185
10035
 
10186
10036
  /**
10187
10037
  * List of types, comma separated. The parameter "type" and "types" cannot be used
10188
- * together. Can be any of the following values: sd-1_5, sd-1_5-lora,
10189
- * sd-1_5-composition, sd-xl, sd-xl-lora, sd-xl-composition, flux.1, flux.1-lora,
10038
+ * together. Can be any of the following values: flux.1, flux.1-lora,
10190
10039
  * flux.1-kontext-dev, flux.1-krea-dev, flux.1-kontext-lora, flux.1-krea-lora,
10191
10040
  * flux.1-composition, flux.1-pro, flux1.1-pro, flux.1.1-pro-ultra,
10192
10041
  * flux.2-dev-lora, flux.2-dev-edit-lora, flux.2-klein-4b-lora,
@@ -10199,12 +10048,6 @@ export interface ModelListParams extends ModelsCursorParams {
10199
10048
  * available when privacy=public
10200
10049
  */
10201
10050
  types?: Array<
10202
- | 'sd-1_5'
10203
- | 'sd-1_5-lora'
10204
- | 'sd-1_5-composition'
10205
- | 'sd-xl'
10206
- | 'sd-xl-lora'
10207
- | 'sd-xl-composition'
10208
10051
  | 'flux.1'
10209
10052
  | 'flux.1-lora'
10210
10053
  | 'flux.1-kontext-dev'