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
36 changes: 18 additions & 18 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: 051c57dde52610a9756f0c3fe7ec663f
docChecksum: ca521c761f2bde4fd99050656d71043d
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.218
configChecksum: e4fba92a99a76b2b94152a1450447044
releaseVersion: 1.3.219
configChecksum: 2269f52a3bdfb21d423a2ef635106378
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 43c8de89-fba2-41b5-8e37-1dc0f3135480
pristine_commit_hash: 6b14dcb950b624aac3f317e29ce8597b59205db7
pristine_tree_hash: a616bc0410733b48ee3664da02058bbb8ef8ef67
generation_id: ef574235-5397-4f7a-b4c1-3da2410dea13
pristine_commit_hash: 67cbcbf29d955cb5ff78b5f0ec2f5abbcec136b4
pristine_tree_hash: 48e43d9b6e3fc708e1199dd6913eb4ccdb0552ba
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -7368,8 +7368,8 @@ trackedFiles:
pristine_git_object: ccd8dc6bc983f75070daea91335d647dad6b3e0c
docs/components/pricing.mdx:
id: 6816d700f8b1
last_write_checksum: sha1:7a906fdda9a562826d32cc271043e09d0da4c157
pristine_git_object: 2e2df024569895487fe35c4e00bebf848ab7eaa0
last_write_checksum: sha1:4d677de7db8ef9dff32053a7594eda6420951e0b
pristine_git_object: bd2712655952f07012bb96c23ab0c8724e259f1e
docs/components/pricingoverride.mdx:
id: 74675f38c1c6
last_write_checksum: sha1:52ae52e79a817f45081bd0ff109024acdd81d936
Expand Down Expand Up @@ -7564,8 +7564,8 @@ trackedFiles:
pristine_git_object: 3def9b31d08d74324be28111b183ac748108b07e
docs/components/publicpricing.mdx:
id: 61fb18b7ff94
last_write_checksum: sha1:7fefc281ef21a2f61424bdbd638b85165de6de6c
pristine_git_object: ae37e67844449236eb381d438dd893ba01df4a70
last_write_checksum: sha1:6fd1d965f03b123c85969aeba88a88d1ece660c1
pristine_git_object: 57c90de1e826f69202b6afce81b1710320444ad9
docs/components/publicservicetier.mdx:
id: ffd85d9fcc2c
last_write_checksum: sha1:78e406250f9bb607250b74952d4ac7c816bbf7ac
Expand Down Expand Up @@ -11920,8 +11920,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:01c3a72b2a3ec3e2a78a07b90f8e0b638bf717e6
pristine_git_object: e1f02c07a7d1004a7705b576c9790e431efe1968
last_write_checksum: sha1:5260730e52e9f259a1929b793d7ff59c4d3f4050
pristine_git_object: a0aec888adbafcb59a488e7cdad2bf91b83ace37
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -11948,8 +11948,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:274af5502fcfc4d933cc925c5f329047346be23b
pristine_git_object: 320dd603d9467a3c1316da26a1ab0a285ef21873
last_write_checksum: sha1:fc953bf2b57e4473c0c83c87e0f44d35bbfd58b4
pristine_git_object: 9e0d1cf1e2984cbb3cd60ab86c74d6179f7340c8
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -14920,8 +14920,8 @@ trackedFiles:
pristine_git_object: 90bdb267893360608210843a5da0d5d68e80d41e
src/openrouter/components/pricing.py:
id: 33122e4b4dda
last_write_checksum: sha1:a6133892eeeadf19550285dc5d52709ed404dcc7
pristine_git_object: ba964a0d415104b64a749d3e4c13735677779315
last_write_checksum: sha1:54bc975ee0c553985b8e2f82a9a5d050f1c66588
pristine_git_object: 5b6ba30d0a02ac74b07195571e9ead41d34121e5
src/openrouter/components/pricingoverride.py:
id: 8984e4cc7422
last_write_checksum: sha1:e12629320e02396a2aa1dfcbacd6873fba0d4aba
Expand Down Expand Up @@ -15048,8 +15048,8 @@ trackedFiles:
pristine_git_object: 62afd71386c722b497155417e4985441273c5c1c
src/openrouter/components/publicpricing.py:
id: 96d115d83cc5
last_write_checksum: sha1:173128fd40d46435351cc807ab13f5142473032a
pristine_git_object: a572b56bc7401f96e211c90bb0b44d863e9ddf0e
last_write_checksum: sha1:d353f3adcd8efbd639e6be4f1f8ee080fefcd83f
pristine_git_object: 70eb8ec280ce790aff7e6233133379eae9ef5c11
src/openrouter/components/publicservicetier.py:
id: fc0a585024d6
last_write_checksum: sha1:a9d1074d4ce5c1fcb4cd2fb1ba593458d9174e5e
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.218
version: 1.3.219
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
4 changes: 2 additions & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30422,7 +30422,7 @@ components:
description: 'Price in USD per token for prompt (input) processing'
type: 'string'
request:
description: 'Price in USD per request. For rerank models, price in USD per search unit: one query over up to 100 documents, so a call with more documents costs a multiple of this rate'
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.'
type: 'string'
web_search:
description: 'Price in USD per web search'
Expand Down Expand Up @@ -32463,7 +32463,7 @@ components:
description: 'Price in USD per token for prompt (input) processing'
type: 'string'
request:
description: 'Price in USD per request. For rerank models, price in USD per search unit: one query over up to 100 documents, so a call with more documents costs a multiple of this rate'
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.'
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.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:aec6b71a019397e51b2cc46a0f39b44107467a5ecf4fb72d7e25a9a083896797
sourceBlobDigest: sha256:9457bc4bbd78db868cc521d31220fa723ab7e21c8894439a551e5a69aa6fcd83
sourceRevisionDigest: sha256:28a91cea0c5965c9a6794e9f971829497cbd6457798023963bee09dcc5961101
sourceBlobDigest: sha256:a99a9963c8906e74a32580770fe8250fb9ce32ddbb4de7a3b093dfd41d288f05
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:aec6b71a019397e51b2cc46a0f39b44107467a5ecf4fb72d7e25a9a083896797
sourceBlobDigest: sha256:9457bc4bbd78db868cc521d31220fa723ab7e21c8894439a551e5a69aa6fcd83
sourceRevisionDigest: sha256:28a91cea0c5965c9a6794e9f971829497cbd6457798023963bee09dcc5961101
sourceBlobDigest: sha256:a99a9963c8906e74a32580770fe8250fb9ce32ddbb4de7a3b093dfd41d288f05
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:c31b44b95c00b16d14bd6f7842725d9ba8e99f6feb4d2704f3c1f82d73442252
codeSamplesRevisionDigest: sha256:238715ac423a3c3d6f08a9d3f33f516747d75a1904c5e4e78739bdce406f365f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4949,4 +4949,14 @@ Based on:
### Generated
- [python v1.3.218] .
### Releases
- [PyPI v1.3.218] https://pypi.org/project/openrouter/1.3.218 - .
- [PyPI v1.3.218] https://pypi.org/project/openrouter/1.3.218 - .

## 2026-12-01 03:35:49
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.219] .
### Releases
- [PyPI v1.3.219] https://pypi.org/project/openrouter/1.3.219 - .
2 changes: 1 addition & 1 deletion docs/components/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ title: "Pricing"
| `internal_reasoning` | *Optional[str]* | ➖ | Price in USD per internal reasoning token |
| `overrides` | List[[components.PricingOverride](../components/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` | *str* | ✔️ | Price in USD per token for prompt (input) processing |
| `request` | *Optional[str]* | ➖ | Price in USD per request. For rerank models, price in USD per search unit: one query over up to 100 documents, so a call with more documents costs a multiple of this rate |
| `request` | *Optional[str]* | ➖ | 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. |
| `web_search` | *Optional[str]* | ➖ | Price in USD per web search |
Loading