From 69ab1b4ff525871d5d6afc29e6fcabbd570c712c Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Wed, 11 Nov 2026 22:48:24 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 98 +++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 3655c0a9f..af67288b6 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -6230,6 +6230,101 @@ components: - 'data' - 'model' type: 'object' + - additionalProperties: false + properties: + audio: + anyOf: + - additionalProperties: false + properties: + bits_per_sample: + enum: + - 16 + type: 'number' + channels: + exclusiveMinimum: true + minimum: 0 + type: 'integer' + data: + description: 'Base64-encoded PCM16 audio in the format the sibling fields give.' + minLength: 1 + type: 'string' + format: + enum: + - 'pcm' + type: 'string' + sample_rate: + exclusiveMinimum: true + minimum: 0 + type: 'integer' + required: + - 'format' + - 'sample_rate' + - 'channels' + - 'bits_per_sample' + - 'data' + type: 'object' + - additionalProperties: false + properties: + bits_per_sample: + enum: + - 16 + type: 'number' + byte_length: + exclusiveMinimum: true + minimum: 0 + type: 'integer' + channels: + exclusiveMinimum: true + minimum: 0 + type: 'integer' + format: + enum: + - 'pcm' + type: 'string' + sample_rate: + exclusiveMinimum: true + minimum: 0 + type: 'integer' + sha256: + pattern: '^[0-9a-f]{64}$' + type: 'string' + required: + - 'format' + - 'sample_rate' + - 'channels' + - 'bits_per_sample' + - 'byte_length' + - 'sha256' + type: 'object' + model: + type: 'string' + object: + enum: + - 'audio.speech' + type: 'string' + usage: + additionalProperties: false + properties: + completion_tokens: + minimum: 0 + type: 'integer' + prompt_tokens: + minimum: 0 + type: 'integer' + total_tokens: + minimum: 0 + type: 'integer' + required: + - 'prompt_tokens' + - 'completion_tokens' + - 'total_tokens' + type: 'object' + required: + - 'object' + - 'model' + - 'audio' + - 'usage' + type: 'object' request_id: type: - 'string' @@ -6642,6 +6737,7 @@ components: - '/v1/responses' - '/v1/messages' - '/v1/embeddings' + - '/v1/audio/speech' type: 'string' model: minLength: 1 @@ -40728,7 +40824,7 @@ paths: results: '$.data' type: 'cursor' post: - description: 'Creates a batch of requests that run asynchronously against a single endpoint (`/v1/chat/completions`, `/v1/responses`, `/v1/messages`, `/v1/embeddings`). Returns `202` with `status: "validating"`. Poll `GET /batches/{id}` for progress and results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).' + description: 'Creates a batch of requests that run asynchronously against a single endpoint (`/v1/chat/completions`, `/v1/responses`, `/v1/messages`, `/v1/embeddings`, `/v1/audio/speech`). Returns `202` with `status: "validating"`. Poll `GET /batches/{id}` for progress and results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).' operationId: 'createBatches' requestBody: content: