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
7 changes: 3 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: e26c66479d55a5a19e09be187f7d9204
docChecksum: 07fbb79d51250e334f820b313eb992cb
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.173
configChecksum: 15231fa597f3732aab1703bacac3f13c
releaseVersion: 1.5.174
configChecksum: afe6af6ec10a534ea1b8b05215e5633a
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -24218,4 +24218,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.batch.createBatches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.getBatches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.cancel()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.getResults()`: `response.data[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.tts.createSpeech()`: \n * `request.speechRequest.inputReferences[].union(video_url)` **Added**\n* `openrouter.tts.listModels()`: `response.data[].endpoints[].inputModalities[].union(video)` **Added**\n* `openrouter.tts.getModel()`: `response.endpoints[].inputModalities[].union(video)` **Added**\n* `openrouter.presets.createPresetsMessages()`: \n * `request.messagesRequest.messages[].content.union(Array<>)[]` **Changed**\n"
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.5.173
version: 1.5.174
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36609,7 +36609,7 @@ components:
type: 'object'
- properties:
supported_inputs:
description: '`references` is how many `video_url` parts a request may send. A video reference is the only part of its request and bills at the endpoint''s video rate.'
description: '`references` is how many `video_url` parts a request may send. A video may come with `input_audio` clips, never with an image, but only on an endpoint that accepts both itself: the model lists each modality from any endpoint, so check the endpoint''s own `audio` modality for its clip limit; and the request bills at the endpoint''s video rate.'
properties:
references:
$ref: '#/components/schemas/SpeechReferenceCount'
Expand Down Expand Up @@ -36732,7 +36732,7 @@ components:
- 'text'
type: 'object'
SpeechInputReferenceVideo:
description: 'Reference video the generated audio is made for (sound and voice matched to the footage, same length as the clip). Must be the only part in `input_references`. Only routed to endpoints that support video references, which bill at their video rate.'
description: 'Reference video the generated audio is made for (sound and voice matched to the footage, same length as the clip). At most one per request; it may come with one to three `input_audio` parts (voices for the footage, with `input` giving the words they speak) but never with an `image_url` part. Only routed to endpoints that support video references, which bill at their video rate.'
example:
type: 'video_url'
video_url:
Expand Down Expand Up @@ -37040,7 +37040,7 @@ components:
input:
$ref: '#/components/schemas/SpeechInput'
input_references:
description: 'Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip), plus at most one `image_url` part as a scene image on providers that condition the cloned voice on its setting; only routed to endpoints that support voice cloning (and multiple references or image references when those parts are sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. Video mode: exactly one `video_url` part with a public http(s) URL and no other parts; only routed to endpoints that support video references. An empty array is treated as no reference.'
description: 'Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip), plus at most one `image_url` part as a scene image on providers that condition the cloned voice on its setting; only routed to endpoints that support voice cloning (and multiple references or image references when those parts are sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. Video mode: exactly one `video_url` part with a public http(s) URL, optionally with one to three `input_audio` parts (and their `text` transcripts) grouped as in audio mode, and no `image_url` part; Seed Audio 1.5 ignores those transcripts, so the words the voices speak go in `input`; only routed to endpoints that support video references (and voice cloning when clips are sent, plus multiple references for two or three clips). An empty array is treated as no reference.'
example:
- input_audio:
data: 'data:audio/wav;base64,UklGRuQXDABXQVZF...'
Expand Down Expand Up @@ -37133,7 +37133,7 @@ components:
type: 'object'
response_format:
default: 'pcm'
description: 'Audio output format'
description: 'Audio output format. Defaults to `pcm`, or to `mp3` when `timestamp_granularities` is nonempty.'
enum:
- 'mp3'
- 'pcm'
Expand All @@ -37152,7 +37152,7 @@ components:
format: 'double'
type: 'number'
timestamp_granularities:
description: 'Timings to return with the audio. When nonempty, the response is JSON instead of raw audio bytes: `{audio, media_type, words?, characters?}` with base64 audio, or `{url, expires_at, media_type, words?, characters?}` when `output_delivery` is `url`. If a signed URL cannot be issued (ZDR, no workspace, or storage failure), timed `url` requests fall back to the inline `{audio, media_type, ...}` envelope with no `url`. Each timing entry is `{text, start, end}` in seconds. Only routed to endpoints that support every requested granularity (`supported_parameters.timestamp_granularities` on the speech models list). A timed response is sent once the whole audio is generated, not streamed, and is capped at 10 MiB of decoded audio for both inline and `url` delivery (the provider timed response, including its alignment data, is capped too); longer outputs return an error, so use a shorter input or a smaller audio format. Generated SDKs still type the 200 response as binary audio for compatibility; call the HTTP endpoint directly and parse the JSON response when using `timestamp_granularities`. An empty array is treated as no timings.'
description: 'Timings to return with the audio. When nonempty, the response is JSON instead of raw audio bytes: `{audio, media_type, words?, characters?}` with base64 audio, or `{url, expires_at, media_type, words?, characters?}` when `output_delivery` is `url`. If a signed URL cannot be issued (ZDR, no workspace, or storage failure), timed `url` requests fall back to the inline `{audio, media_type, ...}` envelope with no `url`. The audio defaults to `mp3` unless `response_format` is set. Each timing entry is `{text, start, end}` in seconds. Only routed to endpoints that support every requested granularity (`supported_parameters.timestamp_granularities` on the speech models list). A timed response is sent once the whole audio is generated, not streamed, and is capped at 10 MiB of decoded audio for both inline and `url` delivery (the provider timed response, including its alignment data, is capped too); longer outputs return an error, so use a shorter input or a smaller audio format. Generated SDKs still type the 200 response as binary audio for compatibility; call the HTTP endpoint directly and parse the JSON response when using `timestamp_granularities`. An empty array is treated as no timings.'
example:
- 'word'
items:
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.808.1
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:51d6baca9f630b996fae26738ca95f2b9f08963b42560dfb6652c654b30f946d
sourceBlobDigest: sha256:f5e064e616f561b6afcbd54b62a3377b810732e2752028eab2097a2598082ae1
sourceRevisionDigest: sha256:479ff757f75fd3f10c14301133831a9ceceff32d48f5262245f6454234231f98
sourceBlobDigest: sha256:15a13f926d6ee036c1ff95838832674f2199a20a9b0f9e1a75a678433829d3a7
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:51d6baca9f630b996fae26738ca95f2b9f08963b42560dfb6652c654b30f946d
sourceBlobDigest: sha256:f5e064e616f561b6afcbd54b62a3377b810732e2752028eab2097a2598082ae1
sourceRevisionDigest: sha256:479ff757f75fd3f10c14301133831a9ceceff32d48f5262245f6454234231f98
sourceBlobDigest: sha256:15a13f926d6ee036c1ff95838832674f2199a20a9b0f9e1a75a678433829d3a7
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:39592ed9563e621c58a72193bc735eee03614ce5ffbce1f3558e71e90ff47847
codeSamplesRevisionDigest: sha256:3b1bf96919d29904beb4f9b7f4c5222848076aecdba371b7c8809e103f70e383
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.808.1
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6106,4 +6106,14 @@ Based on:
### Generated
- [typescript v1.5.173] .
### Releases
- [NPM v1.5.173] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.173 - .
- [NPM v1.5.173] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.173 - .

## 2026-12-04 00:55:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.174] .
### Releases
- [NPM v1.5.174] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.174 - .
2 changes: 1 addition & 1 deletion docs/models/speechinputmodalitysupportedinputs3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "SpeechInputModalitySupportedInputs3"
---

`references` is how many `video_url` parts a request may send. A video reference is the only part of its request and bills at the endpoint's video rate.
`references` is how many `video_url` parts a request may send. A video may come with `input_audio` clips, never with an image, but only on an endpoint that accepts both itself: the model lists each modality from any endpoint, so check the endpoint's own `audio` modality for its clip limit; and the request bills at the endpoint's video rate.

## Example Usage

Expand Down
8 changes: 4 additions & 4 deletions docs/models/speechinputmodalityvideo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let value: SpeechInputModalityVideo = {

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `supportedInputs` | [models.SpeechInputModalitySupportedInputs3](../models/speechinputmodalitysupportedinputs3.mdx) | ✔️ | `references` is how many `video_url` parts a request may send. A video reference is the only part of its request and bills at the endpoint's video rate. |
| `type` | *"video"* | ✔️ | N/A |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `supportedInputs` | [models.SpeechInputModalitySupportedInputs3](../models/speechinputmodalitysupportedinputs3.mdx) | ✔️ | `references` is how many `video_url` parts a request may send. A video may come with `input_audio` clips, never with an image, but only on an endpoint that accepts both itself: the model lists each modality from any endpoint, so check the endpoint's own `audio` modality for its clip limit; and the request bills at the endpoint's video rate. |
| `type` | *"video"* | ✔️ | N/A |
2 changes: 1 addition & 1 deletion docs/models/speechinputreferencevideo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "SpeechInputReferenceVideo"
---

Reference video the generated audio is made for (sound and voice matched to the footage, same length as the clip). Must be the only part in `input_references`. Only routed to endpoints that support video references, which bill at their video rate.
Reference video the generated audio is made for (sound and voice matched to the footage, same length as the clip). At most one per request; it may come with one to three `input_audio` parts (voices for the footage, with `input` giving the words they speak) but never with an `image_url` part. Only routed to endpoints that support video references, which bill at their video rate.

## Example Usage

Expand Down
Loading