openai 6.47.0 → 6.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/azure.d.mts.map +1 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +5 -1
- package/azure.js.map +1 -1
- package/azure.mjs +5 -1
- package/azure.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +104 -0
- package/helpers/standard-schema.d.mts.map +1 -0
- package/helpers/standard-schema.d.ts +104 -0
- package/helpers/standard-schema.d.ts.map +1 -0
- package/helpers/standard-schema.js +320 -0
- package/helpers/standard-schema.js.map +1 -0
- package/helpers/standard-schema.mjs +314 -0
- package/helpers/standard-schema.mjs.map +1 -0
- package/helpers/zod.d.mts +26 -3
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +26 -3
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +97 -7
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +96 -7
- package/helpers/zod.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +7 -3
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +7 -3
- package/internal/headers.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +43 -1
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +43 -1
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +2 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +2 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +53 -14
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +53 -14
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +3 -5
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +3 -5
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/jsonschema.d.mts +3 -0
- package/lib/jsonschema.d.mts.map +1 -1
- package/lib/jsonschema.d.ts +3 -0
- package/lib/jsonschema.d.ts.map +1 -1
- package/lib/transform.d.mts +25 -1
- package/lib/transform.d.mts.map +1 -1
- package/lib/transform.d.ts +25 -1
- package/lib/transform.d.ts.map +1 -1
- package/lib/transform.js +1521 -82
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +1515 -82
- package/lib/transform.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/audit-logs.d.mts +2 -2
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +2 -2
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/index.d.mts +1 -0
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +1 -0
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +3 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -0
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -0
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -0
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +4 -0
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +4 -0
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/index.d.mts +2 -1
- package/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/resources/admin/organization/projects/index.d.ts +2 -1
- package/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/resources/admin/organization/projects/index.js +7 -5
- package/resources/admin/organization/projects/index.js.map +1 -1
- package/resources/admin/organization/projects/index.mjs +2 -1
- package/resources/admin/organization/projects/index.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +6 -2
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +6 -2
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +6 -2
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +6 -2
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts +58 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts +58 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
- package/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
- package/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.js +9 -0
- package/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
- package/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +177 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +177 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.mts +1 -167
- package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts.d.ts +1 -167
- package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts.js +2 -97
- package/resources/admin/organization/projects/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts.mjs +1 -95
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-limit.d.mts +115 -0
- package/resources/admin/organization/projects/spend-limit.d.mts.map +1 -0
- package/resources/admin/organization/projects/spend-limit.d.ts +115 -0
- package/resources/admin/organization/projects/spend-limit.d.ts.map +1 -0
- package/resources/admin/organization/projects/spend-limit.js +67 -0
- package/resources/admin/organization/projects/spend-limit.js.map +1 -0
- package/resources/admin/organization/projects/spend-limit.mjs +63 -0
- package/resources/admin/organization/projects/spend-limit.mjs.map +1 -0
- package/resources/admin/organization/spend-limit.d.mts +108 -0
- package/resources/admin/organization/spend-limit.d.mts.map +1 -0
- package/resources/admin/organization/spend-limit.d.ts +108 -0
- package/resources/admin/organization/spend-limit.d.ts.map +1 -0
- package/resources/admin/organization/spend-limit.js +59 -0
- package/resources/admin/organization/spend-limit.js.map +1 -0
- package/resources/admin/organization/spend-limit.mjs +55 -0
- package/resources/admin/organization/spend-limit.mjs.map +1 -0
- package/resources/admin/organization/usage.d.mts +517 -88
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +517 -88
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +6 -2
- package/resources/beta/responses/input-tokens.d.mts.map +1 -1
- package/resources/beta/responses/input-tokens.d.ts +6 -2
- package/resources/beta/responses/input-tokens.d.ts.map +1 -1
- package/resources/beta/responses/responses.d.mts +25 -15
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +25 -15
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +4 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +4 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts +2 -1
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts +2 -1
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/responses.d.mts +9 -8
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +9 -8
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +4 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -1
- package/resources/shared.d.ts.map +1 -1
- package/src/azure.ts +5 -1
- package/src/helpers/standard-schema.ts +570 -0
- package/src/helpers/zod.ts +158 -29
- package/src/internal/headers.ts +7 -3
- package/src/lib/AbstractChatCompletionRunner.ts +43 -1
- package/src/lib/ChatCompletionStream.ts +56 -8
- package/src/lib/ResponsesParser.ts +7 -5
- package/src/lib/jsonschema.ts +3 -0
- package/src/lib/transform.ts +1930 -103
- package/src/resources/admin/organization/audit-logs.ts +169 -1
- package/src/resources/admin/organization/index.ts +6 -0
- package/src/resources/admin/organization/organization.ts +16 -0
- package/src/resources/admin/organization/projects/index.ts +7 -1
- package/src/resources/admin/organization/projects/projects.ts +29 -13
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +80 -0
- package/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +284 -0
- package/src/resources/admin/organization/projects/service-accounts.ts +1 -264
- package/src/resources/admin/organization/projects/spend-limit.ts +156 -0
- package/src/resources/admin/organization/spend-limit.ts +144 -0
- package/src/resources/admin/organization/usage.ts +616 -88
- package/src/resources/beta/responses/input-tokens.ts +6 -2
- package/src/resources/beta/responses/responses.ts +25 -14
- package/src/resources/chat/completions/completions.ts +4 -3
- package/src/resources/responses/input-tokens.ts +2 -1
- package/src/resources/responses/responses.ts +9 -7
- package/src/resources/shared.ts +4 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -272,8 +272,9 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
272
272
|
*/
|
|
273
273
|
export interface OrganizationUsageCompletionsResult {
|
|
274
274
|
/**
|
|
275
|
-
* The aggregated number of
|
|
276
|
-
*
|
|
275
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
276
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
277
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
277
278
|
*/
|
|
278
279
|
input_tokens: number;
|
|
279
280
|
|
|
@@ -285,8 +286,9 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
285
286
|
object: 'organization.usage.completions.result';
|
|
286
287
|
|
|
287
288
|
/**
|
|
288
|
-
* The aggregated number of
|
|
289
|
-
*
|
|
289
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
290
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
291
|
+
* tokens.
|
|
290
292
|
*/
|
|
291
293
|
output_tokens: number;
|
|
292
294
|
|
|
@@ -303,17 +305,53 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
303
305
|
batch?: boolean | null;
|
|
304
306
|
|
|
305
307
|
/**
|
|
306
|
-
* The aggregated number of audio input tokens used
|
|
308
|
+
* The aggregated number of uncached audio input tokens used.
|
|
307
309
|
*/
|
|
308
310
|
input_audio_tokens?: number;
|
|
309
311
|
|
|
310
312
|
/**
|
|
311
|
-
* The aggregated number of
|
|
312
|
-
|
|
313
|
-
|
|
313
|
+
* The aggregated number of input tokens written to the cache.
|
|
314
|
+
*/
|
|
315
|
+
input_cache_write_tokens?: number;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The aggregated number of cached audio input tokens used.
|
|
319
|
+
*/
|
|
320
|
+
input_cached_audio_tokens?: number;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The aggregated number of cached image input tokens used.
|
|
324
|
+
*/
|
|
325
|
+
input_cached_image_tokens?: number;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The aggregated number of cached text input tokens used.
|
|
329
|
+
*/
|
|
330
|
+
input_cached_text_tokens?: number;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
334
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
314
335
|
*/
|
|
315
336
|
input_cached_tokens?: number;
|
|
316
337
|
|
|
338
|
+
/**
|
|
339
|
+
* The aggregated number of uncached image input tokens used.
|
|
340
|
+
*/
|
|
341
|
+
input_image_tokens?: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
345
|
+
* tokens.
|
|
346
|
+
*/
|
|
347
|
+
input_text_tokens?: number;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
351
|
+
* image inputs, excluding cache-write tokens.
|
|
352
|
+
*/
|
|
353
|
+
input_uncached_tokens?: number;
|
|
354
|
+
|
|
317
355
|
/**
|
|
318
356
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
319
357
|
* result.
|
|
@@ -325,6 +363,16 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
325
363
|
*/
|
|
326
364
|
output_audio_tokens?: number;
|
|
327
365
|
|
|
366
|
+
/**
|
|
367
|
+
* The aggregated number of image output tokens used.
|
|
368
|
+
*/
|
|
369
|
+
output_image_tokens?: number;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* The aggregated number of text output tokens used.
|
|
373
|
+
*/
|
|
374
|
+
output_text_tokens?: number;
|
|
375
|
+
|
|
328
376
|
/**
|
|
329
377
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
330
378
|
* usage result.
|
|
@@ -775,8 +823,9 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
775
823
|
*/
|
|
776
824
|
export interface OrganizationUsageCompletionsResult {
|
|
777
825
|
/**
|
|
778
|
-
* The aggregated number of
|
|
779
|
-
*
|
|
826
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
827
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
828
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
780
829
|
*/
|
|
781
830
|
input_tokens: number;
|
|
782
831
|
|
|
@@ -788,8 +837,9 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
788
837
|
object: 'organization.usage.completions.result';
|
|
789
838
|
|
|
790
839
|
/**
|
|
791
|
-
* The aggregated number of
|
|
792
|
-
*
|
|
840
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
841
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
842
|
+
* tokens.
|
|
793
843
|
*/
|
|
794
844
|
output_tokens: number;
|
|
795
845
|
|
|
@@ -806,17 +856,53 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
806
856
|
batch?: boolean | null;
|
|
807
857
|
|
|
808
858
|
/**
|
|
809
|
-
* The aggregated number of audio input tokens used
|
|
859
|
+
* The aggregated number of uncached audio input tokens used.
|
|
810
860
|
*/
|
|
811
861
|
input_audio_tokens?: number;
|
|
812
862
|
|
|
813
863
|
/**
|
|
814
|
-
* The aggregated number of
|
|
815
|
-
|
|
816
|
-
|
|
864
|
+
* The aggregated number of input tokens written to the cache.
|
|
865
|
+
*/
|
|
866
|
+
input_cache_write_tokens?: number;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* The aggregated number of cached audio input tokens used.
|
|
870
|
+
*/
|
|
871
|
+
input_cached_audio_tokens?: number;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* The aggregated number of cached image input tokens used.
|
|
875
|
+
*/
|
|
876
|
+
input_cached_image_tokens?: number;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* The aggregated number of cached text input tokens used.
|
|
880
|
+
*/
|
|
881
|
+
input_cached_text_tokens?: number;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
885
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
817
886
|
*/
|
|
818
887
|
input_cached_tokens?: number;
|
|
819
888
|
|
|
889
|
+
/**
|
|
890
|
+
* The aggregated number of uncached image input tokens used.
|
|
891
|
+
*/
|
|
892
|
+
input_image_tokens?: number;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
896
|
+
* tokens.
|
|
897
|
+
*/
|
|
898
|
+
input_text_tokens?: number;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
902
|
+
* image inputs, excluding cache-write tokens.
|
|
903
|
+
*/
|
|
904
|
+
input_uncached_tokens?: number;
|
|
905
|
+
|
|
820
906
|
/**
|
|
821
907
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
822
908
|
* result.
|
|
@@ -828,6 +914,16 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
828
914
|
*/
|
|
829
915
|
output_audio_tokens?: number;
|
|
830
916
|
|
|
917
|
+
/**
|
|
918
|
+
* The aggregated number of image output tokens used.
|
|
919
|
+
*/
|
|
920
|
+
output_image_tokens?: number;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* The aggregated number of text output tokens used.
|
|
924
|
+
*/
|
|
925
|
+
output_text_tokens?: number;
|
|
926
|
+
|
|
831
927
|
/**
|
|
832
928
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
833
929
|
* usage result.
|
|
@@ -1278,8 +1374,9 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1278
1374
|
*/
|
|
1279
1375
|
export interface OrganizationUsageCompletionsResult {
|
|
1280
1376
|
/**
|
|
1281
|
-
* The aggregated number of
|
|
1282
|
-
*
|
|
1377
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1378
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1379
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
1283
1380
|
*/
|
|
1284
1381
|
input_tokens: number;
|
|
1285
1382
|
|
|
@@ -1291,8 +1388,9 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1291
1388
|
object: 'organization.usage.completions.result';
|
|
1292
1389
|
|
|
1293
1390
|
/**
|
|
1294
|
-
* The aggregated number of
|
|
1295
|
-
*
|
|
1391
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1392
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1393
|
+
* tokens.
|
|
1296
1394
|
*/
|
|
1297
1395
|
output_tokens: number;
|
|
1298
1396
|
|
|
@@ -1309,17 +1407,53 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1309
1407
|
batch?: boolean | null;
|
|
1310
1408
|
|
|
1311
1409
|
/**
|
|
1312
|
-
* The aggregated number of audio input tokens used
|
|
1410
|
+
* The aggregated number of uncached audio input tokens used.
|
|
1313
1411
|
*/
|
|
1314
1412
|
input_audio_tokens?: number;
|
|
1315
1413
|
|
|
1316
1414
|
/**
|
|
1317
|
-
* The aggregated number of
|
|
1318
|
-
|
|
1319
|
-
|
|
1415
|
+
* The aggregated number of input tokens written to the cache.
|
|
1416
|
+
*/
|
|
1417
|
+
input_cache_write_tokens?: number;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* The aggregated number of cached audio input tokens used.
|
|
1421
|
+
*/
|
|
1422
|
+
input_cached_audio_tokens?: number;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* The aggregated number of cached image input tokens used.
|
|
1426
|
+
*/
|
|
1427
|
+
input_cached_image_tokens?: number;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* The aggregated number of cached text input tokens used.
|
|
1431
|
+
*/
|
|
1432
|
+
input_cached_text_tokens?: number;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
1436
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
1320
1437
|
*/
|
|
1321
1438
|
input_cached_tokens?: number;
|
|
1322
1439
|
|
|
1440
|
+
/**
|
|
1441
|
+
* The aggregated number of uncached image input tokens used.
|
|
1442
|
+
*/
|
|
1443
|
+
input_image_tokens?: number;
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
1447
|
+
* tokens.
|
|
1448
|
+
*/
|
|
1449
|
+
input_text_tokens?: number;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
1453
|
+
* image inputs, excluding cache-write tokens.
|
|
1454
|
+
*/
|
|
1455
|
+
input_uncached_tokens?: number;
|
|
1456
|
+
|
|
1323
1457
|
/**
|
|
1324
1458
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1325
1459
|
* result.
|
|
@@ -1331,6 +1465,16 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1331
1465
|
*/
|
|
1332
1466
|
output_audio_tokens?: number;
|
|
1333
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
* The aggregated number of image output tokens used.
|
|
1470
|
+
*/
|
|
1471
|
+
output_image_tokens?: number;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* The aggregated number of text output tokens used.
|
|
1475
|
+
*/
|
|
1476
|
+
output_text_tokens?: number;
|
|
1477
|
+
|
|
1334
1478
|
/**
|
|
1335
1479
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1336
1480
|
* usage result.
|
|
@@ -1781,8 +1925,9 @@ export namespace UsageCompletionsResponse {
|
|
|
1781
1925
|
*/
|
|
1782
1926
|
export interface OrganizationUsageCompletionsResult {
|
|
1783
1927
|
/**
|
|
1784
|
-
* The aggregated number of
|
|
1785
|
-
*
|
|
1928
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1929
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1930
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
1786
1931
|
*/
|
|
1787
1932
|
input_tokens: number;
|
|
1788
1933
|
|
|
@@ -1794,8 +1939,9 @@ export namespace UsageCompletionsResponse {
|
|
|
1794
1939
|
object: 'organization.usage.completions.result';
|
|
1795
1940
|
|
|
1796
1941
|
/**
|
|
1797
|
-
* The aggregated number of
|
|
1798
|
-
*
|
|
1942
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1943
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1944
|
+
* tokens.
|
|
1799
1945
|
*/
|
|
1800
1946
|
output_tokens: number;
|
|
1801
1947
|
|
|
@@ -1812,17 +1958,53 @@ export namespace UsageCompletionsResponse {
|
|
|
1812
1958
|
batch?: boolean | null;
|
|
1813
1959
|
|
|
1814
1960
|
/**
|
|
1815
|
-
* The aggregated number of audio input tokens used
|
|
1961
|
+
* The aggregated number of uncached audio input tokens used.
|
|
1816
1962
|
*/
|
|
1817
1963
|
input_audio_tokens?: number;
|
|
1818
1964
|
|
|
1819
1965
|
/**
|
|
1820
|
-
* The aggregated number of
|
|
1821
|
-
|
|
1822
|
-
|
|
1966
|
+
* The aggregated number of input tokens written to the cache.
|
|
1967
|
+
*/
|
|
1968
|
+
input_cache_write_tokens?: number;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* The aggregated number of cached audio input tokens used.
|
|
1972
|
+
*/
|
|
1973
|
+
input_cached_audio_tokens?: number;
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* The aggregated number of cached image input tokens used.
|
|
1977
|
+
*/
|
|
1978
|
+
input_cached_image_tokens?: number;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* The aggregated number of cached text input tokens used.
|
|
1982
|
+
*/
|
|
1983
|
+
input_cached_text_tokens?: number;
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
1987
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
1823
1988
|
*/
|
|
1824
1989
|
input_cached_tokens?: number;
|
|
1825
1990
|
|
|
1991
|
+
/**
|
|
1992
|
+
* The aggregated number of uncached image input tokens used.
|
|
1993
|
+
*/
|
|
1994
|
+
input_image_tokens?: number;
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
1998
|
+
* tokens.
|
|
1999
|
+
*/
|
|
2000
|
+
input_text_tokens?: number;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
2004
|
+
* image inputs, excluding cache-write tokens.
|
|
2005
|
+
*/
|
|
2006
|
+
input_uncached_tokens?: number;
|
|
2007
|
+
|
|
1826
2008
|
/**
|
|
1827
2009
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1828
2010
|
* result.
|
|
@@ -1834,6 +2016,16 @@ export namespace UsageCompletionsResponse {
|
|
|
1834
2016
|
*/
|
|
1835
2017
|
output_audio_tokens?: number;
|
|
1836
2018
|
|
|
2019
|
+
/**
|
|
2020
|
+
* The aggregated number of image output tokens used.
|
|
2021
|
+
*/
|
|
2022
|
+
output_image_tokens?: number;
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* The aggregated number of text output tokens used.
|
|
2026
|
+
*/
|
|
2027
|
+
output_text_tokens?: number;
|
|
2028
|
+
|
|
1837
2029
|
/**
|
|
1838
2030
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1839
2031
|
* usage result.
|
|
@@ -2284,8 +2476,9 @@ export namespace UsageCostsResponse {
|
|
|
2284
2476
|
*/
|
|
2285
2477
|
export interface OrganizationUsageCompletionsResult {
|
|
2286
2478
|
/**
|
|
2287
|
-
* The aggregated number of
|
|
2288
|
-
*
|
|
2479
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
2480
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
2481
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2289
2482
|
*/
|
|
2290
2483
|
input_tokens: number;
|
|
2291
2484
|
|
|
@@ -2297,8 +2490,9 @@ export namespace UsageCostsResponse {
|
|
|
2297
2490
|
object: 'organization.usage.completions.result';
|
|
2298
2491
|
|
|
2299
2492
|
/**
|
|
2300
|
-
* The aggregated number of
|
|
2301
|
-
*
|
|
2493
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
2494
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
2495
|
+
* tokens.
|
|
2302
2496
|
*/
|
|
2303
2497
|
output_tokens: number;
|
|
2304
2498
|
|
|
@@ -2315,17 +2509,53 @@ export namespace UsageCostsResponse {
|
|
|
2315
2509
|
batch?: boolean | null;
|
|
2316
2510
|
|
|
2317
2511
|
/**
|
|
2318
|
-
* The aggregated number of audio input tokens used
|
|
2512
|
+
* The aggregated number of uncached audio input tokens used.
|
|
2319
2513
|
*/
|
|
2320
2514
|
input_audio_tokens?: number;
|
|
2321
2515
|
|
|
2322
2516
|
/**
|
|
2323
|
-
* The aggregated number of
|
|
2324
|
-
|
|
2325
|
-
|
|
2517
|
+
* The aggregated number of input tokens written to the cache.
|
|
2518
|
+
*/
|
|
2519
|
+
input_cache_write_tokens?: number;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* The aggregated number of cached audio input tokens used.
|
|
2523
|
+
*/
|
|
2524
|
+
input_cached_audio_tokens?: number;
|
|
2525
|
+
|
|
2526
|
+
/**
|
|
2527
|
+
* The aggregated number of cached image input tokens used.
|
|
2528
|
+
*/
|
|
2529
|
+
input_cached_image_tokens?: number;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* The aggregated number of cached text input tokens used.
|
|
2533
|
+
*/
|
|
2534
|
+
input_cached_text_tokens?: number;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
2538
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
2326
2539
|
*/
|
|
2327
2540
|
input_cached_tokens?: number;
|
|
2328
2541
|
|
|
2542
|
+
/**
|
|
2543
|
+
* The aggregated number of uncached image input tokens used.
|
|
2544
|
+
*/
|
|
2545
|
+
input_image_tokens?: number;
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
2549
|
+
* tokens.
|
|
2550
|
+
*/
|
|
2551
|
+
input_text_tokens?: number;
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
2555
|
+
* image inputs, excluding cache-write tokens.
|
|
2556
|
+
*/
|
|
2557
|
+
input_uncached_tokens?: number;
|
|
2558
|
+
|
|
2329
2559
|
/**
|
|
2330
2560
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2331
2561
|
* result.
|
|
@@ -2337,6 +2567,16 @@ export namespace UsageCostsResponse {
|
|
|
2337
2567
|
*/
|
|
2338
2568
|
output_audio_tokens?: number;
|
|
2339
2569
|
|
|
2570
|
+
/**
|
|
2571
|
+
* The aggregated number of image output tokens used.
|
|
2572
|
+
*/
|
|
2573
|
+
output_image_tokens?: number;
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* The aggregated number of text output tokens used.
|
|
2577
|
+
*/
|
|
2578
|
+
output_text_tokens?: number;
|
|
2579
|
+
|
|
2340
2580
|
/**
|
|
2341
2581
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2342
2582
|
* usage result.
|
|
@@ -2787,8 +3027,9 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2787
3027
|
*/
|
|
2788
3028
|
export interface OrganizationUsageCompletionsResult {
|
|
2789
3029
|
/**
|
|
2790
|
-
* The aggregated number of
|
|
2791
|
-
*
|
|
3030
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
3031
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
3032
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2792
3033
|
*/
|
|
2793
3034
|
input_tokens: number;
|
|
2794
3035
|
|
|
@@ -2800,8 +3041,9 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2800
3041
|
object: 'organization.usage.completions.result';
|
|
2801
3042
|
|
|
2802
3043
|
/**
|
|
2803
|
-
* The aggregated number of
|
|
2804
|
-
*
|
|
3044
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
3045
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
3046
|
+
* tokens.
|
|
2805
3047
|
*/
|
|
2806
3048
|
output_tokens: number;
|
|
2807
3049
|
|
|
@@ -2818,17 +3060,53 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2818
3060
|
batch?: boolean | null;
|
|
2819
3061
|
|
|
2820
3062
|
/**
|
|
2821
|
-
* The aggregated number of audio input tokens used
|
|
3063
|
+
* The aggregated number of uncached audio input tokens used.
|
|
2822
3064
|
*/
|
|
2823
3065
|
input_audio_tokens?: number;
|
|
2824
3066
|
|
|
2825
3067
|
/**
|
|
2826
|
-
* The aggregated number of
|
|
2827
|
-
|
|
2828
|
-
|
|
3068
|
+
* The aggregated number of input tokens written to the cache.
|
|
3069
|
+
*/
|
|
3070
|
+
input_cache_write_tokens?: number;
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* The aggregated number of cached audio input tokens used.
|
|
3074
|
+
*/
|
|
3075
|
+
input_cached_audio_tokens?: number;
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* The aggregated number of cached image input tokens used.
|
|
3079
|
+
*/
|
|
3080
|
+
input_cached_image_tokens?: number;
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* The aggregated number of cached text input tokens used.
|
|
3084
|
+
*/
|
|
3085
|
+
input_cached_text_tokens?: number;
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
3089
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
2829
3090
|
*/
|
|
2830
3091
|
input_cached_tokens?: number;
|
|
2831
3092
|
|
|
3093
|
+
/**
|
|
3094
|
+
* The aggregated number of uncached image input tokens used.
|
|
3095
|
+
*/
|
|
3096
|
+
input_image_tokens?: number;
|
|
3097
|
+
|
|
3098
|
+
/**
|
|
3099
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
3100
|
+
* tokens.
|
|
3101
|
+
*/
|
|
3102
|
+
input_text_tokens?: number;
|
|
3103
|
+
|
|
3104
|
+
/**
|
|
3105
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
3106
|
+
* image inputs, excluding cache-write tokens.
|
|
3107
|
+
*/
|
|
3108
|
+
input_uncached_tokens?: number;
|
|
3109
|
+
|
|
2832
3110
|
/**
|
|
2833
3111
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2834
3112
|
* result.
|
|
@@ -2840,6 +3118,16 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2840
3118
|
*/
|
|
2841
3119
|
output_audio_tokens?: number;
|
|
2842
3120
|
|
|
3121
|
+
/**
|
|
3122
|
+
* The aggregated number of image output tokens used.
|
|
3123
|
+
*/
|
|
3124
|
+
output_image_tokens?: number;
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* The aggregated number of text output tokens used.
|
|
3128
|
+
*/
|
|
3129
|
+
output_text_tokens?: number;
|
|
3130
|
+
|
|
2843
3131
|
/**
|
|
2844
3132
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2845
3133
|
* usage result.
|
|
@@ -3290,8 +3578,9 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3290
3578
|
*/
|
|
3291
3579
|
export interface OrganizationUsageCompletionsResult {
|
|
3292
3580
|
/**
|
|
3293
|
-
* The aggregated number of
|
|
3294
|
-
*
|
|
3581
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
3582
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
3583
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
3295
3584
|
*/
|
|
3296
3585
|
input_tokens: number;
|
|
3297
3586
|
|
|
@@ -3303,8 +3592,9 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3303
3592
|
object: 'organization.usage.completions.result';
|
|
3304
3593
|
|
|
3305
3594
|
/**
|
|
3306
|
-
* The aggregated number of
|
|
3307
|
-
*
|
|
3595
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
3596
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
3597
|
+
* tokens.
|
|
3308
3598
|
*/
|
|
3309
3599
|
output_tokens: number;
|
|
3310
3600
|
|
|
@@ -3321,17 +3611,53 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3321
3611
|
batch?: boolean | null;
|
|
3322
3612
|
|
|
3323
3613
|
/**
|
|
3324
|
-
* The aggregated number of audio input tokens used
|
|
3614
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3325
3615
|
*/
|
|
3326
3616
|
input_audio_tokens?: number;
|
|
3327
3617
|
|
|
3328
3618
|
/**
|
|
3329
|
-
* The aggregated number of
|
|
3330
|
-
|
|
3331
|
-
|
|
3619
|
+
* The aggregated number of input tokens written to the cache.
|
|
3620
|
+
*/
|
|
3621
|
+
input_cache_write_tokens?: number;
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* The aggregated number of cached audio input tokens used.
|
|
3625
|
+
*/
|
|
3626
|
+
input_cached_audio_tokens?: number;
|
|
3627
|
+
|
|
3628
|
+
/**
|
|
3629
|
+
* The aggregated number of cached image input tokens used.
|
|
3630
|
+
*/
|
|
3631
|
+
input_cached_image_tokens?: number;
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* The aggregated number of cached text input tokens used.
|
|
3635
|
+
*/
|
|
3636
|
+
input_cached_text_tokens?: number;
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
3640
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3332
3641
|
*/
|
|
3333
3642
|
input_cached_tokens?: number;
|
|
3334
3643
|
|
|
3644
|
+
/**
|
|
3645
|
+
* The aggregated number of uncached image input tokens used.
|
|
3646
|
+
*/
|
|
3647
|
+
input_image_tokens?: number;
|
|
3648
|
+
|
|
3649
|
+
/**
|
|
3650
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
3651
|
+
* tokens.
|
|
3652
|
+
*/
|
|
3653
|
+
input_text_tokens?: number;
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
3657
|
+
* image inputs, excluding cache-write tokens.
|
|
3658
|
+
*/
|
|
3659
|
+
input_uncached_tokens?: number;
|
|
3660
|
+
|
|
3335
3661
|
/**
|
|
3336
3662
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3337
3663
|
* result.
|
|
@@ -3343,6 +3669,16 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3343
3669
|
*/
|
|
3344
3670
|
output_audio_tokens?: number;
|
|
3345
3671
|
|
|
3672
|
+
/**
|
|
3673
|
+
* The aggregated number of image output tokens used.
|
|
3674
|
+
*/
|
|
3675
|
+
output_image_tokens?: number;
|
|
3676
|
+
|
|
3677
|
+
/**
|
|
3678
|
+
* The aggregated number of text output tokens used.
|
|
3679
|
+
*/
|
|
3680
|
+
output_text_tokens?: number;
|
|
3681
|
+
|
|
3346
3682
|
/**
|
|
3347
3683
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3348
3684
|
* usage result.
|
|
@@ -3793,8 +4129,9 @@ export namespace UsageImagesResponse {
|
|
|
3793
4129
|
*/
|
|
3794
4130
|
export interface OrganizationUsageCompletionsResult {
|
|
3795
4131
|
/**
|
|
3796
|
-
* The aggregated number of
|
|
3797
|
-
*
|
|
4132
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
4133
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
4134
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
3798
4135
|
*/
|
|
3799
4136
|
input_tokens: number;
|
|
3800
4137
|
|
|
@@ -3806,8 +4143,9 @@ export namespace UsageImagesResponse {
|
|
|
3806
4143
|
object: 'organization.usage.completions.result';
|
|
3807
4144
|
|
|
3808
4145
|
/**
|
|
3809
|
-
* The aggregated number of
|
|
3810
|
-
*
|
|
4146
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
4147
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
4148
|
+
* tokens.
|
|
3811
4149
|
*/
|
|
3812
4150
|
output_tokens: number;
|
|
3813
4151
|
|
|
@@ -3824,17 +4162,53 @@ export namespace UsageImagesResponse {
|
|
|
3824
4162
|
batch?: boolean | null;
|
|
3825
4163
|
|
|
3826
4164
|
/**
|
|
3827
|
-
* The aggregated number of audio input tokens used
|
|
4165
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3828
4166
|
*/
|
|
3829
4167
|
input_audio_tokens?: number;
|
|
3830
4168
|
|
|
3831
4169
|
/**
|
|
3832
|
-
* The aggregated number of
|
|
3833
|
-
|
|
3834
|
-
|
|
4170
|
+
* The aggregated number of input tokens written to the cache.
|
|
4171
|
+
*/
|
|
4172
|
+
input_cache_write_tokens?: number;
|
|
4173
|
+
|
|
4174
|
+
/**
|
|
4175
|
+
* The aggregated number of cached audio input tokens used.
|
|
4176
|
+
*/
|
|
4177
|
+
input_cached_audio_tokens?: number;
|
|
4178
|
+
|
|
4179
|
+
/**
|
|
4180
|
+
* The aggregated number of cached image input tokens used.
|
|
4181
|
+
*/
|
|
4182
|
+
input_cached_image_tokens?: number;
|
|
4183
|
+
|
|
4184
|
+
/**
|
|
4185
|
+
* The aggregated number of cached text input tokens used.
|
|
4186
|
+
*/
|
|
4187
|
+
input_cached_text_tokens?: number;
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
4191
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3835
4192
|
*/
|
|
3836
4193
|
input_cached_tokens?: number;
|
|
3837
4194
|
|
|
4195
|
+
/**
|
|
4196
|
+
* The aggregated number of uncached image input tokens used.
|
|
4197
|
+
*/
|
|
4198
|
+
input_image_tokens?: number;
|
|
4199
|
+
|
|
4200
|
+
/**
|
|
4201
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
4202
|
+
* tokens.
|
|
4203
|
+
*/
|
|
4204
|
+
input_text_tokens?: number;
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
4208
|
+
* image inputs, excluding cache-write tokens.
|
|
4209
|
+
*/
|
|
4210
|
+
input_uncached_tokens?: number;
|
|
4211
|
+
|
|
3838
4212
|
/**
|
|
3839
4213
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3840
4214
|
* result.
|
|
@@ -3846,6 +4220,16 @@ export namespace UsageImagesResponse {
|
|
|
3846
4220
|
*/
|
|
3847
4221
|
output_audio_tokens?: number;
|
|
3848
4222
|
|
|
4223
|
+
/**
|
|
4224
|
+
* The aggregated number of image output tokens used.
|
|
4225
|
+
*/
|
|
4226
|
+
output_image_tokens?: number;
|
|
4227
|
+
|
|
4228
|
+
/**
|
|
4229
|
+
* The aggregated number of text output tokens used.
|
|
4230
|
+
*/
|
|
4231
|
+
output_text_tokens?: number;
|
|
4232
|
+
|
|
3849
4233
|
/**
|
|
3850
4234
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3851
4235
|
* usage result.
|
|
@@ -4296,8 +4680,9 @@ export namespace UsageModerationsResponse {
|
|
|
4296
4680
|
*/
|
|
4297
4681
|
export interface OrganizationUsageCompletionsResult {
|
|
4298
4682
|
/**
|
|
4299
|
-
* The aggregated number of
|
|
4300
|
-
*
|
|
4683
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
4684
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
4685
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
4301
4686
|
*/
|
|
4302
4687
|
input_tokens: number;
|
|
4303
4688
|
|
|
@@ -4309,8 +4694,9 @@ export namespace UsageModerationsResponse {
|
|
|
4309
4694
|
object: 'organization.usage.completions.result';
|
|
4310
4695
|
|
|
4311
4696
|
/**
|
|
4312
|
-
* The aggregated number of
|
|
4313
|
-
*
|
|
4697
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
4698
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
4699
|
+
* tokens.
|
|
4314
4700
|
*/
|
|
4315
4701
|
output_tokens: number;
|
|
4316
4702
|
|
|
@@ -4327,17 +4713,53 @@ export namespace UsageModerationsResponse {
|
|
|
4327
4713
|
batch?: boolean | null;
|
|
4328
4714
|
|
|
4329
4715
|
/**
|
|
4330
|
-
* The aggregated number of audio input tokens used
|
|
4716
|
+
* The aggregated number of uncached audio input tokens used.
|
|
4331
4717
|
*/
|
|
4332
4718
|
input_audio_tokens?: number;
|
|
4333
4719
|
|
|
4334
4720
|
/**
|
|
4335
|
-
* The aggregated number of
|
|
4336
|
-
|
|
4337
|
-
|
|
4721
|
+
* The aggregated number of input tokens written to the cache.
|
|
4722
|
+
*/
|
|
4723
|
+
input_cache_write_tokens?: number;
|
|
4724
|
+
|
|
4725
|
+
/**
|
|
4726
|
+
* The aggregated number of cached audio input tokens used.
|
|
4727
|
+
*/
|
|
4728
|
+
input_cached_audio_tokens?: number;
|
|
4729
|
+
|
|
4730
|
+
/**
|
|
4731
|
+
* The aggregated number of cached image input tokens used.
|
|
4732
|
+
*/
|
|
4733
|
+
input_cached_image_tokens?: number;
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* The aggregated number of cached text input tokens used.
|
|
4737
|
+
*/
|
|
4738
|
+
input_cached_text_tokens?: number;
|
|
4739
|
+
|
|
4740
|
+
/**
|
|
4741
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
4742
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
4338
4743
|
*/
|
|
4339
4744
|
input_cached_tokens?: number;
|
|
4340
4745
|
|
|
4746
|
+
/**
|
|
4747
|
+
* The aggregated number of uncached image input tokens used.
|
|
4748
|
+
*/
|
|
4749
|
+
input_image_tokens?: number;
|
|
4750
|
+
|
|
4751
|
+
/**
|
|
4752
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
4753
|
+
* tokens.
|
|
4754
|
+
*/
|
|
4755
|
+
input_text_tokens?: number;
|
|
4756
|
+
|
|
4757
|
+
/**
|
|
4758
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
4759
|
+
* image inputs, excluding cache-write tokens.
|
|
4760
|
+
*/
|
|
4761
|
+
input_uncached_tokens?: number;
|
|
4762
|
+
|
|
4341
4763
|
/**
|
|
4342
4764
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
4343
4765
|
* result.
|
|
@@ -4349,6 +4771,16 @@ export namespace UsageModerationsResponse {
|
|
|
4349
4771
|
*/
|
|
4350
4772
|
output_audio_tokens?: number;
|
|
4351
4773
|
|
|
4774
|
+
/**
|
|
4775
|
+
* The aggregated number of image output tokens used.
|
|
4776
|
+
*/
|
|
4777
|
+
output_image_tokens?: number;
|
|
4778
|
+
|
|
4779
|
+
/**
|
|
4780
|
+
* The aggregated number of text output tokens used.
|
|
4781
|
+
*/
|
|
4782
|
+
output_text_tokens?: number;
|
|
4783
|
+
|
|
4352
4784
|
/**
|
|
4353
4785
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
4354
4786
|
* usage result.
|
|
@@ -4799,8 +5231,9 @@ export namespace UsageVectorStoresResponse {
|
|
|
4799
5231
|
*/
|
|
4800
5232
|
export interface OrganizationUsageCompletionsResult {
|
|
4801
5233
|
/**
|
|
4802
|
-
* The aggregated number of
|
|
4803
|
-
*
|
|
5234
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
5235
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
5236
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
4804
5237
|
*/
|
|
4805
5238
|
input_tokens: number;
|
|
4806
5239
|
|
|
@@ -4812,8 +5245,9 @@ export namespace UsageVectorStoresResponse {
|
|
|
4812
5245
|
object: 'organization.usage.completions.result';
|
|
4813
5246
|
|
|
4814
5247
|
/**
|
|
4815
|
-
* The aggregated number of
|
|
4816
|
-
*
|
|
5248
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
5249
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
5250
|
+
* tokens.
|
|
4817
5251
|
*/
|
|
4818
5252
|
output_tokens: number;
|
|
4819
5253
|
|
|
@@ -4830,17 +5264,53 @@ export namespace UsageVectorStoresResponse {
|
|
|
4830
5264
|
batch?: boolean | null;
|
|
4831
5265
|
|
|
4832
5266
|
/**
|
|
4833
|
-
* The aggregated number of audio input tokens used
|
|
5267
|
+
* The aggregated number of uncached audio input tokens used.
|
|
4834
5268
|
*/
|
|
4835
5269
|
input_audio_tokens?: number;
|
|
4836
5270
|
|
|
4837
5271
|
/**
|
|
4838
|
-
* The aggregated number of
|
|
4839
|
-
|
|
4840
|
-
|
|
5272
|
+
* The aggregated number of input tokens written to the cache.
|
|
5273
|
+
*/
|
|
5274
|
+
input_cache_write_tokens?: number;
|
|
5275
|
+
|
|
5276
|
+
/**
|
|
5277
|
+
* The aggregated number of cached audio input tokens used.
|
|
5278
|
+
*/
|
|
5279
|
+
input_cached_audio_tokens?: number;
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* The aggregated number of cached image input tokens used.
|
|
5283
|
+
*/
|
|
5284
|
+
input_cached_image_tokens?: number;
|
|
5285
|
+
|
|
5286
|
+
/**
|
|
5287
|
+
* The aggregated number of cached text input tokens used.
|
|
5288
|
+
*/
|
|
5289
|
+
input_cached_text_tokens?: number;
|
|
5290
|
+
|
|
5291
|
+
/**
|
|
5292
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
5293
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
4841
5294
|
*/
|
|
4842
5295
|
input_cached_tokens?: number;
|
|
4843
5296
|
|
|
5297
|
+
/**
|
|
5298
|
+
* The aggregated number of uncached image input tokens used.
|
|
5299
|
+
*/
|
|
5300
|
+
input_image_tokens?: number;
|
|
5301
|
+
|
|
5302
|
+
/**
|
|
5303
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
5304
|
+
* tokens.
|
|
5305
|
+
*/
|
|
5306
|
+
input_text_tokens?: number;
|
|
5307
|
+
|
|
5308
|
+
/**
|
|
5309
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
5310
|
+
* image inputs, excluding cache-write tokens.
|
|
5311
|
+
*/
|
|
5312
|
+
input_uncached_tokens?: number;
|
|
5313
|
+
|
|
4844
5314
|
/**
|
|
4845
5315
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
4846
5316
|
* result.
|
|
@@ -4852,6 +5322,16 @@ export namespace UsageVectorStoresResponse {
|
|
|
4852
5322
|
*/
|
|
4853
5323
|
output_audio_tokens?: number;
|
|
4854
5324
|
|
|
5325
|
+
/**
|
|
5326
|
+
* The aggregated number of image output tokens used.
|
|
5327
|
+
*/
|
|
5328
|
+
output_image_tokens?: number;
|
|
5329
|
+
|
|
5330
|
+
/**
|
|
5331
|
+
* The aggregated number of text output tokens used.
|
|
5332
|
+
*/
|
|
5333
|
+
output_text_tokens?: number;
|
|
5334
|
+
|
|
4855
5335
|
/**
|
|
4856
5336
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
4857
5337
|
* usage result.
|
|
@@ -5302,8 +5782,9 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5302
5782
|
*/
|
|
5303
5783
|
export interface OrganizationUsageCompletionsResult {
|
|
5304
5784
|
/**
|
|
5305
|
-
* The aggregated number of
|
|
5306
|
-
*
|
|
5785
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
5786
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
5787
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
5307
5788
|
*/
|
|
5308
5789
|
input_tokens: number;
|
|
5309
5790
|
|
|
@@ -5315,8 +5796,9 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5315
5796
|
object: 'organization.usage.completions.result';
|
|
5316
5797
|
|
|
5317
5798
|
/**
|
|
5318
|
-
* The aggregated number of
|
|
5319
|
-
*
|
|
5799
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
5800
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
5801
|
+
* tokens.
|
|
5320
5802
|
*/
|
|
5321
5803
|
output_tokens: number;
|
|
5322
5804
|
|
|
@@ -5333,17 +5815,53 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5333
5815
|
batch?: boolean | null;
|
|
5334
5816
|
|
|
5335
5817
|
/**
|
|
5336
|
-
* The aggregated number of audio input tokens used
|
|
5818
|
+
* The aggregated number of uncached audio input tokens used.
|
|
5337
5819
|
*/
|
|
5338
5820
|
input_audio_tokens?: number;
|
|
5339
5821
|
|
|
5340
5822
|
/**
|
|
5341
|
-
* The aggregated number of
|
|
5342
|
-
|
|
5343
|
-
|
|
5823
|
+
* The aggregated number of input tokens written to the cache.
|
|
5824
|
+
*/
|
|
5825
|
+
input_cache_write_tokens?: number;
|
|
5826
|
+
|
|
5827
|
+
/**
|
|
5828
|
+
* The aggregated number of cached audio input tokens used.
|
|
5829
|
+
*/
|
|
5830
|
+
input_cached_audio_tokens?: number;
|
|
5831
|
+
|
|
5832
|
+
/**
|
|
5833
|
+
* The aggregated number of cached image input tokens used.
|
|
5834
|
+
*/
|
|
5835
|
+
input_cached_image_tokens?: number;
|
|
5836
|
+
|
|
5837
|
+
/**
|
|
5838
|
+
* The aggregated number of cached text input tokens used.
|
|
5839
|
+
*/
|
|
5840
|
+
input_cached_text_tokens?: number;
|
|
5841
|
+
|
|
5842
|
+
/**
|
|
5843
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
5844
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
5344
5845
|
*/
|
|
5345
5846
|
input_cached_tokens?: number;
|
|
5346
5847
|
|
|
5848
|
+
/**
|
|
5849
|
+
* The aggregated number of uncached image input tokens used.
|
|
5850
|
+
*/
|
|
5851
|
+
input_image_tokens?: number;
|
|
5852
|
+
|
|
5853
|
+
/**
|
|
5854
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
5855
|
+
* tokens.
|
|
5856
|
+
*/
|
|
5857
|
+
input_text_tokens?: number;
|
|
5858
|
+
|
|
5859
|
+
/**
|
|
5860
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
5861
|
+
* image inputs, excluding cache-write tokens.
|
|
5862
|
+
*/
|
|
5863
|
+
input_uncached_tokens?: number;
|
|
5864
|
+
|
|
5347
5865
|
/**
|
|
5348
5866
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
5349
5867
|
* result.
|
|
@@ -5355,6 +5873,16 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5355
5873
|
*/
|
|
5356
5874
|
output_audio_tokens?: number;
|
|
5357
5875
|
|
|
5876
|
+
/**
|
|
5877
|
+
* The aggregated number of image output tokens used.
|
|
5878
|
+
*/
|
|
5879
|
+
output_image_tokens?: number;
|
|
5880
|
+
|
|
5881
|
+
/**
|
|
5882
|
+
* The aggregated number of text output tokens used.
|
|
5883
|
+
*/
|
|
5884
|
+
output_text_tokens?: number;
|
|
5885
|
+
|
|
5358
5886
|
/**
|
|
5359
5887
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
5360
5888
|
* usage result.
|