Skip to content

Commit 9e94c6e

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1209)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 46168d5 commit 9e94c6e

1 file changed

Lines changed: 2 additions & 273 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 2 additions & 273 deletions
Original file line numberDiff line numberDiff line change
@@ -10400,12 +10400,6 @@ components:
1040010400
type:
1040110401
- 'boolean'
1040210402
- 'null'
10403-
max_completion_tokens:
10404-
description: 'Cap on completion tokens per request. Requests asking for more skip this endpoint, and the default output length stays within it. When omitted, the cap is copied from the public endpoint for the same model and provider, if there is one.'
10405-
example: 131072
10406-
maximum: 2147483647
10407-
minimum: 1
10408-
type: 'integer'
1040910403
model_permaslug:
1041010404
description: 'Permanent slug of the model this endpoint serves.'
1041110405
example: 'openai/gpt-4o-2024-08-06'
@@ -33684,27 +33678,6 @@ components:
3368433678
required:
3368533679
- 'is_filtered_model_catalog_enabled'
3368633680
type: 'object'
33687-
UpdatePrivateEndpointParametersRequest:
33688-
properties:
33689-
declared_parameters:
33690-
description: 'Parameters the upstream supports beyond the tested ones. Replaces the earlier declaration; tested parameters stay. Order and repeated names are ignored, but the list holds at most as many entries as there are declarable parameters, repeats included. `tool_choice` requires `tools` to be tested or declared.'
33691-
example:
33692-
- 'temperature'
33693-
- 'seed'
33694-
items:
33695-
$ref: '#/components/schemas/PrivateEndpointDeclaredParameter'
33696-
maxItems: 25
33697-
type: 'array'
33698-
required:
33699-
- 'declared_parameters'
33700-
type: 'object'
33701-
UpdatePrivateEndpointPricingRequest:
33702-
properties:
33703-
pricing:
33704-
$ref: '#/components/schemas/PrivateEndpointPricing'
33705-
required:
33706-
- 'pricing'
33707-
type: 'object'
3370833681
UpdatePrivateEndpointRequest:
3370933682
description: 'Only the fields present change. `base_url`, `upstream_model_id`, `declared_zdr` and `declared_region` are accepted on a draft only; `pricing` and `declared_parameters` replace their value; `settings` is itself a partial update where `null` clears a limit or restores the provider default.'
3371033683
example:
@@ -48670,12 +48643,12 @@ paths:
4867048643
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.'
4867148644
operationId: 'createPrivateEndpoint'
4867248645
parameters:
48673-
- 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 `max_completion_tokens` are not compared, and later edits to the endpoint do not affect the comparison.'
48646+
- 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.'
4867448647
in: 'header'
4867548648
name: 'idempotency-key'
4867648649
required: false
4867748650
schema:
48678-
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 `max_completion_tokens` are not compared, and later edits to the endpoint do not affect the comparison.'
48651+
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.'
4867948652
example: 'wayfair-gpt-4o-eastus-2026-09'
4868048653
maxLength: 255
4868148654
minLength: 1
@@ -49441,250 +49414,6 @@ paths:
4944149414
tags:
4944249415
- 'Private Endpoints'
4944349416
x-speakeasy-name-override: 'enable'
49444-
/private-endpoints/{id}/parameters:
49445-
put:
49446-
deprecated: true
49447-
description: 'Deprecated: send `declared_parameters` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the earlier declaration and is read as a set; `tested_parameters` stay. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools` being tested or declared. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
49448-
operationId: 'updatePrivateEndpointParameters'
49449-
parameters:
49450-
- description: 'Stable identifier of the private endpoint.'
49451-
in: 'path'
49452-
name: 'id'
49453-
required: true
49454-
schema:
49455-
description: 'Stable identifier of the private endpoint.'
49456-
example: '5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11'
49457-
format: 'uuid'
49458-
type: 'string'
49459-
requestBody:
49460-
content:
49461-
application/json:
49462-
schema:
49463-
$ref: '#/components/schemas/UpdatePrivateEndpointParametersRequest'
49464-
required: true
49465-
responses:
49466-
'200':
49467-
content:
49468-
application/json:
49469-
schema:
49470-
$ref: '#/components/schemas/PrivateEndpointResponse'
49471-
description: 'The endpoint with its new declared parameters'
49472-
'400':
49473-
content:
49474-
application/json:
49475-
example:
49476-
error:
49477-
code: 400
49478-
message: 'Invalid request parameters'
49479-
schema:
49480-
$ref: '#/components/schemas/BadRequestResponse'
49481-
description: 'Bad Request - Invalid request parameters or malformed input'
49482-
'401':
49483-
content:
49484-
application/json:
49485-
example:
49486-
error:
49487-
code: 401
49488-
message: 'Missing Authentication header'
49489-
schema:
49490-
$ref: '#/components/schemas/UnauthorizedResponse'
49491-
description: 'Unauthorized - Authentication required or invalid credentials'
49492-
'403':
49493-
content:
49494-
application/json:
49495-
example:
49496-
error:
49497-
code: 403
49498-
message: 'Only management keys can perform this operation'
49499-
schema:
49500-
$ref: '#/components/schemas/ForbiddenResponse'
49501-
description: 'Forbidden - Authentication successful but insufficient permissions'
49502-
'404':
49503-
content:
49504-
application/json:
49505-
example:
49506-
error:
49507-
code: 404
49508-
message: 'Resource not found'
49509-
schema:
49510-
$ref: '#/components/schemas/NotFoundResponse'
49511-
description: 'Not Found - Resource does not exist'
49512-
'408':
49513-
content:
49514-
application/json:
49515-
example:
49516-
error:
49517-
code: 408
49518-
message: 'Operation timed out. Please try again later.'
49519-
schema:
49520-
$ref: '#/components/schemas/RequestTimeoutResponse'
49521-
description: 'Request Timeout - Operation exceeded time limit'
49522-
'409':
49523-
content:
49524-
application/json:
49525-
example:
49526-
error:
49527-
code: 409
49528-
message: 'Resource conflict. Please try again later.'
49529-
schema:
49530-
$ref: '#/components/schemas/ConflictResponse'
49531-
description: 'Conflict - Resource conflict or concurrent modification'
49532-
'422':
49533-
content:
49534-
application/json:
49535-
example:
49536-
error:
49537-
code: 422
49538-
message: 'Invalid argument'
49539-
schema:
49540-
$ref: '#/components/schemas/UnprocessableEntityResponse'
49541-
description: 'Unprocessable Entity - Semantic validation failure'
49542-
'500':
49543-
content:
49544-
application/json:
49545-
example:
49546-
error:
49547-
code: 500
49548-
message: 'Internal Server Error'
49549-
schema:
49550-
$ref: '#/components/schemas/InternalServerResponse'
49551-
description: 'Internal Server Error - Unexpected server error'
49552-
'502':
49553-
content:
49554-
application/json:
49555-
example:
49556-
error:
49557-
code: 502
49558-
message: 'Provider returned error'
49559-
schema:
49560-
$ref: '#/components/schemas/BadGatewayResponse'
49561-
description: 'Bad Gateway - Provider/upstream API failure'
49562-
summary: 'Set private endpoint supported parameters (deprecated)'
49563-
tags:
49564-
- 'Private Endpoints'
49565-
x-speakeasy-name-override: 'updateParameters'
49566-
/private-endpoints/{id}/pricing:
49567-
put:
49568-
deprecated: true
49569-
description: 'Deprecated: send `pricing` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy default. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
49570-
operationId: 'updatePrivateEndpointPricing'
49571-
parameters:
49572-
- description: 'Stable identifier of the private endpoint.'
49573-
in: 'path'
49574-
name: 'id'
49575-
required: true
49576-
schema:
49577-
description: 'Stable identifier of the private endpoint.'
49578-
example: '5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11'
49579-
format: 'uuid'
49580-
type: 'string'
49581-
requestBody:
49582-
content:
49583-
application/json:
49584-
schema:
49585-
$ref: '#/components/schemas/UpdatePrivateEndpointPricingRequest'
49586-
required: true
49587-
responses:
49588-
'200':
49589-
content:
49590-
application/json:
49591-
schema:
49592-
$ref: '#/components/schemas/PrivateEndpointResponse'
49593-
description: 'The endpoint with its new pricing'
49594-
'400':
49595-
content:
49596-
application/json:
49597-
example:
49598-
error:
49599-
code: 400
49600-
message: 'Invalid request parameters'
49601-
schema:
49602-
$ref: '#/components/schemas/BadRequestResponse'
49603-
description: 'Bad Request - Invalid request parameters or malformed input'
49604-
'401':
49605-
content:
49606-
application/json:
49607-
example:
49608-
error:
49609-
code: 401
49610-
message: 'Missing Authentication header'
49611-
schema:
49612-
$ref: '#/components/schemas/UnauthorizedResponse'
49613-
description: 'Unauthorized - Authentication required or invalid credentials'
49614-
'403':
49615-
content:
49616-
application/json:
49617-
example:
49618-
error:
49619-
code: 403
49620-
message: 'Only management keys can perform this operation'
49621-
schema:
49622-
$ref: '#/components/schemas/ForbiddenResponse'
49623-
description: 'Forbidden - Authentication successful but insufficient permissions'
49624-
'404':
49625-
content:
49626-
application/json:
49627-
example:
49628-
error:
49629-
code: 404
49630-
message: 'Resource not found'
49631-
schema:
49632-
$ref: '#/components/schemas/NotFoundResponse'
49633-
description: 'Not Found - Resource does not exist'
49634-
'408':
49635-
content:
49636-
application/json:
49637-
example:
49638-
error:
49639-
code: 408
49640-
message: 'Operation timed out. Please try again later.'
49641-
schema:
49642-
$ref: '#/components/schemas/RequestTimeoutResponse'
49643-
description: 'Request Timeout - Operation exceeded time limit'
49644-
'409':
49645-
content:
49646-
application/json:
49647-
example:
49648-
error:
49649-
code: 409
49650-
message: 'Resource conflict. Please try again later.'
49651-
schema:
49652-
$ref: '#/components/schemas/ConflictResponse'
49653-
description: 'Conflict - Resource conflict or concurrent modification'
49654-
'422':
49655-
content:
49656-
application/json:
49657-
example:
49658-
error:
49659-
code: 422
49660-
message: 'Invalid argument'
49661-
schema:
49662-
$ref: '#/components/schemas/UnprocessableEntityResponse'
49663-
description: 'Unprocessable Entity - Semantic validation failure'
49664-
'500':
49665-
content:
49666-
application/json:
49667-
example:
49668-
error:
49669-
code: 500
49670-
message: 'Internal Server Error'
49671-
schema:
49672-
$ref: '#/components/schemas/InternalServerResponse'
49673-
description: 'Internal Server Error - Unexpected server error'
49674-
'502':
49675-
content:
49676-
application/json:
49677-
example:
49678-
error:
49679-
code: 502
49680-
message: 'Provider returned error'
49681-
schema:
49682-
$ref: '#/components/schemas/BadGatewayResponse'
49683-
description: 'Bad Gateway - Provider/upstream API failure'
49684-
summary: 'Set private endpoint pricing (deprecated)'
49685-
tags:
49686-
- 'Private Endpoints'
49687-
x-speakeasy-name-override: 'updatePricing'
4968849417
/private-endpoints/{id}/validate:
4968949418
post:
4969049419
description: 'Send a live test request to the draft endpoint using the given workspace''s BYOK credential for its provider. A passing validation is required before activation. Failed checks return 200 with `passed: false`. [Management key](/docs/guides/overview/auth/management-api-keys) required.'

0 commit comments

Comments
 (0)