Skip to content

Commit 175b135

Browse files
robert-j-yOpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#135)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 0503928 commit 175b135

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14342,6 +14342,27 @@ paths:
1434214342
description: Number of tokens in the input
1434314343
example: 8
1434414344
type: integer
14345+
prompt_tokens_details:
14346+
description: >-
14347+
Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text +
14348+
image) and the upstream provider returns modality-level usage data. Only non-zero modality
14349+
counts are included.
14350+
properties:
14351+
audio_tokens:
14352+
description: Number of audio tokens in the input
14353+
type: integer
14354+
image_tokens:
14355+
description: Number of image tokens in the input
14356+
example: 258
14357+
type: integer
14358+
text_tokens:
14359+
description: Number of text tokens in the input
14360+
example: 8
14361+
type: integer
14362+
video_tokens:
14363+
description: Number of video tokens in the input
14364+
type: integer
14365+
type: object
1434514366
total_tokens:
1434614367
description: Total number of tokens used
1434714368
example: 8

0 commit comments

Comments
 (0)