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
9 changes: 5 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: 07fbb79d51250e334f820b313eb992cb
docChecksum: 78cda80193a326d2864d2cc849dd3ca6
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.174
configChecksum: afe6af6ec10a534ea1b8b05215e5633a
releaseVersion: 1.5.175
configChecksum: 6d4acdd3418ee4723460d590d2a14555
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -20505,7 +20505,7 @@ examples:
createImages:
speakeasy-default-create-images:
requestBody:
application/json: {"model": "bytedance-seed/seedream-4.5", "prompt": "a red panda astronaut floating in space, studio lighting"}
application/json: {"model": "bytedance-seed/seedream-4.5"}
responses:
"200":
application/json: {"created": 1748372400, "data": [{}]}
Expand Down Expand Up @@ -24218,3 +24218,4 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.images.generate()`: \n * `request.imageGenerationRequest.prompt` **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.174
version: 1.5.175
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
3 changes: 1 addition & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18098,7 +18098,7 @@ components:
type: 'string'
x-speakeasy-unknown-values: allow
prompt:
description: 'Text description of the desired image'
description: 'Text description of the desired image. Required by every model except image-only tools such as background removal, which reject requests without an input image instead.'
example: 'a red panda astronaut floating in space, studio lighting'
minLength: 1
type: 'string'
Expand Down Expand Up @@ -18163,7 +18163,6 @@ components:
type: 'string'
required:
- 'model'
- 'prompt'
type: 'object'
ImageGenerationResponse:
description: 'Image generation response'
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:479ff757f75fd3f10c14301133831a9ceceff32d48f5262245f6454234231f98
sourceBlobDigest: sha256:15a13f926d6ee036c1ff95838832674f2199a20a9b0f9e1a75a678433829d3a7
sourceRevisionDigest: sha256:84dcf6baea33334dd13051ff7655fd2f137ab31c7ccc655572b9663de77906a8
sourceBlobDigest: sha256:3ae4d15f8e5299884e9a223dd05616d30c8430a6d3a956197523f434069cf02f
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:479ff757f75fd3f10c14301133831a9ceceff32d48f5262245f6454234231f98
sourceBlobDigest: sha256:15a13f926d6ee036c1ff95838832674f2199a20a9b0f9e1a75a678433829d3a7
sourceRevisionDigest: sha256:84dcf6baea33334dd13051ff7655fd2f137ab31c7ccc655572b9663de77906a8
sourceBlobDigest: sha256:3ae4d15f8e5299884e9a223dd05616d30c8430a6d3a956197523f434069cf02f
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:3b1bf96919d29904beb4f9b7f4c5222848076aecdba371b7c8809e103f70e383
codeSamplesRevisionDigest: sha256:fe4bf962f41f788d840048c4d364d723675e163f8e5c5635a545832de938d5b3
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 @@ -6116,4 +6116,14 @@ Based on:
### Generated
- [typescript v1.5.174] .
### Releases
- [NPM v1.5.174] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.174 - .
- [NPM v1.5.174] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.174 - .

## 2026-12-04 03:01:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.175] .
### Releases
- [NPM v1.5.175] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.175 - .
3 changes: 1 addition & 2 deletions docs/models/imagegenerationrequest.mdx

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/models/operations/createimagesrequest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { CreateImagesRequest } from "@openrouter/sdk/models/operations";
let value: CreateImagesRequest = {
imageGenerationRequest: {
model: "bytedance-seed/seedream-4.5",
prompt: "a red panda astronaut floating in space, studio lighting",
},
};
```
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@openrouter/sdk",
"version": "1.5.174",
"version": "1.5.175",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/sdk",
"version": "1.5.174",
"version": "1.5.175",
"author": "OpenRouter",
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
"keywords": [
Expand Down Expand Up @@ -73,15 +73,15 @@
"lint": "eslint --cache --max-warnings=0 src",
"build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"prepublishOnly": "npm run build",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"prepare": "npm run build",
"test": "vitest --run --project unit",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"test:e2e": "vitest --run --project e2e",
"test:transit": "exit 0",
"test:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"typecheck:transit": "exit 0",
"postinstall": "node scripts/check-types.js || true",
"test:watch": "vitest --watch --project unit"
"postinstall": "node scripts/check-types.js || true"
},
"peerDependencies": {

Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "1.5.174",
sdkVersion: "1.5.175",
genVersion: "2.960.8",
userAgent: "speakeasy-sdk/typescript 1.5.174 2.960.8 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.5.175 2.960.8 1.0.0 @openrouter/sdk",
} as const;
8 changes: 4 additions & 4 deletions src/models/imagegenerationrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ export type ImageGenerationRequest = {
*/
outputFormat?: ImageGenerationRequestOutputFormat | undefined;
/**
* Text description of the desired image
* Text description of the desired image. Required by every model except image-only tools such as background removal, which reject requests without an input image instead.
*/
prompt: string;
prompt?: string | undefined;
/**
* Provider routing preferences and provider-specific passthrough configuration.
*/
Expand Down Expand Up @@ -353,7 +353,7 @@ export type ImageGenerationRequest$Outbound = {
n?: number | undefined;
output_compression?: number | undefined;
output_format?: string | undefined;
prompt: string;
prompt?: string | undefined;
provider?: ImageGenerationProviderPreferences$Outbound | undefined;
quality?: string | undefined;
resolution?: string | undefined;
Expand Down Expand Up @@ -381,7 +381,7 @@ export const ImageGenerationRequest$outboundSchema: z.ZodType<
n: z.int().optional(),
outputCompression: z.int().optional(),
outputFormat: ImageGenerationRequestOutputFormat$outboundSchema.optional(),
prompt: z.string(),
prompt: z.string().optional(),
provider: ImageGenerationProviderPreferences$outboundSchema.optional(),
quality: ImageGenerationRequestQuality$outboundSchema.optional(),
resolution: ImageGenerationRequestResolution$outboundSchema.optional(),
Expand Down