hanzoai 8.5.743 → 8.5.749
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/pricing-api.d.ts +75 -4
- package/dist/api/pricing-api.js +85 -4
- package/dist/esm/api/pricing-api.d.ts +75 -4
- package/dist/esm/api/pricing-api.js +85 -4
- package/dist/esm/models/ai-model-pricing-info.d.ts +26 -0
- package/dist/esm/models/ai-per-million.d.ts +42 -0
- package/dist/esm/models/ai-per-million.js +14 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/pricing-enso-out.d.ts +49 -0
- package/dist/esm/models/pricing-enso-out.js +14 -0
- package/dist/esm/models/pricing-price.d.ts +42 -0
- package/dist/esm/models/pricing-price.js +14 -0
- package/dist/esm/models/pricing-quote.d.ts +75 -0
- package/dist/esm/models/pricing-quote.js +14 -0
- package/dist/esm/models/pricing-rate-arm.d.ts +61 -0
- package/dist/esm/models/pricing-rate-arm.js +14 -0
- package/dist/esm/models/pricing-rate-window.d.ts +42 -0
- package/dist/esm/models/pricing-rate-window.js +14 -0
- package/dist/models/ai-model-pricing-info.d.ts +26 -0
- package/dist/models/ai-per-million.d.ts +42 -0
- package/dist/models/ai-per-million.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/pricing-enso-out.d.ts +49 -0
- package/dist/models/pricing-enso-out.js +15 -0
- package/dist/models/pricing-price.d.ts +42 -0
- package/dist/models/pricing-price.js +15 -0
- package/dist/models/pricing-quote.d.ts +75 -0
- package/dist/models/pricing-quote.js +15 -0
- package/dist/models/pricing-rate-arm.d.ts +61 -0
- package/dist/models/pricing-rate-arm.js +15 -0
- package/dist/models/pricing-rate-window.d.ts +42 -0
- package/dist/models/pricing-rate-window.js +15 -0
- package/package.json +1 -1
- package/src/api/pricing-api.ts +133 -4
- package/src/models/ai-model-pricing-info.ts +30 -0
- package/src/models/ai-per-million.ts +48 -0
- package/src/models/index.ts +6 -0
- package/src/models/pricing-enso-out.ts +57 -0
- package/src/models/pricing-price.ts +48 -0
- package/src/models/pricing-quote.ts +87 -0
- package/src/models/pricing-rate-arm.ts +69 -0
- package/src/models/pricing-rate-window.ts +48 -0
|
@@ -15,6 +15,7 @@ import globalAxios from 'axios';
|
|
|
15
15
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
16
|
import type { PricingCard } from '../models';
|
|
17
17
|
import type { PricingEnablementBoard } from '../models';
|
|
18
|
+
import type { PricingEnsoOut } from '../models';
|
|
18
19
|
import type { PricingPricingHealth } from '../models';
|
|
19
20
|
import type { PricingPricingModelList } from '../models';
|
|
20
21
|
import type { PricingPricingPlanList } from '../models';
|
|
@@ -105,6 +106,17 @@ export declare const PricingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
105
106
|
* @throws {RequiredError}
|
|
106
107
|
*/
|
|
107
108
|
getPricingEnablement: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
109
|
+
/**
|
|
110
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
111
|
+
* @summary Quotes what Enso costs.
|
|
112
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
113
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
114
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
115
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
getPricingEnso: (preset?: string, reasoning?: string, arms?: string, byok?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
108
120
|
/**
|
|
109
121
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
110
122
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -191,7 +203,7 @@ export declare const PricingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
191
203
|
*/
|
|
192
204
|
getPricingSubscriptions: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
193
205
|
/**
|
|
194
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
206
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
195
207
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
196
208
|
* @param {*} [options] Override http request option.
|
|
197
209
|
* @throws {RequiredError}
|
|
@@ -304,6 +316,17 @@ export declare const PricingApiFp: (configuration?: Configuration) => {
|
|
|
304
316
|
* @throws {RequiredError}
|
|
305
317
|
*/
|
|
306
318
|
getPricingEnablement(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PricingEnablementBoard>>;
|
|
319
|
+
/**
|
|
320
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
321
|
+
* @summary Quotes what Enso costs.
|
|
322
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
323
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
324
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
325
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
getPricingEnso(preset?: string, reasoning?: string, arms?: string, byok?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PricingEnsoOut>>;
|
|
307
330
|
/**
|
|
308
331
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
309
332
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -396,7 +419,7 @@ export declare const PricingApiFp: (configuration?: Configuration) => {
|
|
|
396
419
|
*/
|
|
397
420
|
getPricingSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PricingPricingPlanList>>;
|
|
398
421
|
/**
|
|
399
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
422
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
400
423
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
401
424
|
* @param {*} [options] Override http request option.
|
|
402
425
|
* @throws {RequiredError}
|
|
@@ -511,6 +534,14 @@ export declare const PricingApiFactory: (configuration?: Configuration, basePath
|
|
|
511
534
|
* @throws {RequiredError}
|
|
512
535
|
*/
|
|
513
536
|
getPricingEnablement(options?: RawAxiosRequestConfig): AxiosPromise<PricingEnablementBoard>;
|
|
537
|
+
/**
|
|
538
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
539
|
+
* @summary Quotes what Enso costs.
|
|
540
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
getPricingEnso(requestParameters?: PricingApiGetPricingEnsoRequest, options?: RawAxiosRequestConfig): AxiosPromise<PricingEnsoOut>;
|
|
514
545
|
/**
|
|
515
546
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
516
547
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -603,7 +634,7 @@ export declare const PricingApiFactory: (configuration?: Configuration, basePath
|
|
|
603
634
|
*/
|
|
604
635
|
getPricingSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<PricingPricingPlanList>;
|
|
605
636
|
/**
|
|
606
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
637
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
607
638
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
608
639
|
* @param {*} [options] Override http request option.
|
|
609
640
|
* @throws {RequiredError}
|
|
@@ -626,6 +657,37 @@ export declare const PricingApiFactory: (configuration?: Configuration, basePath
|
|
|
626
657
|
*/
|
|
627
658
|
getPricingTools(options?: RawAxiosRequestConfig): AxiosPromise<PricingPricingToolList>;
|
|
628
659
|
};
|
|
660
|
+
/**
|
|
661
|
+
* Request parameters for getPricingEnso operation in PricingApi.
|
|
662
|
+
* @export
|
|
663
|
+
* @interface PricingApiGetPricingEnsoRequest
|
|
664
|
+
*/
|
|
665
|
+
export interface PricingApiGetPricingEnsoRequest {
|
|
666
|
+
/**
|
|
667
|
+
* Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof PricingApiGetPricingEnso
|
|
670
|
+
*/
|
|
671
|
+
readonly preset?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
674
|
+
* @type {string}
|
|
675
|
+
* @memberof PricingApiGetPricingEnso
|
|
676
|
+
*/
|
|
677
|
+
readonly reasoning?: string;
|
|
678
|
+
/**
|
|
679
|
+
* Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
680
|
+
* @type {string}
|
|
681
|
+
* @memberof PricingApiGetPricingEnso
|
|
682
|
+
*/
|
|
683
|
+
readonly arms?: string;
|
|
684
|
+
/**
|
|
685
|
+
* BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
686
|
+
* @type {boolean}
|
|
687
|
+
* @memberof PricingApiGetPricingEnso
|
|
688
|
+
*/
|
|
689
|
+
readonly byok?: boolean;
|
|
690
|
+
}
|
|
629
691
|
/**
|
|
630
692
|
* Request parameters for getPricingModelByName operation in PricingApi.
|
|
631
693
|
* @export
|
|
@@ -744,6 +806,15 @@ export declare class PricingApi extends BaseAPI {
|
|
|
744
806
|
* @memberof PricingApi
|
|
745
807
|
*/
|
|
746
808
|
getPricingEnablement(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PricingEnablementBoard, any, {}>>;
|
|
809
|
+
/**
|
|
810
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
811
|
+
* @summary Quotes what Enso costs.
|
|
812
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
* @memberof PricingApi
|
|
816
|
+
*/
|
|
817
|
+
getPricingEnso(requestParameters?: PricingApiGetPricingEnsoRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PricingEnsoOut, any, {}>>;
|
|
747
818
|
/**
|
|
748
819
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
749
820
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -848,7 +919,7 @@ export declare class PricingApi extends BaseAPI {
|
|
|
848
919
|
*/
|
|
849
920
|
getPricingSubscriptions(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PricingPricingPlanList, any, {}>>;
|
|
850
921
|
/**
|
|
851
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
922
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
852
923
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
853
924
|
* @param {*} [options] Override http request option.
|
|
854
925
|
* @throws {RequiredError}
|
package/dist/api/pricing-api.js
CHANGED
|
@@ -337,6 +337,50 @@ const PricingApiAxiosParamCreator = function (configuration) {
|
|
|
337
337
|
options: localVarRequestOptions,
|
|
338
338
|
};
|
|
339
339
|
},
|
|
340
|
+
/**
|
|
341
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
342
|
+
* @summary Quotes what Enso costs.
|
|
343
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
344
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
345
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
346
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
getPricingEnso: async (preset, reasoning, arms, byok, options = {}) => {
|
|
351
|
+
const localVarPath = `/v1/pricing/enso`;
|
|
352
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
353
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
354
|
+
let baseOptions;
|
|
355
|
+
if (configuration) {
|
|
356
|
+
baseOptions = configuration.baseOptions;
|
|
357
|
+
}
|
|
358
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
359
|
+
const localVarHeaderParameter = {};
|
|
360
|
+
const localVarQueryParameter = {};
|
|
361
|
+
// authentication bearer required
|
|
362
|
+
// http bearer authentication required
|
|
363
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
364
|
+
if (preset !== undefined) {
|
|
365
|
+
localVarQueryParameter['preset'] = preset;
|
|
366
|
+
}
|
|
367
|
+
if (reasoning !== undefined) {
|
|
368
|
+
localVarQueryParameter['reasoning'] = reasoning;
|
|
369
|
+
}
|
|
370
|
+
if (arms !== undefined) {
|
|
371
|
+
localVarQueryParameter['arms'] = arms;
|
|
372
|
+
}
|
|
373
|
+
if (byok !== undefined) {
|
|
374
|
+
localVarQueryParameter['byok'] = byok;
|
|
375
|
+
}
|
|
376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
379
|
+
return {
|
|
380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions,
|
|
382
|
+
};
|
|
383
|
+
},
|
|
340
384
|
/**
|
|
341
385
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
342
386
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -678,7 +722,7 @@ const PricingApiAxiosParamCreator = function (configuration) {
|
|
|
678
722
|
};
|
|
679
723
|
},
|
|
680
724
|
/**
|
|
681
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
725
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
682
726
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
683
727
|
* @param {*} [options] Override http request option.
|
|
684
728
|
* @throws {RequiredError}
|
|
@@ -903,6 +947,22 @@ const PricingApiFp = function (configuration) {
|
|
|
903
947
|
const localVarOperationServerBasePath = base_1.operationServerMap['PricingApi.getPricingEnablement']?.[localVarOperationServerIndex]?.url;
|
|
904
948
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
905
949
|
},
|
|
950
|
+
/**
|
|
951
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
952
|
+
* @summary Quotes what Enso costs.
|
|
953
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
954
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
955
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
956
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
async getPricingEnso(preset, reasoning, arms, byok, options) {
|
|
961
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPricingEnso(preset, reasoning, arms, byok, options);
|
|
962
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
963
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['PricingApi.getPricingEnso']?.[localVarOperationServerIndex]?.url;
|
|
964
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
965
|
+
},
|
|
906
966
|
/**
|
|
907
967
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
908
968
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -1049,7 +1109,7 @@ const PricingApiFp = function (configuration) {
|
|
|
1049
1109
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1050
1110
|
},
|
|
1051
1111
|
/**
|
|
1052
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
1112
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
1053
1113
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
1054
1114
|
* @param {*} [options] Override http request option.
|
|
1055
1115
|
* @throws {RequiredError}
|
|
@@ -1193,6 +1253,16 @@ const PricingApiFactory = function (configuration, basePath, axios) {
|
|
|
1193
1253
|
getPricingEnablement(options) {
|
|
1194
1254
|
return localVarFp.getPricingEnablement(options).then((request) => request(axios, basePath));
|
|
1195
1255
|
},
|
|
1256
|
+
/**
|
|
1257
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
1258
|
+
* @summary Quotes what Enso costs.
|
|
1259
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
getPricingEnso(requestParameters = {}, options) {
|
|
1264
|
+
return localVarFp.getPricingEnso(requestParameters.preset, requestParameters.reasoning, requestParameters.arms, requestParameters.byok, options).then((request) => request(axios, basePath));
|
|
1265
|
+
},
|
|
1196
1266
|
/**
|
|
1197
1267
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
1198
1268
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -1303,7 +1373,7 @@ const PricingApiFactory = function (configuration, basePath, axios) {
|
|
|
1303
1373
|
return localVarFp.getPricingSubscriptions(options).then((request) => request(axios, basePath));
|
|
1304
1374
|
},
|
|
1305
1375
|
/**
|
|
1306
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
1376
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
1307
1377
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
1308
1378
|
* @param {*} [options] Override http request option.
|
|
1309
1379
|
* @throws {RequiredError}
|
|
@@ -1449,6 +1519,17 @@ class PricingApi extends base_1.BaseAPI {
|
|
|
1449
1519
|
getPricingEnablement(options) {
|
|
1450
1520
|
return (0, exports.PricingApiFp)(this.configuration).getPricingEnablement(options).then((request) => request(this.axios, this.basePath));
|
|
1451
1521
|
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
1524
|
+
* @summary Quotes what Enso costs.
|
|
1525
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
1526
|
+
* @param {*} [options] Override http request option.
|
|
1527
|
+
* @throws {RequiredError}
|
|
1528
|
+
* @memberof PricingApi
|
|
1529
|
+
*/
|
|
1530
|
+
getPricingEnso(requestParameters = {}, options) {
|
|
1531
|
+
return (0, exports.PricingApiFp)(this.configuration).getPricingEnso(requestParameters.preset, requestParameters.reasoning, requestParameters.arms, requestParameters.byok, options).then((request) => request(this.axios, this.basePath));
|
|
1532
|
+
}
|
|
1452
1533
|
/**
|
|
1453
1534
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
1454
1535
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -1571,7 +1652,7 @@ class PricingApi extends base_1.BaseAPI {
|
|
|
1571
1652
|
return (0, exports.PricingApiFp)(this.configuration).getPricingSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
1572
1653
|
}
|
|
1573
1654
|
/**
|
|
1574
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
1655
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
1575
1656
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
1576
1657
|
* @param {*} [options] Override http request option.
|
|
1577
1658
|
* @throws {RequiredError}
|
|
@@ -14,6 +14,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { PricingCard } from '../models';
|
|
16
16
|
import type { PricingEnablementBoard } from '../models';
|
|
17
|
+
import type { PricingEnsoOut } from '../models';
|
|
17
18
|
import type { PricingPricingHealth } from '../models';
|
|
18
19
|
import type { PricingPricingModelList } from '../models';
|
|
19
20
|
import type { PricingPricingPlanList } from '../models';
|
|
@@ -104,6 +105,17 @@ export declare const PricingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
104
105
|
* @throws {RequiredError}
|
|
105
106
|
*/
|
|
106
107
|
getPricingEnablement: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
108
|
+
/**
|
|
109
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
110
|
+
* @summary Quotes what Enso costs.
|
|
111
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
112
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
113
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
114
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
getPricingEnso: (preset?: string, reasoning?: string, arms?: string, byok?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
107
119
|
/**
|
|
108
120
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
109
121
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -190,7 +202,7 @@ export declare const PricingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
190
202
|
*/
|
|
191
203
|
getPricingSubscriptions: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
192
204
|
/**
|
|
193
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
205
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
194
206
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
195
207
|
* @param {*} [options] Override http request option.
|
|
196
208
|
* @throws {RequiredError}
|
|
@@ -303,6 +315,17 @@ export declare const PricingApiFp: (configuration?: Configuration) => {
|
|
|
303
315
|
* @throws {RequiredError}
|
|
304
316
|
*/
|
|
305
317
|
getPricingEnablement(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PricingEnablementBoard>>;
|
|
318
|
+
/**
|
|
319
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
320
|
+
* @summary Quotes what Enso costs.
|
|
321
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
322
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
323
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
324
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
getPricingEnso(preset?: string, reasoning?: string, arms?: string, byok?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PricingEnsoOut>>;
|
|
306
329
|
/**
|
|
307
330
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
308
331
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -395,7 +418,7 @@ export declare const PricingApiFp: (configuration?: Configuration) => {
|
|
|
395
418
|
*/
|
|
396
419
|
getPricingSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PricingPricingPlanList>>;
|
|
397
420
|
/**
|
|
398
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
421
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
399
422
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
400
423
|
* @param {*} [options] Override http request option.
|
|
401
424
|
* @throws {RequiredError}
|
|
@@ -510,6 +533,14 @@ export declare const PricingApiFactory: (configuration?: Configuration, basePath
|
|
|
510
533
|
* @throws {RequiredError}
|
|
511
534
|
*/
|
|
512
535
|
getPricingEnablement(options?: RawAxiosRequestConfig): AxiosPromise<PricingEnablementBoard>;
|
|
536
|
+
/**
|
|
537
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
538
|
+
* @summary Quotes what Enso costs.
|
|
539
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
*/
|
|
543
|
+
getPricingEnso(requestParameters?: PricingApiGetPricingEnsoRequest, options?: RawAxiosRequestConfig): AxiosPromise<PricingEnsoOut>;
|
|
513
544
|
/**
|
|
514
545
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
515
546
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -602,7 +633,7 @@ export declare const PricingApiFactory: (configuration?: Configuration, basePath
|
|
|
602
633
|
*/
|
|
603
634
|
getPricingSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<PricingPricingPlanList>;
|
|
604
635
|
/**
|
|
605
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
636
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
606
637
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
607
638
|
* @param {*} [options] Override http request option.
|
|
608
639
|
* @throws {RequiredError}
|
|
@@ -625,6 +656,37 @@ export declare const PricingApiFactory: (configuration?: Configuration, basePath
|
|
|
625
656
|
*/
|
|
626
657
|
getPricingTools(options?: RawAxiosRequestConfig): AxiosPromise<PricingPricingToolList>;
|
|
627
658
|
};
|
|
659
|
+
/**
|
|
660
|
+
* Request parameters for getPricingEnso operation in PricingApi.
|
|
661
|
+
* @export
|
|
662
|
+
* @interface PricingApiGetPricingEnsoRequest
|
|
663
|
+
*/
|
|
664
|
+
export interface PricingApiGetPricingEnsoRequest {
|
|
665
|
+
/**
|
|
666
|
+
* Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof PricingApiGetPricingEnso
|
|
669
|
+
*/
|
|
670
|
+
readonly preset?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
673
|
+
* @type {string}
|
|
674
|
+
* @memberof PricingApiGetPricingEnso
|
|
675
|
+
*/
|
|
676
|
+
readonly reasoning?: string;
|
|
677
|
+
/**
|
|
678
|
+
* Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
679
|
+
* @type {string}
|
|
680
|
+
* @memberof PricingApiGetPricingEnso
|
|
681
|
+
*/
|
|
682
|
+
readonly arms?: string;
|
|
683
|
+
/**
|
|
684
|
+
* BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
685
|
+
* @type {boolean}
|
|
686
|
+
* @memberof PricingApiGetPricingEnso
|
|
687
|
+
*/
|
|
688
|
+
readonly byok?: boolean;
|
|
689
|
+
}
|
|
628
690
|
/**
|
|
629
691
|
* Request parameters for getPricingModelByName operation in PricingApi.
|
|
630
692
|
* @export
|
|
@@ -743,6 +805,15 @@ export declare class PricingApi extends BaseAPI {
|
|
|
743
805
|
* @memberof PricingApi
|
|
744
806
|
*/
|
|
745
807
|
getPricingEnablement(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PricingEnablementBoard, any, {}>>;
|
|
808
|
+
/**
|
|
809
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
810
|
+
* @summary Quotes what Enso costs.
|
|
811
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
* @memberof PricingApi
|
|
815
|
+
*/
|
|
816
|
+
getPricingEnso(requestParameters?: PricingApiGetPricingEnsoRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PricingEnsoOut, any, {}>>;
|
|
746
817
|
/**
|
|
747
818
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
748
819
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -847,7 +918,7 @@ export declare class PricingApi extends BaseAPI {
|
|
|
847
918
|
*/
|
|
848
919
|
getPricingSubscriptions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PricingPricingPlanList, any, {}>>;
|
|
849
920
|
/**
|
|
850
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
921
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
851
922
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
852
923
|
* @param {*} [options] Override http request option.
|
|
853
924
|
* @throws {RequiredError}
|
|
@@ -331,6 +331,50 @@ export const PricingApiAxiosParamCreator = function (configuration) {
|
|
|
331
331
|
options: localVarRequestOptions,
|
|
332
332
|
};
|
|
333
333
|
},
|
|
334
|
+
/**
|
|
335
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
336
|
+
* @summary Quotes what Enso costs.
|
|
337
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
338
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
339
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
340
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
getPricingEnso: async (preset, reasoning, arms, byok, options = {}) => {
|
|
345
|
+
const localVarPath = `/v1/pricing/enso`;
|
|
346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
347
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
348
|
+
let baseOptions;
|
|
349
|
+
if (configuration) {
|
|
350
|
+
baseOptions = configuration.baseOptions;
|
|
351
|
+
}
|
|
352
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
353
|
+
const localVarHeaderParameter = {};
|
|
354
|
+
const localVarQueryParameter = {};
|
|
355
|
+
// authentication bearer required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
358
|
+
if (preset !== undefined) {
|
|
359
|
+
localVarQueryParameter['preset'] = preset;
|
|
360
|
+
}
|
|
361
|
+
if (reasoning !== undefined) {
|
|
362
|
+
localVarQueryParameter['reasoning'] = reasoning;
|
|
363
|
+
}
|
|
364
|
+
if (arms !== undefined) {
|
|
365
|
+
localVarQueryParameter['arms'] = arms;
|
|
366
|
+
}
|
|
367
|
+
if (byok !== undefined) {
|
|
368
|
+
localVarQueryParameter['byok'] = byok;
|
|
369
|
+
}
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
373
|
+
return {
|
|
374
|
+
url: toPathString(localVarUrlObj),
|
|
375
|
+
options: localVarRequestOptions,
|
|
376
|
+
};
|
|
377
|
+
},
|
|
334
378
|
/**
|
|
335
379
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
336
380
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -672,7 +716,7 @@ export const PricingApiAxiosParamCreator = function (configuration) {
|
|
|
672
716
|
};
|
|
673
717
|
},
|
|
674
718
|
/**
|
|
675
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
719
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
676
720
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
677
721
|
* @param {*} [options] Override http request option.
|
|
678
722
|
* @throws {RequiredError}
|
|
@@ -896,6 +940,22 @@ export const PricingApiFp = function (configuration) {
|
|
|
896
940
|
const localVarOperationServerBasePath = operationServerMap['PricingApi.getPricingEnablement']?.[localVarOperationServerIndex]?.url;
|
|
897
941
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
898
942
|
},
|
|
943
|
+
/**
|
|
944
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
945
|
+
* @summary Quotes what Enso costs.
|
|
946
|
+
* @param {string} [preset] Preset is the Enso model to quote (\"enso-flash\"); empty quotes every one.
|
|
947
|
+
* @param {string} [reasoning] Reasoning is the depth to quote it at: none, low, medium, high, max, or default (what a request that names none gets). Empty quotes every depth together.
|
|
948
|
+
* @param {string} [arms] Arms quotes a set of models composed into a blend instead, comma-separated ids (the arms of a /v1/benchmark/presets blend): from its cheapest, up to its dearest, nothing typical.
|
|
949
|
+
* @param {boolean} [byok] BYOK quotes the platform\'s fee on a call the org\'s own provider key pays for.
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
async getPricingEnso(preset, reasoning, arms, byok, options) {
|
|
954
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPricingEnso(preset, reasoning, arms, byok, options);
|
|
955
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
956
|
+
const localVarOperationServerBasePath = operationServerMap['PricingApi.getPricingEnso']?.[localVarOperationServerIndex]?.url;
|
|
957
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
958
|
+
},
|
|
899
959
|
/**
|
|
900
960
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
901
961
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -1042,7 +1102,7 @@ export const PricingApiFp = function (configuration) {
|
|
|
1042
1102
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1043
1103
|
},
|
|
1044
1104
|
/**
|
|
1045
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
1105
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
1046
1106
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
1047
1107
|
* @param {*} [options] Override http request option.
|
|
1048
1108
|
* @throws {RequiredError}
|
|
@@ -1185,6 +1245,16 @@ export const PricingApiFactory = function (configuration, basePath, axios) {
|
|
|
1185
1245
|
getPricingEnablement(options) {
|
|
1186
1246
|
return localVarFp.getPricingEnablement(options).then((request) => request(axios, basePath));
|
|
1187
1247
|
},
|
|
1248
|
+
/**
|
|
1249
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
1250
|
+
* @summary Quotes what Enso costs.
|
|
1251
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
1252
|
+
* @param {*} [options] Override http request option.
|
|
1253
|
+
* @throws {RequiredError}
|
|
1254
|
+
*/
|
|
1255
|
+
getPricingEnso(requestParameters = {}, options) {
|
|
1256
|
+
return localVarFp.getPricingEnso(requestParameters.preset, requestParameters.reasoning, requestParameters.arms, requestParameters.byok, options).then((request) => request(axios, basePath));
|
|
1257
|
+
},
|
|
1188
1258
|
/**
|
|
1189
1259
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
1190
1260
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -1295,7 +1365,7 @@ export const PricingApiFactory = function (configuration, basePath, axios) {
|
|
|
1295
1365
|
return localVarFp.getPricingSubscriptions(options).then((request) => request(axios, basePath));
|
|
1296
1366
|
},
|
|
1297
1367
|
/**
|
|
1298
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
1368
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
1299
1369
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
1300
1370
|
* @param {*} [options] Override http request option.
|
|
1301
1371
|
* @throws {RequiredError}
|
|
@@ -1440,6 +1510,17 @@ export class PricingApi extends BaseAPI {
|
|
|
1440
1510
|
getPricingEnablement(options) {
|
|
1441
1511
|
return PricingApiFp(this.configuration).getPricingEnablement(options).then((request) => request(this.axios, this.basePath));
|
|
1442
1512
|
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Quotes what Enso costs. A call bills what its arms cost us — each provider\'s price, and OpenRouter\'s fee where OpenRouter\'s credit bought it — and the platform\'s fee on top, so a model has three prices: from (its cheapest arm), typical (what its calls cost over the last day, or its last calls when the day held few) and upTo (its dearest arm, a long prompt\'s price included), in dollars a million tokens. Preset and reasoning narrow the answer to one model at one depth; arms quotes a blend of models instead. A SuperAdmin\'s answer names each model\'s arms.
|
|
1515
|
+
* @summary Quotes what Enso costs.
|
|
1516
|
+
* @param {PricingApiGetPricingEnsoRequest} requestParameters Request parameters.
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
* @memberof PricingApi
|
|
1520
|
+
*/
|
|
1521
|
+
getPricingEnso(requestParameters = {}, options) {
|
|
1522
|
+
return PricingApiFp(this.configuration).getPricingEnso(requestParameters.preset, requestParameters.reasoning, requestParameters.arms, requestParameters.byok, options).then((request) => request(this.axios, this.basePath));
|
|
1523
|
+
}
|
|
1443
1524
|
/**
|
|
1444
1525
|
* Returns the models the catalog highlights, filtered to what the caller\'s org may see. It is the same catalog as ListModels narrowed to entries the pricing source marks featured.
|
|
1445
1526
|
* @summary Returns the models the catalog highlights, filtered to what the caller\'s org may see.
|
|
@@ -1562,7 +1643,7 @@ export class PricingApi extends BaseAPI {
|
|
|
1562
1643
|
return PricingApiFp(this.configuration).getPricingSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
1563
1644
|
}
|
|
1564
1645
|
/**
|
|
1565
|
-
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds.
|
|
1646
|
+
* Returns the catalog\'s headline statistics — model counts by family and the provider directory. The provider sub-object is filtered to what the caller\'s org may see, so a disabled provider\'s name never leaks; the aggregate counts are the catalog\'s own, over everything it holds. A SuperAdmin\'s summary adds `enso`: the day\'s Enso answers, the arms that failed first, the share OpenRouter\'s credit bought (fallbacks), the fee collected and every loss, by route.
|
|
1566
1647
|
* @summary Returns the catalog\'s headline statistics — model counts by family and the provider directory.
|
|
1567
1648
|
* @param {*} [options] Override http request option.
|
|
1568
1649
|
* @throws {RequiredError}
|