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: 15
completion_tokens_details: completion_tokens_details:
reasoning_tokens: 5 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: 10
prompt_tokens_details: prompt_tokens_details:
cached_tokens: 2 cached_tokens: 2
@@ -4456,6 +4462,16 @@ components:
nullable: true nullable: true
type: integer type: integer
type: object 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: prompt_tokens:
description: Number of tokens in the prompt description: Number of tokens in the prompt
type: integer type: integer
@@ -4889,6 +4905,28 @@ components:
required: required:
- id - id
type: object 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: CreatedEvent:
description: Event emitted when a response is created description: Event emitted when a response is created
example: example:
@@ -5915,6 +5953,7 @@ components:
- embeddings - embeddings
- rerank - rerank
- tts - tts
- stt
- video - video
- null - null
nullable: true nullable: true
@@ -8360,22 +8399,7 @@ components:
nullable: true nullable: true
type: number type: number
cost_details: cost_details:
nullable: true $ref: '#/components/schemas/CostDetails'
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
is_byok: is_byok:
type: boolean type: boolean
iterations: iterations:
@@ -10405,6 +10429,7 @@ components:
- video - video
- rerank - rerank
- speech - speech
- transcription
example: text example: text
type: string type: string
OutputModalityEnum: OutputModalityEnum: