Skip to content

Commit 5b06a4a

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent 9b7dcf5 commit 5b06a4a

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6348,6 +6348,7 @@ components:
63486348
allowed_models: null
63496349
allowed_user_ids: null
63506350
created_at: '2025-08-24T10:30:00Z'
6351+
declared_region: null
63516352
declared_zdr: null
63526353
disabled: false
63536354
id: '11111111-2222-3333-4444-555555555555'
@@ -6392,6 +6393,17 @@ components:
63926393
description: 'ISO timestamp of when the credential was created.'
63936394
example: '2025-08-24T10:30:00Z'
63946395
type: 'string'
6396+
declared_region:
6397+
description: 'Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter''s regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key''s region. Among other providers, only Azure accepts `europe` or `us`.'
6398+
enum:
6399+
- 'global'
6400+
- 'europe'
6401+
- 'us'
6402+
- null
6403+
example: null
6404+
type:
6405+
- 'string'
6406+
- 'null'
63956407
declared_zdr:
63966408
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter.'
63976409
example: null
@@ -6452,6 +6464,7 @@ components:
64526464
- 'is_required'
64536465
- 'is_byok_only'
64546466
- 'declared_zdr'
6467+
- 'declared_region'
64556468
- 'allowed_models'
64566469
- 'allowed_api_key_hashes'
64576470
- 'allowed_user_ids'
@@ -9175,6 +9188,17 @@ components:
91759188
type:
91769189
- 'array'
91779190
- 'null'
9191+
declared_region:
9192+
description: 'Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter''s regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key''s region. Among other providers, only Azure accepts `europe` or `us`. Defaults to the key''s region for OpenAI and Fireworks, otherwise `null`.'
9193+
enum:
9194+
- 'global'
9195+
- 'europe'
9196+
- 'us'
9197+
- null
9198+
example: null
9199+
type:
9200+
- 'string'
9201+
- 'null'
91789202
declared_zdr:
91799203
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter. Defaults to `null`.'
91809204
example: null
@@ -9227,6 +9251,7 @@ components:
92279251
allowed_models: null
92289252
allowed_user_ids: null
92299253
created_at: '2025-08-24T10:30:00Z'
9254+
declared_region: null
92309255
declared_zdr: null
92319256
disabled: false
92329257
id: '11111111-2222-3333-4444-555555555555'
@@ -12580,6 +12605,7 @@ components:
1258012605
allowed_models: null
1258112606
allowed_user_ids: null
1258212607
created_at: '2025-08-24T10:30:00Z'
12608+
declared_region: null
1258312609
declared_zdr: null
1258412610
disabled: false
1258512611
id: '11111111-2222-3333-4444-555555555555'
@@ -15416,6 +15442,7 @@ components:
1541615442
allowed_models: null
1541715443
allowed_user_ids: null
1541815444
created_at: '2025-08-24T10:30:00Z'
15445+
declared_region: null
1541915446
declared_zdr: null
1542015447
disabled: false
1542115448
id: '11111111-2222-3333-4444-555555555555'
@@ -30885,6 +30912,17 @@ components:
3088530912
type:
3088630913
- 'array'
3088730914
- 'null'
30915+
declared_region:
30916+
description: 'Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter''s regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key''s region. Among other providers, only Azure accepts `europe` or `us`. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.'
30917+
enum:
30918+
- 'global'
30919+
- 'europe'
30920+
- 'us'
30921+
- null
30922+
example: null
30923+
type:
30924+
- 'string'
30925+
- 'null'
3088830926
declared_zdr:
3088930927
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter. Omit to leave the stored value unchanged; `null` clears the declaration.'
3089030928
example: null
@@ -30927,6 +30965,7 @@ components:
3092730965
allowed_models: null
3092830966
allowed_user_ids: null
3092930967
created_at: '2025-08-24T10:30:00Z'
30968+
declared_region: null
3093030969
declared_zdr: null
3093130970
disabled: false
3093230971
id: '11111111-2222-3333-4444-555555555555'
@@ -35287,6 +35326,7 @@ paths:
3528735326
allowed_models: null
3528835327
allowed_user_ids: null
3528935328
created_at: '2025-08-24T10:30:00Z'
35329+
declared_region: null
3529035330
declared_zdr: null
3529135331
disabled: false
3529235332
id: '11111111-2222-3333-4444-555555555555'
@@ -35370,6 +35410,7 @@ paths:
3537035410
allowed_models: null
3537135411
allowed_user_ids: null
3537235412
created_at: '2025-08-24T10:30:00Z'
35413+
declared_region: null
3537335414
declared_zdr: null
3537435415
disabled: false
3537535416
id: '11111111-2222-3333-4444-555555555555'
@@ -35508,6 +35549,7 @@ paths:
3550835549
allowed_models: null
3550935550
allowed_user_ids: null
3551035551
created_at: '2025-08-24T10:30:00Z'
35552+
declared_region: null
3551135553
declared_zdr: null
3551235554
disabled: false
3551335555
id: '11111111-2222-3333-4444-555555555555'
@@ -35588,6 +35630,7 @@ paths:
3558835630
allowed_models: null
3558935631
allowed_user_ids: null
3559035632
created_at: '2025-08-24T10:30:00Z'
35633+
declared_region: null
3559135634
declared_zdr: null
3559235635
disabled: false
3559335636
id: '11111111-2222-3333-4444-555555555555'
@@ -35642,6 +35685,16 @@ paths:
3564235685
schema:
3564335686
$ref: '#/components/schemas/NotFoundResponse'
3564435687
description: 'Not Found - Resource does not exist'
35688+
'409':
35689+
content:
35690+
application/json:
35691+
example:
35692+
error:
35693+
code: 409
35694+
message: 'Resource conflict. Please try again later.'
35695+
schema:
35696+
$ref: '#/components/schemas/ConflictResponse'
35697+
description: 'Conflict - Resource conflict or concurrent modification'
3564535698
'500':
3564635699
content:
3564735700
application/json:

0 commit comments

Comments
 (0)