Skip to content

Commit be300de

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1315)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent bbb0db8 commit be300de

1 file changed

Lines changed: 97 additions & 1 deletion

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6230,6 +6230,101 @@ components:
62306230
- 'data'
62316231
- 'model'
62326232
type: 'object'
6233+
- additionalProperties: false
6234+
properties:
6235+
audio:
6236+
anyOf:
6237+
- additionalProperties: false
6238+
properties:
6239+
bits_per_sample:
6240+
enum:
6241+
- 16
6242+
type: 'number'
6243+
channels:
6244+
exclusiveMinimum: true
6245+
minimum: 0
6246+
type: 'integer'
6247+
data:
6248+
description: 'Base64-encoded PCM16 audio in the format the sibling fields give.'
6249+
minLength: 1
6250+
type: 'string'
6251+
format:
6252+
enum:
6253+
- 'pcm'
6254+
type: 'string'
6255+
sample_rate:
6256+
exclusiveMinimum: true
6257+
minimum: 0
6258+
type: 'integer'
6259+
required:
6260+
- 'format'
6261+
- 'sample_rate'
6262+
- 'channels'
6263+
- 'bits_per_sample'
6264+
- 'data'
6265+
type: 'object'
6266+
- additionalProperties: false
6267+
properties:
6268+
bits_per_sample:
6269+
enum:
6270+
- 16
6271+
type: 'number'
6272+
byte_length:
6273+
exclusiveMinimum: true
6274+
minimum: 0
6275+
type: 'integer'
6276+
channels:
6277+
exclusiveMinimum: true
6278+
minimum: 0
6279+
type: 'integer'
6280+
format:
6281+
enum:
6282+
- 'pcm'
6283+
type: 'string'
6284+
sample_rate:
6285+
exclusiveMinimum: true
6286+
minimum: 0
6287+
type: 'integer'
6288+
sha256:
6289+
pattern: '^[0-9a-f]{64}$'
6290+
type: 'string'
6291+
required:
6292+
- 'format'
6293+
- 'sample_rate'
6294+
- 'channels'
6295+
- 'bits_per_sample'
6296+
- 'byte_length'
6297+
- 'sha256'
6298+
type: 'object'
6299+
model:
6300+
type: 'string'
6301+
object:
6302+
enum:
6303+
- 'audio.speech'
6304+
type: 'string'
6305+
usage:
6306+
additionalProperties: false
6307+
properties:
6308+
completion_tokens:
6309+
minimum: 0
6310+
type: 'integer'
6311+
prompt_tokens:
6312+
minimum: 0
6313+
type: 'integer'
6314+
total_tokens:
6315+
minimum: 0
6316+
type: 'integer'
6317+
required:
6318+
- 'prompt_tokens'
6319+
- 'completion_tokens'
6320+
- 'total_tokens'
6321+
type: 'object'
6322+
required:
6323+
- 'object'
6324+
- 'model'
6325+
- 'audio'
6326+
- 'usage'
6327+
type: 'object'
62336328
request_id:
62346329
type:
62356330
- 'string'
@@ -6642,6 +6737,7 @@ components:
66426737
- '/v1/responses'
66436738
- '/v1/messages'
66446739
- '/v1/embeddings'
6740+
- '/v1/audio/speech'
66456741
type: 'string'
66466742
model:
66476743
minLength: 1
@@ -40728,7 +40824,7 @@ paths:
4072840824
results: '$.data'
4072940825
type: 'cursor'
4073040826
post:
40731-
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).'
40827+
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).'
4073240828
operationId: 'createBatches'
4073340829
requestBody:
4073440830
content:

0 commit comments

Comments
 (0)