Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: 2c831a797619337ab7c5a3c81a0a5f84
docChecksum: abba447baf75e1b380e7ddbd8d38d743
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.171
configChecksum: 208880cb93f8e9dc086876a1045e3dbb
releaseVersion: 1.5.172
configChecksum: de5f13cd327926c693b86bf74a3eb383
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -24211,4 +24211,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.tts.createSpeech()`: \n * `request.speechRequest.timestampGranularities` **Added**\n * `error.status[504]` **Added**\n* `openrouter.tts.listModels()`: `response.data[].endpoints[].outputModalities[].supportedParameters.timestampGranularities` **Added**\n* `openrouter.tts.getModel()`: `response.endpoints[].outputModalities[].supportedParameters.timestampGranularities` **Added**\n"
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.5.171
version: 1.5.172
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
4 changes: 2 additions & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31888,7 +31888,7 @@ components:
description: 'Price in USD per token for prompt (input) processing'
type: 'string'
request:
description: 'Price in USD per request. For rerank endpoints priced by search unit, this is the price in USD per search unit. How search units are counted depends on the provider. For Amazon Bedrock rerank, OpenRouter counts 500-token chunks based on the estimated token count of each query-document pair, with up to 100 chunks per search unit.'
description: 'Price in USD per request. For rerank endpoints priced by search unit, this is the price in USD per search unit. How search units are counted depends on the provider. For Amazon Bedrock rerank, OpenRouter counts 500-token chunks (512-token chunks for Amazon Rerank) based on the estimated token count of each query-document pair, with up to 100 chunks per search unit.'
type: 'string'
web_search:
description: 'Price in USD per web search'
Expand Down Expand Up @@ -33945,7 +33945,7 @@ components:
description: 'Price in USD per token for prompt (input) processing'
type: 'string'
request:
description: 'Price in USD per request. For rerank endpoints priced by search unit, this is the price in USD per search unit. How search units are counted depends on the provider. For Amazon Bedrock rerank, OpenRouter counts 500-token chunks based on the estimated token count of each query-document pair, with up to 100 chunks per search unit.'
description: 'Price in USD per request. For rerank endpoints priced by search unit, this is the price in USD per search unit. How search units are counted depends on the provider. For Amazon Bedrock rerank, OpenRouter counts 500-token chunks (512-token chunks for Amazon Rerank) based on the estimated token count of each query-document pair, with up to 100 chunks per search unit.'
type: 'string'
web_search:
description: 'Price in USD per web search'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.808.1
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:f451fed3ca9ab29c36729d99441e2a0a9c3b0df59377a2f90c1bdeac8ddb9682
sourceBlobDigest: sha256:ec51fa6a1b780f14bfa1d8b9224ef6eb2553dc373aa19b42496d4359d84d408a
sourceRevisionDigest: sha256:7ce7da0d309ec852935e976093ba4adb604932ff65e116d300fa73752cb3e339
sourceBlobDigest: sha256:92caa9d5fa65ee27f937bdf6e98700e1caa690be88fd65d9cea188c230124002
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:f451fed3ca9ab29c36729d99441e2a0a9c3b0df59377a2f90c1bdeac8ddb9682
sourceBlobDigest: sha256:ec51fa6a1b780f14bfa1d8b9224ef6eb2553dc373aa19b42496d4359d84d408a
sourceRevisionDigest: sha256:7ce7da0d309ec852935e976093ba4adb604932ff65e116d300fa73752cb3e339
sourceBlobDigest: sha256:92caa9d5fa65ee27f937bdf6e98700e1caa690be88fd65d9cea188c230124002
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:e948c8939afb92e767837f3bf198919096d78b3039ecde8dc5970c371fd3c21a
codeSamplesRevisionDigest: sha256:ac9ea22a985d12d42ff9eeba43e4a59d0609cf9e0990c6f77dedc1024994336e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.808.1
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6086,4 +6086,14 @@ Based on:
### Generated
- [typescript v1.5.171] .
### Releases
- [NPM v1.5.171] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.171 - .
- [NPM v1.5.171] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.171 - .

## 2026-12-03 20:55:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.172] .
### Releases
- [NPM v1.5.172] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.172 - .
2 changes: 1 addition & 1 deletion docs/models/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ let value: Pricing = {
| `internalReasoning` | *string* | ➖ | Price in USD per internal reasoning token |
| `overrides` | [models.PricingOverride](../models/pricingoverride.mdx)[] | ➖ | Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) 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. |
| `prompt` | *string* | ✔️ | Price in USD per token for prompt (input) processing |
| `request` | *string* | ➖ | Price in USD per request. For rerank endpoints priced by search unit, this is the price in USD per search unit. How search units are counted depends on the provider. For Amazon Bedrock rerank, OpenRouter counts 500-token chunks based on the estimated token count of each query-document pair, with up to 100 chunks per search unit. |
| `request` | *string* | ➖ | Price in USD per request. For rerank endpoints priced by search unit, this is the price in USD per search unit. How search units are counted depends on the provider. For Amazon Bedrock rerank, OpenRouter counts 500-token chunks (512-token chunks for Amazon Rerank) based on the estimated token count of each query-document pair, with up to 100 chunks per search unit. |
| `webSearch` | *string* | ➖ | Price in USD per web search |
Loading