Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down Expand Up @@ -6727,6 +6764,7 @@ components:
- 'audio'
- 'usage'
type: 'object'
- $ref: '#/components/schemas/BatchImageGenerationResponse'
request_id:
type:
- 'string'
Expand Down Expand Up @@ -6793,6 +6831,7 @@ components:
- '/v1/messages'
- '/v1/embeddings'
- '/v1/audio/speech'
- '/v1/images/generations'
type: 'string'
input:
$ref: '#/components/schemas/BatchInputReference'
Expand Down Expand Up @@ -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:
Expand Down
Loading