Skip to content

Commit 8bcfe73

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#943)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 3fbfefa commit 8bcfe73

1 file changed

Lines changed: 56 additions & 7 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 56 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23804,7 +23804,9 @@ components:
2380423804
- 'temperature'
2380523805
- 'top_p'
2380623806
- 'max_tokens'
23807+
supports_image_reference: false
2380723808
supports_implicit_caching: true
23809+
supports_multiple_audio_references: false
2380823810
supports_tool_choice:
2380923811
auto: true
2381023812
function: true
@@ -24096,8 +24098,16 @@ components:
2409624098
items:
2409724099
$ref: '#/components/schemas/Parameter'
2409824100
type: 'array'
24101+
supports_image_reference:
24102+
default: false
24103+
description: 'Whether this TTS endpoint accepts an `image_url` reference describing the desired voice. Requests carrying an image reference are only routed to endpoints where this is true.'
24104+
type: 'boolean'
2409924105
supports_implicit_caching:
2410024106
type: 'boolean'
24107+
supports_multiple_audio_references:
24108+
default: false
24109+
description: 'Whether this TTS endpoint accepts more than one `input_audio` reference clip per request. Requests carrying several clips are only routed to endpoints where this is true.'
24110+
type: 'boolean'
2410124111
supports_tool_choice:
2410224112
$ref: '#/components/schemas/ToolChoiceSupport'
2410324113
supports_voice_cloning:
@@ -25743,17 +25753,19 @@ components:
2574325753
- $ref: '#/components/schemas/ContainerAutoEnvironment'
2574425754
- $ref: '#/components/schemas/ContainerReferenceEnvironment'
2574525755
SpeechInputReference:
25746-
description: 'Reference content part for stateless voice cloning'
25756+
description: 'Reference content part for stateless voice cloning or voice design'
2574725757
discriminator:
2574825758
mapping:
25759+
image_url: '#/components/schemas/SpeechInputReferenceImage'
2574925760
input_audio: '#/components/schemas/SpeechInputReferenceAudio'
2575025761
text: '#/components/schemas/SpeechInputReferenceText'
2575125762
propertyName: 'type'
2575225763
oneOf:
2575325764
- $ref: '#/components/schemas/SpeechInputReferenceAudio'
2575425765
- $ref: '#/components/schemas/SpeechInputReferenceText'
25766+
- $ref: '#/components/schemas/SpeechInputReferenceImage'
2575525767
SpeechInputReferenceAudio:
25756-
description: 'Reference audio input for stateless voice cloning'
25768+
description: 'Reference audio input for stateless voice cloning. Up to three parts per request; the Nth audio part is addressable from `input` as `@AudioN` on providers that support multiple references.'
2575725769
example:
2575825770
input_audio:
2575925771
data: 'data:audio/wav;base64,UklGRuQXDABXQVZF...'
@@ -25773,7 +25785,7 @@ components:
2577325785
description: 'Reference audio input object'
2577425786
properties:
2577525787
data:
25776-
description: 'Base64-encoded reference audio (optionally a data URI). Supported audio formats are provider-specific. Limited to 20 MiB of base64 (15 MiB of decoded audio).'
25788+
description: 'Base64-encoded reference audio (optionally a data URI). Supported audio formats are provider-specific. Limited to 20 MiB of base64 (15 MiB of decoded audio). Exactly one of `data` or `url` is required.'
2577725789
example: 'data:audio/wav;base64,UklGRuQXDABXQVZF...'
2577825790
maxLength: 20971520
2577925791
minLength: 1
@@ -25782,17 +25794,50 @@ components:
2578225794
description: 'Audio format of the reference audio (e.g., wav, mp3). Optional; most providers detect the format from the audio bytes.'
2578325795
example: 'wav'
2578425796
type: 'string'
25797+
url:
25798+
description: 'Public http(s) URL of the reference audio. OpenRouter downloads it (15 MiB max) and forwards the bytes, never the URL. Exactly one of `data` or `url` is required.'
25799+
example: 'https://example.com/reference.wav'
25800+
format: 'uri'
25801+
maxLength: 2048
25802+
type: 'string'
25803+
type: 'object'
25804+
SpeechInputReferenceImage:
25805+
description: 'Reference image describing the desired voice. Cannot be combined with `input_audio` parts. Only routed to endpoints that support image references.'
25806+
example:
25807+
image_url:
25808+
url: 'data:image/png;base64,iVBORw0KGgo...'
25809+
type: 'image_url'
25810+
properties:
25811+
image_url:
25812+
$ref: '#/components/schemas/SpeechInputReferenceImageInput'
25813+
type:
25814+
enum:
25815+
- 'image_url'
25816+
type: 'string'
2578525817
required:
25786-
- 'data'
25818+
- 'type'
25819+
- 'image_url'
25820+
type: 'object'
25821+
SpeechInputReferenceImageInput:
25822+
description: 'Reference image input object'
25823+
properties:
25824+
url:
25825+
description: 'JPEG, PNG, or WebP reference image as a base64 data URI or a public http(s) URL. Remote images are downloaded (15 MiB max) and forwarded as bytes, never as the URL.'
25826+
example: 'data:image/png;base64,iVBORw0KGgo...'
25827+
maxLength: 20971520
25828+
minLength: 1
25829+
type: 'string'
25830+
required:
25831+
- 'url'
2578725832
type: 'object'
2578825833
SpeechInputReferenceText:
25789-
description: 'Transcript of the accompanying reference audio'
25834+
description: 'Transcript of an `input_audio` part'
2579025835
example:
2579125836
text: 'I used to rule the world.'
2579225837
type: 'text'
2579325838
properties:
2579425839
text:
25795-
description: 'Transcript of the accompanying reference audio.'
25840+
description: 'Transcript of an `input_audio` part. With a single clip it may appear before or after the clip; with multiple clips it must immediately follow the clip it transcribes.'
2579625841
example: 'I used to rule the world.'
2579725842
maxLength: 10000
2579825843
type: 'string'
@@ -25818,7 +25863,7 @@ components:
2581825863
example: 'Hello world'
2581925864
type: 'string'
2582025865
input_references:
25821-
description: 'Reference content for stateless voice cloning: one `input_audio` part carrying the voice sample, optionally accompanied by one `text` part with its transcript. Only routed to endpoints that support voice cloning.'
25866+
description: 'Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip); only routed to endpoints that support voice cloning (and multiple references when more than one part is sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. The two modes cannot be mixed. An empty array is treated as no reference.'
2582225867
example:
2582325868
- input_audio:
2582425869
data: 'data:audio/wav;base64,UklGRuQXDABXQVZF...'
@@ -33874,7 +33919,9 @@ paths:
3387433919
- 'temperature'
3387533920
- 'top_p'
3387633921
- 'max_tokens'
33922+
supports_image_reference: false
3387733923
supports_implicit_caching: true
33924+
supports_multiple_audio_references: false
3387833925
supports_voice_cloning: false
3387933926
tag: 'openai'
3388033927
throughput_last_30m:
@@ -33911,7 +33958,9 @@ paths:
3391133958
- 'temperature'
3391233959
- 'top_p'
3391333960
- 'max_tokens'
33961+
supports_image_reference: false
3391433962
supports_implicit_caching: true
33963+
supports_multiple_audio_references: false
3391533964
supports_voice_cloning: false
3391633965
tag: 'openai'
3391733966
throughput_last_30m:

0 commit comments

Comments
 (0)