API schemas: Q
QueryCatalogue
Section titled “QueryCatalogue”Type: object
The query language’s catalogue of one scope for one reader (T186.007).
scope(string, required, one of"traces","spans","logs","rules")scopes(array of string)language(string, required, one of"full","basic")fields(array of QueryField, required)span_fields(array of QueryField, required)evaluation_fields(array of object, required)name(string, required)help(string, required)
syntax(array of string, required)examples(array of string, required)text_search(object, required)available(boolean, required) — The reader may write a word or a phrase heremax_records(integer, required) — trace_query.text_search_max_records (default 500; 0 turns text search off)max_record_bytes(integer, required) — trace_query.text_search_max_record_bytes (default 65536)source(string)
limits(object, required)- any other key: integer
QueryField
Section titled “QueryField”Type: object
One field of the query language (T186.007).
name(string, required)type(string, required, one of"text","enum","bool","number","duration","money","tag") — tag is a field whose name carries a key (pattern says how it is written)values(array of string) — The values of an enumscopes(array of string, required)facet(boolean) — Counted by the facet rail by defaultneeds(string, one of"tags","session","end_user","cost")pattern(string) — tag.<name> or guardrail.<id>.outcomehelp(string, required)
QueueJob
Section titled “QueueJob”Type: object
A durable queue job, never its payload.
id(string, required, pattern^qj_[0-9a-f]{32}$)queue(string, required)subject(string) — Workload label; the destination ID for log_delivery, the channel ID for alert_delivery, the rate source (ecb) for fx_refreshstate(string, required, one of"ready","delayed","leased","dead","done")attempts(integer, required)max_attempts(integer, required)last_error_class(string) — Short identifier such as timeout, unreachable, failed, rejected, denied, destination_removed or lease_expired; never error textpayload_bytes(integer, required)payload_sha256(string, required)reprocessed(integer, required)idempotent(boolean, required)enqueued_at(string (date-time), required)available_at(string (date-time), required)lease_until(string (date-time))dead_at(string (date-time))completed_at(string (date-time))
QueueJobPreview
Section titled “QueueJobPreview”Type: QueueJob and object
- All of (1): QueueJob
- All of (2): object
payload_preview(string, required, max length 4096)payload_truncated(boolean, required)payload_binary(boolean, required)
QueueProfile
Section titled “QueueProfile”Type: object
Boot bounds of one durable queue (durable_queues.<queue>); defaults in parentheses.
max_depth(integer, min 1, max 1000000) — Waiting plus dead-lettered jobs (1000); past it an enqueue is refused with queue_fullmax_attempts(integer, min 1, max 100) — Deliveries, crashed ones included, before the dead letter (8)max_payload_bytes(integer, min 1024, max 16777216) — (1048576)visibility_timeout_seconds(integer, min 5, max 3600) — (60)heartbeat_seconds(integer, min 1, max 1800) — At most half the visibility timeout (15)job_timeout_seconds(integer, min 1, max 3600) — (30)backoff_base_seconds(integer, min 1, max 3600) — (5)backoff_max_seconds(integer, min 1, max 86400) — (900)concurrency(integer, min 1, max 64) — Jobs per replica (2)completed_retention_hours(integer, min 1, max 8760) — (24)dead_letter_retention_hours(integer, min 1, max 8760) — (168)
QueueStats
Section titled “QueueStats”Type: object
ready(integer)delayed(integer)leased(integer)dead_letters(integer)done(integer)oldest_ready_at(string (date-time))last_dead_letter_at(string (date-time))
QuotaAccount
Section titled “QuotaAccount”Type: object
id(string, required, read-only)kind(string, required, one of"project","organization")name(string, required, min length 1, max length 100)parent_id(string, required)version(integer (int64), required, min 0)disabled(boolean, required)created_at(string (date-time), required, read-only)
QuotaAccountWrite
Section titled “QuotaAccountWrite”Type: object
kind(string, required, one of"project","organization")name(string, required, min length 1, max length 100)parent_id(string)version(integer (int64), required, min 0)disabled(boolean)
QuotaAlert
Section titled “QuotaAlert”Type: object
id(string, required)policy_id(string, required)subject(string, required)subject_id(string, required)threshold(integer (int64), required, min 0)basis(string, required)request_id(string, required)trace_id(string, required)created_at(string (date-time), required)acknowledged_at(string (date-time))dimension(string, required)window_start(string (date-time), required)committed_usd(string, required)budget_usd(string, required)acknowledged_by(string)
QuotaAttribution
Section titled “QuotaAttribution”Type: object
key_id(string, required)user_id(string, required)project_id(string, required)organization_id(string, required)version(integer (int64), required, min 0)disabled(boolean, required)
QuotaAttributionWrite
Section titled “QuotaAttributionWrite”Type: object
user_id(string)project_id(string)organization_id(string)version(integer (int64), required, min 0)disabled(boolean)
QuotaBaseAccess
Section titled “QuotaBaseAccess”Type: object
Safe current adoption capability covering the adopted base, overrides and candidate YAML; still requires current quota CAS and live authority at mutation.
adopt_write(boolean, required)
QuotaBillingImport
Section titled “QuotaBillingImport”Type: object
id(string, required)source(string, required, one of"openai_costs","anthropic_costs","google_billing_export","provider_export")account_id(string, required)period_start(string (date-time), required)period_end(string (date-time), required)coverage(string, required, one of"partial","complete_export")source_url(string (uri), required)source_sha256(string, required, pattern^[a-f0-9]{64}$)currency("USD", required)lines(array of QuotaBillingLine, required, min items 1, max items 1000)
QuotaBillingLine
Section titled “QuotaBillingLine”Type: object
id(string, required)provider_id(string, required)connection(string, required, pattern^[a-f0-9]{64}$)upstream_model(string, required, min length 1, max length 256)inference_id(string, pattern^[a-f0-9]{32}$)provider_request_id(string)kind(string, required, one of"charge","credit","tax","adjustment")amount_usd(string, required, pattern^-?(0|[1-9][0-9]{0,6})(\.[0-9]{1,12})?$)description(string, max length 256)
QuotaBillingResult
Section titled “QuotaBillingResult”Type: object
lines(integer, required, min 1, max 1000)version(integer (int64), required, min 0)id(string, required)fingerprint(string, required)matched(integer (int64), required, min 0)unmatched(integer (int64), required, min 0)aggregate(integer (int64), required, min 0)idempotent(boolean, required)
QuotaBillingWrite
Section titled “QuotaBillingWrite”Type: object
version(integer (int64), required, min 0)statement(QuotaBillingImport, required)
QuotaCatalog
Section titled “QuotaCatalog”Type: object
configuration_version(integer (int64), min 0) — Captured global control version for authority binding; distinct from quota version.quota_base_access(QuotaBaseAccess)version(integer (int64), required)base_fingerprint(string, required)stored_base_fingerprint(string, required)base_mismatch(boolean, required)rates_source(string, required, one of"yaml","console")settings(EffectiveQuotaSettings, required)settings_source(string, required, one of"yaml","console")policies(array of QuotaPolicy, required, max items 128)rates(array of QuotaRate, required, max items 256)connections(array of object, required)provider_id(string, required)connection(string, required)protocol(string, required)base_url(string, required)api_version(string, required)
QuotaChargeReconcileInput
Section titled “QuotaChargeReconcileInput”Type: object
version(integer (int64), required, min 0)id(string, required)import_id(string, required)line_id(string, required)source_sha256(string, required, pattern^[a-f0-9]{64}$)confirmation("ATTEST_PROVIDER_CHARGE_USD_ONLY", required)
QuotaChargeReconcileResult
Section titled “QuotaChargeReconcileResult”Type: object
id(string, required)reservation_id(string, required)budget_basis(string, required)state(string, required)amount_usd(string, required)version(integer (int64), required, min 0)token_usage_proven(boolean, required)idempotent(boolean)released_charge(QuotaReleaseCharge)
QuotaChildStatus
Section titled “QuotaChildStatus”Type: object
policy_id(string, required)subject(string, required, one of"team","project","organization")subject_id(string, required)child(QuotaChildTemplate, required)budget_period(string, one of"day","week","month","quarter","year","lifetime")observed_at(string (date-time), required)children(array of QuotaChildUsage, required, max items 1000)truncated(boolean, required) — More children have counters in the current windows than were returned
QuotaChildTemplate
Section titled “QuotaChildTemplate”Type: object
Per-child template (hierarchical_quotas): each child of the policy’s subject gets independent counters, reserved atomically with the parent’s own cumulative ceilings. Selector key or user under a team; team, key or user under a project or organization. At least one of tpm, tpd and budget_usd. Child token ceilings may not exceed the parent’s; a child budget of the parent’s period may not exceed a hard parent budget. A request whose child cannot be identified is refused with 422 quota_profile_unsupported (child_identity_required).
selector(string, required, one of"key","user","team")tpm(integer (int64), min 0, max 100000000) — 0 or omitted means no per-child TPMtpd(integer (int64), min 0, max 100000000000) — 0 or omitted means no per-child TPDbudget_usd(string, pattern^(0|[1-9][0-9]{0,6})(\.[0-9]{1,6})?$) — Positive USD decimal up to 1000000 per childbudget_period(string, one of"day","week","month","quarter","year","lifetime") — Defaults to the parent’s budget_period
QuotaChildUsage
Section titled “QuotaChildUsage”Type: object
child_id(string, required)tokens_used(integer (int64))tokens_remaining(integer (int64))tokens_day_used(integer (int64))tokens_day_remaining(integer (int64))committed_usd(string) — Includes open and unknown reservations; not confirmed spendremaining_usd(string)
QuotaDefaultedIntegerParameterDefinition
Section titled “QuotaDefaultedIntegerParameterDefinition”Type: object or object or object or object
- One of (1): object
key("quotas.settings.max_input_tokens", required)group("quota", required)kind("defaulted_integer", required)default("2000000", required)minimum("1", required)maximum("100000000", required)zero_is_default(true, required)sources(array of string, required, min items 3, max items 3)restart_required(false, required)yaml_requires_restart(true, required)
- One of (2): object
key("quotas.settings.max_items", required)group("quota", required)kind("defaulted_integer", required)default("1024", required)minimum("1", required)maximum("100000", required)zero_is_default(true, required)sources(array of string, required, min items 3, max items 3)restart_required(false, required)yaml_requires_restart(true, required)
- One of (3): object
key("quotas.settings.max_tools", required)group("quota", required)kind("defaulted_integer", required)default("128", required)minimum("1", required)maximum("4096", required)zero_is_default(true, required)sources(array of string, required, min items 3, max items 3)restart_required(false, required)yaml_requires_restart(true, required)
- One of (4): object
key("quotas.settings.max_content_parts", required)group("quota", required)kind("defaulted_integer", required)default("128", required)minimum("1", required)maximum("4096", required)zero_is_default(true, required)sources(array of string, required, min items 3, max items 3)restart_required(false, required)yaml_requires_restart(true, required)
QuotaEmpty
Section titled “QuotaEmpty”Type: object
QuotaFinanceEvidence
Section titled “QuotaFinanceEvidence”Type: object
archived(boolean) — Evidence read from preserved terminal ledger archive; does not authorize another settlementreservation_id(string, required)state(string, required)measurement_available(boolean, required)tokens_proven(boolean, required)measurement_fingerprint(string)measurement(QuotaMeasurement)provider_request_id(string)reconciled_charge_usd(string)budget_basis(string, required)
QuotaFinanceImportMetadata
Section titled “QuotaFinanceImportMetadata”Type: object
id(string, required)source(string, required)account_id(string, required)coverage(string, required)source_sha256(string, required)fingerprint(string, required)period_start(string (date-time), required)period_end(string (date-time), required)created_at(string (date-time), required)
QuotaFinanceLine
Section titled “QuotaFinanceLine”Type: object
import_id(string, required)id(string, required)provider_id(string, required)connection(string, required)upstream_model(string, required)inference_id(string, required)kind(string, required)amount_usd(string, required)match_state(string, required)estimated_usd(string)
QuotaFinanceReport
Section titled “QuotaFinanceReport”Type: object
version(integer (int64), required, min 0)currency("USD", required)trust(string, required)invoice_coverage(string, required)charges_usd(string, pattern^-?(0|[1-9][0-9]*)(\.[0-9]{1,12})?$)credits_usd(string, pattern^-?(0|[1-9][0-9]*)(\.[0-9]{1,12})?$)taxes_usd(string, pattern^-?(0|[1-9][0-9]*)(\.[0-9]{1,12})?$)adjustments_usd(string, pattern^-?(0|[1-9][0-9]*)(\.[0-9]{1,12})?$)net_usd(string, pattern^-?(0|[1-9][0-9]*)(\.[0-9]{1,12})?$)linked_estimated_usd(string, pattern^-?(0|[1-9][0-9]*)(\.[0-9]{1,12})?$)total_lines(integer (int64), required, min 0)matched_lines(integer (int64), min 0)unmatched_lines(integer (int64), min 0)aggregate_lines(integer (int64), min 0)usd_reconciliations(integer (int64), min 0)archived_reservations(integer (int64), min 0)imports(array of QuotaFinanceImportMetadata, required, max items 100)lines(array of QuotaFinanceLine, required, max items 100)has_more(boolean, required)linked_estimate_lines(integer (int64), min 0)linked_unestimated_lines(integer (int64), min 0)limit(integer (int64), min 0)offset(integer (int64), min 0)imports_do_not_automatically_adjust_budget(boolean)usd_adjustment_requires_attestation(boolean)
QuotaLedger
Section titled “QuotaLedger”Type: object
limit(integer, required, min 1, max 100)offset(integer, required, min 0, max 10000)items(array of object, required, max items 100)id(string, required)request_id(string)trace_id(string)key_id(string, required)team_id(string, required)model(string, required)provider_id(string, required)upstream_model(string, required)state(string, required, one of"reserved","settled","released","unknown")unit(string)variant(string)reserved_measurement(integer (int64)) — Millionths of physical units; not tokensactual_measurement(integer (int64))attribution(QuotaAttribution)reserved_tokens(integer (int64), required)reserved_usd(string, required) — Reserved USD only when budget_applied is true; otherwise not a monetary measurementbudget_applied(boolean, required) — Whether admission captured an approved rate and enforced a USD budgetinput_tokens(integer (int64))output_tokens(integer (int64))overrun_tokens(integer (int64), min 1) — Settled tokens above reserved_tokens: the provider billed more than the bound, which is debited in full; absent when within itoverrun_usd(string) — Settled USD above reserved_usd (a budget can overrun in money while staying within its tokens); debited in full; absent when within itactual_usd(string) — Settled USD using the captured approved rate; absent for TPM-only or unresolved reservationscreated_at(string (date-time), required)settled_at(string (date-time))
QuotaLedgerRetention
Section titled “QuotaLedgerRetention”Type: object
version(integer (int64), required, min 0)retain_days(integer, required, min 32, max 3650)limit(integer, required, min 1, max 1000)cutoff(string (date-time), required)fingerprint(string, required, pattern^[a-f0-9]{64}$)eligible(integer (int64), min 0)archived(integer (int64), min 0)unknown_preserved(integer (int64), min 0)reserved_preserved(integer (int64), min 0)archive_total(integer (int64), min 0)confirmation("ARCHIVE_TERMINAL_LEDGER", required)
QuotaLedgerRetentionWrite
Section titled “QuotaLedgerRetentionWrite”Type: object
preview(QuotaLedgerRetention, required)confirmation("ARCHIVE_TERMINAL_LEDGER", required)
QuotaManagedIntegerParameterDefinition
Section titled “QuotaManagedIntegerParameterDefinition”Type: object or object
- One of (1): object
key("quotas.settings.overrun_alert_tolerance_percent", required)group("quota", required)kind("managed_integer", required)default("0", required)minimum("0", required)maximum("1000", required)presence("default", required)creation_preset(null, required)sources(array of string, required, min items 3, max items 3)restart_required(false, required)yaml_requires_restart(true, required)
- One of (2): object
key("quotas.settings.overrun_alert_dedupe_seconds", required)group("quota", required)kind("managed_integer", required)default("0", required)minimum("0", required)maximum("86400", required)presence("default", required)creation_preset(null, required)sources(array of string, required, min items 3, max items 3)restart_required(false, required)yaml_requires_restart(true, required)
QuotaManualRelease
Section titled “QuotaManualRelease”Type: object
One finance-trail row of a manual release; written once.
reservation_id(string, required)operation_id(string, required)organization_id(string, required)team_id(string, required)key_id(string, required)provider_id(string, required)model(string, required)upstream_model(string, required)reason(string, required)reserved_tokens(integer (int64), required)reserved_usd(string, required)budget_applied(boolean, required)windows(array of QuotaReleasedWindow, required)provider_may_have_charged(true, required)reservation_created_at(string (date-time), required)actor(string, required) — The console user or token that released it.request_id(string, required)released_at(string (date-time), required)charge(QuotaReleaseCharge)
QuotaManualReleaseInput
Section titled “QuotaManualReleaseInput”Type: object
Exactly one of reservation_ids, or filter with expected_count.
id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$) — The operation ID; it makes a repeat idempotent.version(integer (int64), required, min 0) — The finance version read from the list.reason(string, required, min length 10, max length 500) — Why the reservation is released, in one line; kept in the finance trail.confirmation("RELEASE_UNKNOWN_PROVIDER_MAY_HAVE_CHARGED", required)reservation_ids(array of string, min items 1, max items 100)filter(QuotaUnknownFilter)expected_count(integer, min 1, max 100) — With filter: how many unknown reservations the administrator reviewed. The release is refused (release_count_mismatch) when the filter selects another number.
QuotaManualReleaseResult
Section titled “QuotaManualReleaseResult”Type: object
id(string, required)version(integer (int64), required) — The finance version after the release; it advances by one per reservation.idempotent(boolean)released(array of QuotaManualRelease, required)notice(string, required) — States that the provider may still have charged and that only the gateway’s holds were given back.
QuotaMeasurement
Section titled “QuotaMeasurement”Type: object
id(string, required)provider_id(string, required)response_model(string, min length 1, max length 256, pattern^[A-Za-z0-9][A-Za-z0-9._:/+-]{0,255}$) — Actual observed response model, validated against the immutable approved rate; absent for legacy evidenceupstream_model(string, required)connection(string, required)unit(string)variant(string)input_tokens(integer (int64), required, min 0)output_tokens(integer (int64), required, min 0)unit_count(integer (int64), min 0)cache_read_tokens(integer (int64), min 0) — Input tokens read from the provider prompt cache, part of input_tokens; absent when zerocache_write_tokens(integer (int64), min 0) — Input tokens written to the provider prompt cache, part of input_tokens; absent when zerocache_write_1h_tokens(integer (int64), min 0) — Input tokens written to the provider prompt cache with a one-hour time to live, part of input_tokens; absent when zerooverrun_tokens(integer (int64), min 1) — Measured tokens above the reservation’s bound, debited in full; absent when within itoverrun_usd(string) — Measured cost above the reserved USD, debited in full; absent when within it
QuotaNativeBillingImport
Section titled “QuotaNativeBillingImport”Type: object
id(string, required)source(string, required, one of"openai_costs","anthropic_costs","google_billing_export")account_id(string, required)period_start(string (date-time), required)period_end(string (date-time), required)coverage(string, required, one of"partial","complete_export")provider_id(string, required)connection(string, required, pattern^[a-f0-9]{64}$)pages(array of any, required, min items 1, max items 32)
QuotaNativeBillingWrite
Section titled “QuotaNativeBillingWrite”Type: object
version(integer (int64), required, min 0)statement(QuotaNativeBillingImport, required)
QuotaPolicy
Section titled “QuotaPolicy”Type: any and any and any
At least tpm, tpd, budget_usd or child must be present. Budget requires a named UTC calendar period; week, quarter and year require calendar_budget_periods, and lifetime requires lifetime_budget_limits for enforcement. Source is computed on reads and must be omitted on writes.
- All of (1): any
- All of (2): any
- All of (3): any
id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)subject(string, required, one of"key","team","model","user","project","organization","end_user","global","provider","group","tenant","membership","subjects") — group names a governed attribution group (attribution_groups) by its id; tenant (T168, organizations) is a gateway organization by its id and counts every key of its teams (distinct from organization, a financial quota account); membership (T168, membership_budgets) is <user>/<team>, one user’s attributed keys of one team; subjects (T168, quota_subject_lists) takes the list in subjects, each listed subject with its own counter, and an empty subject_idsubject_id(string, required, max length 128) — Required except for subject subjects, where it is emptysubjects(array of object, min items 1, max items 256) — Only with subject subjects (T168): unique listed subjects, each with its own counter under this policy’s limitssubject(string, required, one of"key","team","user","project","membership")id(string, required, min length 1, max length 128) — Canonical ID; <user>/<team> for membership
soft_budget(boolean) — USD threshold alerts without USD denial; TPM remains hardalert_thresholds(array of integer, max items 5)tpm(integer (int64), min 0, max 100000000)tpd(integer (int64), min 0, max 100000000000) — Tokens per UTC day; enforced only under boot tpd_limits (requires tpm_limits), on the same reservation and settlement as TPMbudget_usd(string, pattern^(0|[1-9][0-9]{0,6})(\.[0-9]{1,6})?$) — Positive USD decimal up to 1000000budget_period(string, one of"day","week","month","quarter","year","lifetime")temporary_budget_increase(QuotaTemporaryBudgetIncrease or null) — Optional exact additive allowance per selected window. PUT omission preserves the existing object under CAS; explicit null clears it. Requires positive base USD and base plus amount at most1000000. Expired profiles remain valid declarations. Flag-off enforces the base ceiling; expiry never resets consumption or holds.- One of (1): QuotaTemporaryBudgetIncrease
- One of (2): null
disabled(boolean)child(QuotaChildTemplate)source(string, one of"yaml","console", read-only)
QuotaPolicyAccess
Section titled “QuotaPolicyAccess”Type: object
Safe current authority for calendar-policy writes; never grants inference or replaces transactional mutation checks.
calendar_write(boolean, required)
QuotaPolicyAccessV2
Section titled “QuotaPolicyAccessV2”Type: object
Explicit metadata16 projection; earlier selectors retain the calendar-only capability. Neither permission replaces live mutation authorization.
calendar_write(boolean, required)lifetime_write(boolean, required)
QuotaPolicyAccessV3
Section titled “QuotaPolicyAccessV3”Type: object
Explicit metadata17 projection adds temporary-profile mutation authority; metadata1–15 retain calendar only and16 retains calendar/lifetime. All writes still require live transactional authorization.
calendar_write(boolean, required)lifetime_write(boolean, required)temporary_write(boolean, required)
QuotaPolicyAccessV4
Section titled “QuotaPolicyAccessV4”Type: object
Metadata18 appends global/provider policy write capabilities. Earlier selectors retain their exact shapes. Live permission, license, references and quota/control CAS still apply.
calendar_write(boolean, required)lifetime_write(boolean, required)temporary_write(boolean, required)global_write(boolean, required)provider_write(boolean, required)
QuotaPolicyResult
Section titled “QuotaPolicyResult”Type: object
version(integer (int64), required)policy(QuotaPolicy, required)budget_entered(FXBudgetConversion)
QuotaPolicyWrite
Section titled “QuotaPolicyWrite”Type: object
version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)policy(QuotaPolicy, required)budget_entered(object) — T168 fx_display. A budget in another currency, instead of policy.budget_usd. Converted once, at the latest fresh ECB rate, half to even at 6 decimals, and stored as budget_usd; 409 fx_rate_unavailable when the rate is missing or stale. The conversion is recorded with the rate used.amount(string, required, pattern^(0|[1-9][0-9]{0,11})(\.[0-9]{1,6})?$)currency(string, required, max length 3)
QuotaRate
Section titled “QuotaRate”Type: object or object
Text rates require both token prices. Physical rates require an explicit unit, variant and per-unit price and cannot carry positive token prices.
- One of (1): object
unit("")unit_usd("")variant("")input_usd_per_million(any, required, min length 1)output_usd_per_million(any, required, min length 1)
- One of (2): object
unit(any, required, one of"image","audio_second","video_second","rerank_search")response_models(any, max items 0)variant(any, required, min length 1)unit_usd(any, required, min length 1)input_usd_per_million(any, one of"","0")output_usd_per_million(any, one of"","0")
provider_id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)model(string, required, min length 1, max length 256)response_models(array of string, min items 0, max items 8) — Additional exact response model IDs explicitly approved for this text rate; never inferred from traffic or catalog metadata. Omission or an empty array preserves exact request model matching. Null is rejected; physical rates accept only omission or an empty array.connection(string, required, pattern^[a-f0-9]{64}$) — Approved exact protocol/Base URL/API version fingerprintinput_usd_per_million(string, pattern^$|^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — USD per million text tokens up to 10000output_usd_per_million(string, pattern^$|^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — USD per million text tokens up to 10000audio_input_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, text rates only, together with audio_output_usd_per_million: USD per million audio input tokens of a realtime response. A budget on a realtime model requires both.audio_output_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, text rates only, together with audio_input_usd_per_million: USD per million audio output tokens of a realtime response.cache_read_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, text rates only: USD per million input tokens read from the provider prompt cache. Without it, an answer that reports cache reads keeps its reservation instead of being charged as plain input.cache_write_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, text rates only: USD per million input tokens written to the provider prompt cache (five-minute writes). Without it, an answer that reports cache writes keeps its reservation. A reservation prices every input token at the highest approved input-side price.cache_write_1h_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, text rates only: USD per million input tokens written to the prompt cache with a one-hour time to live. Without it, an answer that reports one-hour writes keeps its reservation.long_context(object) — Optional, text rates only. A request whose input tokens (cache included) exceed threshold_tokens is billed, input, output and cache, at these prices. A reservation whose input estimate exceeds the threshold is priced at the highest prices of both tiers.threshold_tokens(integer (int64), required, min 1, max 100000000)input_usd_per_million(string, required, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)output_usd_per_million(string, required, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)cache_read_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)cache_write_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)cache_write_1h_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)
service_tiers(object) — Optional, text rates only (T110): approved prices of the service tiers a chat or Responses request may ask for (service_tier), or a Gemini generateContent request (serviceTier, T077.006), and an answer may report. A request asking for a tier the rate does not approve is refused before the provider is called (422 service_tier_not_approved); fast reserves at the priority price. A request asking for a tier reserves every token at the higher of that tier’s and the standard prices. An answer reported in a tier without approved prices, or a non-standard tier asked for and not reported, keeps its reservation instead of settling at the standard price. provisioned (T077.005) prices Gemini provisioned throughput (zero or the committed rate); an answer served there without it settles at the standard price.- any other key: object
input_usd_per_million(string, required, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)output_usd_per_million(string, required, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)cache_read_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)cache_write_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)cache_write_1h_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$)
- any other key: object
image_input_tokens(integer (int64), min 1, max 1000000) — Optional, text rates only: the most input tokens one image can bill on this model, set by the operator from the provider pricing rules. Each image of a request is reserved at this ceiling, or at the tokens the provider documents for its size (or for any image, when its size is unknown) when larger, and settled from the reported prompt tokens; without it, a request with images is refused (422 quota_profile_unsupported), under a budget or a token ceiling.max_images(integer (int64), min 1, max 1000) — Optional, with image_input_tokens: the most images one request may carry.image_urls(boolean) — Optional, with image_input_tokens: accept image URLs on a connection whose provider does not document that it bills a URL as an image only (any connection other than the OpenAI API and Claude Messages on the Anthropic API). The operator vouches that image_input_tokens bounds whatever such a URL bills; without it, those URLs are refused (422).image_floor(string, one of"ceiling") — Optional, with image_input_tokens: ceiling reserves each image at image_input_tokens alone, overriding the provider’s documented tokens for its size. Omitted, an image is reserved at the larger of the two.image_input_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, text rates only, together with image_output_usd_per_million (T060.005): USD per million image input tokens of a GPT Image answer (usage.input_tokens_details.image_tokens). Not combinable with long_context or service_tiers.image_output_usd_per_million(string, pattern^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Optional, together with image_input_usd_per_million: USD per million image output tokens. An answer that does not split its output is settled as image output only when output_usd_per_million equals this price; otherwise the reservation is held.image_output_tokens(integer (int64), min 1, max 1000000) — Optional, beside the image token prices: the operator ceiling of output tokens one generated image can bill, from the provider pricing rules. A GPT Image request under quota_image_tokens reserves n times it; without it the request is refused (422 quota_profile_unsupported), under a budget or a token ceiling.max_output_tokens(integer (int64), min 1, max 10000000) — Optional, text rates only: the most output tokens this model writes in one answer, as the provider documents it. A request that asks for more is refused before the call (output_limit). Omitted, only quotas.settings.max_output_tokens bounds the limit.reasoning(boolean) — Optional, text rates only: the model reasons by default, so an OpenAI-compatible chat call must bound its output with max_completion_tokens (max_tokens may not bound reasoning); a call with max_tokens only is refused (422).unit(string, one of"","image","audio_second","video_second","rerank_search")variant(string, pattern^$|^[a-z0-9][a-z0-9_-]{0,127}$)unit_usd(string, pattern^$|^(0|[1-9][0-9]{0,4})(\.[0-9]{1,6})?$) — Approved USD per physical unit, maximum six decimal placesrevision(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)
QuotaRateResult
Section titled “QuotaRateResult”Type: object
version(integer (int64), required)rates(array of QuotaRate, required, max items 256)
QuotaRatesWrite
Section titled “QuotaRatesWrite”Type: object
version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)rates(array of QuotaRate, required, max items 256)
QuotaReconcileInput
Section titled “QuotaReconcileInput”Type: object
version(integer (int64), required, min 0)id(string, required)reservation_id(string, required, pattern^[a-f0-9]{32}$)measurement_fingerprint(string, required, pattern^[a-f0-9]{64}$)
QuotaReconcileResult
Section titled “QuotaReconcileResult”Type: object
version(integer (int64), min 0)id(string)reservation_id(string)state(string)evidence_fingerprint(string)idempotent(boolean)
QuotaReleaseCharge
Section titled “QuotaReleaseCharge”Type: object
A provider charge applied to a reservation that had been released by hand (T220): the charged amount went back into each money window the release gave back that was still the current one. Written once per reservation and per charge line.
id(string, required) — The operation ID of the reconcile-charge request.import_id(string, required)line_id(string, required)charged_usd(string, required) — The attested charge; it may be smaller or larger than the released hold, or zero.windows(array of object, required)subject(string, required)subject_id(string, required)dimension(string, required) — A money dimension: day, week, month, quarter, year or lifetime. Token windows are never re-held.window_start(string (date-time), required)applied(integer (int64), required) — 1e-12 USD added back to the window; 0 when skipped.applied_usd(string, required)skipped(string, one of"window_rolled_over","zero_charge")
windows_applied(integer, required)windows_skipped(integer, required)actor(string, required)request_id(string, required)applied_at(string (date-time), required)
QuotaReleasedWindow
Section titled “QuotaReleasedWindow”Type: object
One counter a manual release gives back.
subject(string, required) — The budget subject: key, team, user, tenant, global, provider and the others a policy may name.subject_id(string, required)dimension(string, required) — tokens (TPM minute), tokens_day, day, week, month, quarter, year or lifetime.window_start(string (date-time), required) — The window the reservation was admitted in.amount(integer (int64), required) — Tokens on a token dimension; 1e-12 USD on a money one.amount_usd(string) — Decimal USD of a money dimension; absent on a token one.open(boolean, required) — Whether that window is still the current one. An ended window changes no current balance; a lifetime window is always open.
QuotaSettings
Section titled “QuotaSettings”Type: object
Bounds on protected requests and on the quota_reservation_overrun alert. A zero or omitted request-bound field takes its default; both alert controls preserve real zero.
max_input_tokens(integer (int64), min 0, max 100000000) — Most input tokens one reservation may estimate, images included. Default 2000000.max_output_tokens(integer (int64), min 0, max 10000000) — Most output tokens one reservation may hold: a request reserves the output limit it asks for, and one that asks for more is refused (output_limit). An approved rate may declare a lower maximum for its model. Default 1000000.max_items(integer, min 0, max 100000) — Most messages, contents or input items in one request. Default 1024.max_tools(integer, min 0, max 4096) — Most function tools (Gemini function declarations) in one request. Default 128.max_content_parts(integer, min 0, max 4096) — Most parts or blocks in one message. Default 128.overrun_alert_tolerance_percent(integer, min 0, max 1000) — An overrun raises the alert only above this share of the reservation, in tokens or USD; the ledger records every overrun. Default 0.overrun_alert_dedupe_seconds(integer, min 0, max 86400) — With a window, the overruns of one model under the same team, key or end user fold into one event that counts them and lists every reservation, until a channel picks it up; 0 raises one per reservation. Default 0.
QuotaSettingsWrite
Section titled “QuotaSettingsWrite”Type: object
version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)settings(QuotaSettings, required)
QuotaStatus
Section titled “QuotaStatus”Type: object
observed_at(string (date-time), required)tpm_enabled(boolean, required)budget_enabled(boolean, required)items(array of object, required, max items 128)id(string, required)subject(string, required, one of"key","team","model","user","project","organization","end_user")subject_id(string, required)tpm(integer (int64))tokens_used(integer (int64)) — Settled plus outstanding token reservationstokens_remaining(integer (int64))minute_resets_at(string (date-time))tpd(integer (int64))tokens_day_used(integer (int64)) — Settled plus outstanding token reservations in the current UTC daytokens_day_remaining(integer (int64))day_resets_at(string (date-time))soft_budget(boolean)alert_thresholds(array of integer, max items 5)budget_usd(string)budget_period(string, one of"day","month")committed_usd(string) — Settled plus outstanding USD reservationsremaining_usd(string)budget_resets_at(string (date-time))
QuotaStatusItemV2
Section titled “QuotaStatusItemV2”Type: object
id(string, required)subject(string, required, one of"key","team","model","user","project","organization")subject_id(string, required)tpm(integer (int64))tokens_used(integer (int64)) — Settled plus outstanding token reservationstokens_remaining(integer (int64))minute_resets_at(string (date-time))tpd(integer (int64))tokens_day_used(integer (int64)) — Settled plus outstanding token reservations in the current UTC daytokens_day_remaining(integer (int64))day_resets_at(string (date-time))soft_budget(boolean)alert_thresholds(array of integer, max items 5)budget_usd(string)budget_period(string, one of"day","week","month","quarter","year")committed_usd(string) — Settled plus outstanding USD reservationsremaining_usd(string)budget_resets_at(string (date-time))budget_window_start(string (date-time)) — Inclusive current calendar boundary in UTC; budget_resets_at is exclusive.
QuotaStatusItemV3
Section titled “QuotaStatusItemV3”Type: any
- All of (1): any
id(string, required)subject(string, required, one of"key","team","model","user","project","organization")subject_id(string, required)tpm(integer (int64))tokens_used(integer (int64)) — Settled plus outstanding token reservationstokens_remaining(integer (int64))minute_resets_at(string (date-time))tpd(integer (int64))tokens_day_used(integer (int64)) — Settled plus outstanding token reservations in the current UTC daytokens_day_remaining(integer (int64))day_resets_at(string (date-time))soft_budget(boolean)alert_thresholds(array of integer, max items 5)budget_usd(string)budget_period(string, one of"day","week","month","quarter","year","lifetime")committed_usd(string) — Settled plus outstanding USD reservationsremaining_usd(string)budget_resets_at(string or null (date-time), required)budget_window_start(string or null (date-time), required) — UTC calendar boundary or null for lifetime/no USD; never the private counter anchor.
QuotaStatusItemV4
Section titled “QuotaStatusItemV4”Type: any
- All of (1): any
id(string, required)subject(string, required, one of"key","team","model","user","project","organization")subject_id(string, required)tpm(integer (int64))tokens_used(integer (int64)) — Settled plus outstanding token reservationstokens_remaining(integer (int64))minute_resets_at(string (date-time))tpd(integer (int64))tokens_day_used(integer (int64)) — Settled plus outstanding token reservations in the current UTC daytokens_day_remaining(integer (int64))day_resets_at(string (date-time))soft_budget(boolean)alert_thresholds(array of integer, max items 5)budget_usd(string)budget_period(string, one of"day","week","month","quarter","year","lifetime")committed_usd(string) — Settled plus outstanding USD reservationsremaining_usd(string)budget_resets_at(string or null (date-time), required)budget_window_start(string or null (date-time), required) — UTC calendar boundary or null for lifetime/no USD; never the private counter anchor.temporary_budget_increase(QuotaTemporaryBudgetIncrease or null, required)- One of (1): QuotaTemporaryBudgetIncrease
- One of (2): null
effective_budget_usd(string or null, required) — Base plus active allowance; base while staged/expired, null when no USD measurement is exposed.temporary_increase_applied(boolean, required)temporary_increase_state(string, required, one of"not_configured","budget_disabled","expired","staged","active") — Observed DB state, in that precedence order. It neither grants authority nor overrides disabled calendar/lifetime protection.
QuotaStatusItemV5
Section titled “QuotaStatusItemV5”Type: any and any
- All of (1): any
- All of (2): any
id(string, required)subject(string, required, one of"key","team","model","user","project","organization","global","provider","group")subject_id(string, required)tpm(integer (int64))tokens_used(integer (int64)) — Settled plus outstanding token reservationstokens_remaining(integer (int64))minute_resets_at(string (date-time))tpd(integer (int64))tokens_day_used(integer (int64)) — Settled plus outstanding token reservations in the current UTC daytokens_day_remaining(integer (int64))day_resets_at(string (date-time))soft_budget(boolean)alert_thresholds(array of integer, max items 5)budget_usd(string)budget_period(string, one of"day","week","month","quarter","year","lifetime")committed_usd(string) — Settled plus outstanding USD reservationsremaining_usd(string)budget_resets_at(string or null (date-time), required)budget_window_start(string or null (date-time), required) — UTC calendar boundary or null for lifetime/no USD; never the private counter anchor.temporary_budget_increase(QuotaTemporaryBudgetIncrease or null, required)- One of (1): QuotaTemporaryBudgetIncrease
- One of (2): null
effective_budget_usd(string or null, required) — Base plus active allowance; base while staged/expired, null when no USD measurement is exposed.temporary_increase_applied(boolean, required)temporary_increase_state(string, required, one of"not_configured","budget_disabled","expired","staged","active") — Observed DB state, in that precedence order. It neither grants authority nor overrides disabled calendar/lifetime protection.
QuotaStatusV2
Section titled “QuotaStatusV2”Type: object
One database-clock quota snapshot. Version is the quota version, not the global configuration version. Committed includes open reservations; not an invoice. Flag-off applicable calendar budgets block inference while USD protection is enabled.
schema_version(2, required)version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)observed_at(string (date-time), required)tpm_enabled(boolean, required)budget_enabled(boolean, required)calendar_budget_periods_enabled(boolean, required)items(array of QuotaStatusItemV2, required, max items 128)
QuotaStatusV3
Section titled “QuotaStatusV3”Type: object
Complete supported quota snapshot; lifetime has no temporal renewal and null start/reset. Committed includes unresolved holds; not provider invoicing or complete pre-protection history.
schema_version(3, required)version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)observed_at(string (date-time), required)tpm_enabled(boolean, required)budget_enabled(boolean, required)calendar_budget_periods_enabled(boolean, required)lifetime_budget_limits_enabled(boolean, required)items(array of QuotaStatusItemV3, required, max items 128)
QuotaStatusV4
Section titled “QuotaStatusV4”Type: object
One PostgreSQL-clock snapshot including temporary allowance state. Settled use and unresolved holds remain unchanged by expiry, flag changes or edits. This is not an invoice.
schema_version(4, required)version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)observed_at(string (date-time), required)tpm_enabled(boolean, required)budget_enabled(boolean, required)calendar_budget_periods_enabled(boolean, required)lifetime_budget_limits_enabled(boolean, required)items(array of QuotaStatusItemV4, required, max items 128)temporary_budget_increases_enabled(boolean, required)
QuotaStatusV5
Section titled “QuotaStatusV5”Type: object
One database-clock snapshot with cumulative installation-global and actual selected-provider USD scopes. This covers retained protected inference, not a complete provider invoice. Applicable flag-off scopes fail closed.
schema_version(5, required)version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)observed_at(string (date-time), required)tpm_enabled(boolean, required)budget_enabled(boolean, required)calendar_budget_periods_enabled(boolean, required)lifetime_budget_limits_enabled(boolean, required)items(array of QuotaStatusItemV5, required, max items 128)temporary_budget_increases_enabled(boolean, required)global_budget_limits_enabled(boolean, required)provider_budget_limits_enabled(boolean, required)
QuotaTemporaryBudgetIncrease
Section titled “QuotaTemporaryBudgetIncrease”Type: object
amount_usd(string, required, pattern^(0|[1-9][0-9]{0,6})(\.[0-9]{1,6})?$) — Positive exact USD, at most six fractional digits. Base plus amount must not exceed1000000.expires_at(string (date-time), required, min length 20, max length 35, pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$) — Absolute RFC3339 instant with explicit timezone, normalized to UTC. Exclusive expiry against the database clock after all counter locks.
QuotaTemporaryHistory
Section titled “QuotaTemporaryHistory”Type: object
items(array of QuotaTemporaryHistoryRow, required, max items 100)total(integer, required, min 0)limit(integer, required, min 1, max 100)offset(integer, required, min 0, max 10000)truncated(boolean, required)
QuotaTemporaryHistoryRow
Section titled “QuotaTemporaryHistoryRow”Type: object
id(string, required, pattern^[1-9][0-9]*$) — Opaque decimal database identity; keep as a string.policy_id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)quota_version(integer (int64), required, min 0)source(string, required, one of"yaml","effective")action(string, required)actor(string, required)request_id(string, required)trace_id(string, required)occurred_at(string (date-time), required)before_policy(QuotaTemporaryPolicyContext or null, required)- One of (1): QuotaTemporaryPolicyContext
- One of (2): null
after_policy(QuotaTemporaryPolicyContext or null, required)- One of (1): QuotaTemporaryPolicyContext
- One of (2): null
QuotaTemporaryPolicyContext
Section titled “QuotaTemporaryPolicyContext”Type: any
Narrow historical context; null at either side means no temporary context recorded, not absence of the entire policy. YAML source is a declared base-adoption event and may be masked by an override.
- All of (1): any
id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)subject(string, required, one of"key","team","model","user","project","organization","end_user","global","provider")subject_id(string, required, min length 1, max length 128)budget_usd(string, required, pattern^$|^(0|[1-9][0-9]{0,6})(\.[0-9]{1,6})?$) — Positive USD decimal up to 1000000budget_period(string, required, one of"","day","week","month","quarter","year","lifetime")disabled(boolean, required)temporary_budget_increase(QuotaTemporaryBudgetIncrease or null, required)- One of (1): QuotaTemporaryBudgetIncrease
- One of (2): null
QuotaUnknownFilter
Section titled “QuotaUnknownFilter”Type: object
At least one member; a filter that selects every unknown reservation is refused.
organization_id(string, max length 256)team_id(string, max length 256)key_id(string, max length 256)provider_id(string, max length 256)model(string, max length 256)created_after(string (date-time))created_before(string (date-time))
QuotaUnknownReservation
Section titled “QuotaUnknownReservation”Type: object
id(string, required, pattern^[a-f0-9]{32}$)request_id(string, required)organization_id(string, required) — The organization of the reservation’s team, as stored; empty for a team declared only in YAML.team_id(string, required)key_id(string, required)model(string, required)provider_id(string, required)upstream_model(string, required)reserved_tokens(integer (int64), required)reserved_usd(string, required)budget_applied(boolean, required) — Whether an approved USD rate priced the reservation.created_at(string (date-time), required)unknown_since(string (date-time))releasable(boolean, required)blocked(string, one of"measurement_available","charge_reconciled","outside_organization")windows(array of QuotaReleasedWindow, required)
QuotaUnknownReservationPage
Section titled “QuotaUnknownReservationPage”Type: object
items(array of QuotaUnknownReservation, required)total(integer (int64), required) — Reservations the filter selects in the session’s scope.limit(integer, required)offset(integer, required)version(integer (int64), required) — The finance version a release must send back.confirmation("RELEASE_UNKNOWN_PROVIDER_MAY_HAVE_CHARGED", required)max_per_release(100, required)notice(string, required)
QuotaVersion
Section titled “QuotaVersion”Type: object
version(integer (int64), required, min 0)base_fingerprint(string, required, pattern^[a-f0-9]{64}$)
QuotaVideoJob
Section titled “QuotaVideoJob”Type: object
outputs(array of string (uri), max items 1) — Transient HTTPS output links on successful refresh only; never stored or loggedid(string, required)team_id(string, required)model(string, required)provider_id(string, required)reservation_id(string)variant(string, required)request_id(string, required)trace_id(string, required)terminal_proof(string)owner_kind(string, one of"user","workload") — T168, video_job_owner: the key owner captured when the job was created; its polls are attributed to it. Absent for jobs created without the flag.owner_id(string, max length 128)state(string, required, one of"submitting","queued","running","succeeded","failed","cancelled","deleted","unknown")seconds(integer, required, min 2, max 10)version(integer (int64), required, min 1)created_at(string (date-time), required)updated_at(string (date-time), required)last_polled_at(string (date-time))
QuotaVideoVersion
Section titled “QuotaVideoVersion”Type: object
version(integer (int64), required, min 1)