You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+56-7Lines changed: 56 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23804,7 +23804,9 @@ components:
23804
23804
- 'temperature'
23805
23805
- 'top_p'
23806
23806
- 'max_tokens'
23807
+
supports_image_reference: false
23807
23808
supports_implicit_caching: true
23809
+
supports_multiple_audio_references: false
23808
23810
supports_tool_choice:
23809
23811
auto: true
23810
23812
function: true
@@ -24096,8 +24098,16 @@ components:
24096
24098
items:
24097
24099
$ref: '#/components/schemas/Parameter'
24098
24100
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'
24099
24105
supports_implicit_caching:
24100
24106
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.'
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.'
25757
25769
example:
25758
25770
input_audio:
25759
25771
data: 'data:audio/wav;base64,UklGRuQXDABXQVZF...'
@@ -25773,7 +25785,7 @@ components:
25773
25785
description: 'Reference audio input object'
25774
25786
properties:
25775
25787
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.'
description: 'Audio format of the reference audio (e.g., wav, mp3). Optional; most providers detect the format from the audio bytes.'
25783
25795
example: 'wav'
25784
25796
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.'
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'
25787
25832
type: 'object'
25788
25833
SpeechInputReferenceText:
25789
-
description: 'Transcript of the accompanying reference audio'
25834
+
description: 'Transcript of an `input_audio` part'
25790
25835
example:
25791
25836
text: 'I used to rule the world.'
25792
25837
type: 'text'
25793
25838
properties:
25794
25839
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.'
25796
25841
example: 'I used to rule the world.'
25797
25842
maxLength: 10000
25798
25843
type: 'string'
@@ -25818,7 +25863,7 @@ components:
25818
25863
example: 'Hello world'
25819
25864
type: 'string'
25820
25865
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.'
0 commit comments