chore: update OpenAPI spec from monorepo (#304)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-06-11 09:18:46 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 0f116c9792
commit b794150ed9
+190 -4
View File
@@ -6728,6 +6728,44 @@ components:
id: ctco-abc123 id: ctco-abc123
output: patch applied successfully output: patch applied successfully
type: custom_tool_call_output type: custom_tool_call_output
DABenchmarkEntry:
description: A single Design Arena benchmark entry for a specific arena+category
example:
arena: models
category: website
elo: 1385.2
rank: 5
win_rate: 62.5
properties:
arena:
description: Arena type (e.g. models, builders, agents)
example: models
type: string
category:
description: Category within the arena (e.g. website, gamedev, uicomponent)
example: website
type: string
elo:
description: ELO rating from head-to-head arena battles
example: 1385.2
format: double
type: number
rank:
description: Rank position within this arena+category among models available on OpenRouter (1 = highest ELO)
example: 5
type: integer
win_rate:
description: Win rate percentage in arena battles
example: 62.5
format: double
type: number
required:
- arena
- category
- elo
- win_rate
- rank
type: object
DatetimeServerTool: DatetimeServerTool:
description: 'OpenRouter built-in server tool: returns the current date and time' description: 'OpenRouter built-in server tool: returns the current date and time'
example: example:
@@ -11577,6 +11615,8 @@ components:
properties: properties:
architecture: architecture:
$ref: '#/components/schemas/ModelArchitecture' $ref: '#/components/schemas/ModelArchitecture'
benchmarks:
$ref: '#/components/schemas/ModelBenchmarks'
canonical_slug: canonical_slug:
description: Canonical slug for the model description: Canonical slug for the model
example: openai/gpt-4 example: openai/gpt-4
@@ -11716,6 +11756,32 @@ components:
- input_modalities - input_modalities
- output_modalities - output_modalities
type: object type: object
ModelBenchmarks:
description: Third-party benchmark rankings for this model. Omitted when no benchmark data is available.
example:
design_arena:
- arena: models
category: website
elo: 1385.2
rank: 5
win_rate: 62.5
properties:
design_arena:
description: >-
Design Arena ELO rankings across arena+category pairs. The parent benchmarks object is omitted when the
model has not been evaluated.
example:
- arena: models
category: website
elo: 1385.2
rank: 5
win_rate: 62.5
items:
$ref: '#/components/schemas/DABenchmarkEntry'
type: array
required:
- design_arena
type: object
ModelGroup: ModelGroup:
description: Tokenizer type used by the model description: Tokenizer type used by the model
enum: enum:
@@ -11757,6 +11823,43 @@ components:
description: Model to use for completion description: Model to use for completion
example: openai/gpt-4 example: openai/gpt-4
type: string type: string
ModelResponse:
description: Single model response
example:
data:
architecture:
input_modalities:
- text
instruct_type: chatml
modality: text->text
output_modalities:
- text
tokenizer: GPT
context_length: 8192
created: 1692901234
description: GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
id: openai/gpt-4
name: GPT-4
per_request_limits: null
pricing:
completion: '0.00006'
image: '0'
prompt: '0.00003'
request: '0'
supported_parameters:
- temperature
- top_p
- max_tokens
top_provider:
context_length: 8192
is_moderated: true
max_completion_tokens: 4096
properties:
data:
$ref: '#/components/schemas/Model'
required:
- data
type: object
ModelsCountResponse: ModelsCountResponse:
description: Model count data description: Model count data
example: example:
@@ -21451,10 +21554,10 @@ paths:
type: string type: string
group_limit: group_limit:
description: >- description: >-
Maximum rows per distinct combination of dimensions (ClickHouse LIMIT n BY). When omitted on Maximum rows per distinct combination of dimensions. When omitted on time-series queries
time-series queries (granularity + dimensions), auto-computed to avoid truncating time windows. (granularity + dimensions), auto-computed to avoid truncating time windows. Explicit values override
Explicit values override the default and may truncate time buckets if set lower than the number of the default and may truncate time buckets if set lower than the number of buckets in the range.
buckets in the range. Ignored when no dimensions are specified. Ignored when no dimensions are specified.
example: 100 example: 100
type: integer type: integer
limit: limit:
@@ -26902,6 +27005,89 @@ paths:
x-speakeasy-ignore: true x-speakeasy-ignore: true
x-speakeasy-name-override: create x-speakeasy-name-override: create
x-speakeasy-stream-request-field: stream x-speakeasy-stream-request-field: stream
/model/{author}/{slug}:
get:
description: >-
Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant
suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.
operationId: getModel
parameters:
- description: The author/organization of the model
in: path
name: author
required: true
schema:
description: The author/organization of the model
example: openai
type: string
- description: The model slug, optionally including a variant suffix (e.g. gpt-4 or gpt-4:free)
in: path
name: slug
required: true
schema:
description: The model slug, optionally including a variant suffix (e.g. gpt-4 or gpt-4:free)
example: gpt-4
type: string
responses:
'200':
content:
application/json:
example:
data:
architecture:
input_modalities:
- text
instruct_type: chatml
modality: text->text
output_modalities:
- text
tokenizer: GPT
context_length: 8192
created: 1692901234
description: GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
id: openai/gpt-4
name: GPT-4
per_request_limits: null
pricing:
completion: '0.00006'
image: '0'
prompt: '0.00003'
request: '0'
supported_parameters:
- temperature
- top_p
- max_tokens
top_provider:
context_length: 8192
is_moderated: true
max_completion_tokens: 4096
schema:
$ref: '#/components/schemas/ModelResponse'
description: Returns the model details
'404':
content:
application/json:
example:
error:
code: 404
message: Resource not found
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: Not Found - Resource does not exist
'500':
content:
application/json:
example:
error:
code: 500
message: Internal Server Error
schema:
$ref: '#/components/schemas/InternalServerResponse'
description: Internal Server Error - Unexpected server error
summary: Get a model by its slug
tags:
- Models
x-speakeasy-name-override: get
/models: /models:
get: get:
operationId: getModels operationId: getModels