diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 7dd030518..f45d985c5 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
- docChecksum: 94f7f50821324b3ac69922ce4af6ab21
+ docChecksum: d9d0dfdeb2220074e7e8c4be5bb41f14
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
- releaseVersion: 1.3.214
- configChecksum: cc04b65c73201a982f0923c2e13e9b73
+ releaseVersion: 1.3.215
+ configChecksum: 76ef3d7352acc406e158196714dac1f7
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
- generation_id: 4fd095ce-8400-4b40-816a-44b9e1d0cd44
- pristine_commit_hash: 702894ff28e722dcfebcd7e6d07f69b9d5d89e53
- pristine_tree_hash: 9717e3e8a0dc4ec7f959fd5044fcddf8f858b818
+ generation_id: b0c63c8b-d0b0-4a1e-9fd8-e9d5195b4afb
+ pristine_commit_hash: 74222b04c38df3f066fc72da3ae27f0833d7b626
+ pristine_tree_hash: c230951cc77663588a321c8abc2b1280fd5a2f7c
features:
python:
acceptHeaders: 3.0.0
@@ -10016,8 +10016,8 @@ trackedFiles:
pristine_git_object: 77636052b24b9c8973895543fc9bacebe8459844
docs/operations/createkeysdata.mdx:
id: bf8133a06827
- last_write_checksum: sha1:69611ae76d2c9a7213985e127570c6f3f26a39c5
- pristine_git_object: 10c6c36076db5acf9d68ca1fbe35868a34ff2595
+ last_write_checksum: sha1:294cc38986802a3b3bc44aacd59491b793a034cf
+ pristine_git_object: 35d57f21b25c9583aa9c2c2a5990c4019da48d57
docs/operations/createkeysglobals.mdx:
id: ebcc738c53da
last_write_checksum: sha1:1406d22fde760dc61b74a87cfc1803ad8b34fefd
@@ -10032,8 +10032,8 @@ trackedFiles:
pristine_git_object: 62eedd2321693acb84070b67518bcf8746e71d25
docs/operations/createkeysrequestbody.mdx:
id: 77bb49febf62
- last_write_checksum: sha1:1144e92d57f67a5938dc2b37042aceee2b38efaa
- pristine_git_object: 4525da98524a940d330f1d0402efb404c2ec0690
+ last_write_checksum: sha1:e91ddae31c666733c93c489524f2afbe5c59bea2
+ pristine_git_object: cbcf07729178f7e5fa9b4a1c0d8206cfcb3d4fd2
docs/operations/createkeysresponse.mdx:
id: 08e825fab080
last_write_checksum: sha1:ad171dae3c841d8f21b63a8266c79f22b2d5310c
@@ -10624,8 +10624,8 @@ trackedFiles:
pristine_git_object: 2b3ebb518e3369ce403a00708a4d6cbd1dbcea03
docs/operations/getkeydata.mdx:
id: 6e826a999e6b
- last_write_checksum: sha1:fab792bb627bf1e4d3bfffa028c1c9bf6a72fdc5
- pristine_git_object: dd930083614f170c42c2845cc6de27330684b46a
+ last_write_checksum: sha1:df6135d59bf7656f2e08c84a17928bdb829ae153
+ pristine_git_object: 4c8d4969a2ffd8eef09e4cd948b294c408a9f0e0
docs/operations/getkeyglobals.mdx:
id: e0e92d532c82
last_write_checksum: sha1:ca9cdd5ea3986d387b0d44dfd3ecb3120f67a3b8
@@ -10948,8 +10948,8 @@ trackedFiles:
pristine_git_object: 0be55b6db3088f83f153451eef4e9ff8f445faba
docs/operations/listdata.mdx:
id: 949d8d9f5ac7
- last_write_checksum: sha1:a4b50e06ba0795aeffc1d33395c52edfb160f92b
- pristine_git_object: 00fe959dac6669af71a54fc7b6962828f0d1b212
+ last_write_checksum: sha1:42b0ebf9a1508cff6213ec48e8051f91b93c125d
+ pristine_git_object: 97881f159c34693459d28551bbdeac554cf85ff1
docs/operations/listembeddingsmodelsglobals.mdx:
id: b9243861091c
last_write_checksum: sha1:22116c5aa7c3f69f05dfb82d98dbd66e53bfd229
@@ -11612,8 +11612,8 @@ trackedFiles:
pristine_git_object: e6d6ae202c4f7a0898897e67eda2fbaa812feef3
docs/operations/updatekeysdata.mdx:
id: d398ba596e27
- last_write_checksum: sha1:d38c919f397556b238552878b0cddc8fe5032cfb
- pristine_git_object: ac8da721dcd5bd54a9c2dd02094d28dc87cb9eb5
+ last_write_checksum: sha1:ab7d11648fc53881b85d9e61f83d192caa451fa4
+ pristine_git_object: 8166a750fc861a56a6827b796f6aed6f3b3993a8
docs/operations/updatekeysglobals.mdx:
id: b28932f180bb
last_write_checksum: sha1:287f5ea4fe6dd4824668760663b5ad5eae5e5291
@@ -11628,8 +11628,8 @@ trackedFiles:
pristine_git_object: daf63d2d520fa5e00d343cd921e825245e828200
docs/operations/updatekeysrequestbody.mdx:
id: dc55066cca3d
- last_write_checksum: sha1:8cef14b447a023db0c4d3a7cfcc8502131f8ca29
- pristine_git_object: 25cb4d0e13cbc3778d30c2fbfbbba98e937ab7de
+ last_write_checksum: sha1:500a77b74559aa1d95cff0db67bcfb3149b1ceab
+ pristine_git_object: 97d7f017e1f476664edd7210ad40ab94cbdecd0b
docs/operations/updatekeysresponse.mdx:
id: a97d51fea627
last_write_checksum: sha1:44631562c5f1edb827ac0f66d9b2b6974bcab417
@@ -11752,12 +11752,12 @@ trackedFiles:
pristine_git_object: f265978fdb338b412232349476bf1e874833c9f8
docs/sdks/analytics/README.mdx:
id: 281aa5320be1
- last_write_checksum: sha1:8c7fb2c41e1f4b0b2362093993c2b34d3591af9f
- pristine_git_object: 9ceefae52e37d6cb260a03a930bfd3b39806e8b3
+ last_write_checksum: sha1:eac16cb8441e91ae294bbc4c247bfbd80994be8f
+ pristine_git_object: 6e2f6a9572701eb308dce4cc5ee70c9be044676a
docs/sdks/apikeys/README.mdx:
id: 27fcaae1c346
- last_write_checksum: sha1:a27e7a3f00c9e51019301f4c67099aa8dd1cf397
- pristine_git_object: 070e0c9100460700192c8658676671f931949fa6
+ last_write_checksum: sha1:3bcc34ec3517f4fbe3eadb65c9ad64a1c55072cb
+ pristine_git_object: e1c261779c6ccbc2b6cf70738af9bf5b5a9925aa
docs/sdks/batch/README.mdx:
id: e367aa4f4295
last_write_checksum: sha1:451cb8ea8a6aea041d2b85a44af34e880fe27313
@@ -11856,8 +11856,8 @@ trackedFiles:
pristine_git_object: 28c3e51a827054eb167e08eebd47ba6a3fd75f6b
docs/sdks/privateendpoints/README.mdx:
id: 54dee70b8cc7
- last_write_checksum: sha1:2d1c2df07e7e74be533180cd856d939ad3fadba1
- pristine_git_object: dd973fe7aff022167bc217198048f777717a905d
+ last_write_checksum: sha1:8e1c6bc572df0f70e1607ab337b0bee76c63ebb0
+ pristine_git_object: 3339d338207481f2752f1dbd982d6aa64f8dabd1
docs/sdks/privateproviders/README.mdx:
id: 517c31195442
last_write_checksum: sha1:69cd8bc9ffad703ca458c861510c201be38f283b
@@ -11912,8 +11912,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:d57054d460fc9f85987dd24e0f3a4d55a58da926
- pristine_git_object: 8220da23d66529fbeb98bbaa2d2f8b082484e434
+ last_write_checksum: sha1:7982d06fc322f3c122d5f5853fc73bc9857fdfcb
+ pristine_git_object: b91887b336e9549e89fa4334d62e74f52bae93da
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -11940,20 +11940,20 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
- last_write_checksum: sha1:5756e41a8aaebec6963428fa44d19c1a0e6275f8
- pristine_git_object: 99201b0e4f6b244050da1c7bc1f069c6a30a1c77
+ last_write_checksum: sha1:44e65ab1b62db8f24c6e7bc3bb871ac15f98433b
+ pristine_git_object: 69ee14861804b332da5b172ad94b67aeb2a7a9d2
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
pristine_git_object: f512ec0a9dab3feb43c9add635c0a926b7728b2d
src/openrouter/analytics.py:
id: cb406b5aaabb
- last_write_checksum: sha1:3cd5d09e2d15f1e79c249d4964d056fb85bbf612
- pristine_git_object: 6a8e172e48aa655bd57615b4110f285ab02a7368
+ last_write_checksum: sha1:0818c3268af317b08a265d0eced9ada614041586
+ pristine_git_object: 976e0eb3dd65195d3815078c7db78d2ba03ba2da
src/openrouter/api_keys.py:
id: 876fac88fff6
- last_write_checksum: sha1:1232c9e30323be14c7395e2e82f6338317c9a0b2
- pristine_git_object: 1dffa8ac089cdc1152e8d1d638ca91645eda1838
+ last_write_checksum: sha1:6b3da9db7e95a73f3cf2abaf4dda5cf711681434
+ pristine_git_object: dca0e9844405262a28aa5994a136436c6a1d945a
src/openrouter/basesdk.py:
id: c5733c5a1e12
last_write_checksum: sha1:65769ff2cb5473f85b364c6213a0ddc8c68644ea
@@ -16236,8 +16236,8 @@ trackedFiles:
pristine_git_object: 8216a656ec1412a034878e257bd9de9e94fa8da1
src/openrouter/operations/createkeys.py:
id: 64ad31fdaa6c
- last_write_checksum: sha1:97eab4df5a91777912ce61592c107ec2220bd1b7
- pristine_git_object: 4b4164ca132bd16341c7d6f7fcb6106a30b24788
+ last_write_checksum: sha1:4e6081b726929446f5edef60bf004d59a402959b
+ pristine_git_object: 90eeb1bda3f838d8ec2f71df622a0857195f5c62
src/openrouter/operations/createmodelavailabilitypolicy.py:
id: e37901457787
last_write_checksum: sha1:2f023f2efe62eefdbf440cc1e220dd762868bdd6
@@ -16460,8 +16460,8 @@ trackedFiles:
pristine_git_object: 3d69c1678d900400234631c4ace61a9f8354efc2
src/openrouter/operations/getkey.py:
id: d9769da90865
- last_write_checksum: sha1:63a27034e350b578b6d5f29d6568111bc14c75c1
- pristine_git_object: 924bb00ec6b3bcb57c9fb8442407b9c3ccc92b9d
+ last_write_checksum: sha1:8a3f6fc7a11713e3abfcc35c61e5f130bb671daa
+ pristine_git_object: 25127de14ec0e01f24d9d54523eda65316a8bd3f
src/openrouter/operations/getmemberpolicyassignment.py:
id: d2e2fd55dd30
last_write_checksum: sha1:b706e4bba9ac879ae043d488dd5e83f095bf752f
@@ -16552,8 +16552,8 @@ trackedFiles:
pristine_git_object: 0365c6edd5a01c4086dfcf75d326fb48a67ad9d6
src/openrouter/operations/list.py:
id: 3ced31e3804e
- last_write_checksum: sha1:997dc831dbb43b03cf81bca5921e9fe17306678b
- pristine_git_object: dcabe942b77d27cff5e1422655c16138938d324c
+ last_write_checksum: sha1:b45463528bb90d001ce5190bd5515cb39a82cc2b
+ pristine_git_object: 0b10172e2947dd223be94056d9c2e50ca9947a49
src/openrouter/operations/listaccountpolicies.py:
id: 43e7588167c6
last_write_checksum: sha1:b45f72d17215528a2ae562e37ca99826ecea706b
@@ -16776,8 +16776,8 @@ trackedFiles:
pristine_git_object: 3787f0ce396fca69bdd7bce99d8054fec4dd23d6
src/openrouter/operations/updatekeys.py:
id: 56fb213253a8
- last_write_checksum: sha1:f893c7690f733ba25a43ff9ce70fa20ac3af3f4c
- pristine_git_object: b0d89392b6004adb23b93b6aaec7ad00eccefebd
+ last_write_checksum: sha1:443a3b9075995ba8775808b9fd1caa896fc6da40
+ pristine_git_object: c6747043df66ec5f55bce7aab569993d7b632d4d
src/openrouter/operations/updatemodelavailabilitypolicy.py:
id: d1b2f4316f03
last_write_checksum: sha1:c778c8d1210644d625357a6782307d772fcbaa46
@@ -16832,8 +16832,8 @@ trackedFiles:
pristine_git_object: 936058d4adcb7ce049c186bd93a938d7891e1b33
src/openrouter/private_endpoints.py:
id: fdbce8846ed0
- last_write_checksum: sha1:9ad3004604d7760fb231594fe29b42fb2bd74f87
- pristine_git_object: 48739b138a219e285adf62a6217a2b6fed5b71bb
+ last_write_checksum: sha1:211afe95c4b8e737cbb21aa90dff11da6c19791e
+ pristine_git_object: b5d5df05023b750805222076a4147ebf1e7b5539
src/openrouter/private_providers.py:
id: d2b888527155
last_write_checksum: sha1:73483e415ea971a08d9d76b2ed55dc164ae3953a
@@ -17344,7 +17344,7 @@ examples:
application/json: {}
responses:
"200":
- application/json: {"data": {"byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "created_at": "2025-08-24T10:30:00Z", "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "disabled": false, "external_user": null, "hash": "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943", "include_byok_in_limit": true, "label": "Updated API Key Name", "last_used_at": "2026-09-15T15:45:00Z", "limit": 75, "limit_remaining": 49.5, "limit_reset": "daily", "name": "Updated API Key Name", "updated_at": "2025-08-24T16:00:00Z", "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5, "workspace_id": "0df9e665-d932-5740-b2c7-b52af166bc11"}}
+ application/json: {"data": {"byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "created_at": "2025-08-24T10:30:00Z", "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "disabled": false, "external_user": null, "hash": "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943", "include_byok_in_limit": true, "label": "Updated API Key Name", "last_used_at": "2026-09-15T15:45:00Z", "limit": 75, "limit_remaining": 32.12, "limit_reset": "daily", "name": "Updated API Key Name", "updated_at": "2025-08-24T16:00:00Z", "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5, "workspace_id": "0df9e665-d932-5740-b2c7-b52af166bc11"}}
"400":
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
"401":
@@ -22117,7 +22117,3 @@ examples:
"500":
application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}}
examplesVersion: 1.0.2
-releaseNotes: |
- ## Python SDK Changes:
- * `open_router.tts.list_models()`: `response.data[].endpoints[].output_modalities[].languages` **Added**
- * `open_router.tts.get_model()`: `response.endpoints[].output_modalities[].languages` **Added**
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 89e1d47ec..cc1a4b732 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
- version: 1.3.214
+ version: 1.3.215
additionalDependencies:
dev:
pytest: '>=8.3'
diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml
index 242559ab9..00712c3a7 100644
--- a/.speakeasy/out.openapi.yaml
+++ b/.speakeasy/out.openapi.yaml
@@ -40915,7 +40915,7 @@ openapi: '3.1.0'
paths:
/activity:
get:
- description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys. `user_id` also requires `workspace_members:view` on an explicit non-default workspace; organization and default-workspace member filtering requires `org_members:view`, which is not available as a Custom grant. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
+ description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys, and organization-scoped Custom keys supplying `workspace_id` also require `workspace:view`. For `user_id`, non-default workspace-scoped Custom keys require `workspace_members:view` (whether or not `workspace_id` is passed), default-workspace Custom keys cannot use `user_id`, and organization-scoped Custom keys require `org_members:view` even when filtering by `workspace_id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'getUserActivity'
parameters:
- description: 'Filter by a single UTC date in the last 30 days (YYYY-MM-DD format).'
@@ -41273,7 +41273,7 @@ paths:
type: 'integer'
metrics:
items:
- description: 'Metric name'
+ description: 'Metric name. Spend metrics are in USD: `total_usage` is credit spend plus BYOK spend, `credits_usage` is credit spend only, and `byok_usage` is BYOK spend only. /meta lists the public metric catalog, and a few metrics in it are unavailable to workspace-scoped keys. A raw-only metric such as `p50_throughput` moves the query to raw generations, where `byok_usage` and `total_usage` omit external inference cost for rows without a provider key ID, such as on-prem gateway traffic.'
example: 'request_count'
type: 'string'
minItems: 1
@@ -52475,7 +52475,7 @@ paths:
workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11'
properties:
byok_usage:
- description: 'Total external BYOK usage (in USD) for the API key'
+ description: 'Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields.'
example: 17.38
format: 'double'
type: 'number'
@@ -52485,7 +52485,7 @@ paths:
format: 'double'
type: 'number'
byok_usage_monthly:
- description: 'External BYOK usage (in USD) for current UTC month'
+ description: 'External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st.'
example: 17.38
format: 'double'
type: 'number'
@@ -52526,7 +52526,7 @@ paths:
example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
type: 'string'
include_byok_in_limit:
- description: 'Whether to include external BYOK usage in the credit limit'
+ description: 'Whether external BYOK usage counts toward this key''s limit. When false, only credit usage is checked against `limit`.'
example: false
type: 'boolean'
label:
@@ -52548,7 +52548,7 @@ paths:
- 'number'
- 'null'
limit_remaining:
- description: 'Remaining spending limit in USD'
+ description: 'Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true.'
example: 74.5
format: 'double'
type:
@@ -52571,22 +52571,22 @@ paths:
- 'string'
- 'null'
usage:
- description: 'Total OpenRouter credit usage (in USD) for the API key'
+ description: 'Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here.'
example: 25.5
format: 'double'
type: 'number'
usage_daily:
- description: 'OpenRouter credit usage (in USD) for the current UTC day'
+ description: 'OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_monthly:
- description: 'OpenRouter credit usage (in USD) for the current UTC month'
+ description: 'OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_weekly:
- description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)'
+ description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
@@ -52748,7 +52748,7 @@ paths:
- 'user'
type: 'object'
include_byok_in_limit:
- description: 'Whether to include BYOK usage in the limit'
+ description: 'Whether external BYOK usage counts toward this key''s limit. When false, only credit usage is checked against `limit`.'
example: true
type: 'boolean'
limit:
@@ -52873,7 +52873,7 @@ paths:
workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11'
properties:
byok_usage:
- description: 'Total external BYOK usage (in USD) for the API key'
+ description: 'Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields.'
example: 17.38
format: 'double'
type: 'number'
@@ -52883,7 +52883,7 @@ paths:
format: 'double'
type: 'number'
byok_usage_monthly:
- description: 'External BYOK usage (in USD) for current UTC month'
+ description: 'External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st.'
example: 17.38
format: 'double'
type: 'number'
@@ -52924,7 +52924,7 @@ paths:
example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
type: 'string'
include_byok_in_limit:
- description: 'Whether to include external BYOK usage in the credit limit'
+ description: 'Whether external BYOK usage counts toward this key''s limit. When false, only credit usage is checked against `limit`.'
example: false
type: 'boolean'
label:
@@ -52946,7 +52946,7 @@ paths:
- 'number'
- 'null'
limit_remaining:
- description: 'Remaining spending limit in USD'
+ description: 'Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true.'
example: 74.5
format: 'double'
type:
@@ -52969,22 +52969,22 @@ paths:
- 'string'
- 'null'
usage:
- description: 'Total OpenRouter credit usage (in USD) for the API key'
+ description: 'Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here.'
example: 25.5
format: 'double'
type: 'number'
usage_daily:
- description: 'OpenRouter credit usage (in USD) for the current UTC day'
+ description: 'OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_monthly:
- description: 'OpenRouter credit usage (in USD) for the current UTC month'
+ description: 'OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_weekly:
- description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)'
+ description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
@@ -53264,7 +53264,7 @@ paths:
workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11'
properties:
byok_usage:
- description: 'Total external BYOK usage (in USD) for the API key'
+ description: 'Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields.'
example: 17.38
format: 'double'
type: 'number'
@@ -53274,7 +53274,7 @@ paths:
format: 'double'
type: 'number'
byok_usage_monthly:
- description: 'External BYOK usage (in USD) for current UTC month'
+ description: 'External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st.'
example: 17.38
format: 'double'
type: 'number'
@@ -53315,7 +53315,7 @@ paths:
example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
type: 'string'
include_byok_in_limit:
- description: 'Whether to include external BYOK usage in the credit limit'
+ description: 'Whether external BYOK usage counts toward this key''s limit. When false, only credit usage is checked against `limit`.'
example: false
type: 'boolean'
label:
@@ -53337,7 +53337,7 @@ paths:
- 'number'
- 'null'
limit_remaining:
- description: 'Remaining spending limit in USD'
+ description: 'Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true.'
example: 74.5
format: 'double'
type:
@@ -53360,22 +53360,22 @@ paths:
- 'string'
- 'null'
usage:
- description: 'Total OpenRouter credit usage (in USD) for the API key'
+ description: 'Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here.'
example: 25.5
format: 'double'
type: 'number'
usage_daily:
- description: 'OpenRouter credit usage (in USD) for the current UTC day'
+ description: 'OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_monthly:
- description: 'OpenRouter credit usage (in USD) for the current UTC month'
+ description: 'OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_weekly:
- description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)'
+ description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
@@ -53499,7 +53499,7 @@ paths:
example: false
type: 'boolean'
include_byok_in_limit:
- description: 'Whether to include BYOK usage in the limit'
+ description: 'Whether external BYOK usage counts toward this key''s limit. When false, only credit usage is checked against `limit`.'
example: true
type: 'boolean'
limit:
@@ -53555,7 +53555,7 @@ paths:
label: 'Updated API Key Name'
last_used_at: '2026-09-15T15:45:00Z'
limit: 75
- limit_remaining: 49.5
+ limit_remaining: 32.12
limit_reset: 'daily'
name: 'Updated API Key Name'
updated_at: '2025-08-24T16:00:00Z'
@@ -53581,7 +53581,7 @@ paths:
label: 'Updated API Key Name'
last_used_at: '2026-09-15T15:45:00Z'
limit: 75
- limit_remaining: 49.5
+ limit_remaining: 32.12
limit_reset: 'daily'
name: 'Updated API Key Name'
updated_at: '2025-08-24T16:00:00Z'
@@ -53619,7 +53619,7 @@ paths:
workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11'
properties:
byok_usage:
- description: 'Total external BYOK usage (in USD) for the API key'
+ description: 'Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields.'
example: 17.38
format: 'double'
type: 'number'
@@ -53629,7 +53629,7 @@ paths:
format: 'double'
type: 'number'
byok_usage_monthly:
- description: 'External BYOK usage (in USD) for current UTC month'
+ description: 'External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st.'
example: 17.38
format: 'double'
type: 'number'
@@ -53670,7 +53670,7 @@ paths:
example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
type: 'string'
include_byok_in_limit:
- description: 'Whether to include external BYOK usage in the credit limit'
+ description: 'Whether external BYOK usage counts toward this key''s limit. When false, only credit usage is checked against `limit`.'
example: false
type: 'boolean'
label:
@@ -53692,7 +53692,7 @@ paths:
- 'number'
- 'null'
limit_remaining:
- description: 'Remaining spending limit in USD'
+ description: 'Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true.'
example: 74.5
format: 'double'
type:
@@ -53715,22 +53715,22 @@ paths:
- 'string'
- 'null'
usage:
- description: 'Total OpenRouter credit usage (in USD) for the API key'
+ description: 'Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here.'
example: 25.5
format: 'double'
type: 'number'
usage_daily:
- description: 'OpenRouter credit usage (in USD) for the current UTC day'
+ description: 'OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_monthly:
- description: 'OpenRouter credit usage (in USD) for the current UTC month'
+ description: 'OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
usage_weekly:
- description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)'
+ description: 'OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost.'
example: 25.5
format: 'double'
type: 'number'
@@ -57386,7 +57386,7 @@ paths:
- 'Private Endpoints'
x-speakeasy-name-override: 'list'
post:
- description: 'Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
+ description: 'Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Custom management keys with `private_endpoints:create` can only create drafts; passing `activate` requires a full organization Read/write management key and otherwise returns 403. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'createPrivateEndpoint'
parameters:
- description: 'Retry-safe create: a repeated create with the same key from the same organization returns the endpoint the first request created instead of creating another. The endpoint is returned as it is now. Reusing a key with a different request body (model, provider, base URL, upstream model ID, declared ZDR or region, pricing, or declared parameters) is rejected with 422 `idempotency_key_reused`. Declared parameters are compared as a set, so a retry that reorders or repeats a name replays the endpoint. `activate` and `settings` are not compared, and later edits to the endpoint do not affect the comparison. `settings` is still validated before the replay, so a retry with invalid settings returns 400 `settings_invalid` instead of the endpoint.'
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 6854b944c..f1fc48b0d 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:27093a19055b3646d74ec4944977fd2bb2088788f96d4af1f5cdb4bdadf6b305
- sourceBlobDigest: sha256:5a9e3aa76034d33fca8232200a70aaa996fbc479fa76bf557ec0b33204886fe5
+ sourceRevisionDigest: sha256:cb19c616241be26028fa262da9f5caa822508b1ec2e6f175a0be1bc1aa847c24
+ sourceBlobDigest: sha256:486f7455a1c9959734afee85c72a366410d955ee63bcc61262d9fce1de34f162
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:27093a19055b3646d74ec4944977fd2bb2088788f96d4af1f5cdb4bdadf6b305
- sourceBlobDigest: sha256:5a9e3aa76034d33fca8232200a70aaa996fbc479fa76bf557ec0b33204886fe5
+ sourceRevisionDigest: sha256:cb19c616241be26028fa262da9f5caa822508b1ec2e6f175a0be1bc1aa847c24
+ sourceBlobDigest: sha256:486f7455a1c9959734afee85c72a366410d955ee63bcc61262d9fce1de34f162
codeSamplesNamespace: open-router-python-code-samples
- codeSamplesRevisionDigest: sha256:69d54f1d3127bb17747b7423159e833b1285350e9e05113ed299881aa9b98c31
+ codeSamplesRevisionDigest: sha256:6f878ade358e4adb2db43c5708de4f76e432a0b50ab5cbbf5754b925281ed82f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
diff --git a/RELEASES.md b/RELEASES.md
index 686a360ba..e94b5ad65 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -4909,4 +4909,14 @@ Based on:
### Generated
- [python v1.3.214] .
### Releases
-- [PyPI v1.3.214] https://pypi.org/project/openrouter/1.3.214 - .
\ No newline at end of file
+- [PyPI v1.3.214] https://pypi.org/project/openrouter/1.3.214 - .
+
+## 2026-11-30 19:23:01
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v1.3.215] .
+### Releases
+- [PyPI v1.3.215] https://pypi.org/project/openrouter/1.3.215 - .
\ No newline at end of file
diff --git a/docs/operations/createkeysdata.mdx b/docs/operations/createkeysdata.mdx
index 10c6c3607..35d57f21b 100644
--- a/docs/operations/createkeysdata.mdx
+++ b/docs/operations/createkeysdata.mdx
@@ -7,28 +7,28 @@ The created API key information
## Fields
-| Field | Type | Required | Description | Example |
-| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key | 17.38 |
-| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
-| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for current UTC month | 17.38 |
-| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
-| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
-| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
-| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
-| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
-| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
-| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
-| `include_byok_in_limit` | *bool* | ✔️ | Whether to include external BYOK usage in the credit limit | false |
-| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
-| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
-| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
-| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD | 74.5 |
-| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
-| `name` | *str* | ✔️ | Name of the API key | My Production Key |
-| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
-| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key | 25.5 |
-| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day | 25.5 |
-| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC month | 25.5 |
-| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) | 25.5 |
-| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields. | 17.38 |
+| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
+| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. | 17.38 |
+| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
+| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
+| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
+| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
+| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
+| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
+| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
+| `include_byok_in_limit` | *bool* | ✔️ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | false |
+| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
+| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
+| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
+| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true. | 74.5 |
+| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
+| `name` | *str* | ✔️ | Name of the API key | My Production Key |
+| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
+| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here. | 25.5 |
+| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost. | 25.5 |
+| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost. | 25.5 |
+| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost. | 25.5 |
+| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
diff --git a/docs/operations/createkeysrequestbody.mdx b/docs/operations/createkeysrequestbody.mdx
index 4525da985..cbcf07729 100644
--- a/docs/operations/createkeysrequestbody.mdx
+++ b/docs/operations/createkeysrequestbody.mdx
@@ -9,7 +9,7 @@ title: "CreateKeysRequestBody"
| `creator_user_id` | *OptionalNullable[str]* | ➖ | Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. A workspace-scoped management key may only name a member of its own workspace. | user_2dHFtVWx2n56w6HkM0000000000 |
| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | Optional ISO 8601 UTC expiration timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected. | 2027-12-31T23:59:59Z |
| `external` | [Optional[operations.External]](../operations/external.mdx) | ➖ | Optional partner-defined identity associated with the created API key. | |
-| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether to include BYOK usage in the limit | true |
+| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | true |
| `limit` | *OptionalNullable[float]* | ➖ | Optional spending limit for the API key in USD | 50 |
| `limit_reset` | [OptionalNullable[operations.CreateKeysLimitReset]](../operations/createkeyslimitreset.mdx) | ➖ | Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | monthly |
| `name` | *str* | ✔️ | Name for the new API key | My New API Key |
diff --git a/docs/operations/getkeydata.mdx b/docs/operations/getkeydata.mdx
index dd9300836..4c8d4969a 100644
--- a/docs/operations/getkeydata.mdx
+++ b/docs/operations/getkeydata.mdx
@@ -7,28 +7,28 @@ The API key information
## Fields
-| Field | Type | Required | Description | Example |
-| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key | 17.38 |
-| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
-| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for current UTC month | 17.38 |
-| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
-| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
-| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
-| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
-| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
-| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
-| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
-| `include_byok_in_limit` | *bool* | ✔️ | Whether to include external BYOK usage in the credit limit | false |
-| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
-| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
-| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
-| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD | 74.5 |
-| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
-| `name` | *str* | ✔️ | Name of the API key | My Production Key |
-| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
-| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key | 25.5 |
-| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day | 25.5 |
-| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC month | 25.5 |
-| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) | 25.5 |
-| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields. | 17.38 |
+| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
+| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. | 17.38 |
+| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
+| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
+| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
+| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
+| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
+| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
+| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
+| `include_byok_in_limit` | *bool* | ✔️ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | false |
+| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
+| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
+| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
+| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true. | 74.5 |
+| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
+| `name` | *str* | ✔️ | Name of the API key | My Production Key |
+| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
+| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here. | 25.5 |
+| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost. | 25.5 |
+| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost. | 25.5 |
+| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost. | 25.5 |
+| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
diff --git a/docs/operations/listdata.mdx b/docs/operations/listdata.mdx
index 00fe959da..97881f159 100644
--- a/docs/operations/listdata.mdx
+++ b/docs/operations/listdata.mdx
@@ -4,28 +4,28 @@ title: "ListData"
## Fields
-| Field | Type | Required | Description | Example |
-| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key | 17.38 |
-| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
-| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for current UTC month | 17.38 |
-| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
-| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
-| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
-| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
-| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
-| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
-| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
-| `include_byok_in_limit` | *bool* | ✔️ | Whether to include external BYOK usage in the credit limit | false |
-| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
-| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
-| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
-| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD | 74.5 |
-| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
-| `name` | *str* | ✔️ | Name of the API key | My Production Key |
-| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
-| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key | 25.5 |
-| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day | 25.5 |
-| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC month | 25.5 |
-| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) | 25.5 |
-| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields. | 17.38 |
+| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
+| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. | 17.38 |
+| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
+| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
+| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
+| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
+| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
+| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
+| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
+| `include_byok_in_limit` | *bool* | ✔️ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | false |
+| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
+| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
+| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
+| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true. | 74.5 |
+| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
+| `name` | *str* | ✔️ | Name of the API key | My Production Key |
+| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
+| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here. | 25.5 |
+| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost. | 25.5 |
+| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost. | 25.5 |
+| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost. | 25.5 |
+| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
diff --git a/docs/operations/updatekeysdata.mdx b/docs/operations/updatekeysdata.mdx
index ac8da721d..8166a750f 100644
--- a/docs/operations/updatekeysdata.mdx
+++ b/docs/operations/updatekeysdata.mdx
@@ -7,28 +7,28 @@ The updated API key information
## Fields
-| Field | Type | Required | Description | Example |
-| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key | 17.38 |
-| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
-| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for current UTC month | 17.38 |
-| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
-| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
-| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
-| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
-| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
-| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
-| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
-| `include_byok_in_limit` | *bool* | ✔️ | Whether to include external BYOK usage in the credit limit | false |
-| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
-| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
-| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
-| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD | 74.5 |
-| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
-| `name` | *str* | ✔️ | Name of the API key | My Production Key |
-| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
-| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key | 25.5 |
-| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day | 25.5 |
-| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC month | 25.5 |
-| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) | 25.5 |
-| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `byok_usage` | *float* | ✔️ | Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields. | 17.38 |
+| `byok_usage_daily` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
+| `byok_usage_monthly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. | 17.38 |
+| `byok_usage_weekly` | *float* | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
+| `created_at` | *str* | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
+| `creator_user_id` | *Nullable[str]* | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
+| `disabled` | *bool* | ✔️ | Whether the API key is disabled | false |
+| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
+| `external_user` | *Nullable[str]* | ✔️ | Partner's end-user identifier used for attribution. | null |
+| `hash` | *str* | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
+| `include_byok_in_limit` | *bool* | ✔️ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | false |
+| `label` | *str* | ✔️ | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
+| `last_used_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
+| `limit` | *Nullable[float]* | ✔️ | Spending limit for the API key in USD | 100 |
+| `limit_remaining` | *Nullable[float]* | ✔️ | Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true. | 74.5 |
+| `limit_reset` | *Nullable[str]* | ✔️ | Type of limit reset for the API key | monthly |
+| `name` | *str* | ✔️ | Name of the API key | My Production Key |
+| `updated_at` | *Nullable[str]* | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
+| `usage` | *float* | ✔️ | Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here. | 25.5 |
+| `usage_daily` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost. | 25.5 |
+| `usage_monthly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost. | 25.5 |
+| `usage_weekly` | *float* | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost. | 25.5 |
+| `workspace_id` | *str* | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
\ No newline at end of file
diff --git a/docs/operations/updatekeysrequestbody.mdx b/docs/operations/updatekeysrequestbody.mdx
index 25cb4d0e1..97d7f017e 100644
--- a/docs/operations/updatekeysrequestbody.mdx
+++ b/docs/operations/updatekeysrequestbody.mdx
@@ -7,7 +7,7 @@ title: "UpdateKeysRequestBody"
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `disabled` | *Optional[bool]* | ➖ | Whether to disable the API key | false |
-| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether to include BYOK usage in the limit | true |
+| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | true |
| `limit` | *OptionalNullable[float]* | ➖ | New spending limit for the API key in USD | 75 |
| `limit_reset` | [OptionalNullable[operations.UpdateKeysLimitReset]](../operations/updatekeyslimitreset.mdx) | ➖ | New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | daily |
| `name` | *Optional[str]* | ➖ | New name for the API key | Updated API Key Name |
diff --git a/docs/sdks/analytics/README.mdx b/docs/sdks/analytics/README.mdx
index 9ceefae52..6e2f6a957 100644
--- a/docs/sdks/analytics/README.mdx
+++ b/docs/sdks/analytics/README.mdx
@@ -15,7 +15,7 @@ Analytics and usage endpoints
## get_user_activity
-Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys. `user_id` also requires `workspace_members:view` on an explicit non-default workspace; organization and default-workspace member filtering requires `org_members:view`, which is not available as a Custom grant. [Management key](/docs/guides/overview/auth/management-api-keys) required.
+Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys, and organization-scoped Custom keys supplying `workspace_id` also require `workspace:view`. For `user_id`, non-default workspace-scoped Custom keys require `workspace_members:view` (whether or not `workspace_id` is passed), default-workspace Custom keys cannot use `user_id`, and organization-scoped Custom keys require `org_members:view` even when filtering by `workspace_id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
### Example Usage
diff --git a/docs/sdks/apikeys/README.mdx b/docs/sdks/apikeys/README.mdx
index 070e0c910..e1c261779 100644
--- a/docs/sdks/apikeys/README.mdx
+++ b/docs/sdks/apikeys/README.mdx
@@ -149,7 +149,7 @@ with OpenRouter(
| `creator_user_id` | *OptionalNullable[str]* | ➖ | Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. A workspace-scoped management key may only name a member of its own workspace. | user_2dHFtVWx2n56w6HkM0000000000 |
| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | ➖ | Optional ISO 8601 UTC expiration timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected. | 2027-12-31T23:59:59Z |
| `external` | [Optional[operations.External]](../../operations/external.mdx) | ➖ | Optional partner-defined identity associated with the created API key. | |
-| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether to include BYOK usage in the limit | true |
+| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | true |
| `limit` | *OptionalNullable[float]* | ➖ | Optional spending limit for the API key in USD | 50 |
| `limit_reset` | [OptionalNullable[operations.CreateKeysLimitReset]](../../operations/createkeyslimitreset.mdx) | ➖ | Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | monthly |
| `workspace_id` | *Optional[str]* | ➖ | The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
@@ -330,7 +330,7 @@ with OpenRouter(
| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| |
| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| |
| `disabled` | *Optional[bool]* | ➖ | Whether to disable the API key | false |
-| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether to include BYOK usage in the limit | true |
+| `include_byok_in_limit` | *Optional[bool]* | ➖ | Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`. | true |
| `limit` | *OptionalNullable[float]* | ➖ | New spending limit for the API key in USD | 75 |
| `limit_reset` | [OptionalNullable[operations.UpdateKeysLimitReset]](../../operations/updatekeyslimitreset.mdx) | ➖ | New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | daily |
| `name` | *Optional[str]* | ➖ | New name for the API key | Updated API Key Name |
diff --git a/docs/sdks/privateendpoints/README.mdx b/docs/sdks/privateendpoints/README.mdx
index dd973fe7a..3339d3382 100644
--- a/docs/sdks/privateendpoints/README.mdx
+++ b/docs/sdks/privateendpoints/README.mdx
@@ -69,7 +69,7 @@ with OpenRouter(
## create
-Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
+Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Custom management keys with `private_endpoints:create` can only create drafts; passing `activate` requires a full organization Read/write management key and otherwise returns 403. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
### Example Usage
diff --git a/pyproject.toml b/pyproject.toml
index 8220da23d..b91887b33 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
-version = "1.3.214"
+version = "1.3.215"
description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md"
diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py
index 99201b0e4..69ee14861 100644
--- a/src/openrouter/_version.py
+++ b/src/openrouter/_version.py
@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "openrouter"
-__version__: str = "1.3.214"
+__version__: str = "1.3.215"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.950.13"
-__user_agent__: str = "speakeasy-sdk/python 1.3.214 2.950.13 1.0.0 openrouter"
+__user_agent__: str = "speakeasy-sdk/python 1.3.215 2.950.13 1.0.0 openrouter"
try:
if __package__ is not None:
diff --git a/src/openrouter/analytics.py b/src/openrouter/analytics.py
index 6a8e172e4..976e0eb3d 100644
--- a/src/openrouter/analytics.py
+++ b/src/openrouter/analytics.py
@@ -26,7 +26,7 @@ def get_user_activity(
) -> components.ActivityResponse:
r"""Get user activity grouped by endpoint
- Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys. `user_id` also requires `workspace_members:view` on an explicit non-default workspace; organization and default-workspace member filtering requires `org_members:view`, which is not available as a Custom grant. [Management key](/docs/guides/overview/auth/management-api-keys) required.
+ Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys, and organization-scoped Custom keys supplying `workspace_id` also require `workspace:view`. For `user_id`, non-default workspace-scoped Custom keys require `workspace_members:view` (whether or not `workspace_id` is passed), default-workspace Custom keys cannot use `user_id`, and organization-scoped Custom keys require `org_members:view` even when filtering by `workspace_id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param request: The request object to send.
:param retries: Override the default retry configuration for this method
@@ -154,7 +154,7 @@ async def get_user_activity_async(
) -> components.ActivityResponse:
r"""Get user activity grouped by endpoint
- Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys. `user_id` also requires `workspace_members:view` on an explicit non-default workspace; organization and default-workspace member filtering requires `org_members:view`, which is not available as a Custom grant. [Management key](/docs/guides/overview/auth/management-api-keys) required.
+ Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys, and organization-scoped Custom keys supplying `workspace_id` also require `workspace:view`. For `user_id`, non-default workspace-scoped Custom keys require `workspace_members:view` (whether or not `workspace_id` is passed), default-workspace Custom keys cannot use `user_id`, and organization-scoped Custom keys require `org_members:view` even when filtering by `workspace_id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param request: The request object to send.
:param retries: Override the default retry configuration for this method
diff --git a/src/openrouter/api_keys.py b/src/openrouter/api_keys.py
index 1dffa8ac0..dca0e9844 100644
--- a/src/openrouter/api_keys.py
+++ b/src/openrouter/api_keys.py
@@ -621,7 +621,7 @@ def create(
:param creator_user_id: Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. A workspace-scoped management key may only name a member of its own workspace.
:param expires_at: Optional ISO 8601 UTC expiration timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected.
:param external: Optional partner-defined identity associated with the created API key.
- :param include_byok_in_limit: Whether to include BYOK usage in the limit
+ :param include_byok_in_limit: Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`.
:param limit: Optional spending limit for the API key in USD
:param limit_reset: Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
:param workspace_id: The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
@@ -793,7 +793,7 @@ async def create_async(
:param creator_user_id: Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. A workspace-scoped management key may only name a member of its own workspace.
:param expires_at: Optional ISO 8601 UTC expiration timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected.
:param external: Optional partner-defined identity associated with the created API key.
- :param include_byok_in_limit: Whether to include BYOK usage in the limit
+ :param include_byok_in_limit: Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`.
:param limit: Optional spending limit for the API key in USD
:param limit_reset: Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
:param workspace_id: The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
@@ -1518,7 +1518,7 @@ def update(
:param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.
:param disabled: Whether to disable the API key
- :param include_byok_in_limit: Whether to include BYOK usage in the limit
+ :param include_byok_in_limit: Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`.
:param limit: New spending limit for the API key in USD
:param limit_reset: New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
:param name: New name for the API key
@@ -1699,7 +1699,7 @@ async def update_async(
:param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.
:param disabled: Whether to disable the API key
- :param include_byok_in_limit: Whether to include BYOK usage in the limit
+ :param include_byok_in_limit: Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`.
:param limit: New spending limit for the API key in USD
:param limit_reset: New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
:param name: New name for the API key
diff --git a/src/openrouter/operations/createkeys.py b/src/openrouter/operations/createkeys.py
index 4b4164ca1..90eeb1bda 100644
--- a/src/openrouter/operations/createkeys.py
+++ b/src/openrouter/operations/createkeys.py
@@ -137,7 +137,7 @@ class CreateKeysRequestBodyTypedDict(TypedDict):
external: NotRequired[ExternalTypedDict]
r"""Optional partner-defined identity associated with the created API key."""
include_byok_in_limit: NotRequired[bool]
- r"""Whether to include BYOK usage in the limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
limit: NotRequired[Nullable[float]]
r"""Optional spending limit for the API key in USD"""
limit_reset: NotRequired[Nullable[CreateKeysLimitReset]]
@@ -160,7 +160,7 @@ class CreateKeysRequestBody(BaseModel):
r"""Optional partner-defined identity associated with the created API key."""
include_byok_in_limit: Optional[bool] = None
- r"""Whether to include BYOK usage in the limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
limit: OptionalNullable[float] = UNSET
r"""Optional spending limit for the API key in USD"""
@@ -281,11 +281,11 @@ class CreateKeysDataTypedDict(TypedDict):
r"""The created API key information"""
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
created_at: str
@@ -299,7 +299,7 @@ class CreateKeysDataTypedDict(TypedDict):
hash: str
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
last_used_at: Nullable[datetime]
@@ -307,7 +307,7 @@ class CreateKeysDataTypedDict(TypedDict):
limit: Nullable[float]
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
name: str
@@ -315,13 +315,13 @@ class CreateKeysDataTypedDict(TypedDict):
updated_at: Nullable[str]
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
expires_at: NotRequired[Nullable[datetime]]
@@ -332,13 +332,13 @@ class CreateKeysData(BaseModel):
r"""The created API key information"""
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
@@ -359,7 +359,7 @@ class CreateKeysData(BaseModel):
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
@@ -371,7 +371,7 @@ class CreateKeysData(BaseModel):
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
@@ -383,16 +383,16 @@ class CreateKeysData(BaseModel):
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
diff --git a/src/openrouter/operations/getkey.py b/src/openrouter/operations/getkey.py
index 924bb00ec..25127de14 100644
--- a/src/openrouter/operations/getkey.py
+++ b/src/openrouter/operations/getkey.py
@@ -155,11 +155,11 @@ class GetKeyDataTypedDict(TypedDict):
r"""The API key information"""
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
created_at: str
@@ -173,7 +173,7 @@ class GetKeyDataTypedDict(TypedDict):
hash: str
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
last_used_at: Nullable[datetime]
@@ -181,7 +181,7 @@ class GetKeyDataTypedDict(TypedDict):
limit: Nullable[float]
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
name: str
@@ -189,13 +189,13 @@ class GetKeyDataTypedDict(TypedDict):
updated_at: Nullable[str]
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
expires_at: NotRequired[Nullable[datetime]]
@@ -206,13 +206,13 @@ class GetKeyData(BaseModel):
r"""The API key information"""
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
@@ -233,7 +233,7 @@ class GetKeyData(BaseModel):
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
@@ -245,7 +245,7 @@ class GetKeyData(BaseModel):
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
@@ -257,16 +257,16 @@ class GetKeyData(BaseModel):
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
diff --git a/src/openrouter/operations/list.py b/src/openrouter/operations/list.py
index dcabe942b..0b10172e2 100644
--- a/src/openrouter/operations/list.py
+++ b/src/openrouter/operations/list.py
@@ -204,11 +204,11 @@ def serialize_model(self, handler):
class ListDataTypedDict(TypedDict):
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
created_at: str
@@ -222,7 +222,7 @@ class ListDataTypedDict(TypedDict):
hash: str
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
last_used_at: Nullable[datetime]
@@ -230,7 +230,7 @@ class ListDataTypedDict(TypedDict):
limit: Nullable[float]
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
name: str
@@ -238,13 +238,13 @@ class ListDataTypedDict(TypedDict):
updated_at: Nullable[str]
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
expires_at: NotRequired[Nullable[datetime]]
@@ -253,13 +253,13 @@ class ListDataTypedDict(TypedDict):
class ListData(BaseModel):
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
@@ -280,7 +280,7 @@ class ListData(BaseModel):
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
@@ -292,7 +292,7 @@ class ListData(BaseModel):
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
@@ -304,16 +304,16 @@ class ListData(BaseModel):
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
diff --git a/src/openrouter/operations/updatekeys.py b/src/openrouter/operations/updatekeys.py
index b0d89392b..c6747043d 100644
--- a/src/openrouter/operations/updatekeys.py
+++ b/src/openrouter/operations/updatekeys.py
@@ -101,7 +101,7 @@ class UpdateKeysRequestBodyTypedDict(TypedDict):
disabled: NotRequired[bool]
r"""Whether to disable the API key"""
include_byok_in_limit: NotRequired[bool]
- r"""Whether to include BYOK usage in the limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
limit: NotRequired[Nullable[float]]
r"""New spending limit for the API key in USD"""
limit_reset: NotRequired[Nullable[UpdateKeysLimitReset]]
@@ -117,7 +117,7 @@ class UpdateKeysRequestBody(BaseModel):
r"""Whether to disable the API key"""
include_byok_in_limit: Optional[bool] = None
- r"""Whether to include BYOK usage in the limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
limit: OptionalNullable[float] = UNSET
r"""New spending limit for the API key in USD"""
@@ -247,11 +247,11 @@ class UpdateKeysDataTypedDict(TypedDict):
r"""The updated API key information"""
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
created_at: str
@@ -265,7 +265,7 @@ class UpdateKeysDataTypedDict(TypedDict):
hash: str
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
last_used_at: Nullable[datetime]
@@ -273,7 +273,7 @@ class UpdateKeysDataTypedDict(TypedDict):
limit: Nullable[float]
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
name: str
@@ -281,13 +281,13 @@ class UpdateKeysDataTypedDict(TypedDict):
updated_at: Nullable[str]
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
expires_at: NotRequired[Nullable[datetime]]
@@ -298,13 +298,13 @@ class UpdateKeysData(BaseModel):
r"""The updated API key information"""
byok_usage: float
- r"""Total external BYOK usage (in USD) for the API key"""
+ r"""Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the `usage*` fields."""
byok_usage_daily: float
r"""External BYOK usage (in USD) for the current UTC day"""
byok_usage_monthly: float
- r"""External BYOK usage (in USD) for current UTC month"""
+ r"""External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st."""
byok_usage_weekly: float
r"""External BYOK usage (in USD) for the current UTC week (Monday-Sunday)"""
@@ -325,7 +325,7 @@ class UpdateKeysData(BaseModel):
r"""Unique hash identifier for the API key"""
include_byok_in_limit: bool
- r"""Whether to include external BYOK usage in the credit limit"""
+ r"""Whether external BYOK usage counts toward this key's limit. When false, only credit usage is checked against `limit`."""
label: str
r"""Human-readable label for the API key"""
@@ -337,7 +337,7 @@ class UpdateKeysData(BaseModel):
r"""Spending limit for the API key in USD"""
limit_remaining: Nullable[float]
- r"""Remaining spending limit in USD"""
+ r"""Remaining spending limit in USD. Credit usage always counts toward `limit`; BYOK usage counts only when `include_byok_in_limit` is true."""
limit_reset: Nullable[str]
r"""Type of limit reset for the API key"""
@@ -349,16 +349,16 @@ class UpdateKeysData(BaseModel):
r"""ISO 8601 timestamp of when the API key was last updated"""
usage: float
- r"""Total OpenRouter credit usage (in USD) for the API key"""
+ r"""Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in `byok_usage`, but a BYOK platform fee, where charged, is credit spend and is included here."""
usage_daily: float
- r"""OpenRouter credit usage (in USD) for the current UTC day"""
+ r"""OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost."""
usage_monthly: float
- r"""OpenRouter credit usage (in USD) for the current UTC month"""
+ r"""OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost."""
usage_weekly: float
- r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
+ r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost."""
workspace_id: str
r"""The workspace ID this API key belongs to."""
diff --git a/src/openrouter/private_endpoints.py b/src/openrouter/private_endpoints.py
index 48739b138..b5d5df050 100644
--- a/src/openrouter/private_endpoints.py
+++ b/src/openrouter/private_endpoints.py
@@ -319,7 +319,7 @@ def create(
) -> components.ManagedPrivateEndpointResponse:
r"""Create a private endpoint
- Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
+ Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Custom management keys with `private_endpoints:create` can only create drafts; passing `activate` requires a full organization Read/write management key and otherwise returns 403. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param model_permaslug: Permanent slug of the model this endpoint serves.
:param provider_slug: Slug of the upstream provider.
@@ -540,7 +540,7 @@ async def create_async(
) -> components.ManagedPrivateEndpointResponse:
r"""Create a private endpoint
- Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
+ Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Custom management keys with `private_endpoints:create` can only create drafts; passing `activate` requires a full organization Read/write management key and otherwise returns 403. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param model_permaslug: Permanent slug of the model this endpoint serves.
:param provider_slug: Slug of the upstream provider.
diff --git a/uv.lock b/uv.lock
index 41248e022..8ee76f0a9 100644
--- a/uv.lock
+++ b/uv.lock
@@ -231,7 +231,7 @@ wheels = [
[[package]]
name = "openrouter"
-version = "1.3.214"
+version = "1.3.215"
source = { editable = "." }
dependencies = [
{ name = "httpcore" },