chore: update OpenAPI spec from monorepo (#214)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-04-27 20:53:22 -05:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 5bad276c29
commit 067cdc027a
+41 -16
View File
@@ -4427,6 +4427,12 @@ components:
completion_tokens: 15
completion_tokens_details:
reasoning_tokens: 5
cost: 0.0012
cost_details:
upstream_inference_completions_cost: 0.0004
upstream_inference_cost: null
upstream_inference_prompt_cost: 0.0008
is_byok: false
prompt_tokens: 10
prompt_tokens_details:
cached_tokens: 2
@@ -4456,6 +4462,16 @@ components:
nullable: true
type: integer
type: object
cost:
description: Cost of the completion
format: double
nullable: true
type: number
cost_details:
$ref: '#/components/schemas/CostDetails'
is_byok:
description: Whether a request was made using a Bring Your Own Key configuration
type: boolean
prompt_tokens:
description: Number of tokens in the prompt
type: integer
@@ -4889,6 +4905,28 @@ components:
required:
- id
type: object
CostDetails:
description: Breakdown of upstream inference costs
example:
upstream_inference_completions_cost: 0.0004
upstream_inference_cost: null
upstream_inference_prompt_cost: 0.0008
nullable: true
properties:
upstream_inference_completions_cost:
format: double
type: number
upstream_inference_cost:
format: double
nullable: true
type: number
upstream_inference_prompt_cost:
format: double
type: number
required:
- upstream_inference_prompt_cost
- upstream_inference_completions_cost
type: object
CreatedEvent:
description: Event emitted when a response is created
example:
@@ -5915,6 +5953,7 @@ components:
- embeddings
- rerank
- tts
- stt
- video
- null
nullable: true
@@ -8360,22 +8399,7 @@ components:
nullable: true
type: number
cost_details:
nullable: true
properties:
upstream_inference_completions_cost:
format: double
type: number
upstream_inference_cost:
format: double
nullable: true
type: number
upstream_inference_prompt_cost:
format: double
type: number
required:
- upstream_inference_prompt_cost
- upstream_inference_completions_cost
type: object
$ref: '#/components/schemas/CostDetails'
is_byok:
type: boolean
iterations:
@@ -10405,6 +10429,7 @@ components:
- video
- rerank
- speech
- transcription
example: text
type: string
OutputModalityEnum: