Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18394,6 +18394,44 @@ components:
required:
- type
type: object
PricingOverride:
description: >-
A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g.
min_prompt_tokens) match the request; among applicable entries, later entries win per price key; price keys
absent from an entry inherit the base price.
example:
completion: '0.00002'
min_prompt_tokens: 200000
prompt: '0.000005'
properties:
audio:
description: Overridden price in USD per audio input token
type: string
completion:
description: Overridden price in USD per token for completion (output) generation
type: string
input_audio_cache:
description: Overridden price in USD per cached audio input token
type: string
input_cache_read:
description: Overridden price in USD per cached input token (read)
type: string
input_cache_write:
description: Overridden price in USD per cache-write token
type: string
input_cache_write_1h:
description: Overridden price in USD per 1-hour cache-write token
type: string
min_prompt_tokens:
description: >-
Condition: the entry applies when the total prompt tokens of a request are strictly greater than this
threshold
format: double
type: number
prompt:
description: Overridden price in USD per token for prompt (input) processing
type: string
type: object
PromptCacheBreakpoint:
description: >-
Marks an explicit prompt-cache boundary on this content block. Everything through the block carrying this marker
Expand Down Expand Up @@ -19513,6 +19551,15 @@ components:
internal_reasoning:
description: Price in USD per internal reasoning token
type: string
overrides:
description: >-
Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its
condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win
per key; price keys absent from an entry inherit the base price. The top-level pricing keys always
reflect the price that applies under default conditions.
items:
$ref: '#/components/schemas/PricingOverride'
type: array
prompt:
description: Price in USD per token for prompt (input) processing
type: string
Expand Down Expand Up @@ -19637,6 +19684,15 @@ components:
internal_reasoning:
description: Price in USD per internal reasoning token
type: string
overrides:
description: >-
Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its
condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per
key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the
price that applies under default conditions.
items:
$ref: '#/components/schemas/PricingOverride'
type: array
prompt:
description: Price in USD per token for prompt (input) processing
type: string
Expand Down
Loading