chore: update OpenAPI spec from monorepo (#437)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
openrouter-docs-sync[bot]
2026-07-13 19:17:05 +00:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 7010ca5c2e
commit 68b867f65c
+75 -10
View File
@@ -9646,6 +9646,80 @@ components:
- b64_json
- created
type: object
ImageGenerationProviderPreferences:
description: Provider routing preferences and provider-specific passthrough configuration.
example:
allow_fallbacks: false
only:
- google-ai-studio
properties:
allow_fallbacks:
description: >
Whether to allow backup providers to serve requests
- true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the
next best provider.
- false: use only the primary/custom provider, and return the upstream error if it's unavailable.
nullable: true
type: boolean
ignore:
description: >-
List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider
settings for this request.
example:
- openai
- anthropic
items:
anyOf:
- $ref: '#/components/schemas/ProviderName'
- type: string
nullable: true
type: array
only:
description: >-
List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider
settings for this request.
example:
- openai
- anthropic
items:
anyOf:
- $ref: '#/components/schemas/ProviderName'
- type: string
nullable: true
type: array
options:
allOf:
- $ref: '#/components/schemas/ProviderOptions'
- example:
black-forest-labs:
guidance: 3
steps: 40
order:
description: >-
An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this
list that supports your requested model, and fall back to the next if it is unavailable. If no providers are
available, the request will fail with an error message.
example:
- openai
- anthropic
items:
anyOf:
- $ref: '#/components/schemas/ProviderName'
- type: string
nullable: true
type: array
sort:
anyOf:
- $ref: '#/components/schemas/ProviderSort'
- $ref: '#/components/schemas/ProviderSortConfig'
- nullable: true
description: >-
The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is
performed.
example: price
type: object
ImageGenerationRequest:
description: Image generation request input
example:
@@ -9722,16 +9796,7 @@ components:
minLength: 1
type: string
provider:
description: Provider-specific passthrough configuration
properties:
options:
allOf:
- $ref: '#/components/schemas/ProviderOptions'
- example:
black-forest-labs:
guidance: 3
steps: 40
type: object
$ref: '#/components/schemas/ImageGenerationProviderPreferences'
quality:
description: Rendering quality. Providers without a quality knob ignore this.
enum: