diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 0594fbd6..4c3b457b 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: 41450b2a23c27cabea1cbd738f7f3d0f
+ docChecksum: b32bef3109d51525efbbb750a22334cf
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
- releaseVersion: 1.1.148
- configChecksum: 108162f643ed6236a5c7fc4650414a3a
+ releaseVersion: 1.1.149
+ configChecksum: 7bf826ad018ebcad3019cdf23933b7cb
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
- generation_id: 25704fa8-72cd-42df-ba42-96fc14ceff73
- pristine_commit_hash: e90a8d77058d982a17f891d045d214b3453eb542
- pristine_tree_hash: 59747e810ec8cbc53792616329ccbea882cfe01d
+ generation_id: b18b0456-94cf-4dea-b8d2-8633e32dc7b4
+ pristine_commit_hash: 6ab48e324e12298942a39cb079dcf66e4d0f9274
+ pristine_tree_hash: f95688c8539ef9e6b108958d704ae2023d1c197d
features:
python:
acceptHeaders: 3.0.0
@@ -6148,6 +6148,10 @@ trackedFiles:
id: eb84a3cc692c
last_write_checksum: sha1:3cc5ffa2cf98a80d59818495896591a5e2c807c6
pristine_git_object: 5342a8f5681d437adc719527c45d23aac0ebe84c
+ docs/operations/alloweddataregion.mdx:
+ id: 9bb0791d7b23
+ last_write_checksum: sha1:74f92842ef5b92abfdbe951f754b240f83673194
+ pristine_git_object: 098bd77e93814e8a3c888b3d20e5a2f9890dd7a5
docs/operations/arena.mdx:
id: fd0c961ea26d
last_write_checksum: sha1:48d0112803ed464cb9f9fe06d4b58f982f936522
@@ -6714,8 +6718,8 @@ trackedFiles:
pristine_git_object: 1f584bb9e540819ce7619172b06ad17edf8a8c34
docs/operations/getcurrentkeydata.mdx:
id: 08c92577eb48
- last_write_checksum: sha1:edcff1105b8ad4c6564310093610471279a8c54f
- pristine_git_object: 63a96376b014ebb3d0d71f6f0a0901b5b14fcc6b
+ last_write_checksum: sha1:d827a9899bad06b46f3910a9e8909d82ee980318
+ pristine_git_object: 7cdcc55740e0f950cc37de4f2661a92eedc9baeb
docs/operations/getcurrentkeyglobals.mdx:
id: 2397dfa14af6
last_write_checksum: sha1:59402ba0d664e5fab7daae4cea57dfc01e086460
@@ -6726,8 +6730,8 @@ trackedFiles:
pristine_git_object: 720e0e050e35968f74596a1bd8d791dff97b2b5b
docs/operations/getcurrentkeyresponse.mdx:
id: 8b6709d01b8b
- last_write_checksum: sha1:8c0fd494c989e55b0813ab65708dcfe7deadb358
- pristine_git_object: c948cc162c525d1a6288ca8f2cd7cc1e2da2d1e5
+ last_write_checksum: sha1:85dde6bb90c5686384d11484601d8859c0b8fa7e
+ pristine_git_object: f8fbad096ce3725d56f12a5d6a3ea32a79891c6b
docs/operations/getfilemetadataglobals.mdx:
id: e4f16f1ce98e
last_write_checksum: sha1:f736518bdebac4aa8c9caf9071e0670885bd83b3
@@ -7678,8 +7682,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:f5f51a8d3b4fd5b07cace20b646e455907ef475a
- pristine_git_object: 9041c4037d67135017d6ed6cc2afc711ce777883
+ last_write_checksum: sha1:94a4fe94f9740931a09fb58b45416899b34d22f4
+ pristine_git_object: 8b944528c888b3463c504fbfa79ef6abf204e217
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7706,8 +7710,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
- last_write_checksum: sha1:b9da8046b4649b3db1f7def7ff9132ec3d4a4b7b
- pristine_git_object: abcd8bc4c2591dc7a373a816e98924135b9b57ad
+ last_write_checksum: sha1:9507638df62443fff01b387213413255fa382672
+ pristine_git_object: 2fbe0307c9d9c9614a9b906fa6ff3b3400c73103
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -10474,8 +10478,8 @@ trackedFiles:
pristine_git_object: 8680343bbc90107ae6413bd5686012b1fd75d665
src/openrouter/operations/__init__.py:
id: 9afcea1e7161
- last_write_checksum: sha1:534f35479d3f763b301b02511da7c8211209b70e
- pristine_git_object: 036bec20dcedd8dc0a8fbccfffc19207dba2dec9
+ last_write_checksum: sha1:4a0f94d3fb52f1d3e7aed3f2e0a54829eb04fd7a
+ pristine_git_object: 3a3975ce5e74f5e24d16899c3a8beaf44c636d29
src/openrouter/operations/bulkaddworkspacemembers.py:
id: e0ed56117619
last_write_checksum: sha1:5c44eb0d40fdece3ac084615f6c6082be4cf1d5a
@@ -10650,8 +10654,8 @@ trackedFiles:
pristine_git_object: 0c48cd8cb2742ed71558ea6d9cd488ccccd74e79
src/openrouter/operations/getcurrentkey.py:
id: baf3e38db22c
- last_write_checksum: sha1:b2b65133108483105fbad3d5916ee7823d4ef7c2
- pristine_git_object: 1726a9fcf1892c0c3594833fcb5bcd82d53fd6d8
+ last_write_checksum: sha1:d7fe9be4c095ad7dc8112f977016d737bb5575c6
+ pristine_git_object: efc9fff9e0d6de76e764bd234d540a1270929456
src/openrouter/operations/getfilemetadata.py:
id: 408c34486769
last_write_checksum: sha1:592b6646b4ff082d8427ea08e79e6b34be490857
@@ -11389,7 +11393,7 @@ examples:
speakeasy-default-get-current-key:
responses:
"200":
- application/json: {"data": {"byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "free_model_daily_requests": {"limit": 50, "remaining": 38, "used": 12}, "include_byok_in_limit": false, "is_free_tier": false, "is_management_key": false, "is_provisioning_key": false, "label": "sk-or-v1-au7...890", "limit": 100, "limit_remaining": 74.5, "limit_reset": "monthly", "rate_limit": {"interval": "1h", "note": "This field is deprecated and safe to ignore.", "requests": 1000}, "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5}}
+ application/json: {"data": {"allowed_data_regions": ["global", "europe", "us"], "byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "free_model_daily_requests": {"limit": 50, "remaining": 38, "used": 12}, "include_byok_in_limit": false, "is_free_tier": false, "is_management_key": false, "is_provisioning_key": false, "label": "sk-or-v1-au7...890", "limit": 100, "limit_remaining": 74.5, "limit_reset": "monthly", "rate_limit": {"interval": "1h", "note": "This field is deprecated and safe to ignore.", "requests": 1000}, "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5}}
"401":
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
"500":
@@ -12952,5 +12956,4 @@ examples:
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
- * `open_router.stt.create_transcription()`: `error.status[504]` **Added**
- * `open_router.stt.create_transcription_multipart()`: `error.status[504]` **Added**
+ * `open_router.api_keys.get_current_key_metadata()`: `response.data.allowed_data_regions` **Added**
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 7a07f613..b2ae7790 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
- version: 1.1.148
+ version: 1.1.149
additionalDependencies:
dev: {}
main: {}
diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml
index bace460c..64a0db6b 100644
--- a/.speakeasy/out.openapi.yaml
+++ b/.speakeasy/out.openapi.yaml
@@ -34840,6 +34840,10 @@ paths:
application/json:
example:
data:
+ allowed_data_regions:
+ - 'global'
+ - 'europe'
+ - 'us'
byok_usage: 17.38
byok_usage_daily: 17.38
byok_usage_monthly: 17.38
@@ -34869,6 +34873,10 @@ paths:
schema:
example:
data:
+ allowed_data_regions:
+ - 'global'
+ - 'europe'
+ - 'us'
byok_usage: 17.38
byok_usage_daily: 17.38
byok_usage_monthly: 17.38
@@ -34899,6 +34907,10 @@ paths:
data:
description: 'Current API key information'
example:
+ allowed_data_regions:
+ - 'global'
+ - 'europe'
+ - 'us'
byok_usage: 17.38
byok_usage_daily: 17.38
byok_usage_monthly: 17.38
@@ -34926,6 +34938,20 @@ paths:
usage_monthly: 25.5
usage_weekly: 25.5
properties:
+ allowed_data_regions:
+ description: 'Data regions permitted for this API key by the guardrail policies on the key and the account regional-routing entitlement. Empty when no region is permitted. Reflects region policy only: other key restrictions, such as management keys being blocked from inference, still apply.'
+ example:
+ - 'global'
+ - 'europe'
+ - 'us'
+ items:
+ enum:
+ - 'global'
+ - 'europe'
+ - 'us'
+ type: 'string'
+ x-speakeasy-unknown-values: allow
+ type: 'array'
byok_usage:
description: 'Total external BYOK usage (in USD) for the API key'
example: 17.38
@@ -35065,6 +35091,7 @@ paths:
- 'limit_reset'
- 'include_byok_in_limit'
- 'creator_user_id'
+ - 'allowed_data_regions'
- 'free_model_daily_requests'
- 'rate_limit'
type: 'object'
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 67971027..e42d549a 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:09c23da6b2bfa40fdab38be95b0569129da25958adf4e8414cd1c71526d0b569
- sourceBlobDigest: sha256:8d5529722484eb1c61521ec0d7a6d86f08a2bdc943c2a3debc69968cb4ab1130
+ sourceRevisionDigest: sha256:a209927f7afd47c4f3d37916b9cb671f31128ef87f9162f1ace1b17ae7309a78
+ sourceBlobDigest: sha256:07340d1e62f97a817461b6a8cb7d047dbca41926eb04b76a167492ac0dd36721
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:09c23da6b2bfa40fdab38be95b0569129da25958adf4e8414cd1c71526d0b569
- sourceBlobDigest: sha256:8d5529722484eb1c61521ec0d7a6d86f08a2bdc943c2a3debc69968cb4ab1130
+ sourceRevisionDigest: sha256:a209927f7afd47c4f3d37916b9cb671f31128ef87f9162f1ace1b17ae7309a78
+ sourceBlobDigest: sha256:07340d1e62f97a817461b6a8cb7d047dbca41926eb04b76a167492ac0dd36721
codeSamplesNamespace: open-router-python-code-samples
- codeSamplesRevisionDigest: sha256:2102c1a3aba8dca6a50204d92b4b8cfd6becf530e6f2450ec782695181655b5d
+ codeSamplesRevisionDigest: sha256:38c22b3915cac11303f22f5de6ba74baccc294a9947b678f42b78d2222ef529c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
diff --git a/RELEASES.md b/RELEASES.md
index 297634fa..51730865 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2269,4 +2269,14 @@ Based on:
### Generated
- [python v1.1.148] .
### Releases
-- [PyPI v1.1.148] https://pypi.org/project/openrouter/1.1.148 - .
\ No newline at end of file
+- [PyPI v1.1.148] https://pypi.org/project/openrouter/1.1.148 - .
+
+## 2026-09-16 14:44:23
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v1.1.149] .
+### Releases
+- [PyPI v1.1.149] https://pypi.org/project/openrouter/1.1.149 - .
\ No newline at end of file
diff --git a/docs/operations/alloweddataregion.mdx b/docs/operations/alloweddataregion.mdx
new file mode 100644
index 00000000..098bd77e
--- /dev/null
+++ b/docs/operations/alloweddataregion.mdx
@@ -0,0 +1,21 @@
+---
+title: "AllowedDataRegion"
+---
+
+## Example Usage
+
+```python
+from openrouter.operations import AllowedDataRegion
+
+# Open enum: unrecognized values are captured as UnrecognizedStr
+value: AllowedDataRegion = "global"
+```
+
+
+## Values
+
+This is an open enum. Unrecognized values will not fail type checks.
+
+- `"global"`
+- `"europe"`
+- `"us"`
diff --git a/docs/operations/getcurrentkeydata.mdx b/docs/operations/getcurrentkeydata.mdx
index 63a96376..7cdcc557 100644
--- a/docs/operations/getcurrentkeydata.mdx
+++ b/docs/operations/getcurrentkeydata.mdx
@@ -9,6 +9,7 @@ Current API key information
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `allowed_data_regions` | List[[operations.AllowedDataRegion](../operations/alloweddataregion.mdx)] | :heavy_check_mark: | Data regions permitted for this API key by the guardrail policies on the key and the account regional-routing entitlement. Empty when no region is permitted. Reflects region policy only: other key restrictions, such as management keys being blocked from inference, still apply. | [
"global",
"europe",
"us"
] |
| `byok_usage` | *float* | :heavy_check_mark: | Total external BYOK usage (in USD) for the API key | 17.38 |
| `byok_usage_daily` | *float* | :heavy_check_mark: | External BYOK usage (in USD) for the current UTC day | 17.38 |
| `byok_usage_monthly` | *float* | :heavy_check_mark: | External BYOK usage (in USD) for current UTC month | 17.38 |
diff --git a/docs/operations/getcurrentkeyresponse.mdx b/docs/operations/getcurrentkeyresponse.mdx
index c948cc16..f8fbad09 100644
--- a/docs/operations/getcurrentkeyresponse.mdx
+++ b/docs/operations/getcurrentkeyresponse.mdx
@@ -7,6 +7,6 @@ API key details
## Fields
-| Field | Type | Required | Description | Example |
-| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `data` | [operations.GetCurrentKeyData](../operations/getcurrentkeydata.mdx) | :heavy_check_mark: | Current API key information | \{
"byok_usage": 17.38,
"byok_usage_daily": 17.38,
"byok_usage_monthly": 17.38,
"byok_usage_weekly": 17.38,
"creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000",
"expires_at": "2027-12-31T23:59:59Z",
"free_model_daily_requests": \{
"limit": 50,
"remaining": 38,
"used": 12
},
"include_byok_in_limit": false,
"is_free_tier": false,
"is_management_key": false,
"is_provisioning_key": false,
"label": "sk-or-v1-au7...890",
"limit": 100,
"limit_remaining": 74.5,
"limit_reset": "monthly",
"rate_limit": \{
"interval": "1h",
"note": "This field is deprecated and safe to ignore.",
"requests": 1000
},
"usage": 25.5,
"usage_daily": 25.5,
"usage_monthly": 25.5,
"usage_weekly": 25.5
} |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `data` | [operations.GetCurrentKeyData](../operations/getcurrentkeydata.mdx) | :heavy_check_mark: | Current API key information | \{
"allowed_data_regions": [
"global",
"europe",
"us"
],
"byok_usage": 17.38,
"byok_usage_daily": 17.38,
"byok_usage_monthly": 17.38,
"byok_usage_weekly": 17.38,
"creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000",
"expires_at": "2027-12-31T23:59:59Z",
"free_model_daily_requests": \{
"limit": 50,
"remaining": 38,
"used": 12
},
"include_byok_in_limit": false,
"is_free_tier": false,
"is_management_key": false,
"is_provisioning_key": false,
"label": "sk-or-v1-au7...890",
"limit": 100,
"limit_remaining": 74.5,
"limit_reset": "monthly",
"rate_limit": \{
"interval": "1h",
"note": "This field is deprecated and safe to ignore.",
"requests": 1000
},
"usage": 25.5,
"usage_daily": 25.5,
"usage_monthly": 25.5,
"usage_weekly": 25.5
} |
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 9041c403..8b944528 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
-version = "1.1.148"
+version = "1.1.149"
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 abcd8bc4..2fbe0307 100644
--- a/src/openrouter/_version.py
+++ b/src/openrouter/_version.py
@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "openrouter"
-__version__: str = "1.1.148"
+__version__: str = "1.1.149"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
-__user_agent__: str = "speakeasy-sdk/python 1.1.148 2.914.0 1.0.0 openrouter"
+__user_agent__: str = "speakeasy-sdk/python 1.1.149 2.914.0 1.0.0 openrouter"
try:
if __package__ is not None:
diff --git a/src/openrouter/operations/__init__.py b/src/openrouter/operations/__init__.py
index 036bec20..3a3975ce 100644
--- a/src/openrouter/operations/__init__.py
+++ b/src/openrouter/operations/__init__.py
@@ -380,6 +380,7 @@
GetCreditsResponseTypedDict,
)
from .getcurrentkey import (
+ AllowedDataRegion,
GetCurrentKeyData,
GetCurrentKeyDataTypedDict,
GetCurrentKeyGlobals,
@@ -875,6 +876,7 @@
)
__all__ = [
+ "AllowedDataRegion",
"Arena",
"BenchmarkType",
"BulkAddWorkspaceMembersGlobals",
@@ -1826,6 +1828,7 @@
"GetCreditsRequestTypedDict": ".getcredits",
"GetCreditsResponse": ".getcredits",
"GetCreditsResponseTypedDict": ".getcredits",
+ "AllowedDataRegion": ".getcurrentkey",
"GetCurrentKeyData": ".getcurrentkey",
"GetCurrentKeyDataTypedDict": ".getcurrentkey",
"GetCurrentKeyGlobals": ".getcurrentkey",
diff --git a/src/openrouter/operations/getcurrentkey.py b/src/openrouter/operations/getcurrentkey.py
index 1726a9fc..efc9fff9 100644
--- a/src/openrouter/operations/getcurrentkey.py
+++ b/src/openrouter/operations/getcurrentkey.py
@@ -11,11 +11,12 @@
OptionalNullable,
UNSET,
UNSET_SENTINEL,
+ UnrecognizedStr,
)
from openrouter.utils import FieldMetadata, HeaderMetadata
import pydantic
from pydantic import model_serializer
-from typing import Optional
+from typing import List, Literal, Optional, Union
from typing_extensions import Annotated, NotRequired, TypedDict, deprecated
@@ -147,6 +148,16 @@ def serialize_model(self, handler):
return m
+AllowedDataRegion = Union[
+ Literal[
+ "global",
+ "europe",
+ "us",
+ ],
+ UnrecognizedStr,
+]
+
+
@deprecated(
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
)
@@ -180,6 +191,8 @@ class RateLimit(BaseModel):
class GetCurrentKeyDataTypedDict(TypedDict):
r"""Current API key information"""
+ allowed_data_regions: List[AllowedDataRegion]
+ r"""Data regions permitted for this API key by the guardrail policies on the key and the account regional-routing entitlement. Empty when no region is permitted. Reflects region policy only: other key restrictions, such as management keys being blocked from inference, still apply."""
byok_usage: float
r"""Total external BYOK usage (in USD) for the API key"""
byok_usage_daily: float
@@ -227,6 +240,9 @@ class GetCurrentKeyDataTypedDict(TypedDict):
class GetCurrentKeyData(BaseModel):
r"""Current API key information"""
+ allowed_data_regions: List[AllowedDataRegion]
+ r"""Data regions permitted for this API key by the guardrail policies on the key and the account regional-routing entitlement. Empty when no region is permitted. Reflects region policy only: other key restrictions, such as management keys being blocked from inference, still apply."""
+
byok_usage: float
r"""Total external BYOK usage (in USD) for the API key"""
diff --git a/uv.lock b/uv.lock
index 3ba93c5a..066d99dd 100644
--- a/uv.lock
+++ b/uv.lock
@@ -213,7 +213,7 @@ wheels = [
[[package]]
name = "openrouter"
-version = "1.1.148"
+version = "1.1.149"
source = { editable = "." }
dependencies = [
{ name = "httpcore" },