@openrouter/sdk 0.13.7 → 0.13.13

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 +3 -0
  45. package/esm/models/byokproviderslug.js +3 -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 +908 -0
  72. package/esm/models/imagegenerationrequest.js +266 -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 +3 -0
  128. package/esm/models/operations/listbyokkeys.js +3 -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 +3 -0
  142. package/esm/models/providername.js +3 -0
  143. package/esm/models/provideroptions.d.ts +19 -1
  144. package/esm/models/provideroptions.js +5 -0
  145. package/esm/models/providerresponse.d.ts +3 -0
  146. package/esm/models/providerresponse.js +3 -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 +33 -15
  182. package/esm/models/videogenerationrequest.js +16 -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 +5 -5
  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
@@ -10,6 +10,7 @@ export * from "./createauthkeyscode.js";
10
10
  export * from "./createbyokkey.js";
11
11
  export * from "./createembeddings.js";
12
12
  export * from "./createguardrail.js";
13
+ export * from "./createimages.js";
13
14
  export * from "./createkeys.js";
14
15
  export * from "./createobservabilitydestination.js";
15
16
  export * from "./createpresetschatcompletions.js";
@@ -25,12 +26,12 @@ export * from "./deleteguardrail.js";
25
26
  export * from "./deletekeys.js";
26
27
  export * from "./deleteobservabilitydestination.js";
27
28
  export * from "./deleteworkspace.js";
29
+ export * from "./deleteworkspacebudget.js";
28
30
  export * from "./downloadfilecontent.js";
29
31
  export * from "./exchangeauthcodeforapikey.js";
30
32
  export * from "./getanalyticsmeta.js";
31
33
  export * from "./getapprankings.js";
32
- export * from "./getbenchmarksartificialanalysis.js";
33
- export * from "./getbenchmarksdesignarena.js";
34
+ export * from "./getbenchmarks.js";
34
35
  export * from "./getbyokkey.js";
35
36
  export * from "./getcredits.js";
36
37
  export * from "./getcurrentkey.js";
@@ -44,6 +45,7 @@ export * from "./getobservabilitydestination.js";
44
45
  export * from "./getpreset.js";
45
46
  export * from "./getpresetversion.js";
46
47
  export * from "./getrankingsdaily.js";
48
+ export * from "./gettaskclassifications.js";
47
49
  export * from "./getuseractivity.js";
48
50
  export * from "./getvideos.js";
49
51
  export * from "./getworkspace.js";
@@ -57,6 +59,8 @@ export * from "./listgenerationcontent.js";
57
59
  export * from "./listguardrailkeyassignments.js";
58
60
  export * from "./listguardrailmemberassignments.js";
59
61
  export * from "./listguardrails.js";
62
+ export * from "./listimagemodelendpoints.js";
63
+ export * from "./listimagemodels.js";
60
64
  export * from "./listkeyassignments.js";
61
65
  export * from "./listmemberassignments.js";
62
66
  export * from "./listmodelscount.js";
@@ -68,6 +72,7 @@ export * from "./listpresetversions.js";
68
72
  export * from "./listproviders.js";
69
73
  export * from "./listvideoscontent.js";
70
74
  export * from "./listvideosmodels.js";
75
+ export * from "./listworkspacebudgets.js";
71
76
  export * from "./listworkspaces.js";
72
77
  export * from "./queryanalytics.js";
73
78
  export * from "./sendchatcompletionrequest.js";
@@ -77,4 +82,5 @@ export * from "./updatekeys.js";
77
82
  export * from "./updateobservabilitydestination.js";
78
83
  export * from "./updateworkspace.js";
79
84
  export * from "./uploadfile.js";
85
+ export * from "./upsertworkspacebudget.js";
80
86
  //# sourceMappingURL=index.d.ts.map
@@ -14,6 +14,7 @@ export * from "./createauthkeyscode.js";
14
14
  export * from "./createbyokkey.js";
15
15
  export * from "./createembeddings.js";
16
16
  export * from "./createguardrail.js";
17
+ export * from "./createimages.js";
17
18
  export * from "./createkeys.js";
18
19
  export * from "./createobservabilitydestination.js";
19
20
  export * from "./createpresetschatcompletions.js";
@@ -29,12 +30,12 @@ export * from "./deleteguardrail.js";
29
30
  export * from "./deletekeys.js";
30
31
  export * from "./deleteobservabilitydestination.js";
31
32
  export * from "./deleteworkspace.js";
33
+ export * from "./deleteworkspacebudget.js";
32
34
  export * from "./downloadfilecontent.js";
33
35
  export * from "./exchangeauthcodeforapikey.js";
34
36
  export * from "./getanalyticsmeta.js";
35
37
  export * from "./getapprankings.js";
36
- export * from "./getbenchmarksartificialanalysis.js";
37
- export * from "./getbenchmarksdesignarena.js";
38
+ export * from "./getbenchmarks.js";
38
39
  export * from "./getbyokkey.js";
39
40
  export * from "./getcredits.js";
40
41
  export * from "./getcurrentkey.js";
@@ -48,6 +49,7 @@ export * from "./getobservabilitydestination.js";
48
49
  export * from "./getpreset.js";
49
50
  export * from "./getpresetversion.js";
50
51
  export * from "./getrankingsdaily.js";
52
+ export * from "./gettaskclassifications.js";
51
53
  export * from "./getuseractivity.js";
52
54
  export * from "./getvideos.js";
53
55
  export * from "./getworkspace.js";
@@ -61,6 +63,8 @@ export * from "./listgenerationcontent.js";
61
63
  export * from "./listguardrailkeyassignments.js";
62
64
  export * from "./listguardrailmemberassignments.js";
63
65
  export * from "./listguardrails.js";
66
+ export * from "./listimagemodelendpoints.js";
67
+ export * from "./listimagemodels.js";
64
68
  export * from "./listkeyassignments.js";
65
69
  export * from "./listmemberassignments.js";
66
70
  export * from "./listmodelscount.js";
@@ -72,6 +76,7 @@ export * from "./listpresetversions.js";
72
76
  export * from "./listproviders.js";
73
77
  export * from "./listvideoscontent.js";
74
78
  export * from "./listvideosmodels.js";
79
+ export * from "./listworkspacebudgets.js";
75
80
  export * from "./listworkspaces.js";
76
81
  export * from "./queryanalytics.js";
77
82
  export * from "./sendchatcompletionrequest.js";
@@ -81,4 +86,5 @@ export * from "./updatekeys.js";
81
86
  export * from "./updateobservabilitydestination.js";
82
87
  export * from "./updateworkspace.js";
83
88
  export * from "./uploadfile.js";
89
+ export * from "./upsertworkspacebudget.js";
84
90
  //# sourceMappingURL=index.js.map
@@ -66,6 +66,7 @@ export declare const Provider: {
66
66
  readonly Groq: "groq";
67
67
  readonly Inception: "inception";
68
68
  readonly Inceptron: "inceptron";
69
+ readonly InferactVllm: "inferact-vllm";
69
70
  readonly InferenceNet: "inference-net";
70
71
  readonly Infermatic: "infermatic";
71
72
  readonly Inflection: "inflection";
@@ -96,6 +97,7 @@ export declare const Provider: {
96
97
  readonly Recraft: "recraft";
97
98
  readonly Reka: "reka";
98
99
  readonly Relace: "relace";
100
+ readonly SakanaAi: "sakana-ai";
99
101
  readonly Sambanova: "sambanova";
100
102
  readonly Seed: "seed";
101
103
  readonly Siliconflow: "siliconflow";
@@ -103,6 +105,7 @@ export declare const Provider: {
103
105
  readonly Stepfun: "stepfun";
104
106
  readonly Streamlake: "streamlake";
105
107
  readonly Switchpoint: "switchpoint";
108
+ readonly Tenstorrent: "tenstorrent";
106
109
  readonly Together: "together";
107
110
  readonly Upstage: "upstage";
108
111
  readonly Venice: "venice";
@@ -49,6 +49,7 @@ export const Provider = {
49
49
  Groq: "groq",
50
50
  Inception: "inception",
51
51
  Inceptron: "inceptron",
52
+ InferactVllm: "inferact-vllm",
52
53
  InferenceNet: "inference-net",
53
54
  Infermatic: "infermatic",
54
55
  Inflection: "inflection",
@@ -79,6 +80,7 @@ export const Provider = {
79
80
  Recraft: "recraft",
80
81
  Reka: "reka",
81
82
  Relace: "relace",
83
+ SakanaAi: "sakana-ai",
82
84
  Sambanova: "sambanova",
83
85
  Seed: "seed",
84
86
  Siliconflow: "siliconflow",
@@ -86,6 +88,7 @@ export const Provider = {
86
88
  Stepfun: "stepfun",
87
89
  Streamlake: "streamlake",
88
90
  Switchpoint: "switchpoint",
91
+ Tenstorrent: "tenstorrent",
89
92
  Together: "together",
90
93
  Upstage: "upstage",
91
94
  Venice: "venice",
@@ -0,0 +1,63 @@
1
+ import * as z from "zod/v4";
2
+ export type ListImageModelEndpointsGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type ListImageModelEndpointsRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ /**
44
+ * Model author/organization
45
+ */
46
+ author: string;
47
+ /**
48
+ * Model slug
49
+ */
50
+ slug: string;
51
+ };
52
+ /** @internal */
53
+ export type ListImageModelEndpointsRequest$Outbound = {
54
+ "HTTP-Referer"?: string | undefined;
55
+ appTitle?: string | undefined;
56
+ appCategories?: string | undefined;
57
+ author: string;
58
+ slug: string;
59
+ };
60
+ /** @internal */
61
+ export declare const ListImageModelEndpointsRequest$outboundSchema: z.ZodType<ListImageModelEndpointsRequest$Outbound, ListImageModelEndpointsRequest>;
62
+ export declare function listImageModelEndpointsRequestToJSON(listImageModelEndpointsRequest: ListImageModelEndpointsRequest): string;
63
+ //# sourceMappingURL=listimagemodelendpoints.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: efc8274ae41c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListImageModelEndpointsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ author: z.string(),
13
+ slug: z.string(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function listImageModelEndpointsRequestToJSON(listImageModelEndpointsRequest) {
20
+ return JSON.stringify(ListImageModelEndpointsRequest$outboundSchema.parse(listImageModelEndpointsRequest));
21
+ }
22
+ //# sourceMappingURL=listimagemodelendpoints.js.map
@@ -0,0 +1,53 @@
1
+ import * as z from "zod/v4";
2
+ export type ListImageModelsGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type ListImageModelsRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ };
44
+ /** @internal */
45
+ export type ListImageModelsRequest$Outbound = {
46
+ "HTTP-Referer"?: string | undefined;
47
+ appTitle?: string | undefined;
48
+ appCategories?: string | undefined;
49
+ };
50
+ /** @internal */
51
+ export declare const ListImageModelsRequest$outboundSchema: z.ZodType<ListImageModelsRequest$Outbound, ListImageModelsRequest>;
52
+ export declare function listImageModelsRequestToJSON(listImageModelsRequest: ListImageModelsRequest): string;
53
+ //# sourceMappingURL=listimagemodels.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 439d3eed4cf3
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListImageModelsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ }).transform((v) => {
13
+ return remap$(v, {
14
+ httpReferer: "HTTP-Referer",
15
+ });
16
+ });
17
+ export function listImageModelsRequestToJSON(listImageModelsRequest) {
18
+ return JSON.stringify(ListImageModelsRequest$outboundSchema.parse(listImageModelsRequest));
19
+ }
20
+ //# sourceMappingURL=listimagemodels.js.map
@@ -0,0 +1,58 @@
1
+ import * as z from "zod/v4";
2
+ export type ListWorkspaceBudgetsGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type ListWorkspaceBudgetsRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ /**
44
+ * The workspace ID (UUID) or slug
45
+ */
46
+ id: string;
47
+ };
48
+ /** @internal */
49
+ export type ListWorkspaceBudgetsRequest$Outbound = {
50
+ "HTTP-Referer"?: string | undefined;
51
+ appTitle?: string | undefined;
52
+ appCategories?: string | undefined;
53
+ id: string;
54
+ };
55
+ /** @internal */
56
+ export declare const ListWorkspaceBudgetsRequest$outboundSchema: z.ZodType<ListWorkspaceBudgetsRequest$Outbound, ListWorkspaceBudgetsRequest>;
57
+ export declare function listWorkspaceBudgetsRequestToJSON(listWorkspaceBudgetsRequest: ListWorkspaceBudgetsRequest): string;
58
+ //# sourceMappingURL=listworkspacebudgets.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ba0d3148fcc4
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListWorkspaceBudgetsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ id: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function listWorkspaceBudgetsRequestToJSON(listWorkspaceBudgetsRequest) {
19
+ return JSON.stringify(ListWorkspaceBudgetsRequest$outboundSchema.parse(listWorkspaceBudgetsRequest));
20
+ }
21
+ //# sourceMappingURL=listworkspacebudgets.js.map
@@ -25,12 +25,12 @@ export type QueryAnalyticsGlobals = {
25
25
  };
26
26
  export type Value2 = string | number;
27
27
  /**
28
- * Filter value (scalar or array depending on operator)
28
+ * Filter value (scalar or array depending on operator). Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name; `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
29
29
  */
30
30
  export type Value1 = string | number | Array<string | number>;
31
31
  export type Filter = {
32
32
  /**
33
- * Dimension to filter on
33
+ * Dimension to filter on. Use the /meta endpoint for available dimensions.
34
34
  */
35
35
  field: string;
36
36
  /**
@@ -38,7 +38,7 @@ export type Filter = {
38
38
  */
39
39
  operator: string;
40
40
  /**
41
- * Filter value (scalar or array depending on operator)
41
+ * Filter value (scalar or array depending on operator). Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name; `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
42
42
  */
43
43
  value: string | number | Array<string | number>;
44
44
  };
@@ -112,6 +112,10 @@ export type QueryAnalyticsData2 = {
112
112
  cachedAt?: number | undefined;
113
113
  data: Array<QueryAnalyticsData1>;
114
114
  metadata: Metadata;
115
+ /**
116
+ * Warnings about filter resolution issues (e.g. unresolvable api_key_id hashes). The query still runs normally; these inform the caller that some filter values could not be resolved.
117
+ */
118
+ warnings?: Array<string> | undefined;
115
119
  };
116
120
  /**
117
121
  * Analytics query results
@@ -115,6 +115,7 @@ export const QueryAnalyticsData2$inboundSchema = z.object({
115
115
  cachedAt: z.number().optional(),
116
116
  data: z.array(z.lazy(() => QueryAnalyticsData1$inboundSchema)),
117
117
  metadata: z.lazy(() => Metadata$inboundSchema),
118
+ warnings: z.array(z.string()).optional(),
118
119
  });
119
120
  export function queryAnalyticsData2FromJSON(jsonString) {
120
121
  return safeParse(jsonString, (x) => QueryAnalyticsData2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QueryAnalyticsData2' from JSON`);
@@ -0,0 +1,66 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type UpsertWorkspaceBudgetGlobals = {
4
+ /**
5
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
6
+ *
7
+ * @remarks
8
+ * This is used to track API usage per application.
9
+ */
10
+ httpReferer?: string | undefined;
11
+ /**
12
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
13
+ *
14
+ * @remarks
15
+ */
16
+ appTitle?: string | undefined;
17
+ /**
18
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
19
+ *
20
+ * @remarks
21
+ */
22
+ appCategories?: string | undefined;
23
+ };
24
+ export type UpsertWorkspaceBudgetRequest = {
25
+ /**
26
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
27
+ *
28
+ * @remarks
29
+ * This is used to track API usage per application.
30
+ */
31
+ httpReferer?: string | undefined;
32
+ /**
33
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
34
+ *
35
+ * @remarks
36
+ */
37
+ appTitle?: string | undefined;
38
+ /**
39
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
40
+ *
41
+ * @remarks
42
+ */
43
+ appCategories?: string | undefined;
44
+ /**
45
+ * The workspace ID (UUID) or slug
46
+ */
47
+ id: string;
48
+ /**
49
+ * Budget reset interval. Use "lifetime" for a one-time budget that never resets.
50
+ */
51
+ interval: models.WorkspaceBudgetInterval;
52
+ upsertWorkspaceBudgetRequest: models.UpsertWorkspaceBudgetRequest;
53
+ };
54
+ /** @internal */
55
+ export type UpsertWorkspaceBudgetRequest$Outbound = {
56
+ "HTTP-Referer"?: string | undefined;
57
+ appTitle?: string | undefined;
58
+ appCategories?: string | undefined;
59
+ id: string;
60
+ interval: string;
61
+ UpsertWorkspaceBudgetRequest: models.UpsertWorkspaceBudgetRequest$Outbound;
62
+ };
63
+ /** @internal */
64
+ export declare const UpsertWorkspaceBudgetRequest$outboundSchema: z.ZodType<UpsertWorkspaceBudgetRequest$Outbound, UpsertWorkspaceBudgetRequest>;
65
+ export declare function upsertWorkspaceBudgetRequestToJSON(upsertWorkspaceBudgetRequest: UpsertWorkspaceBudgetRequest): string;
66
+ //# sourceMappingURL=upsertworkspacebudget.d.ts.map
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f2bb866e828c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as models from "../index.js";
8
+ /** @internal */
9
+ export const UpsertWorkspaceBudgetRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ id: z.string(),
14
+ interval: models.WorkspaceBudgetInterval$outboundSchema,
15
+ upsertWorkspaceBudgetRequest: models.UpsertWorkspaceBudgetRequest$outboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ httpReferer: "HTTP-Referer",
19
+ upsertWorkspaceBudgetRequest: "UpsertWorkspaceBudgetRequest",
20
+ });
21
+ });
22
+ export function upsertWorkspaceBudgetRequestToJSON(upsertWorkspaceBudgetRequest) {
23
+ return JSON.stringify(UpsertWorkspaceBudgetRequest$outboundSchema.parse(upsertWorkspaceBudgetRequest));
24
+ }
25
+ //# sourceMappingURL=upsertworkspacebudget.js.map
@@ -15,7 +15,7 @@ export type Preview20250311WebSearchServerTool = {
15
15
  engine?: WebSearchEngineEnum | undefined;
16
16
  filters?: WebSearchDomainFilter | null | undefined;
17
17
  /**
18
- * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
18
+ * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
19
19
  */
20
20
  maxResults?: number | undefined;
21
21
  /**
@@ -15,7 +15,7 @@ export type PreviewWebSearchServerTool = {
15
15
  engine?: WebSearchEngineEnum | undefined;
16
16
  filters?: WebSearchDomainFilter | null | undefined;
17
17
  /**
18
- * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
18
+ * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
19
19
  */
20
20
  maxResults?: number | undefined;
21
21
  /**
@@ -44,6 +44,7 @@ export declare const ProviderName: {
44
44
  readonly Ionstream: "Ionstream";
45
45
  readonly Infermatic: "Infermatic";
46
46
  readonly IoNet: "Io Net";
47
+ readonly InferactVLLM: "Inferact vLLM";
47
48
  readonly Inflection: "Inflection";
48
49
  readonly Liquid: "Liquid";
49
50
  readonly Mara: "Mara";
@@ -70,6 +71,7 @@ export declare const ProviderName: {
70
71
  readonly Recraft: "Recraft";
71
72
  readonly Reka: "Reka";
72
73
  readonly Relace: "Relace";
74
+ readonly SakanaAI: "Sakana AI";
73
75
  readonly SambaNova: "SambaNova";
74
76
  readonly Seed: "Seed";
75
77
  readonly SiliconFlow: "SiliconFlow";
@@ -78,6 +80,7 @@ export declare const ProviderName: {
78
80
  readonly Stealth: "Stealth";
79
81
  readonly StreamLake: "StreamLake";
80
82
  readonly Switchpoint: "Switchpoint";
83
+ readonly Tenstorrent: "Tenstorrent";
81
84
  readonly Together: "Together";
82
85
  readonly Upstage: "Upstage";
83
86
  readonly Venice: "Venice";
@@ -47,6 +47,7 @@ export const ProviderName = {
47
47
  Ionstream: "Ionstream",
48
48
  Infermatic: "Infermatic",
49
49
  IoNet: "Io Net",
50
+ InferactVLLM: "Inferact vLLM",
50
51
  Inflection: "Inflection",
51
52
  Liquid: "Liquid",
52
53
  Mara: "Mara",
@@ -73,6 +74,7 @@ export const ProviderName = {
73
74
  Recraft: "Recraft",
74
75
  Reka: "Reka",
75
76
  Relace: "Relace",
77
+ SakanaAI: "Sakana AI",
76
78
  SambaNova: "SambaNova",
77
79
  Seed: "Seed",
78
80
  SiliconFlow: "SiliconFlow",
@@ -81,6 +83,7 @@ export const ProviderName = {
81
83
  Stealth: "Stealth",
82
84
  StreamLake: "StreamLake",
83
85
  Switchpoint: "Switchpoint",
86
+ Tenstorrent: "Tenstorrent",
84
87
  Together: "Together",
85
88
  Upstage: "Upstage",
86
89
  Venice: "Venice",
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod/v4";
2
2
  /**
3
- * Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body.
3
+ * Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
4
4
  */
5
5
  export type ProviderOptions = {
6
6
  oneai?: {
@@ -153,6 +153,9 @@ export type ProviderOptions = {
153
153
  inceptron?: {
154
154
  [k: string]: any | null;
155
155
  } | undefined;
156
+ inferactVllm?: {
157
+ [k: string]: any | null;
158
+ } | undefined;
156
159
  inferenceNet?: {
157
160
  [k: string]: any | null;
158
161
  } | undefined;
@@ -285,6 +288,9 @@ export type ProviderOptions = {
285
288
  replicate?: {
286
289
  [k: string]: any | null;
287
290
  } | undefined;
291
+ sakanaAi?: {
292
+ [k: string]: any | null;
293
+ } | undefined;
288
294
  sambanova?: {
289
295
  [k: string]: any | null;
290
296
  } | undefined;
@@ -318,6 +324,9 @@ export type ProviderOptions = {
318
324
  targon?: {
319
325
  [k: string]: any | null;
320
326
  } | undefined;
327
+ tenstorrent?: {
328
+ [k: string]: any | null;
329
+ } | undefined;
321
330
  together?: {
322
331
  [k: string]: any | null;
323
332
  } | undefined;
@@ -501,6 +510,9 @@ export type ProviderOptions$Outbound = {
501
510
  inceptron?: {
502
511
  [k: string]: any | null;
503
512
  } | undefined;
513
+ "inferact-vllm"?: {
514
+ [k: string]: any | null;
515
+ } | undefined;
504
516
  "inference-net"?: {
505
517
  [k: string]: any | null;
506
518
  } | undefined;
@@ -633,6 +645,9 @@ export type ProviderOptions$Outbound = {
633
645
  replicate?: {
634
646
  [k: string]: any | null;
635
647
  } | undefined;
648
+ "sakana-ai"?: {
649
+ [k: string]: any | null;
650
+ } | undefined;
636
651
  sambanova?: {
637
652
  [k: string]: any | null;
638
653
  } | undefined;
@@ -666,6 +681,9 @@ export type ProviderOptions$Outbound = {
666
681
  targon?: {
667
682
  [k: string]: any | null;
668
683
  } | undefined;
684
+ tenstorrent?: {
685
+ [k: string]: any | null;
686
+ } | undefined;
669
687
  together?: {
670
688
  [k: string]: any | null;
671
689
  } | undefined;