openai 6.47.0 → 6.48.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 +20 -0
- 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/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/projects/index.d.mts +1 -1
- package/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/resources/admin/organization/projects/index.d.ts +1 -1
- package/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/resources/admin/organization/projects/index.js +4 -4
- package/resources/admin/organization/projects/index.js.map +1 -1
- package/resources/admin/organization/projects/index.mjs +1 -1
- package/resources/admin/organization/projects/index.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +2 -2
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +2 -2
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +2 -2
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +2 -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/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/responses.d.mts +4 -4
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +4 -4
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/src/internal/headers.ts +7 -3
- package/src/resources/admin/organization/audit-logs.ts +169 -1
- package/src/resources/admin/organization/projects/index.ts +1 -1
- package/src/resources/admin/organization/projects/projects.ts +13 -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/usage.ts +616 -88
- package/src/resources/beta/responses/responses.ts +4 -4
- 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
|
@@ -154,8 +154,9 @@ export declare namespace UsageAudioSpeechesResponse {
|
|
|
154
154
|
*/
|
|
155
155
|
interface OrganizationUsageCompletionsResult {
|
|
156
156
|
/**
|
|
157
|
-
* The aggregated number of
|
|
158
|
-
*
|
|
157
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
158
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
159
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
159
160
|
*/
|
|
160
161
|
input_tokens: number;
|
|
161
162
|
/**
|
|
@@ -164,8 +165,9 @@ export declare namespace UsageAudioSpeechesResponse {
|
|
|
164
165
|
num_model_requests: number;
|
|
165
166
|
object: 'organization.usage.completions.result';
|
|
166
167
|
/**
|
|
167
|
-
* The aggregated number of
|
|
168
|
-
*
|
|
168
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
169
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
170
|
+
* tokens.
|
|
169
171
|
*/
|
|
170
172
|
output_tokens: number;
|
|
171
173
|
/**
|
|
@@ -179,15 +181,44 @@ export declare namespace UsageAudioSpeechesResponse {
|
|
|
179
181
|
*/
|
|
180
182
|
batch?: boolean | null;
|
|
181
183
|
/**
|
|
182
|
-
* The aggregated number of audio input tokens used
|
|
184
|
+
* The aggregated number of uncached audio input tokens used.
|
|
183
185
|
*/
|
|
184
186
|
input_audio_tokens?: number;
|
|
185
187
|
/**
|
|
186
|
-
* The aggregated number of
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
* The aggregated number of input tokens written to the cache.
|
|
189
|
+
*/
|
|
190
|
+
input_cache_write_tokens?: number;
|
|
191
|
+
/**
|
|
192
|
+
* The aggregated number of cached audio input tokens used.
|
|
193
|
+
*/
|
|
194
|
+
input_cached_audio_tokens?: number;
|
|
195
|
+
/**
|
|
196
|
+
* The aggregated number of cached image input tokens used.
|
|
197
|
+
*/
|
|
198
|
+
input_cached_image_tokens?: number;
|
|
199
|
+
/**
|
|
200
|
+
* The aggregated number of cached text input tokens used.
|
|
201
|
+
*/
|
|
202
|
+
input_cached_text_tokens?: number;
|
|
203
|
+
/**
|
|
204
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
205
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
189
206
|
*/
|
|
190
207
|
input_cached_tokens?: number;
|
|
208
|
+
/**
|
|
209
|
+
* The aggregated number of uncached image input tokens used.
|
|
210
|
+
*/
|
|
211
|
+
input_image_tokens?: number;
|
|
212
|
+
/**
|
|
213
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
214
|
+
* tokens.
|
|
215
|
+
*/
|
|
216
|
+
input_text_tokens?: number;
|
|
217
|
+
/**
|
|
218
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
219
|
+
* image inputs, excluding cache-write tokens.
|
|
220
|
+
*/
|
|
221
|
+
input_uncached_tokens?: number;
|
|
191
222
|
/**
|
|
192
223
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
193
224
|
* result.
|
|
@@ -197,6 +228,14 @@ export declare namespace UsageAudioSpeechesResponse {
|
|
|
197
228
|
* The aggregated number of audio output tokens used.
|
|
198
229
|
*/
|
|
199
230
|
output_audio_tokens?: number;
|
|
231
|
+
/**
|
|
232
|
+
* The aggregated number of image output tokens used.
|
|
233
|
+
*/
|
|
234
|
+
output_image_tokens?: number;
|
|
235
|
+
/**
|
|
236
|
+
* The aggregated number of text output tokens used.
|
|
237
|
+
*/
|
|
238
|
+
output_text_tokens?: number;
|
|
200
239
|
/**
|
|
201
240
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
202
241
|
* usage result.
|
|
@@ -559,8 +598,9 @@ export declare namespace UsageAudioTranscriptionsResponse {
|
|
|
559
598
|
*/
|
|
560
599
|
interface OrganizationUsageCompletionsResult {
|
|
561
600
|
/**
|
|
562
|
-
* The aggregated number of
|
|
563
|
-
*
|
|
601
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
602
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
603
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
564
604
|
*/
|
|
565
605
|
input_tokens: number;
|
|
566
606
|
/**
|
|
@@ -569,8 +609,9 @@ export declare namespace UsageAudioTranscriptionsResponse {
|
|
|
569
609
|
num_model_requests: number;
|
|
570
610
|
object: 'organization.usage.completions.result';
|
|
571
611
|
/**
|
|
572
|
-
* The aggregated number of
|
|
573
|
-
*
|
|
612
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
613
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
614
|
+
* tokens.
|
|
574
615
|
*/
|
|
575
616
|
output_tokens: number;
|
|
576
617
|
/**
|
|
@@ -584,15 +625,44 @@ export declare namespace UsageAudioTranscriptionsResponse {
|
|
|
584
625
|
*/
|
|
585
626
|
batch?: boolean | null;
|
|
586
627
|
/**
|
|
587
|
-
* The aggregated number of audio input tokens used
|
|
628
|
+
* The aggregated number of uncached audio input tokens used.
|
|
588
629
|
*/
|
|
589
630
|
input_audio_tokens?: number;
|
|
590
631
|
/**
|
|
591
|
-
* The aggregated number of
|
|
592
|
-
|
|
593
|
-
|
|
632
|
+
* The aggregated number of input tokens written to the cache.
|
|
633
|
+
*/
|
|
634
|
+
input_cache_write_tokens?: number;
|
|
635
|
+
/**
|
|
636
|
+
* The aggregated number of cached audio input tokens used.
|
|
637
|
+
*/
|
|
638
|
+
input_cached_audio_tokens?: number;
|
|
639
|
+
/**
|
|
640
|
+
* The aggregated number of cached image input tokens used.
|
|
641
|
+
*/
|
|
642
|
+
input_cached_image_tokens?: number;
|
|
643
|
+
/**
|
|
644
|
+
* The aggregated number of cached text input tokens used.
|
|
645
|
+
*/
|
|
646
|
+
input_cached_text_tokens?: number;
|
|
647
|
+
/**
|
|
648
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
649
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
594
650
|
*/
|
|
595
651
|
input_cached_tokens?: number;
|
|
652
|
+
/**
|
|
653
|
+
* The aggregated number of uncached image input tokens used.
|
|
654
|
+
*/
|
|
655
|
+
input_image_tokens?: number;
|
|
656
|
+
/**
|
|
657
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
658
|
+
* tokens.
|
|
659
|
+
*/
|
|
660
|
+
input_text_tokens?: number;
|
|
661
|
+
/**
|
|
662
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
663
|
+
* image inputs, excluding cache-write tokens.
|
|
664
|
+
*/
|
|
665
|
+
input_uncached_tokens?: number;
|
|
596
666
|
/**
|
|
597
667
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
598
668
|
* result.
|
|
@@ -602,6 +672,14 @@ export declare namespace UsageAudioTranscriptionsResponse {
|
|
|
602
672
|
* The aggregated number of audio output tokens used.
|
|
603
673
|
*/
|
|
604
674
|
output_audio_tokens?: number;
|
|
675
|
+
/**
|
|
676
|
+
* The aggregated number of image output tokens used.
|
|
677
|
+
*/
|
|
678
|
+
output_image_tokens?: number;
|
|
679
|
+
/**
|
|
680
|
+
* The aggregated number of text output tokens used.
|
|
681
|
+
*/
|
|
682
|
+
output_text_tokens?: number;
|
|
605
683
|
/**
|
|
606
684
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
607
685
|
* usage result.
|
|
@@ -964,8 +1042,9 @@ export declare namespace UsageCodeInterpreterSessionsResponse {
|
|
|
964
1042
|
*/
|
|
965
1043
|
interface OrganizationUsageCompletionsResult {
|
|
966
1044
|
/**
|
|
967
|
-
* The aggregated number of
|
|
968
|
-
*
|
|
1045
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1046
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1047
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
969
1048
|
*/
|
|
970
1049
|
input_tokens: number;
|
|
971
1050
|
/**
|
|
@@ -974,8 +1053,9 @@ export declare namespace UsageCodeInterpreterSessionsResponse {
|
|
|
974
1053
|
num_model_requests: number;
|
|
975
1054
|
object: 'organization.usage.completions.result';
|
|
976
1055
|
/**
|
|
977
|
-
* The aggregated number of
|
|
978
|
-
*
|
|
1056
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1057
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1058
|
+
* tokens.
|
|
979
1059
|
*/
|
|
980
1060
|
output_tokens: number;
|
|
981
1061
|
/**
|
|
@@ -989,15 +1069,44 @@ export declare namespace UsageCodeInterpreterSessionsResponse {
|
|
|
989
1069
|
*/
|
|
990
1070
|
batch?: boolean | null;
|
|
991
1071
|
/**
|
|
992
|
-
* The aggregated number of audio input tokens used
|
|
1072
|
+
* The aggregated number of uncached audio input tokens used.
|
|
993
1073
|
*/
|
|
994
1074
|
input_audio_tokens?: number;
|
|
995
1075
|
/**
|
|
996
|
-
* The aggregated number of
|
|
997
|
-
|
|
998
|
-
|
|
1076
|
+
* The aggregated number of input tokens written to the cache.
|
|
1077
|
+
*/
|
|
1078
|
+
input_cache_write_tokens?: number;
|
|
1079
|
+
/**
|
|
1080
|
+
* The aggregated number of cached audio input tokens used.
|
|
1081
|
+
*/
|
|
1082
|
+
input_cached_audio_tokens?: number;
|
|
1083
|
+
/**
|
|
1084
|
+
* The aggregated number of cached image input tokens used.
|
|
1085
|
+
*/
|
|
1086
|
+
input_cached_image_tokens?: number;
|
|
1087
|
+
/**
|
|
1088
|
+
* The aggregated number of cached text input tokens used.
|
|
1089
|
+
*/
|
|
1090
|
+
input_cached_text_tokens?: number;
|
|
1091
|
+
/**
|
|
1092
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
1093
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
999
1094
|
*/
|
|
1000
1095
|
input_cached_tokens?: number;
|
|
1096
|
+
/**
|
|
1097
|
+
* The aggregated number of uncached image input tokens used.
|
|
1098
|
+
*/
|
|
1099
|
+
input_image_tokens?: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
1102
|
+
* tokens.
|
|
1103
|
+
*/
|
|
1104
|
+
input_text_tokens?: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
1107
|
+
* image inputs, excluding cache-write tokens.
|
|
1108
|
+
*/
|
|
1109
|
+
input_uncached_tokens?: number;
|
|
1001
1110
|
/**
|
|
1002
1111
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1003
1112
|
* result.
|
|
@@ -1007,6 +1116,14 @@ export declare namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1007
1116
|
* The aggregated number of audio output tokens used.
|
|
1008
1117
|
*/
|
|
1009
1118
|
output_audio_tokens?: number;
|
|
1119
|
+
/**
|
|
1120
|
+
* The aggregated number of image output tokens used.
|
|
1121
|
+
*/
|
|
1122
|
+
output_image_tokens?: number;
|
|
1123
|
+
/**
|
|
1124
|
+
* The aggregated number of text output tokens used.
|
|
1125
|
+
*/
|
|
1126
|
+
output_text_tokens?: number;
|
|
1010
1127
|
/**
|
|
1011
1128
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1012
1129
|
* usage result.
|
|
@@ -1369,8 +1486,9 @@ export declare namespace UsageCompletionsResponse {
|
|
|
1369
1486
|
*/
|
|
1370
1487
|
interface OrganizationUsageCompletionsResult {
|
|
1371
1488
|
/**
|
|
1372
|
-
* The aggregated number of
|
|
1373
|
-
*
|
|
1489
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1490
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1491
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
1374
1492
|
*/
|
|
1375
1493
|
input_tokens: number;
|
|
1376
1494
|
/**
|
|
@@ -1379,8 +1497,9 @@ export declare namespace UsageCompletionsResponse {
|
|
|
1379
1497
|
num_model_requests: number;
|
|
1380
1498
|
object: 'organization.usage.completions.result';
|
|
1381
1499
|
/**
|
|
1382
|
-
* The aggregated number of
|
|
1383
|
-
*
|
|
1500
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1501
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1502
|
+
* tokens.
|
|
1384
1503
|
*/
|
|
1385
1504
|
output_tokens: number;
|
|
1386
1505
|
/**
|
|
@@ -1394,15 +1513,44 @@ export declare namespace UsageCompletionsResponse {
|
|
|
1394
1513
|
*/
|
|
1395
1514
|
batch?: boolean | null;
|
|
1396
1515
|
/**
|
|
1397
|
-
* The aggregated number of audio input tokens used
|
|
1516
|
+
* The aggregated number of uncached audio input tokens used.
|
|
1398
1517
|
*/
|
|
1399
1518
|
input_audio_tokens?: number;
|
|
1400
1519
|
/**
|
|
1401
|
-
* The aggregated number of
|
|
1402
|
-
|
|
1403
|
-
|
|
1520
|
+
* The aggregated number of input tokens written to the cache.
|
|
1521
|
+
*/
|
|
1522
|
+
input_cache_write_tokens?: number;
|
|
1523
|
+
/**
|
|
1524
|
+
* The aggregated number of cached audio input tokens used.
|
|
1525
|
+
*/
|
|
1526
|
+
input_cached_audio_tokens?: number;
|
|
1527
|
+
/**
|
|
1528
|
+
* The aggregated number of cached image input tokens used.
|
|
1529
|
+
*/
|
|
1530
|
+
input_cached_image_tokens?: number;
|
|
1531
|
+
/**
|
|
1532
|
+
* The aggregated number of cached text input tokens used.
|
|
1533
|
+
*/
|
|
1534
|
+
input_cached_text_tokens?: number;
|
|
1535
|
+
/**
|
|
1536
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
1537
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
1404
1538
|
*/
|
|
1405
1539
|
input_cached_tokens?: number;
|
|
1540
|
+
/**
|
|
1541
|
+
* The aggregated number of uncached image input tokens used.
|
|
1542
|
+
*/
|
|
1543
|
+
input_image_tokens?: number;
|
|
1544
|
+
/**
|
|
1545
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
1546
|
+
* tokens.
|
|
1547
|
+
*/
|
|
1548
|
+
input_text_tokens?: number;
|
|
1549
|
+
/**
|
|
1550
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
1551
|
+
* image inputs, excluding cache-write tokens.
|
|
1552
|
+
*/
|
|
1553
|
+
input_uncached_tokens?: number;
|
|
1406
1554
|
/**
|
|
1407
1555
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1408
1556
|
* result.
|
|
@@ -1412,6 +1560,14 @@ export declare namespace UsageCompletionsResponse {
|
|
|
1412
1560
|
* The aggregated number of audio output tokens used.
|
|
1413
1561
|
*/
|
|
1414
1562
|
output_audio_tokens?: number;
|
|
1563
|
+
/**
|
|
1564
|
+
* The aggregated number of image output tokens used.
|
|
1565
|
+
*/
|
|
1566
|
+
output_image_tokens?: number;
|
|
1567
|
+
/**
|
|
1568
|
+
* The aggregated number of text output tokens used.
|
|
1569
|
+
*/
|
|
1570
|
+
output_text_tokens?: number;
|
|
1415
1571
|
/**
|
|
1416
1572
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1417
1573
|
* usage result.
|
|
@@ -1774,8 +1930,9 @@ export declare namespace UsageCostsResponse {
|
|
|
1774
1930
|
*/
|
|
1775
1931
|
interface OrganizationUsageCompletionsResult {
|
|
1776
1932
|
/**
|
|
1777
|
-
* The aggregated number of
|
|
1778
|
-
*
|
|
1933
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1934
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1935
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
1779
1936
|
*/
|
|
1780
1937
|
input_tokens: number;
|
|
1781
1938
|
/**
|
|
@@ -1784,8 +1941,9 @@ export declare namespace UsageCostsResponse {
|
|
|
1784
1941
|
num_model_requests: number;
|
|
1785
1942
|
object: 'organization.usage.completions.result';
|
|
1786
1943
|
/**
|
|
1787
|
-
* The aggregated number of
|
|
1788
|
-
*
|
|
1944
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1945
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1946
|
+
* tokens.
|
|
1789
1947
|
*/
|
|
1790
1948
|
output_tokens: number;
|
|
1791
1949
|
/**
|
|
@@ -1799,15 +1957,44 @@ export declare namespace UsageCostsResponse {
|
|
|
1799
1957
|
*/
|
|
1800
1958
|
batch?: boolean | null;
|
|
1801
1959
|
/**
|
|
1802
|
-
* The aggregated number of audio input tokens used
|
|
1960
|
+
* The aggregated number of uncached audio input tokens used.
|
|
1803
1961
|
*/
|
|
1804
1962
|
input_audio_tokens?: number;
|
|
1805
1963
|
/**
|
|
1806
|
-
* The aggregated number of
|
|
1807
|
-
|
|
1808
|
-
|
|
1964
|
+
* The aggregated number of input tokens written to the cache.
|
|
1965
|
+
*/
|
|
1966
|
+
input_cache_write_tokens?: number;
|
|
1967
|
+
/**
|
|
1968
|
+
* The aggregated number of cached audio input tokens used.
|
|
1969
|
+
*/
|
|
1970
|
+
input_cached_audio_tokens?: number;
|
|
1971
|
+
/**
|
|
1972
|
+
* The aggregated number of cached image input tokens used.
|
|
1973
|
+
*/
|
|
1974
|
+
input_cached_image_tokens?: number;
|
|
1975
|
+
/**
|
|
1976
|
+
* The aggregated number of cached text input tokens used.
|
|
1977
|
+
*/
|
|
1978
|
+
input_cached_text_tokens?: number;
|
|
1979
|
+
/**
|
|
1980
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
1981
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
1809
1982
|
*/
|
|
1810
1983
|
input_cached_tokens?: number;
|
|
1984
|
+
/**
|
|
1985
|
+
* The aggregated number of uncached image input tokens used.
|
|
1986
|
+
*/
|
|
1987
|
+
input_image_tokens?: number;
|
|
1988
|
+
/**
|
|
1989
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
1990
|
+
* tokens.
|
|
1991
|
+
*/
|
|
1992
|
+
input_text_tokens?: number;
|
|
1993
|
+
/**
|
|
1994
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
1995
|
+
* image inputs, excluding cache-write tokens.
|
|
1996
|
+
*/
|
|
1997
|
+
input_uncached_tokens?: number;
|
|
1811
1998
|
/**
|
|
1812
1999
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1813
2000
|
* result.
|
|
@@ -1817,6 +2004,14 @@ export declare namespace UsageCostsResponse {
|
|
|
1817
2004
|
* The aggregated number of audio output tokens used.
|
|
1818
2005
|
*/
|
|
1819
2006
|
output_audio_tokens?: number;
|
|
2007
|
+
/**
|
|
2008
|
+
* The aggregated number of image output tokens used.
|
|
2009
|
+
*/
|
|
2010
|
+
output_image_tokens?: number;
|
|
2011
|
+
/**
|
|
2012
|
+
* The aggregated number of text output tokens used.
|
|
2013
|
+
*/
|
|
2014
|
+
output_text_tokens?: number;
|
|
1820
2015
|
/**
|
|
1821
2016
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1822
2017
|
* usage result.
|
|
@@ -2179,8 +2374,9 @@ export declare namespace UsageEmbeddingsResponse {
|
|
|
2179
2374
|
*/
|
|
2180
2375
|
interface OrganizationUsageCompletionsResult {
|
|
2181
2376
|
/**
|
|
2182
|
-
* The aggregated number of
|
|
2183
|
-
*
|
|
2377
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
2378
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
2379
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2184
2380
|
*/
|
|
2185
2381
|
input_tokens: number;
|
|
2186
2382
|
/**
|
|
@@ -2189,8 +2385,9 @@ export declare namespace UsageEmbeddingsResponse {
|
|
|
2189
2385
|
num_model_requests: number;
|
|
2190
2386
|
object: 'organization.usage.completions.result';
|
|
2191
2387
|
/**
|
|
2192
|
-
* The aggregated number of
|
|
2193
|
-
*
|
|
2388
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
2389
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
2390
|
+
* tokens.
|
|
2194
2391
|
*/
|
|
2195
2392
|
output_tokens: number;
|
|
2196
2393
|
/**
|
|
@@ -2204,15 +2401,44 @@ export declare namespace UsageEmbeddingsResponse {
|
|
|
2204
2401
|
*/
|
|
2205
2402
|
batch?: boolean | null;
|
|
2206
2403
|
/**
|
|
2207
|
-
* The aggregated number of audio input tokens used
|
|
2404
|
+
* The aggregated number of uncached audio input tokens used.
|
|
2208
2405
|
*/
|
|
2209
2406
|
input_audio_tokens?: number;
|
|
2210
2407
|
/**
|
|
2211
|
-
* The aggregated number of
|
|
2212
|
-
|
|
2213
|
-
|
|
2408
|
+
* The aggregated number of input tokens written to the cache.
|
|
2409
|
+
*/
|
|
2410
|
+
input_cache_write_tokens?: number;
|
|
2411
|
+
/**
|
|
2412
|
+
* The aggregated number of cached audio input tokens used.
|
|
2413
|
+
*/
|
|
2414
|
+
input_cached_audio_tokens?: number;
|
|
2415
|
+
/**
|
|
2416
|
+
* The aggregated number of cached image input tokens used.
|
|
2417
|
+
*/
|
|
2418
|
+
input_cached_image_tokens?: number;
|
|
2419
|
+
/**
|
|
2420
|
+
* The aggregated number of cached text input tokens used.
|
|
2421
|
+
*/
|
|
2422
|
+
input_cached_text_tokens?: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
2425
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
2214
2426
|
*/
|
|
2215
2427
|
input_cached_tokens?: number;
|
|
2428
|
+
/**
|
|
2429
|
+
* The aggregated number of uncached image input tokens used.
|
|
2430
|
+
*/
|
|
2431
|
+
input_image_tokens?: number;
|
|
2432
|
+
/**
|
|
2433
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
2434
|
+
* tokens.
|
|
2435
|
+
*/
|
|
2436
|
+
input_text_tokens?: number;
|
|
2437
|
+
/**
|
|
2438
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
2439
|
+
* image inputs, excluding cache-write tokens.
|
|
2440
|
+
*/
|
|
2441
|
+
input_uncached_tokens?: number;
|
|
2216
2442
|
/**
|
|
2217
2443
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2218
2444
|
* result.
|
|
@@ -2222,6 +2448,14 @@ export declare namespace UsageEmbeddingsResponse {
|
|
|
2222
2448
|
* The aggregated number of audio output tokens used.
|
|
2223
2449
|
*/
|
|
2224
2450
|
output_audio_tokens?: number;
|
|
2451
|
+
/**
|
|
2452
|
+
* The aggregated number of image output tokens used.
|
|
2453
|
+
*/
|
|
2454
|
+
output_image_tokens?: number;
|
|
2455
|
+
/**
|
|
2456
|
+
* The aggregated number of text output tokens used.
|
|
2457
|
+
*/
|
|
2458
|
+
output_text_tokens?: number;
|
|
2225
2459
|
/**
|
|
2226
2460
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2227
2461
|
* usage result.
|
|
@@ -2584,8 +2818,9 @@ export declare namespace UsageFileSearchCallsResponse {
|
|
|
2584
2818
|
*/
|
|
2585
2819
|
interface OrganizationUsageCompletionsResult {
|
|
2586
2820
|
/**
|
|
2587
|
-
* The aggregated number of
|
|
2588
|
-
*
|
|
2821
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
2822
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
2823
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2589
2824
|
*/
|
|
2590
2825
|
input_tokens: number;
|
|
2591
2826
|
/**
|
|
@@ -2594,8 +2829,9 @@ export declare namespace UsageFileSearchCallsResponse {
|
|
|
2594
2829
|
num_model_requests: number;
|
|
2595
2830
|
object: 'organization.usage.completions.result';
|
|
2596
2831
|
/**
|
|
2597
|
-
* The aggregated number of
|
|
2598
|
-
*
|
|
2832
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
2833
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
2834
|
+
* tokens.
|
|
2599
2835
|
*/
|
|
2600
2836
|
output_tokens: number;
|
|
2601
2837
|
/**
|
|
@@ -2609,15 +2845,44 @@ export declare namespace UsageFileSearchCallsResponse {
|
|
|
2609
2845
|
*/
|
|
2610
2846
|
batch?: boolean | null;
|
|
2611
2847
|
/**
|
|
2612
|
-
* The aggregated number of audio input tokens used
|
|
2848
|
+
* The aggregated number of uncached audio input tokens used.
|
|
2613
2849
|
*/
|
|
2614
2850
|
input_audio_tokens?: number;
|
|
2615
2851
|
/**
|
|
2616
|
-
* The aggregated number of
|
|
2617
|
-
|
|
2618
|
-
|
|
2852
|
+
* The aggregated number of input tokens written to the cache.
|
|
2853
|
+
*/
|
|
2854
|
+
input_cache_write_tokens?: number;
|
|
2855
|
+
/**
|
|
2856
|
+
* The aggregated number of cached audio input tokens used.
|
|
2857
|
+
*/
|
|
2858
|
+
input_cached_audio_tokens?: number;
|
|
2859
|
+
/**
|
|
2860
|
+
* The aggregated number of cached image input tokens used.
|
|
2861
|
+
*/
|
|
2862
|
+
input_cached_image_tokens?: number;
|
|
2863
|
+
/**
|
|
2864
|
+
* The aggregated number of cached text input tokens used.
|
|
2865
|
+
*/
|
|
2866
|
+
input_cached_text_tokens?: number;
|
|
2867
|
+
/**
|
|
2868
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
2869
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
2619
2870
|
*/
|
|
2620
2871
|
input_cached_tokens?: number;
|
|
2872
|
+
/**
|
|
2873
|
+
* The aggregated number of uncached image input tokens used.
|
|
2874
|
+
*/
|
|
2875
|
+
input_image_tokens?: number;
|
|
2876
|
+
/**
|
|
2877
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
2878
|
+
* tokens.
|
|
2879
|
+
*/
|
|
2880
|
+
input_text_tokens?: number;
|
|
2881
|
+
/**
|
|
2882
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
2883
|
+
* image inputs, excluding cache-write tokens.
|
|
2884
|
+
*/
|
|
2885
|
+
input_uncached_tokens?: number;
|
|
2621
2886
|
/**
|
|
2622
2887
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2623
2888
|
* result.
|
|
@@ -2627,6 +2892,14 @@ export declare namespace UsageFileSearchCallsResponse {
|
|
|
2627
2892
|
* The aggregated number of audio output tokens used.
|
|
2628
2893
|
*/
|
|
2629
2894
|
output_audio_tokens?: number;
|
|
2895
|
+
/**
|
|
2896
|
+
* The aggregated number of image output tokens used.
|
|
2897
|
+
*/
|
|
2898
|
+
output_image_tokens?: number;
|
|
2899
|
+
/**
|
|
2900
|
+
* The aggregated number of text output tokens used.
|
|
2901
|
+
*/
|
|
2902
|
+
output_text_tokens?: number;
|
|
2630
2903
|
/**
|
|
2631
2904
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2632
2905
|
* usage result.
|
|
@@ -2989,8 +3262,9 @@ export declare namespace UsageImagesResponse {
|
|
|
2989
3262
|
*/
|
|
2990
3263
|
interface OrganizationUsageCompletionsResult {
|
|
2991
3264
|
/**
|
|
2992
|
-
* The aggregated number of
|
|
2993
|
-
*
|
|
3265
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
3266
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
3267
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2994
3268
|
*/
|
|
2995
3269
|
input_tokens: number;
|
|
2996
3270
|
/**
|
|
@@ -2999,8 +3273,9 @@ export declare namespace UsageImagesResponse {
|
|
|
2999
3273
|
num_model_requests: number;
|
|
3000
3274
|
object: 'organization.usage.completions.result';
|
|
3001
3275
|
/**
|
|
3002
|
-
* The aggregated number of
|
|
3003
|
-
*
|
|
3276
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
3277
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
3278
|
+
* tokens.
|
|
3004
3279
|
*/
|
|
3005
3280
|
output_tokens: number;
|
|
3006
3281
|
/**
|
|
@@ -3014,15 +3289,44 @@ export declare namespace UsageImagesResponse {
|
|
|
3014
3289
|
*/
|
|
3015
3290
|
batch?: boolean | null;
|
|
3016
3291
|
/**
|
|
3017
|
-
* The aggregated number of audio input tokens used
|
|
3292
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3018
3293
|
*/
|
|
3019
3294
|
input_audio_tokens?: number;
|
|
3020
3295
|
/**
|
|
3021
|
-
* The aggregated number of
|
|
3022
|
-
|
|
3023
|
-
|
|
3296
|
+
* The aggregated number of input tokens written to the cache.
|
|
3297
|
+
*/
|
|
3298
|
+
input_cache_write_tokens?: number;
|
|
3299
|
+
/**
|
|
3300
|
+
* The aggregated number of cached audio input tokens used.
|
|
3301
|
+
*/
|
|
3302
|
+
input_cached_audio_tokens?: number;
|
|
3303
|
+
/**
|
|
3304
|
+
* The aggregated number of cached image input tokens used.
|
|
3305
|
+
*/
|
|
3306
|
+
input_cached_image_tokens?: number;
|
|
3307
|
+
/**
|
|
3308
|
+
* The aggregated number of cached text input tokens used.
|
|
3309
|
+
*/
|
|
3310
|
+
input_cached_text_tokens?: number;
|
|
3311
|
+
/**
|
|
3312
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
3313
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3024
3314
|
*/
|
|
3025
3315
|
input_cached_tokens?: number;
|
|
3316
|
+
/**
|
|
3317
|
+
* The aggregated number of uncached image input tokens used.
|
|
3318
|
+
*/
|
|
3319
|
+
input_image_tokens?: number;
|
|
3320
|
+
/**
|
|
3321
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
3322
|
+
* tokens.
|
|
3323
|
+
*/
|
|
3324
|
+
input_text_tokens?: number;
|
|
3325
|
+
/**
|
|
3326
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
3327
|
+
* image inputs, excluding cache-write tokens.
|
|
3328
|
+
*/
|
|
3329
|
+
input_uncached_tokens?: number;
|
|
3026
3330
|
/**
|
|
3027
3331
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3028
3332
|
* result.
|
|
@@ -3032,6 +3336,14 @@ export declare namespace UsageImagesResponse {
|
|
|
3032
3336
|
* The aggregated number of audio output tokens used.
|
|
3033
3337
|
*/
|
|
3034
3338
|
output_audio_tokens?: number;
|
|
3339
|
+
/**
|
|
3340
|
+
* The aggregated number of image output tokens used.
|
|
3341
|
+
*/
|
|
3342
|
+
output_image_tokens?: number;
|
|
3343
|
+
/**
|
|
3344
|
+
* The aggregated number of text output tokens used.
|
|
3345
|
+
*/
|
|
3346
|
+
output_text_tokens?: number;
|
|
3035
3347
|
/**
|
|
3036
3348
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3037
3349
|
* usage result.
|
|
@@ -3394,8 +3706,9 @@ export declare namespace UsageModerationsResponse {
|
|
|
3394
3706
|
*/
|
|
3395
3707
|
interface OrganizationUsageCompletionsResult {
|
|
3396
3708
|
/**
|
|
3397
|
-
* The aggregated number of
|
|
3398
|
-
*
|
|
3709
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
3710
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
3711
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
3399
3712
|
*/
|
|
3400
3713
|
input_tokens: number;
|
|
3401
3714
|
/**
|
|
@@ -3404,8 +3717,9 @@ export declare namespace UsageModerationsResponse {
|
|
|
3404
3717
|
num_model_requests: number;
|
|
3405
3718
|
object: 'organization.usage.completions.result';
|
|
3406
3719
|
/**
|
|
3407
|
-
* The aggregated number of
|
|
3408
|
-
*
|
|
3720
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
3721
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
3722
|
+
* tokens.
|
|
3409
3723
|
*/
|
|
3410
3724
|
output_tokens: number;
|
|
3411
3725
|
/**
|
|
@@ -3419,15 +3733,44 @@ export declare namespace UsageModerationsResponse {
|
|
|
3419
3733
|
*/
|
|
3420
3734
|
batch?: boolean | null;
|
|
3421
3735
|
/**
|
|
3422
|
-
* The aggregated number of audio input tokens used
|
|
3736
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3423
3737
|
*/
|
|
3424
3738
|
input_audio_tokens?: number;
|
|
3425
3739
|
/**
|
|
3426
|
-
* The aggregated number of
|
|
3427
|
-
|
|
3428
|
-
|
|
3740
|
+
* The aggregated number of input tokens written to the cache.
|
|
3741
|
+
*/
|
|
3742
|
+
input_cache_write_tokens?: number;
|
|
3743
|
+
/**
|
|
3744
|
+
* The aggregated number of cached audio input tokens used.
|
|
3745
|
+
*/
|
|
3746
|
+
input_cached_audio_tokens?: number;
|
|
3747
|
+
/**
|
|
3748
|
+
* The aggregated number of cached image input tokens used.
|
|
3749
|
+
*/
|
|
3750
|
+
input_cached_image_tokens?: number;
|
|
3751
|
+
/**
|
|
3752
|
+
* The aggregated number of cached text input tokens used.
|
|
3753
|
+
*/
|
|
3754
|
+
input_cached_text_tokens?: number;
|
|
3755
|
+
/**
|
|
3756
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
3757
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3429
3758
|
*/
|
|
3430
3759
|
input_cached_tokens?: number;
|
|
3760
|
+
/**
|
|
3761
|
+
* The aggregated number of uncached image input tokens used.
|
|
3762
|
+
*/
|
|
3763
|
+
input_image_tokens?: number;
|
|
3764
|
+
/**
|
|
3765
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
3766
|
+
* tokens.
|
|
3767
|
+
*/
|
|
3768
|
+
input_text_tokens?: number;
|
|
3769
|
+
/**
|
|
3770
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
3771
|
+
* image inputs, excluding cache-write tokens.
|
|
3772
|
+
*/
|
|
3773
|
+
input_uncached_tokens?: number;
|
|
3431
3774
|
/**
|
|
3432
3775
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3433
3776
|
* result.
|
|
@@ -3437,6 +3780,14 @@ export declare namespace UsageModerationsResponse {
|
|
|
3437
3780
|
* The aggregated number of audio output tokens used.
|
|
3438
3781
|
*/
|
|
3439
3782
|
output_audio_tokens?: number;
|
|
3783
|
+
/**
|
|
3784
|
+
* The aggregated number of image output tokens used.
|
|
3785
|
+
*/
|
|
3786
|
+
output_image_tokens?: number;
|
|
3787
|
+
/**
|
|
3788
|
+
* The aggregated number of text output tokens used.
|
|
3789
|
+
*/
|
|
3790
|
+
output_text_tokens?: number;
|
|
3440
3791
|
/**
|
|
3441
3792
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3442
3793
|
* usage result.
|
|
@@ -3799,8 +4150,9 @@ export declare namespace UsageVectorStoresResponse {
|
|
|
3799
4150
|
*/
|
|
3800
4151
|
interface OrganizationUsageCompletionsResult {
|
|
3801
4152
|
/**
|
|
3802
|
-
* The aggregated number of
|
|
3803
|
-
*
|
|
4153
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
4154
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
4155
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
3804
4156
|
*/
|
|
3805
4157
|
input_tokens: number;
|
|
3806
4158
|
/**
|
|
@@ -3809,8 +4161,9 @@ export declare namespace UsageVectorStoresResponse {
|
|
|
3809
4161
|
num_model_requests: number;
|
|
3810
4162
|
object: 'organization.usage.completions.result';
|
|
3811
4163
|
/**
|
|
3812
|
-
* The aggregated number of
|
|
3813
|
-
*
|
|
4164
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
4165
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
4166
|
+
* tokens.
|
|
3814
4167
|
*/
|
|
3815
4168
|
output_tokens: number;
|
|
3816
4169
|
/**
|
|
@@ -3824,15 +4177,44 @@ export declare namespace UsageVectorStoresResponse {
|
|
|
3824
4177
|
*/
|
|
3825
4178
|
batch?: boolean | null;
|
|
3826
4179
|
/**
|
|
3827
|
-
* The aggregated number of audio input tokens used
|
|
4180
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3828
4181
|
*/
|
|
3829
4182
|
input_audio_tokens?: number;
|
|
3830
4183
|
/**
|
|
3831
|
-
* The aggregated number of
|
|
3832
|
-
|
|
3833
|
-
|
|
4184
|
+
* The aggregated number of input tokens written to the cache.
|
|
4185
|
+
*/
|
|
4186
|
+
input_cache_write_tokens?: number;
|
|
4187
|
+
/**
|
|
4188
|
+
* The aggregated number of cached audio input tokens used.
|
|
4189
|
+
*/
|
|
4190
|
+
input_cached_audio_tokens?: number;
|
|
4191
|
+
/**
|
|
4192
|
+
* The aggregated number of cached image input tokens used.
|
|
4193
|
+
*/
|
|
4194
|
+
input_cached_image_tokens?: number;
|
|
4195
|
+
/**
|
|
4196
|
+
* The aggregated number of cached text input tokens used.
|
|
4197
|
+
*/
|
|
4198
|
+
input_cached_text_tokens?: number;
|
|
4199
|
+
/**
|
|
4200
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
4201
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3834
4202
|
*/
|
|
3835
4203
|
input_cached_tokens?: number;
|
|
4204
|
+
/**
|
|
4205
|
+
* The aggregated number of uncached image input tokens used.
|
|
4206
|
+
*/
|
|
4207
|
+
input_image_tokens?: number;
|
|
4208
|
+
/**
|
|
4209
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
4210
|
+
* tokens.
|
|
4211
|
+
*/
|
|
4212
|
+
input_text_tokens?: number;
|
|
4213
|
+
/**
|
|
4214
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
4215
|
+
* image inputs, excluding cache-write tokens.
|
|
4216
|
+
*/
|
|
4217
|
+
input_uncached_tokens?: number;
|
|
3836
4218
|
/**
|
|
3837
4219
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3838
4220
|
* result.
|
|
@@ -3842,6 +4224,14 @@ export declare namespace UsageVectorStoresResponse {
|
|
|
3842
4224
|
* The aggregated number of audio output tokens used.
|
|
3843
4225
|
*/
|
|
3844
4226
|
output_audio_tokens?: number;
|
|
4227
|
+
/**
|
|
4228
|
+
* The aggregated number of image output tokens used.
|
|
4229
|
+
*/
|
|
4230
|
+
output_image_tokens?: number;
|
|
4231
|
+
/**
|
|
4232
|
+
* The aggregated number of text output tokens used.
|
|
4233
|
+
*/
|
|
4234
|
+
output_text_tokens?: number;
|
|
3845
4235
|
/**
|
|
3846
4236
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3847
4237
|
* usage result.
|
|
@@ -4204,8 +4594,9 @@ export declare namespace UsageWebSearchCallsResponse {
|
|
|
4204
4594
|
*/
|
|
4205
4595
|
interface OrganizationUsageCompletionsResult {
|
|
4206
4596
|
/**
|
|
4207
|
-
* The aggregated number of
|
|
4208
|
-
*
|
|
4597
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
4598
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
4599
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
4209
4600
|
*/
|
|
4210
4601
|
input_tokens: number;
|
|
4211
4602
|
/**
|
|
@@ -4214,8 +4605,9 @@ export declare namespace UsageWebSearchCallsResponse {
|
|
|
4214
4605
|
num_model_requests: number;
|
|
4215
4606
|
object: 'organization.usage.completions.result';
|
|
4216
4607
|
/**
|
|
4217
|
-
* The aggregated number of
|
|
4218
|
-
*
|
|
4608
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
4609
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
4610
|
+
* tokens.
|
|
4219
4611
|
*/
|
|
4220
4612
|
output_tokens: number;
|
|
4221
4613
|
/**
|
|
@@ -4229,15 +4621,44 @@ export declare namespace UsageWebSearchCallsResponse {
|
|
|
4229
4621
|
*/
|
|
4230
4622
|
batch?: boolean | null;
|
|
4231
4623
|
/**
|
|
4232
|
-
* The aggregated number of audio input tokens used
|
|
4624
|
+
* The aggregated number of uncached audio input tokens used.
|
|
4233
4625
|
*/
|
|
4234
4626
|
input_audio_tokens?: number;
|
|
4235
4627
|
/**
|
|
4236
|
-
* The aggregated number of
|
|
4237
|
-
|
|
4238
|
-
|
|
4628
|
+
* The aggregated number of input tokens written to the cache.
|
|
4629
|
+
*/
|
|
4630
|
+
input_cache_write_tokens?: number;
|
|
4631
|
+
/**
|
|
4632
|
+
* The aggregated number of cached audio input tokens used.
|
|
4633
|
+
*/
|
|
4634
|
+
input_cached_audio_tokens?: number;
|
|
4635
|
+
/**
|
|
4636
|
+
* The aggregated number of cached image input tokens used.
|
|
4637
|
+
*/
|
|
4638
|
+
input_cached_image_tokens?: number;
|
|
4639
|
+
/**
|
|
4640
|
+
* The aggregated number of cached text input tokens used.
|
|
4641
|
+
*/
|
|
4642
|
+
input_cached_text_tokens?: number;
|
|
4643
|
+
/**
|
|
4644
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
4645
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
4239
4646
|
*/
|
|
4240
4647
|
input_cached_tokens?: number;
|
|
4648
|
+
/**
|
|
4649
|
+
* The aggregated number of uncached image input tokens used.
|
|
4650
|
+
*/
|
|
4651
|
+
input_image_tokens?: number;
|
|
4652
|
+
/**
|
|
4653
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
4654
|
+
* tokens.
|
|
4655
|
+
*/
|
|
4656
|
+
input_text_tokens?: number;
|
|
4657
|
+
/**
|
|
4658
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
4659
|
+
* image inputs, excluding cache-write tokens.
|
|
4660
|
+
*/
|
|
4661
|
+
input_uncached_tokens?: number;
|
|
4241
4662
|
/**
|
|
4242
4663
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
4243
4664
|
* result.
|
|
@@ -4247,6 +4668,14 @@ export declare namespace UsageWebSearchCallsResponse {
|
|
|
4247
4668
|
* The aggregated number of audio output tokens used.
|
|
4248
4669
|
*/
|
|
4249
4670
|
output_audio_tokens?: number;
|
|
4671
|
+
/**
|
|
4672
|
+
* The aggregated number of image output tokens used.
|
|
4673
|
+
*/
|
|
4674
|
+
output_image_tokens?: number;
|
|
4675
|
+
/**
|
|
4676
|
+
* The aggregated number of text output tokens used.
|
|
4677
|
+
*/
|
|
4678
|
+
output_text_tokens?: number;
|
|
4250
4679
|
/**
|
|
4251
4680
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
4252
4681
|
* usage result.
|