Skip to content

Commit 907c572

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent 152606d commit 907c572

1 file changed

Lines changed: 43 additions & 65 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 43 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -13243,6 +13243,7 @@ components:
1324313243
unit: 'token'
1324413244
value: 8192
1324513245
type: 'text'
13246+
is_open_weight: false
1324613247
knowledge_cutoff: null
1324713248
links:
1324813249
details: '/api/v1/models/openai/text-embedding-3-small/endpoints'
@@ -13303,6 +13304,7 @@ components:
1330313304
unit: 'token'
1330413305
value: 8192
1330513306
type: 'text'
13307+
is_open_weight: false
1330613308
knowledge_cutoff: null
1330713309
links:
1330813310
details: '/api/v1/models/openai/text-embedding-3-small/endpoints'
@@ -22558,27 +22560,24 @@ components:
2255822560
created: 1692901234
2255922561
default_parameters: null
2256022562
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
22563+
endpoints:
22564+
- '/api/v1/chat/completions'
22565+
- '/api/v1/completions'
22566+
- '/api/v1/messages'
22567+
- '/api/v1/responses'
2256122568
expiration_date: null
2256222569
id: 'openai/gpt-4'
22570+
is_open_weight: false
2256322571
knowledge_cutoff: null
2256422572
links:
22565-
details: '/api/v1/models/openai/gpt-5.4/endpoints'
22573+
details: '/api/v1/models/openai/gpt-4/endpoints'
2256622574
name: 'GPT-4'
2256722575
per_request_limits: null
2256822576
pricing:
2256922577
completion: '0.00006'
2257022578
image: '0'
2257122579
prompt: '0.00003'
2257222580
request: '0'
22573-
reasoning:
22574-
default_effort: 'medium'
22575-
default_enabled: true
22576-
mandatory: false
22577-
supported_efforts:
22578-
- 'high'
22579-
- 'medium'
22580-
- 'low'
22581-
- 'minimal'
2258222581
supported_parameters:
2258322582
- 'temperature'
2258422583
- 'top_p'
@@ -22641,6 +22640,10 @@ components:
2264122640
description: 'Unique identifier for the model'
2264222641
example: 'openai/gpt-4'
2264322642
type: 'string'
22643+
is_open_weight:
22644+
description: 'Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.'
22645+
example: false
22646+
type: 'boolean'
2264422647
knowledge_cutoff:
2264522648
description: 'The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.'
2264622649
example: '2024-10-01'
@@ -23885,6 +23888,7 @@ components:
2388523888
- '/api/v1/responses'
2388623889
expiration_date: null
2388723890
id: 'openai/gpt-4'
23891+
is_open_weight: false
2388823892
knowledge_cutoff: null
2388923893
links:
2389023894
details: '/api/v1/models/openai/gpt-4/endpoints'
@@ -23948,8 +23952,14 @@ components:
2394823952
created: 1692901234
2394923953
default_parameters: null
2395023954
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
23955+
endpoints:
23956+
- '/api/v1/chat/completions'
23957+
- '/api/v1/completions'
23958+
- '/api/v1/messages'
23959+
- '/api/v1/responses'
2395123960
expiration_date: null
2395223961
id: 'openai/gpt-4'
23962+
is_open_weight: false
2395323963
knowledge_cutoff: null
2395423964
links:
2395523965
details: '/api/v1/models/openai/gpt-4/endpoints'
@@ -23964,8 +23974,6 @@ components:
2396423974
- 'temperature'
2396523975
- 'top_p'
2396623976
- 'max_tokens'
23967-
- 'frequency_penalty'
23968-
- 'presence_penalty'
2396923977
supported_voices: null
2397023978
top_provider:
2397123979
context_length: 8192
@@ -24014,8 +24022,14 @@ components:
2401424022
created: 1692901234
2401524023
default_parameters: null
2401624024
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
24025+
endpoints:
24026+
- '/api/v1/chat/completions'
24027+
- '/api/v1/completions'
24028+
- '/api/v1/messages'
24029+
- '/api/v1/responses'
2401724030
expiration_date: null
2401824031
id: 'openai/gpt-4'
24032+
is_open_weight: false
2401924033
knowledge_cutoff: null
2402024034
links:
2402124035
details: '/api/v1/models/openai/gpt-4/endpoints'
@@ -34316,27 +34330,24 @@ components:
3431634330
created: 1692901234
3431734331
default_parameters: null
3431834332
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
34333+
endpoints:
34334+
- '/api/v1/chat/completions'
34335+
- '/api/v1/completions'
34336+
- '/api/v1/messages'
34337+
- '/api/v1/responses'
3431934338
expiration_date: null
3432034339
id: 'openai/gpt-4'
34340+
is_open_weight: false
3432134341
knowledge_cutoff: null
3432234342
links:
34323-
details: '/api/v1/models/openai/gpt-5.4/endpoints'
34343+
details: '/api/v1/models/openai/gpt-4/endpoints'
3432434344
name: 'GPT-4'
3432534345
per_request_limits: null
3432634346
pricing:
3432734347
completion: '0.00006'
3432834348
image: '0'
3432934349
prompt: '0.00003'
3433034350
request: '0'
34331-
reasoning:
34332-
default_effort: 'medium'
34333-
default_enabled: true
34334-
mandatory: false
34335-
supported_efforts:
34336-
- 'high'
34337-
- 'medium'
34338-
- 'low'
34339-
- 'minimal'
3434034351
supported_parameters:
3434134352
- 'temperature'
3434234353
- 'top_p'
@@ -34372,8 +34383,14 @@ components:
3437234383
created: 1692901234
3437334384
default_parameters: null
3437434385
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
34386+
endpoints:
34387+
- '/api/v1/chat/completions'
34388+
- '/api/v1/completions'
34389+
- '/api/v1/messages'
34390+
- '/api/v1/responses'
3437534391
expiration_date: null
3437634392
id: 'openai/gpt-4'
34393+
is_open_weight: false
3437734394
knowledge_cutoff: null
3437834395
links:
3437934396
details: '/api/v1/models/openai/gpt-4/endpoints'
@@ -34388,8 +34405,6 @@ components:
3438834405
- 'temperature'
3438934406
- 'top_p'
3439034407
- 'max_tokens'
34391-
- 'frequency_penalty'
34392-
- 'presence_penalty'
3439334408
supported_voices: null
3439434409
top_provider:
3439534410
context_length: 8192
@@ -48239,6 +48254,7 @@ paths:
4823948254
unit: 'token'
4824048255
value: 8192
4824148256
type: 'text'
48257+
is_open_weight: false
4824248258
knowledge_cutoff: null
4824348259
links:
4824448260
details: '/api/v1/models/openai/text-embedding-3-small/endpoints'
@@ -56650,47 +56666,6 @@ paths:
5665056666
'200':
5665156667
content:
5665256668
application/json:
56653-
example:
56654-
data:
56655-
architecture:
56656-
input_modalities:
56657-
- 'text'
56658-
instruct_type: 'chatml'
56659-
modality: 'text->text'
56660-
output_modalities:
56661-
- 'text'
56662-
tokenizer: 'GPT'
56663-
canonical_slug: 'openai/gpt-4'
56664-
context_length: 8192
56665-
created: 1692901234
56666-
default_parameters: null
56667-
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
56668-
endpoints:
56669-
- '/api/v1/chat/completions'
56670-
- '/api/v1/completions'
56671-
- '/api/v1/messages'
56672-
- '/api/v1/responses'
56673-
expiration_date: null
56674-
id: 'openai/gpt-4'
56675-
knowledge_cutoff: null
56676-
links:
56677-
details: '/api/v1/models/openai/gpt-4/endpoints'
56678-
name: 'GPT-4'
56679-
per_request_limits: null
56680-
pricing:
56681-
completion: '0.00006'
56682-
image: '0'
56683-
prompt: '0.00003'
56684-
request: '0'
56685-
supported_parameters:
56686-
- 'temperature'
56687-
- 'top_p'
56688-
- 'max_tokens'
56689-
supported_voices: null
56690-
top_provider:
56691-
context_length: 8192
56692-
is_moderated: true
56693-
max_completion_tokens: 4096
5669456669
schema:
5669556670
$ref: '#/components/schemas/ModelResponse'
5669656671
description: 'Returns the model details'
@@ -57337,6 +57312,7 @@ paths:
5733757312
- '/api/v1/responses'
5733857313
expiration_date: null
5733957314
id: 'openai/gpt-4'
57315+
is_open_weight: false
5734057316
knowledge_cutoff: null
5734157317
links:
5734257318
details: '/api/v1/models/openai/gpt-4/endpoints'
@@ -57781,6 +57757,7 @@ paths:
5778157757
- '/api/v1/responses'
5778257758
expiration_date: null
5778357759
id: 'openai/gpt-4'
57760+
is_open_weight: false
5778457761
knowledge_cutoff: null
5778557762
links:
5778657763
details: '/api/v1/models/openai/gpt-4/endpoints'
@@ -62284,6 +62261,7 @@ paths:
6228462261
unit: 'token'
6228562262
value: 4096
6228662263
type: 'text'
62264+
is_open_weight: false
6228762265
knowledge_cutoff: null
6228862266
links:
6228962267
details: '/api/v1/models/cohere/rerank-v3.5/endpoints'

0 commit comments

Comments
 (0)