From 404f74b28199e2e3e02028d99b2b9b33e8789d1a Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Mon, 30 Nov 2026 21:20:51 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 41 +++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 41d5be7c..af449333 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -5317,6 +5317,43 @@ components: required: - 'error' type: 'object' + BatchImageGenerationImage: + description: 'A generated image, as a link to its stored copy' + properties: + layer: + $ref: '#/components/schemas/ImageGenerationLayer' + media_type: + description: 'Media type (MIME type) of the image, e.g. `image/png`, `image/jpeg`, `image/webp`, `image/svg+xml`. May be omitted if the format could not be determined.' + example: 'image/png' + type: 'string' + url: + format: 'uri' + type: 'string' + required: + - 'url' + type: 'object' + BatchImageGenerationResponse: + description: 'Image generation result of a batch request: image links and when they expire' + properties: + created: + description: 'Unix timestamp (seconds) when the image was generated' + example: 1748372400 + type: 'integer' + data: + items: + $ref: '#/components/schemas/BatchImageGenerationImage' + type: 'array' + expires_at: + description: 'Unix timestamp (seconds) when the image URLs in `data` stop working. Download the images before then.' + example: 1748458800 + type: 'integer' + usage: + $ref: '#/components/schemas/ImageGenerationUsage' + required: + - 'created' + - 'expires_at' + - 'data' + type: 'object' BatchInputReference: additionalProperties: false description: 'A batch input file or table in your own storage, named in place of `requests`. Available to allowlisted callers on Google Vertex BYOK endpoints only.' @@ -6727,6 +6764,7 @@ components: - 'audio' - 'usage' type: 'object' + - $ref: '#/components/schemas/BatchImageGenerationResponse' request_id: type: - 'string' @@ -6793,6 +6831,7 @@ components: - '/v1/messages' - '/v1/embeddings' - '/v1/audio/speech' + - '/v1/images/generations' type: 'string' input: $ref: '#/components/schemas/BatchInputReference' @@ -42502,7 +42541,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`, `/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).' + 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`, `/v1/images/generations`). 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: