You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'List of budgets configured for the workspace'
11575
11578
items:
11576
11579
$ref: '#/components/schemas/WorkspaceBudget'
11577
11580
type: 'array'
11581
+
include_byok_in_budgets:
11582
+
description: 'Whether BYOK (bring-your-own-key) spend is included when enforcing the workspace''s budgets. This is a workspace-wide setting that applies to all budget intervals (daily, weekly, monthly, and lifetime).'
11583
+
example: false
11584
+
type: 'boolean'
11578
11585
required:
11579
11586
- 'data'
11580
11587
type: 'object'
@@ -11612,6 +11619,7 @@ components:
11612
11619
default_text_model: 'openai/gpt-4o'
11613
11620
description: 'Production environment workspace'
11614
11621
id: '550e8400-e29b-41d4-a716-446655440000'
11622
+
include_byok_in_budgets: false
11615
11623
io_logging_api_key_ids: null
11616
11624
io_logging_sampling_rate: 1
11617
11625
is_data_discount_logging_enabled: true
@@ -13614,6 +13622,8 @@ components:
13614
13622
is_moderated: true
13615
13623
max_completion_tokens: 4096
13616
13624
properties:
13625
+
alias_target:
13626
+
$ref: '#/components/schemas/ModelAliasTarget'
13617
13627
architecture:
13618
13628
$ref: '#/components/schemas/ModelArchitecture'
13619
13629
benchmarks:
@@ -13702,6 +13712,22 @@ components:
13702
13712
- 'supported_voices'
13703
13713
- 'links'
13704
13714
type: 'object'
13715
+
ModelAliasTarget:
13716
+
description: 'Concrete model targeted by this tilde-latest alias, when applicable'
13717
+
example:
13718
+
name: 'Claude Sonnet 4.5'
13719
+
slug: 'anthropic/claude-sonnet-4.5'
13720
+
properties:
13721
+
name:
13722
+
description: 'Human-readable name of the concrete model targeted by this alias'
13723
+
type: 'string'
13724
+
slug:
13725
+
description: 'Routable model ID of the concrete target, matching that model row''s id'
13726
+
type: 'string'
13727
+
required:
13728
+
- 'slug'
13729
+
- 'name'
13730
+
type: 'object'
13705
13731
ModelArchitecture:
13706
13732
description: 'Model architecture information'
13707
13733
example:
@@ -23721,6 +23747,7 @@ components:
23721
23747
default_text_model: 'openai/gpt-4o'
23722
23748
description: 'Production environment workspace'
23723
23749
id: '550e8400-e29b-41d4-a716-446655440000'
23750
+
include_byok_in_budgets: false
23724
23751
io_logging_api_key_ids: null
23725
23752
io_logging_sampling_rate: 1
23726
23753
is_data_discount_logging_enabled: true
@@ -23739,8 +23766,13 @@ components:
23739
23766
type: 'object'
23740
23767
UpsertWorkspaceBudgetRequest:
23741
23768
example:
23769
+
include_byok_in_budgets: true
23742
23770
limit_usd: 100
23743
23771
properties:
23772
+
include_byok_in_budgets:
23773
+
description: 'Whether to include BYOK (bring-your-own-key) spend when enforcing the workspace''s budgets. This is a workspace-wide setting: it applies to every budget interval (daily, weekly, monthly, and lifetime), not just the interval being upserted in this request. Omit to leave the current setting unchanged.'
23774
+
example: true
23775
+
type: 'boolean'
23744
23776
limit_usd:
23745
23777
description: 'Spending limit in USD. Must be greater than 0.'
description: 'Whether BYOK (bring-your-own-key) spend is included when enforcing the workspace''s budgets. This is a workspace-wide setting that applies to all budget intervals (daily, weekly, monthly, and lifetime).'
23801
+
example: true
23802
+
type: 'boolean'
23766
23803
required:
23767
23804
- 'data'
23768
23805
type: 'object'
@@ -24632,6 +24669,7 @@ components:
24632
24669
default_text_model: 'openai/gpt-4o'
24633
24670
description: 'Production environment workspace'
24634
24671
id: '550e8400-e29b-41d4-a716-446655440000'
24672
+
include_byok_in_budgets: false
24635
24673
io_logging_api_key_ids: null
24636
24674
io_logging_sampling_rate: 1
24637
24675
is_data_discount_logging_enabled: true
@@ -24685,6 +24723,10 @@ components:
24685
24723
example: '550e8400-e29b-41d4-a716-446655440000'
24686
24724
format: 'uuid'
24687
24725
type: 'string'
24726
+
include_byok_in_budgets:
24727
+
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Set it via the workspace budget endpoints.'
24728
+
example: false
24729
+
type: 'boolean'
24688
24730
io_logging_api_key_ids:
24689
24731
description: 'Optional array of API key IDs to filter I/O logging. Null means all keys are logged.'
description: 'Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
36273
+
description: 'Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
0 commit comments