@openrouter/sdk 0.13.7 → 0.13.14

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 (216) hide show
  1. package/README.md +3 -9
  2. package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
  3. package/esm/funcs/{datasetsGetBenchmarksDesignArena.js → benchmarksGetBenchmarks.js} +11 -10
  4. package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
  5. package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
  6. package/esm/funcs/imagesGenerate.d.ts +30 -0
  7. package/esm/funcs/imagesGenerate.js +95 -0
  8. package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
  9. package/esm/funcs/imagesListModelEndpoints.js +107 -0
  10. package/esm/funcs/{datasetsGetBenchmarksDesignArena.d.ts → imagesListModels.d.ts} +4 -4
  11. package/esm/funcs/{datasetsGetBenchmarksArtificialAnalysis.js → imagesListModels.js} +10 -15
  12. package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
  13. package/esm/funcs/workspacesDeleteBudget.js +107 -0
  14. package/esm/funcs/workspacesListBudgets.d.ts +19 -0
  15. package/esm/funcs/workspacesListBudgets.js +103 -0
  16. package/esm/funcs/workspacesSetBudget.d.ts +19 -0
  17. package/esm/funcs/workspacesSetBudget.js +110 -0
  18. package/esm/lib/config.d.ts +2 -2
  19. package/esm/lib/config.js +2 -2
  20. package/esm/models/advisorreasoning.d.ts +1 -0
  21. package/esm/models/advisorreasoning.js +1 -0
  22. package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
  23. package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
  24. package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
  25. package/esm/models/anthropiccompactionusageiteration.js +35 -0
  26. package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
  27. package/esm/models/anthropicdocumentblockparam.js +3 -0
  28. package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
  29. package/esm/models/anthropicfiledocumentsource.js +19 -0
  30. package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
  31. package/esm/models/anthropiciterationcachecreation.js +21 -0
  32. package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
  33. package/esm/models/anthropicmessageusageiteration.js +36 -0
  34. package/esm/models/anthropicspeed.d.ts +10 -0
  35. package/esm/models/anthropicspeed.js +12 -0
  36. package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
  37. package/esm/models/anthropicunknownusageiteration.js +30 -0
  38. package/esm/models/anthropicusageiteration.d.ts +12 -0
  39. package/esm/models/anthropicusageiteration.js +21 -0
  40. package/esm/models/apierrortype.d.ts +41 -0
  41. package/esm/models/apierrortype.js +40 -0
  42. package/esm/models/booleancapability.d.ts +13 -0
  43. package/esm/models/booleancapability.js +14 -0
  44. package/esm/models/byokproviderslug.d.ts +4 -0
  45. package/esm/models/byokproviderslug.js +4 -0
  46. package/esm/models/capabilitydescriptor.d.ts +15 -0
  47. package/esm/models/capabilitydescriptor.js +19 -0
  48. package/esm/models/chatrequest.d.ts +2 -0
  49. package/esm/models/chatrequest.js +2 -0
  50. package/esm/models/chatstreamchunk.d.ts +25 -4
  51. package/esm/models/chatstreamchunk.js +19 -4
  52. package/esm/models/chatusage.d.ts +32 -8
  53. package/esm/models/chatusage.js +25 -8
  54. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  55. package/esm/models/contentpartimage.d.ts +9 -2
  56. package/esm/models/contentpartimage.js +6 -1
  57. package/esm/models/debugevent.d.ts +42 -0
  58. package/esm/models/debugevent.js +58 -0
  59. package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
  60. package/esm/models/deleteworkspacebudgetresponse.js +14 -0
  61. package/esm/models/enumcapability.d.ts +14 -0
  62. package/esm/models/enumcapability.js +15 -0
  63. package/esm/models/fusionplugin.d.ts +1 -0
  64. package/esm/models/fusionplugin.js +1 -0
  65. package/esm/models/fusionservertoolconfig.d.ts +8 -1
  66. package/esm/models/fusionservertoolconfig.js +4 -0
  67. package/esm/models/imageendpoint.d.ts +41 -0
  68. package/esm/models/imageendpoint.js +33 -0
  69. package/esm/models/imagegencompletedevent.d.ts +29 -0
  70. package/esm/models/imagegencompletedevent.js +23 -0
  71. package/esm/models/imagegenerationrequest.d.ts +914 -0
  72. package/esm/models/imagegenerationrequest.js +267 -0
  73. package/esm/models/imagegenerationresponse.d.ts +34 -0
  74. package/esm/models/imagegenerationresponse.js +29 -0
  75. package/esm/models/imagegenerationservertool.d.ts +15 -15
  76. package/esm/models/imagegenerationservertool.js +15 -17
  77. package/esm/models/imagegenerationusage.d.ts +119 -0
  78. package/esm/models/imagegenerationusage.js +93 -0
  79. package/esm/models/imagegenpartialimageevent.d.ts +24 -0
  80. package/esm/models/imagegenpartialimageevent.js +22 -0
  81. package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
  82. package/esm/models/imagegenstreamerrorevent.js +25 -0
  83. package/esm/models/imagemodelarchitecture.d.ts +19 -0
  84. package/esm/models/imagemodelarchitecture.js +23 -0
  85. package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
  86. package/esm/models/imagemodelendpointsresponse.js +16 -0
  87. package/esm/models/imagemodellistitem.d.ts +42 -0
  88. package/esm/models/imagemodellistitem.js +29 -0
  89. package/esm/models/imagemodelslistresponse.d.ts +14 -0
  90. package/esm/models/imagemodelslistresponse.js +15 -0
  91. package/esm/models/imageoutputmodality.d.ts +16 -0
  92. package/esm/models/imageoutputmodality.js +18 -0
  93. package/esm/models/imagepricingentry.d.ts +35 -0
  94. package/esm/models/imagepricingentry.js +41 -0
  95. package/esm/models/imagestreamingresponse.d.ts +18 -0
  96. package/esm/models/imagestreamingresponse.js +43 -0
  97. package/esm/models/index.d.ts +44 -7
  98. package/esm/models/index.js +44 -7
  99. package/esm/models/inputreference.d.ts +6 -2
  100. package/esm/models/inputreference.js +1 -1
  101. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  102. package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
  103. package/esm/models/listworkspacebudgetsresponse.js +15 -0
  104. package/esm/models/messagesrequest.d.ts +6 -6
  105. package/esm/models/messagesrequest.js +4 -5
  106. package/esm/models/model.d.ts +5 -0
  107. package/esm/models/model.js +2 -0
  108. package/esm/models/modelreasoning.d.ts +49 -0
  109. package/esm/models/modelreasoning.js +42 -0
  110. package/esm/models/observabilityarizedestination.d.ts +3 -0
  111. package/esm/models/openresponsesresult.d.ts +5 -0
  112. package/esm/models/openresponsesresult.js +3 -0
  113. package/esm/models/operations/createembeddings.d.ts +19 -0
  114. package/esm/models/operations/createembeddings.js +20 -0
  115. package/esm/models/operations/createimages.d.ts +63 -0
  116. package/esm/models/operations/createimages.js +44 -0
  117. package/esm/models/operations/{getbenchmarksartificialanalysis.d.ts → deleteworkspacebudget.d.ts} +15 -9
  118. package/esm/models/operations/deleteworkspacebudget.js +23 -0
  119. package/esm/models/operations/getbenchmarks.d.ts +120 -0
  120. package/esm/models/operations/getbenchmarks.js +60 -0
  121. package/esm/models/operations/getmodels.d.ts +5 -3
  122. package/esm/models/operations/getmodels.js +3 -1
  123. package/esm/models/operations/{getbenchmarksdesignarena.d.ts → gettaskclassifications.d.ts} +16 -28
  124. package/esm/models/operations/gettaskclassifications.js +29 -0
  125. package/esm/models/operations/index.d.ts +8 -2
  126. package/esm/models/operations/index.js +8 -2
  127. package/esm/models/operations/listbyokkeys.d.ts +4 -0
  128. package/esm/models/operations/listbyokkeys.js +4 -0
  129. package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
  130. package/esm/models/operations/listimagemodelendpoints.js +22 -0
  131. package/esm/models/operations/listimagemodels.d.ts +53 -0
  132. package/esm/models/operations/listimagemodels.js +20 -0
  133. package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
  134. package/esm/models/operations/listworkspacebudgets.js +21 -0
  135. package/esm/models/operations/queryanalytics.d.ts +7 -3
  136. package/esm/models/operations/queryanalytics.js +1 -0
  137. package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
  138. package/esm/models/operations/upsertworkspacebudget.js +25 -0
  139. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  140. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  141. package/esm/models/providername.d.ts +4 -0
  142. package/esm/models/providername.js +4 -0
  143. package/esm/models/provideroptions.d.ts +25 -1
  144. package/esm/models/provideroptions.js +6 -0
  145. package/esm/models/providerresponse.d.ts +4 -0
  146. package/esm/models/providerresponse.js +4 -0
  147. package/esm/models/rangecapability.d.ts +15 -0
  148. package/esm/models/rangecapability.js +16 -0
  149. package/esm/models/reasoningeffort.d.ts +1 -0
  150. package/esm/models/reasoningeffort.js +1 -0
  151. package/esm/models/responsesrequest.d.ts +6 -0
  152. package/esm/models/responsesrequest.js +2 -0
  153. package/esm/models/speechrequest.d.ts +1 -1
  154. package/esm/models/streamevents.d.ts +2 -1
  155. package/esm/models/streamevents.js +2 -0
  156. package/esm/models/sttrequest.d.ts +1 -1
  157. package/esm/models/subagentreasoning.d.ts +1 -0
  158. package/esm/models/subagentreasoning.js +1 -0
  159. package/esm/models/taskclassificationitem.d.ts +42 -0
  160. package/esm/models/taskclassificationitem.js +32 -0
  161. package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
  162. package/esm/models/taskclassificationmacrocategory.js +23 -0
  163. package/esm/models/taskclassificationmodel.d.ts +21 -0
  164. package/esm/models/taskclassificationmodel.js +22 -0
  165. package/esm/models/taskclassificationresponse.d.ts +33 -0
  166. package/esm/models/taskclassificationresponse.js +33 -0
  167. package/esm/models/{benchmarkpricing.d.ts → unifiedbenchmarkpricing.d.ts} +4 -4
  168. package/esm/models/unifiedbenchmarkpricing.js +15 -0
  169. package/esm/models/{benchmarksaaitem.d.ts → unifiedbenchmarksaaitem.d.ts} +14 -10
  170. package/esm/models/unifiedbenchmarksaaitem.js +30 -0
  171. package/esm/models/{benchmarksdaitem.d.ts → unifiedbenchmarksdaitem.d.ts} +11 -7
  172. package/esm/models/{benchmarksdaitem.js → unifiedbenchmarksdaitem.js} +8 -7
  173. package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
  174. package/esm/models/unifiedbenchmarksmeta.js +46 -0
  175. package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
  176. package/esm/models/unifiedbenchmarksresponse.js +30 -0
  177. package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
  178. package/esm/models/upsertworkspacebudgetrequest.js +18 -0
  179. package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
  180. package/esm/models/upsertworkspacebudgetresponse.js +15 -0
  181. package/esm/models/videogenerationrequest.d.ts +39 -15
  182. package/esm/models/videogenerationrequest.js +17 -11
  183. package/esm/models/websearchconfig.d.ts +1 -1
  184. package/esm/models/websearchservertool.d.ts +1 -1
  185. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  186. package/esm/models/workspacebudget.d.ts +48 -0
  187. package/esm/models/workspacebudget.js +39 -0
  188. package/esm/models/workspacebudgetinterval.d.ts +18 -0
  189. package/esm/models/workspacebudgetinterval.js +17 -0
  190. package/esm/sdk/benchmarks.d.ts +13 -0
  191. package/esm/sdk/benchmarks.js +19 -0
  192. package/esm/sdk/classifications.d.ts +31 -0
  193. package/esm/sdk/classifications.js +37 -0
  194. package/esm/sdk/datasets.d.ts +0 -14
  195. package/esm/sdk/datasets.js +0 -20
  196. package/esm/sdk/images.d.ts +38 -0
  197. package/esm/sdk/images.js +33 -0
  198. package/esm/sdk/sdk.d.ts +9 -0
  199. package/esm/sdk/sdk.js +12 -0
  200. package/esm/sdk/workspaces.d.ts +21 -0
  201. package/esm/sdk/workspaces.js +30 -0
  202. package/jsr.json +1 -1
  203. package/package.json +7 -7
  204. package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +0 -19
  205. package/esm/models/benchmarkpricing.js +0 -15
  206. package/esm/models/benchmarksaaitem.js +0 -29
  207. package/esm/models/benchmarksaameta.d.ts +0 -70
  208. package/esm/models/benchmarksaameta.js +0 -50
  209. package/esm/models/benchmarksaaresponse.d.ts +0 -13
  210. package/esm/models/benchmarksaaresponse.js +0 -17
  211. package/esm/models/benchmarksdameta.d.ts +0 -98
  212. package/esm/models/benchmarksdameta.js +0 -62
  213. package/esm/models/benchmarksdaresponse.d.ts +0 -13
  214. package/esm/models/benchmarksdaresponse.js +0 -17
  215. package/esm/models/operations/getbenchmarksartificialanalysis.js +0 -22
  216. package/esm/models/operations/getbenchmarksdesignarena.js +0 -36
@@ -0,0 +1,914 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { ContentPartImage, ContentPartImage$Outbound } from "./contentpartimage.js";
4
+ /**
5
+ * Normalized aspect ratio of the generated image. Providers clamp to their supported subset.
6
+ */
7
+ export declare const ImageGenerationRequestAspectRatio: {
8
+ readonly Eleven: "1:1";
9
+ readonly Twelve: "1:2";
10
+ readonly Fourteen: "1:4";
11
+ readonly Eighteen: "1:8";
12
+ readonly TwentyOne: "2:1";
13
+ readonly TwentyThree: "2:3";
14
+ readonly ThirtyTwo: "3:2";
15
+ readonly ThirtyFour: "3:4";
16
+ readonly FortyOne: "4:1";
17
+ readonly FortyThree: "4:3";
18
+ readonly FortyFive: "4:5";
19
+ readonly FiftyFour: "5:4";
20
+ readonly EightyOne: "8:1";
21
+ readonly NineHundredAndSixteen: "9:16";
22
+ readonly OneHundredAndSixtyNine: "16:9";
23
+ readonly NineHundredAndNineteenDot5: "9:19.5";
24
+ readonly NineteenDot59: "19.5:9";
25
+ readonly NineHundredAndTwenty: "9:20";
26
+ readonly TwoHundredAndNine: "20:9";
27
+ readonly NineHundredAndTwentyOne: "9:21";
28
+ readonly TwoHundredAndNineteen: "21:9";
29
+ readonly Auto: "auto";
30
+ };
31
+ /**
32
+ * Normalized aspect ratio of the generated image. Providers clamp to their supported subset.
33
+ */
34
+ export type ImageGenerationRequestAspectRatio = OpenEnum<typeof ImageGenerationRequestAspectRatio>;
35
+ /**
36
+ * Background treatment. `transparent` requires an output_format that supports alpha (png or webp).
37
+ */
38
+ export declare const ImageGenerationRequestBackground: {
39
+ readonly Auto: "auto";
40
+ readonly Transparent: "transparent";
41
+ readonly Opaque: "opaque";
42
+ };
43
+ /**
44
+ * Background treatment. `transparent` requires an output_format that supports alpha (png or webp).
45
+ */
46
+ export type ImageGenerationRequestBackground = OpenEnum<typeof ImageGenerationRequestBackground>;
47
+ /**
48
+ * Encoding of the returned image bytes.
49
+ */
50
+ export declare const ImageGenerationRequestOutputFormat: {
51
+ readonly Png: "png";
52
+ readonly Jpeg: "jpeg";
53
+ readonly Webp: "webp";
54
+ };
55
+ /**
56
+ * Encoding of the returned image bytes.
57
+ */
58
+ export type ImageGenerationRequestOutputFormat = OpenEnum<typeof ImageGenerationRequestOutputFormat>;
59
+ /**
60
+ * Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
61
+ */
62
+ export type ImageGenerationRequestOptions = {
63
+ oneai?: {
64
+ [k: string]: any | null;
65
+ } | undefined;
66
+ ai21?: {
67
+ [k: string]: any | null;
68
+ } | undefined;
69
+ aionLabs?: {
70
+ [k: string]: any | null;
71
+ } | undefined;
72
+ akashml?: {
73
+ [k: string]: any | null;
74
+ } | undefined;
75
+ alibaba?: {
76
+ [k: string]: any | null;
77
+ } | undefined;
78
+ amazonBedrock?: {
79
+ [k: string]: any | null;
80
+ } | undefined;
81
+ amazonNova?: {
82
+ [k: string]: any | null;
83
+ } | undefined;
84
+ ambient?: {
85
+ [k: string]: any | null;
86
+ } | undefined;
87
+ anthropic?: {
88
+ [k: string]: any | null;
89
+ } | undefined;
90
+ anyscale?: {
91
+ [k: string]: any | null;
92
+ } | undefined;
93
+ arceeAi?: {
94
+ [k: string]: any | null;
95
+ } | undefined;
96
+ atlasCloud?: {
97
+ [k: string]: any | null;
98
+ } | undefined;
99
+ atoma?: {
100
+ [k: string]: any | null;
101
+ } | undefined;
102
+ avian?: {
103
+ [k: string]: any | null;
104
+ } | undefined;
105
+ azure?: {
106
+ [k: string]: any | null;
107
+ } | undefined;
108
+ baidu?: {
109
+ [k: string]: any | null;
110
+ } | undefined;
111
+ baseten?: {
112
+ [k: string]: any | null;
113
+ } | undefined;
114
+ blackForestLabs?: {
115
+ [k: string]: any | null;
116
+ } | undefined;
117
+ byteplus?: {
118
+ [k: string]: any | null;
119
+ } | undefined;
120
+ centml?: {
121
+ [k: string]: any | null;
122
+ } | undefined;
123
+ cerebras?: {
124
+ [k: string]: any | null;
125
+ } | undefined;
126
+ chutes?: {
127
+ [k: string]: any | null;
128
+ } | undefined;
129
+ cirrascale?: {
130
+ [k: string]: any | null;
131
+ } | undefined;
132
+ clarifai?: {
133
+ [k: string]: any | null;
134
+ } | undefined;
135
+ cloudflare?: {
136
+ [k: string]: any | null;
137
+ } | undefined;
138
+ cohere?: {
139
+ [k: string]: any | null;
140
+ } | undefined;
141
+ crofai?: {
142
+ [k: string]: any | null;
143
+ } | undefined;
144
+ crucible?: {
145
+ [k: string]: any | null;
146
+ } | undefined;
147
+ crusoe?: {
148
+ [k: string]: any | null;
149
+ } | undefined;
150
+ darkbloom?: {
151
+ [k: string]: any | null;
152
+ } | undefined;
153
+ decart?: {
154
+ [k: string]: any | null;
155
+ } | undefined;
156
+ deepinfra?: {
157
+ [k: string]: any | null;
158
+ } | undefined;
159
+ deepseek?: {
160
+ [k: string]: any | null;
161
+ } | undefined;
162
+ dekallm?: {
163
+ [k: string]: any | null;
164
+ } | undefined;
165
+ digitalocean?: {
166
+ [k: string]: any | null;
167
+ } | undefined;
168
+ enfer?: {
169
+ [k: string]: any | null;
170
+ } | undefined;
171
+ fakeProvider?: {
172
+ [k: string]: any | null;
173
+ } | undefined;
174
+ featherless?: {
175
+ [k: string]: any | null;
176
+ } | undefined;
177
+ fireworks?: {
178
+ [k: string]: any | null;
179
+ } | undefined;
180
+ friendli?: {
181
+ [k: string]: any | null;
182
+ } | undefined;
183
+ gmicloud?: {
184
+ [k: string]: any | null;
185
+ } | undefined;
186
+ googleAiStudio?: {
187
+ [k: string]: any | null;
188
+ } | undefined;
189
+ googleVertex?: {
190
+ [k: string]: any | null;
191
+ } | undefined;
192
+ gopomelo?: {
193
+ [k: string]: any | null;
194
+ } | undefined;
195
+ groq?: {
196
+ [k: string]: any | null;
197
+ } | undefined;
198
+ heygen?: {
199
+ [k: string]: any | null;
200
+ } | undefined;
201
+ huggingface?: {
202
+ [k: string]: any | null;
203
+ } | undefined;
204
+ hyperbolic?: {
205
+ [k: string]: any | null;
206
+ } | undefined;
207
+ hyperbolicQuantized?: {
208
+ [k: string]: any | null;
209
+ } | undefined;
210
+ inception?: {
211
+ [k: string]: any | null;
212
+ } | undefined;
213
+ inceptron?: {
214
+ [k: string]: any | null;
215
+ } | undefined;
216
+ inferactVllm?: {
217
+ [k: string]: any | null;
218
+ } | undefined;
219
+ inferenceNet?: {
220
+ [k: string]: any | null;
221
+ } | undefined;
222
+ infermatic?: {
223
+ [k: string]: any | null;
224
+ } | undefined;
225
+ inflection?: {
226
+ [k: string]: any | null;
227
+ } | undefined;
228
+ inocloud?: {
229
+ [k: string]: any | null;
230
+ } | undefined;
231
+ ioNet?: {
232
+ [k: string]: any | null;
233
+ } | undefined;
234
+ ionstream?: {
235
+ [k: string]: any | null;
236
+ } | undefined;
237
+ klusterai?: {
238
+ [k: string]: any | null;
239
+ } | undefined;
240
+ lambda?: {
241
+ [k: string]: any | null;
242
+ } | undefined;
243
+ lepton?: {
244
+ [k: string]: any | null;
245
+ } | undefined;
246
+ liquid?: {
247
+ [k: string]: any | null;
248
+ } | undefined;
249
+ lynn?: {
250
+ [k: string]: any | null;
251
+ } | undefined;
252
+ lynnPrivate?: {
253
+ [k: string]: any | null;
254
+ } | undefined;
255
+ mancer?: {
256
+ [k: string]: any | null;
257
+ } | undefined;
258
+ mancerOld?: {
259
+ [k: string]: any | null;
260
+ } | undefined;
261
+ mara?: {
262
+ [k: string]: any | null;
263
+ } | undefined;
264
+ meta?: {
265
+ [k: string]: any | null;
266
+ } | undefined;
267
+ minimax?: {
268
+ [k: string]: any | null;
269
+ } | undefined;
270
+ mistral?: {
271
+ [k: string]: any | null;
272
+ } | undefined;
273
+ modal?: {
274
+ [k: string]: any | null;
275
+ } | undefined;
276
+ modelrun?: {
277
+ [k: string]: any | null;
278
+ } | undefined;
279
+ modular?: {
280
+ [k: string]: any | null;
281
+ } | undefined;
282
+ moonshotai?: {
283
+ [k: string]: any | null;
284
+ } | undefined;
285
+ morph?: {
286
+ [k: string]: any | null;
287
+ } | undefined;
288
+ ncompass?: {
289
+ [k: string]: any | null;
290
+ } | undefined;
291
+ nebius?: {
292
+ [k: string]: any | null;
293
+ } | undefined;
294
+ nexAgi?: {
295
+ [k: string]: any | null;
296
+ } | undefined;
297
+ nextbit?: {
298
+ [k: string]: any | null;
299
+ } | undefined;
300
+ nineteen?: {
301
+ [k: string]: any | null;
302
+ } | undefined;
303
+ novita?: {
304
+ [k: string]: any | null;
305
+ } | undefined;
306
+ nvidia?: {
307
+ [k: string]: any | null;
308
+ } | undefined;
309
+ octoai?: {
310
+ [k: string]: any | null;
311
+ } | undefined;
312
+ openInference?: {
313
+ [k: string]: any | null;
314
+ } | undefined;
315
+ openai?: {
316
+ [k: string]: any | null;
317
+ } | undefined;
318
+ parasail?: {
319
+ [k: string]: any | null;
320
+ } | undefined;
321
+ perceptron?: {
322
+ [k: string]: any | null;
323
+ } | undefined;
324
+ perplexity?: {
325
+ [k: string]: any | null;
326
+ } | undefined;
327
+ phala?: {
328
+ [k: string]: any | null;
329
+ } | undefined;
330
+ poolside?: {
331
+ [k: string]: any | null;
332
+ } | undefined;
333
+ recraft?: {
334
+ [k: string]: any | null;
335
+ } | undefined;
336
+ recursal?: {
337
+ [k: string]: any | null;
338
+ } | undefined;
339
+ reflection?: {
340
+ [k: string]: any | null;
341
+ } | undefined;
342
+ reka?: {
343
+ [k: string]: any | null;
344
+ } | undefined;
345
+ relace?: {
346
+ [k: string]: any | null;
347
+ } | undefined;
348
+ replicate?: {
349
+ [k: string]: any | null;
350
+ } | undefined;
351
+ sakanaAi?: {
352
+ [k: string]: any | null;
353
+ } | undefined;
354
+ sambanova?: {
355
+ [k: string]: any | null;
356
+ } | undefined;
357
+ sambanovaCloaked?: {
358
+ [k: string]: any | null;
359
+ } | undefined;
360
+ seed?: {
361
+ [k: string]: any | null;
362
+ } | undefined;
363
+ sfCompute?: {
364
+ [k: string]: any | null;
365
+ } | undefined;
366
+ siliconflow?: {
367
+ [k: string]: any | null;
368
+ } | undefined;
369
+ sourceful?: {
370
+ [k: string]: any | null;
371
+ } | undefined;
372
+ stealth?: {
373
+ [k: string]: any | null;
374
+ } | undefined;
375
+ stepfun?: {
376
+ [k: string]: any | null;
377
+ } | undefined;
378
+ streamlake?: {
379
+ [k: string]: any | null;
380
+ } | undefined;
381
+ switchpoint?: {
382
+ [k: string]: any | null;
383
+ } | undefined;
384
+ targon?: {
385
+ [k: string]: any | null;
386
+ } | undefined;
387
+ tenstorrent?: {
388
+ [k: string]: any | null;
389
+ } | undefined;
390
+ together?: {
391
+ [k: string]: any | null;
392
+ } | undefined;
393
+ togetherLite?: {
394
+ [k: string]: any | null;
395
+ } | undefined;
396
+ ubicloud?: {
397
+ [k: string]: any | null;
398
+ } | undefined;
399
+ upstage?: {
400
+ [k: string]: any | null;
401
+ } | undefined;
402
+ venice?: {
403
+ [k: string]: any | null;
404
+ } | undefined;
405
+ wafer?: {
406
+ [k: string]: any | null;
407
+ } | undefined;
408
+ wandb?: {
409
+ [k: string]: any | null;
410
+ } | undefined;
411
+ xai?: {
412
+ [k: string]: any | null;
413
+ } | undefined;
414
+ xiaomi?: {
415
+ [k: string]: any | null;
416
+ } | undefined;
417
+ zAi?: {
418
+ [k: string]: any | null;
419
+ } | undefined;
420
+ };
421
+ /**
422
+ * Provider-specific passthrough configuration
423
+ */
424
+ export type ImageGenerationRequestProvider = {
425
+ options?: ImageGenerationRequestOptions | undefined;
426
+ };
427
+ /**
428
+ * Rendering quality. Providers without a quality knob ignore this.
429
+ */
430
+ export declare const ImageGenerationRequestQuality: {
431
+ readonly Auto: "auto";
432
+ readonly Low: "low";
433
+ readonly Medium: "medium";
434
+ readonly High: "high";
435
+ };
436
+ /**
437
+ * Rendering quality. Providers without a quality knob ignore this.
438
+ */
439
+ export type ImageGenerationRequestQuality = OpenEnum<typeof ImageGenerationRequestQuality>;
440
+ /**
441
+ * Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
442
+ */
443
+ export declare const ImageGenerationRequestResolution: {
444
+ readonly FiveHundredAndTwelve: "512";
445
+ readonly OneK: "1K";
446
+ readonly TwoK: "2K";
447
+ readonly FourK: "4K";
448
+ };
449
+ /**
450
+ * Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
451
+ */
452
+ export type ImageGenerationRequestResolution = OpenEnum<typeof ImageGenerationRequestResolution>;
453
+ /**
454
+ * Image generation request input
455
+ */
456
+ export type ImageGenerationRequest = {
457
+ /**
458
+ * Normalized aspect ratio of the generated image. Providers clamp to their supported subset.
459
+ */
460
+ aspectRatio?: ImageGenerationRequestAspectRatio | undefined;
461
+ /**
462
+ * Background treatment. `transparent` requires an output_format that supports alpha (png or webp).
463
+ */
464
+ background?: ImageGenerationRequestBackground | undefined;
465
+ /**
466
+ * Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
467
+ */
468
+ inputReferences?: Array<ContentPartImage> | undefined;
469
+ /**
470
+ * The image generation model to use
471
+ */
472
+ model: string;
473
+ /**
474
+ * Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
475
+ */
476
+ n?: number | undefined;
477
+ /**
478
+ * Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
479
+ */
480
+ outputCompression?: number | undefined;
481
+ /**
482
+ * Encoding of the returned image bytes.
483
+ */
484
+ outputFormat?: ImageGenerationRequestOutputFormat | undefined;
485
+ /**
486
+ * Text description of the desired image
487
+ */
488
+ prompt: string;
489
+ /**
490
+ * Provider-specific passthrough configuration
491
+ */
492
+ provider?: ImageGenerationRequestProvider | undefined;
493
+ /**
494
+ * Rendering quality. Providers without a quality knob ignore this.
495
+ */
496
+ quality?: ImageGenerationRequestQuality | undefined;
497
+ /**
498
+ * Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
499
+ */
500
+ resolution?: ImageGenerationRequestResolution | undefined;
501
+ /**
502
+ * If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.
503
+ */
504
+ seed?: number | undefined;
505
+ /**
506
+ * Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected.
507
+ */
508
+ size?: string | undefined;
509
+ /**
510
+ * If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response.
511
+ */
512
+ stream?: boolean | undefined;
513
+ };
514
+ /** @internal */
515
+ export declare const ImageGenerationRequestAspectRatio$outboundSchema: z.ZodType<string, ImageGenerationRequestAspectRatio>;
516
+ /** @internal */
517
+ export declare const ImageGenerationRequestBackground$outboundSchema: z.ZodType<string, ImageGenerationRequestBackground>;
518
+ /** @internal */
519
+ export declare const ImageGenerationRequestOutputFormat$outboundSchema: z.ZodType<string, ImageGenerationRequestOutputFormat>;
520
+ /** @internal */
521
+ export type ImageGenerationRequestOptions$Outbound = {
522
+ "01ai"?: {
523
+ [k: string]: any | null;
524
+ } | undefined;
525
+ ai21?: {
526
+ [k: string]: any | null;
527
+ } | undefined;
528
+ "aion-labs"?: {
529
+ [k: string]: any | null;
530
+ } | undefined;
531
+ akashml?: {
532
+ [k: string]: any | null;
533
+ } | undefined;
534
+ alibaba?: {
535
+ [k: string]: any | null;
536
+ } | undefined;
537
+ "amazon-bedrock"?: {
538
+ [k: string]: any | null;
539
+ } | undefined;
540
+ "amazon-nova"?: {
541
+ [k: string]: any | null;
542
+ } | undefined;
543
+ ambient?: {
544
+ [k: string]: any | null;
545
+ } | undefined;
546
+ anthropic?: {
547
+ [k: string]: any | null;
548
+ } | undefined;
549
+ anyscale?: {
550
+ [k: string]: any | null;
551
+ } | undefined;
552
+ "arcee-ai"?: {
553
+ [k: string]: any | null;
554
+ } | undefined;
555
+ "atlas-cloud"?: {
556
+ [k: string]: any | null;
557
+ } | undefined;
558
+ atoma?: {
559
+ [k: string]: any | null;
560
+ } | undefined;
561
+ avian?: {
562
+ [k: string]: any | null;
563
+ } | undefined;
564
+ azure?: {
565
+ [k: string]: any | null;
566
+ } | undefined;
567
+ baidu?: {
568
+ [k: string]: any | null;
569
+ } | undefined;
570
+ baseten?: {
571
+ [k: string]: any | null;
572
+ } | undefined;
573
+ "black-forest-labs"?: {
574
+ [k: string]: any | null;
575
+ } | undefined;
576
+ byteplus?: {
577
+ [k: string]: any | null;
578
+ } | undefined;
579
+ centml?: {
580
+ [k: string]: any | null;
581
+ } | undefined;
582
+ cerebras?: {
583
+ [k: string]: any | null;
584
+ } | undefined;
585
+ chutes?: {
586
+ [k: string]: any | null;
587
+ } | undefined;
588
+ cirrascale?: {
589
+ [k: string]: any | null;
590
+ } | undefined;
591
+ clarifai?: {
592
+ [k: string]: any | null;
593
+ } | undefined;
594
+ cloudflare?: {
595
+ [k: string]: any | null;
596
+ } | undefined;
597
+ cohere?: {
598
+ [k: string]: any | null;
599
+ } | undefined;
600
+ crofai?: {
601
+ [k: string]: any | null;
602
+ } | undefined;
603
+ crucible?: {
604
+ [k: string]: any | null;
605
+ } | undefined;
606
+ crusoe?: {
607
+ [k: string]: any | null;
608
+ } | undefined;
609
+ darkbloom?: {
610
+ [k: string]: any | null;
611
+ } | undefined;
612
+ decart?: {
613
+ [k: string]: any | null;
614
+ } | undefined;
615
+ deepinfra?: {
616
+ [k: string]: any | null;
617
+ } | undefined;
618
+ deepseek?: {
619
+ [k: string]: any | null;
620
+ } | undefined;
621
+ dekallm?: {
622
+ [k: string]: any | null;
623
+ } | undefined;
624
+ digitalocean?: {
625
+ [k: string]: any | null;
626
+ } | undefined;
627
+ enfer?: {
628
+ [k: string]: any | null;
629
+ } | undefined;
630
+ "fake-provider"?: {
631
+ [k: string]: any | null;
632
+ } | undefined;
633
+ featherless?: {
634
+ [k: string]: any | null;
635
+ } | undefined;
636
+ fireworks?: {
637
+ [k: string]: any | null;
638
+ } | undefined;
639
+ friendli?: {
640
+ [k: string]: any | null;
641
+ } | undefined;
642
+ gmicloud?: {
643
+ [k: string]: any | null;
644
+ } | undefined;
645
+ "google-ai-studio"?: {
646
+ [k: string]: any | null;
647
+ } | undefined;
648
+ "google-vertex"?: {
649
+ [k: string]: any | null;
650
+ } | undefined;
651
+ gopomelo?: {
652
+ [k: string]: any | null;
653
+ } | undefined;
654
+ groq?: {
655
+ [k: string]: any | null;
656
+ } | undefined;
657
+ heygen?: {
658
+ [k: string]: any | null;
659
+ } | undefined;
660
+ huggingface?: {
661
+ [k: string]: any | null;
662
+ } | undefined;
663
+ hyperbolic?: {
664
+ [k: string]: any | null;
665
+ } | undefined;
666
+ "hyperbolic-quantized"?: {
667
+ [k: string]: any | null;
668
+ } | undefined;
669
+ inception?: {
670
+ [k: string]: any | null;
671
+ } | undefined;
672
+ inceptron?: {
673
+ [k: string]: any | null;
674
+ } | undefined;
675
+ "inferact-vllm"?: {
676
+ [k: string]: any | null;
677
+ } | undefined;
678
+ "inference-net"?: {
679
+ [k: string]: any | null;
680
+ } | undefined;
681
+ infermatic?: {
682
+ [k: string]: any | null;
683
+ } | undefined;
684
+ inflection?: {
685
+ [k: string]: any | null;
686
+ } | undefined;
687
+ inocloud?: {
688
+ [k: string]: any | null;
689
+ } | undefined;
690
+ "io-net"?: {
691
+ [k: string]: any | null;
692
+ } | undefined;
693
+ ionstream?: {
694
+ [k: string]: any | null;
695
+ } | undefined;
696
+ klusterai?: {
697
+ [k: string]: any | null;
698
+ } | undefined;
699
+ lambda?: {
700
+ [k: string]: any | null;
701
+ } | undefined;
702
+ lepton?: {
703
+ [k: string]: any | null;
704
+ } | undefined;
705
+ liquid?: {
706
+ [k: string]: any | null;
707
+ } | undefined;
708
+ lynn?: {
709
+ [k: string]: any | null;
710
+ } | undefined;
711
+ "lynn-private"?: {
712
+ [k: string]: any | null;
713
+ } | undefined;
714
+ mancer?: {
715
+ [k: string]: any | null;
716
+ } | undefined;
717
+ "mancer-old"?: {
718
+ [k: string]: any | null;
719
+ } | undefined;
720
+ mara?: {
721
+ [k: string]: any | null;
722
+ } | undefined;
723
+ meta?: {
724
+ [k: string]: any | null;
725
+ } | undefined;
726
+ minimax?: {
727
+ [k: string]: any | null;
728
+ } | undefined;
729
+ mistral?: {
730
+ [k: string]: any | null;
731
+ } | undefined;
732
+ modal?: {
733
+ [k: string]: any | null;
734
+ } | undefined;
735
+ modelrun?: {
736
+ [k: string]: any | null;
737
+ } | undefined;
738
+ modular?: {
739
+ [k: string]: any | null;
740
+ } | undefined;
741
+ moonshotai?: {
742
+ [k: string]: any | null;
743
+ } | undefined;
744
+ morph?: {
745
+ [k: string]: any | null;
746
+ } | undefined;
747
+ ncompass?: {
748
+ [k: string]: any | null;
749
+ } | undefined;
750
+ nebius?: {
751
+ [k: string]: any | null;
752
+ } | undefined;
753
+ "nex-agi"?: {
754
+ [k: string]: any | null;
755
+ } | undefined;
756
+ nextbit?: {
757
+ [k: string]: any | null;
758
+ } | undefined;
759
+ nineteen?: {
760
+ [k: string]: any | null;
761
+ } | undefined;
762
+ novita?: {
763
+ [k: string]: any | null;
764
+ } | undefined;
765
+ nvidia?: {
766
+ [k: string]: any | null;
767
+ } | undefined;
768
+ octoai?: {
769
+ [k: string]: any | null;
770
+ } | undefined;
771
+ "open-inference"?: {
772
+ [k: string]: any | null;
773
+ } | undefined;
774
+ openai?: {
775
+ [k: string]: any | null;
776
+ } | undefined;
777
+ parasail?: {
778
+ [k: string]: any | null;
779
+ } | undefined;
780
+ perceptron?: {
781
+ [k: string]: any | null;
782
+ } | undefined;
783
+ perplexity?: {
784
+ [k: string]: any | null;
785
+ } | undefined;
786
+ phala?: {
787
+ [k: string]: any | null;
788
+ } | undefined;
789
+ poolside?: {
790
+ [k: string]: any | null;
791
+ } | undefined;
792
+ recraft?: {
793
+ [k: string]: any | null;
794
+ } | undefined;
795
+ recursal?: {
796
+ [k: string]: any | null;
797
+ } | undefined;
798
+ reflection?: {
799
+ [k: string]: any | null;
800
+ } | undefined;
801
+ reka?: {
802
+ [k: string]: any | null;
803
+ } | undefined;
804
+ relace?: {
805
+ [k: string]: any | null;
806
+ } | undefined;
807
+ replicate?: {
808
+ [k: string]: any | null;
809
+ } | undefined;
810
+ "sakana-ai"?: {
811
+ [k: string]: any | null;
812
+ } | undefined;
813
+ sambanova?: {
814
+ [k: string]: any | null;
815
+ } | undefined;
816
+ "sambanova-cloaked"?: {
817
+ [k: string]: any | null;
818
+ } | undefined;
819
+ seed?: {
820
+ [k: string]: any | null;
821
+ } | undefined;
822
+ "sf-compute"?: {
823
+ [k: string]: any | null;
824
+ } | undefined;
825
+ siliconflow?: {
826
+ [k: string]: any | null;
827
+ } | undefined;
828
+ sourceful?: {
829
+ [k: string]: any | null;
830
+ } | undefined;
831
+ stealth?: {
832
+ [k: string]: any | null;
833
+ } | undefined;
834
+ stepfun?: {
835
+ [k: string]: any | null;
836
+ } | undefined;
837
+ streamlake?: {
838
+ [k: string]: any | null;
839
+ } | undefined;
840
+ switchpoint?: {
841
+ [k: string]: any | null;
842
+ } | undefined;
843
+ targon?: {
844
+ [k: string]: any | null;
845
+ } | undefined;
846
+ tenstorrent?: {
847
+ [k: string]: any | null;
848
+ } | undefined;
849
+ together?: {
850
+ [k: string]: any | null;
851
+ } | undefined;
852
+ "together-lite"?: {
853
+ [k: string]: any | null;
854
+ } | undefined;
855
+ ubicloud?: {
856
+ [k: string]: any | null;
857
+ } | undefined;
858
+ upstage?: {
859
+ [k: string]: any | null;
860
+ } | undefined;
861
+ venice?: {
862
+ [k: string]: any | null;
863
+ } | undefined;
864
+ wafer?: {
865
+ [k: string]: any | null;
866
+ } | undefined;
867
+ wandb?: {
868
+ [k: string]: any | null;
869
+ } | undefined;
870
+ xai?: {
871
+ [k: string]: any | null;
872
+ } | undefined;
873
+ xiaomi?: {
874
+ [k: string]: any | null;
875
+ } | undefined;
876
+ "z-ai"?: {
877
+ [k: string]: any | null;
878
+ } | undefined;
879
+ };
880
+ /** @internal */
881
+ export declare const ImageGenerationRequestOptions$outboundSchema: z.ZodType<ImageGenerationRequestOptions$Outbound, ImageGenerationRequestOptions>;
882
+ export declare function imageGenerationRequestOptionsToJSON(imageGenerationRequestOptions: ImageGenerationRequestOptions): string;
883
+ /** @internal */
884
+ export type ImageGenerationRequestProvider$Outbound = {
885
+ options?: ImageGenerationRequestOptions$Outbound | undefined;
886
+ };
887
+ /** @internal */
888
+ export declare const ImageGenerationRequestProvider$outboundSchema: z.ZodType<ImageGenerationRequestProvider$Outbound, ImageGenerationRequestProvider>;
889
+ export declare function imageGenerationRequestProviderToJSON(imageGenerationRequestProvider: ImageGenerationRequestProvider): string;
890
+ /** @internal */
891
+ export declare const ImageGenerationRequestQuality$outboundSchema: z.ZodType<string, ImageGenerationRequestQuality>;
892
+ /** @internal */
893
+ export declare const ImageGenerationRequestResolution$outboundSchema: z.ZodType<string, ImageGenerationRequestResolution>;
894
+ /** @internal */
895
+ export type ImageGenerationRequest$Outbound = {
896
+ aspect_ratio?: string | undefined;
897
+ background?: string | undefined;
898
+ input_references?: Array<ContentPartImage$Outbound> | undefined;
899
+ model: string;
900
+ n?: number | undefined;
901
+ output_compression?: number | undefined;
902
+ output_format?: string | undefined;
903
+ prompt: string;
904
+ provider?: ImageGenerationRequestProvider$Outbound | undefined;
905
+ quality?: string | undefined;
906
+ resolution?: string | undefined;
907
+ seed?: number | undefined;
908
+ size?: string | undefined;
909
+ stream?: boolean | undefined;
910
+ };
911
+ /** @internal */
912
+ export declare const ImageGenerationRequest$outboundSchema: z.ZodType<ImageGenerationRequest$Outbound, ImageGenerationRequest>;
913
+ export declare function imageGenerationRequestToJSON(imageGenerationRequest: ImageGenerationRequest): string;
914
+ //# sourceMappingURL=imagegenerationrequest.d.ts.map