Skip to content
Merged
Show file tree
Hide file tree
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
144 changes: 102 additions & 42 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.173
version: 1.3.174
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
167 changes: 166 additions & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5285,6 +5285,17 @@ components:
required:
- 'error'
type: 'object'
BatchInputReference:
additionalProperties: false
description: 'A batch input file in your own storage, named in place of `requests`. Available to allowlisted callers on Google Vertex BYOK endpoints only.'
properties:
uri:
description: 'Cloud Storage URI of the batch input file, in the form `gs://bucket/object`. The file stays in your bucket and must already be in the provider batch input format.'
example: 'gs://my-bucket/batches/input.jsonl'
type: 'string'
required:
- 'uri'
type: 'object'
BatchListItem:
description: 'Metadata-only batch object. `results` is always `null` in list responses.'
properties:
Expand Down Expand Up @@ -5322,6 +5333,8 @@ components:
enum:
- 'batch'
type: 'string'
output:
$ref: '#/components/schemas/BatchOutputReference'
provider:
description: 'Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.'
type:
Expand Down Expand Up @@ -5580,6 +5593,8 @@ components:
enum:
- 'batch'
type: 'string'
output:
$ref: '#/components/schemas/BatchOutputReference'
provider:
description: 'Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.'
type:
Expand Down Expand Up @@ -6562,6 +6577,16 @@ components:
- 'results'
- 'error'
type: 'object'
BatchOutputReference:
description: 'The output location of a batch submitted with `input`, whose `results` are `null`. Returned only by `GET /batches/{id}`, once the batch has ended and the provider reported an output folder. Batch lists and responses for a batch with an unpaid charge leave it out.'
properties:
uri:
description: 'URI of the batch output in your own storage. For a Cloud Storage input file it is the output folder, in the form `gs://bucket/folder`, and the files are in the provider batch output format.'
example: 'gs://my-bucket/openrouter-batch/output/org_abc/batch_123/batch_123/prediction-model-2026-01-01T00:00:00.000000Z'
type: 'string'
required:
- 'uri'
type: 'object'
BatchPaymentRequiredResponse:
description: 'Batch metadata with results withheld (results: null) plus the standard error envelope. Add credits to unlock the already-computed results; the batch is not re-run.'
properties:
Expand Down Expand Up @@ -6600,6 +6625,8 @@ components:
enum:
- 'batch'
type: 'string'
output:
$ref: '#/components/schemas/BatchOutputReference'
provider:
description: 'Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.'
type:
Expand Down Expand Up @@ -6813,12 +6840,15 @@ components:
- '/v1/audio/speech'
type: 'string'
x-speakeasy-unknown-values: allow
input:
$ref: '#/components/schemas/BatchInputReference'
model:
minLength: 1
type: 'string'
provider:
$ref: '#/components/schemas/BatchProviderPreferences'
requests:
description: 'The batch requests. Send exactly one of `requests` or `input`; `requests` must be the last field in the request body.'
items:
properties:
body:
Expand All @@ -6837,7 +6867,6 @@ components:
required:
- 'endpoint'
- 'model'
- 'requests'
type: 'object'
BooleanCapability:
description: 'A supported-or-not flag. Present means the parameter is accepted.'
Expand Down Expand Up @@ -16806,6 +16835,140 @@ components:
- 'throughput'
- 'request_count'
type: 'object'
ImageGenerationLayer:
description: 'Layer metadata, present when the request asked the provider to split the image into layers (Seedream: `provider.options.seed.layer_decomposition: true` with the required `layer_decomposition_options.max_images`, 2 to 16). Decomposition requires `n` to be 1 or omitted; the response returns up to `max_images` images (the base image plus its layers).'
example:
background: 'transparent'
bounding_box:
absolute:
- 238
- 124
- 786
- 673
normalized:
- 232
- 121
- 768
- 657
description: 'A solid red circle'
name: 'Red circle'
z_index: 1
properties:
background:
description: 'Whether the layer image has a transparent background'
enum:
- 'opaque'
- 'transparent'
type: 'string'
x-speakeasy-unknown-values: allow
bounding_box:
$ref: '#/components/schemas/ImageGenerationLayerBoundingBox'
description:
description: 'Provider description of the layer'
type: 'string'
name:
description: 'Short provider-assigned layer name'
type: 'string'
text_recognition:
$ref: '#/components/schemas/ImageGenerationLayerTextRecognition'
z_index:
description: 'Stacking order; 0 is the opaque base image and higher values sit on top'
type: 'integer'
required:
- 'z_index'
type: 'object'
ImageGenerationLayerBoundingBox:
description: 'Where a layer sits on the base image'
example:
absolute:
- 238
- 124
- 786
- 673
normalized:
- 232
- 121
- 768
- 657
properties:
absolute:
description: 'Layer box in pixels of the base image, as `[x_min, y_min, x_max, y_max]`'
items:
type: 'integer'
maxItems: 4
minItems: 4
type: 'array'
normalized:
description: 'Layer box scaled to 0-1000 on each axis, as `[x_min, y_min, x_max, y_max]`'
items:
type: 'integer'
maxItems: 4
minItems: 4
type: 'array'
required:
- 'absolute'
- 'normalized'
type: 'object'
ImageGenerationLayerTextRecognition:
description: 'Text found in the layer, present when the provider ran text recognition'
example:
lines:
- bounding_box:
absolute:
- 238
- 124
- 786
- 673
normalized:
- 232
- 121
- 768
- 657
runs:
- text: 'SALE'
text: 'SALE'
properties:
lines:
items:
properties:
bounding_box:
$ref: '#/components/schemas/ImageGenerationLayerBoundingBox'
runs:
items:
$ref: '#/components/schemas/ImageGenerationLayerTextRun'
type: 'array'
required:
- 'runs'
type: 'object'
type: 'array'
text:
description: 'Full text recognized in the layer'
type: 'string'
required:
- 'text'
type: 'object'
ImageGenerationLayerTextRun:
description: 'A run of text that shares one style'
example:
style:
bold: true
similar_font_family: 'Menlo'
text: 'SALE'
properties:
style:
additionalProperties:
anyOf:
- type: 'string'
- type: 'boolean'
- format: 'double'
type: 'number'
description: 'Font and style the provider recognized for this run, e.g. `similar_font_family`, `foreground_color`, `bold`'
type: 'object'
text:
type: 'string'
required:
- 'text'
type: 'object'
ImageGenerationProviderPreferences:
description: 'Provider routing preferences and provider-specific passthrough configuration.'
example:
Expand Down Expand Up @@ -17045,6 +17208,8 @@ components:
b64_json:
description: 'Base64-encoded image bytes'
type: 'string'
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'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:4100c04773812225ff2a16b50da56fd1c8f7429c2113fb26f45000a777a5ad1d
sourceBlobDigest: sha256:157c2988d2ec07340dcc3c2aad865382d0bd1692432d82b712928c6efc6ba4bb
sourceRevisionDigest: sha256:f13ca5625de6da93692c286f2ea9582d47416366895c704efd83a37610af9083
sourceBlobDigest: sha256:5efffcadb17c704cfdfe2afd0993653a1dee468b27c65dbd75bf33762477ad31
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:4100c04773812225ff2a16b50da56fd1c8f7429c2113fb26f45000a777a5ad1d
sourceBlobDigest: sha256:157c2988d2ec07340dcc3c2aad865382d0bd1692432d82b712928c6efc6ba4bb
sourceRevisionDigest: sha256:f13ca5625de6da93692c286f2ea9582d47416366895c704efd83a37610af9083
sourceBlobDigest: sha256:5efffcadb17c704cfdfe2afd0993653a1dee468b27c65dbd75bf33762477ad31
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:76b299f5f1bc5cdb7980e207dad7b5507f940a2bc978001220b94f61c8230718
codeSamplesRevisionDigest: sha256:744f2ff6d8d2dcdb17a5d6e2fbef7125f9b2de0c2b49cd290859908cd78d67db
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4499,4 +4499,14 @@ Based on:
### Generated
- [python v1.3.173] .
### Releases
- [PyPI v1.3.173] https://pypi.org/project/openrouter/1.3.173 - .
- [PyPI v1.3.173] https://pypi.org/project/openrouter/1.3.173 - .

## 2026-11-13 07:07:26
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.174] .
### Releases
- [PyPI v1.3.174] https://pypi.org/project/openrouter/1.3.174 - .
12 changes: 12 additions & 0 deletions docs/components/batchinputreference.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "BatchInputReference"
---

A batch input file in your own storage, named in place of `requests`. Available to allowlisted callers on Google Vertex BYOK endpoints only.


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `uri` | *str* | βœ”οΈ | Cloud Storage URI of the batch input file, in the form `gs://bucket/object`. The file stays in your bucket and must already be in the provider batch input format. | gs://my-bucket/batches/input.jsonl |
Loading
Loading