From 051cd474c7e9613d6bed4ea89a7246ae9ec9d3dd Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Tue, 24 Nov 2026 10:55:53 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 38195d65..8ee2a7b6 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -34639,6 +34639,13 @@ components: description: 'TTS model identifier' example: 'mistralai/voxtral-mini-tts-2603' type: 'string' + output_delivery: + description: '`stream` (default) streams the audio bytes directly in the response body. `url` stores the generated audio in OpenRouter storage and returns a JSON response with a signed download `url`, `expires_at`, and `media_type`. The URL is a bearer link: anyone holding it can download the audio until it expires, up to 24 hours after the audio was stored (use `expires_at`); the stored copy is deleted by the storage lifecycle within the following day. Falls back to streaming raw audio bytes when a URL cannot be issued because zero-data-retention applies (account settings, guardrails, `provider.zdr`, or a ZDR endpoint) or the request has no workspace.' + enum: + - 'stream' + - 'url' + example: 'stream' + type: 'string' provider: description: 'Provider configuration: provider routing preferences (`order`, `only`, `ignore`, `allow_fallbacks`), data policy routing preferences (`zdr`, `data_collection`) and provider-specific passthrough options' properties: @@ -41267,7 +41274,7 @@ paths: x-speakeasy-name-override: 'create' /audio/speech: post: - description: 'Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).' + description: 'Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm) by default, or a JSON response with a 24-hour signed download URL when `output_delivery` is set to `"url"`.' operationId: 'createAudioSpeech' requestBody: content: @@ -41290,7 +41297,7 @@ paths: example: '' format: 'binary' type: 'string' - description: 'Audio bytes stream' + description: 'Raw audio bytes stream (`audio/*`) by default. When `output_delivery` is `"url"`, returns `application/json` with `{ url, expires_at, media_type }` (a 24-hour signed download URL) unless zero-data-retention or missing workspace causes fallback to raw audio streaming.' '400': content: application/json: