@runwayml/sdk 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +1 -1
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.ts +2 -3
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.ts +30 -0
- package/resources/organization.d.ts.map +1 -1
- package/resources/text-to-image.d.ts +75 -0
- package/resources/text-to-image.d.ts.map +1 -0
- package/resources/text-to-image.js +15 -0
- package/resources/text-to-image.js.map +1 -0
- package/resources/text-to-image.mjs +11 -0
- package/resources/text-to-image.mjs.map +1 -0
- package/src/index.ts +9 -0
- package/src/resources/image-to-video.ts +2 -3
- package/src/resources/index.ts +1 -0
- package/src/resources/organization.ts +35 -0
- package/src/resources/text-to-image.ts +106 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.0 (2025-05-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.0.3...v2.1.0](https://github.com/runwayml/sdk-node/compare/v2.0.3...v2.1.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Gen-4 Image (text-to-image) support ([348a4c9](https://github.com/runwayml/sdk-node/commit/348a4c902980531f4cf45a744f0567a0cd0aefb1))
|
|
10
|
+
|
|
11
|
+
## 2.0.3 (2025-05-07)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v2.0.2...v2.0.3](https://github.com/runwayml/sdk-node/compare/v2.0.2...v2.0.3)
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* **ci:** bump node version for release workflows ([f024169](https://github.com/runwayml/sdk-node/commit/f024169eca8faaddf3d0f39f8a99a6faeff2792f))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
* **readme:** fix typo ([84ba1ba](https://github.com/runwayml/sdk-node/commit/84ba1ba3611532d5b9f6a1f40f49855094566745))
|
|
23
|
+
|
|
3
24
|
## 2.0.2 (2025-04-30)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v2.0.1...v2.0.2](https://github.com/runwayml/sdk-node/compare/v2.0.1...v2.0.2)
|
package/README.md
CHANGED
package/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import * as API from "./resources/index.js";
|
|
|
6
6
|
import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } from "./resources/image-to-video.js";
|
|
7
7
|
import { Organization, OrganizationRetrieveResponse } from "./resources/organization.js";
|
|
8
8
|
import { TaskRetrieveResponse, Tasks } from "./resources/tasks.js";
|
|
9
|
+
import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from "./resources/text-to-image.js";
|
|
9
10
|
export interface ClientOptions {
|
|
10
11
|
/**
|
|
11
12
|
* Defaults to process.env['RUNWAYML_API_SECRET'].
|
|
@@ -85,6 +86,7 @@ export declare class RunwayML extends Core.APIClient {
|
|
|
85
86
|
constructor({ baseURL, apiKey, runwayVersion, ...opts }?: ClientOptions);
|
|
86
87
|
tasks: API.Tasks;
|
|
87
88
|
imageToVideo: API.ImageToVideo;
|
|
89
|
+
textToImage: API.TextToImage;
|
|
88
90
|
organization: API.Organization;
|
|
89
91
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
90
92
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -111,6 +113,7 @@ export declare namespace RunwayML {
|
|
|
111
113
|
export type RequestOptions = Core.RequestOptions;
|
|
112
114
|
export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
|
|
113
115
|
export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
|
|
116
|
+
export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
|
|
114
117
|
export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse };
|
|
115
118
|
}
|
|
116
119
|
export { toFile, fileFromPath } from "./uploads.js";
|
package/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as API from "./resources/index.js";
|
|
|
6
6
|
import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } from "./resources/image-to-video.js";
|
|
7
7
|
import { Organization, OrganizationRetrieveResponse } from "./resources/organization.js";
|
|
8
8
|
import { TaskRetrieveResponse, Tasks } from "./resources/tasks.js";
|
|
9
|
+
import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from "./resources/text-to-image.js";
|
|
9
10
|
export interface ClientOptions {
|
|
10
11
|
/**
|
|
11
12
|
* Defaults to process.env['RUNWAYML_API_SECRET'].
|
|
@@ -85,6 +86,7 @@ export declare class RunwayML extends Core.APIClient {
|
|
|
85
86
|
constructor({ baseURL, apiKey, runwayVersion, ...opts }?: ClientOptions);
|
|
86
87
|
tasks: API.Tasks;
|
|
87
88
|
imageToVideo: API.ImageToVideo;
|
|
89
|
+
textToImage: API.TextToImage;
|
|
88
90
|
organization: API.Organization;
|
|
89
91
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
90
92
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -111,6 +113,7 @@ export declare namespace RunwayML {
|
|
|
111
113
|
export type RequestOptions = Core.RequestOptions;
|
|
112
114
|
export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
|
|
113
115
|
export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
|
|
116
|
+
export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
|
|
114
117
|
export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse };
|
|
115
118
|
}
|
|
116
119
|
export { toFile, fileFromPath } from "./uploads.js";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB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CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;CAC5G;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,QAAQ,CAAC"}
|
package/index.js
CHANGED
|
@@ -33,6 +33,7 @@ const API = __importStar(require("./resources/index.js"));
|
|
|
33
33
|
const image_to_video_1 = require("./resources/image-to-video.js");
|
|
34
34
|
const organization_1 = require("./resources/organization.js");
|
|
35
35
|
const tasks_1 = require("./resources/tasks.js");
|
|
36
|
+
const text_to_image_1 = require("./resources/text-to-image.js");
|
|
36
37
|
/**
|
|
37
38
|
* API Client for interfacing with the RunwayML API.
|
|
38
39
|
*/
|
|
@@ -72,6 +73,7 @@ class RunwayML extends Core.APIClient {
|
|
|
72
73
|
});
|
|
73
74
|
this.tasks = new API.Tasks(this);
|
|
74
75
|
this.imageToVideo = new API.ImageToVideo(this);
|
|
76
|
+
this.textToImage = new API.TextToImage(this);
|
|
75
77
|
this.organization = new API.Organization(this);
|
|
76
78
|
this._options = options;
|
|
77
79
|
this.apiKey = apiKey;
|
|
@@ -112,6 +114,7 @@ RunwayML.toFile = Uploads.toFile;
|
|
|
112
114
|
RunwayML.fileFromPath = Uploads.fileFromPath;
|
|
113
115
|
RunwayML.Tasks = tasks_1.Tasks;
|
|
114
116
|
RunwayML.ImageToVideo = image_to_video_1.ImageToVideo;
|
|
117
|
+
RunwayML.TextToImage = text_to_image_1.TextToImage;
|
|
115
118
|
RunwayML.Organization = organization_1.Organization;
|
|
116
119
|
var uploads_1 = require("./uploads.js");
|
|
117
120
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,kEAIoC;AACpC,8DAAsF;AACtF,gDAAgE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,kEAIoC;AACpC,8DAAsF;AACtF,gDAAgE;AAChE,gEAA4G;AAmE5G;;GAEG;AACH,MAAa,QAAS,SAAQ,IAAI,CAAC,SAAS;IAM1C;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAC3C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAC5C,aAAa,GAAG,YAAY,EAC5B,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,aAAa,CAC5B,6LAA6L,CAC9L,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,aAAa;YACb,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,8BAA8B;SACnD,CAAC;QAEF,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE;YAC7B,MAAM,IAAI,MAAM,CAAC,aAAa,CAC5B,kR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AAC"}
|
package/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import * as API from "./resources/index.mjs";
|
|
|
7
7
|
import { ImageToVideo, } from "./resources/image-to-video.mjs";
|
|
8
8
|
import { Organization } from "./resources/organization.mjs";
|
|
9
9
|
import { Tasks } from "./resources/tasks.mjs";
|
|
10
|
+
import { TextToImage } from "./resources/text-to-image.mjs";
|
|
10
11
|
/**
|
|
11
12
|
* API Client for interfacing with the RunwayML API.
|
|
12
13
|
*/
|
|
@@ -46,6 +47,7 @@ export class RunwayML extends Core.APIClient {
|
|
|
46
47
|
});
|
|
47
48
|
this.tasks = new API.Tasks(this);
|
|
48
49
|
this.imageToVideo = new API.ImageToVideo(this);
|
|
50
|
+
this.textToImage = new API.TextToImage(this);
|
|
49
51
|
this.organization = new API.Organization(this);
|
|
50
52
|
this._options = options;
|
|
51
53
|
this.apiKey = apiKey;
|
|
@@ -85,6 +87,7 @@ RunwayML.toFile = Uploads.toFile;
|
|
|
85
87
|
RunwayML.fileFromPath = Uploads.fileFromPath;
|
|
86
88
|
RunwayML.Tasks = Tasks;
|
|
87
89
|
RunwayML.ImageToVideo = ImageToVideo;
|
|
90
|
+
RunwayML.TextToImage = TextToImage;
|
|
88
91
|
RunwayML.Organization = Organization;
|
|
89
92
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
90
93
|
export { RunwayMLError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EACL,YAAY,GAGb;OACM,EAAE,YAAY,EAAgC;OAC9C,EAAwB,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,MAAM,CAAC,mBAAmB,CAAC;AACjD,8BAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,iCAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,eAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,qBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;OAqB9B,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -47,9 +47,8 @@ export interface ImageToVideoCreateParams {
|
|
|
47
47
|
*/
|
|
48
48
|
duration?: 5 | 10;
|
|
49
49
|
/**
|
|
50
|
-
* A non-empty string up to 1000 UTF-16 code
|
|
51
|
-
*
|
|
52
|
-
* should appear in the output.
|
|
50
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
51
|
+
* should describe in detail what should appear in the output.
|
|
53
52
|
*/
|
|
54
53
|
promptText?: string;
|
|
55
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAA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UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAE5G;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,WAAW;QAC1B;;;;;;WAMG;QACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;QAE3B;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateParams, } from "./image-to-video.js";
|
|
2
2
|
export { Organization, type OrganizationRetrieveResponse } from "./organization.js";
|
|
3
3
|
export { Tasks, type TaskRetrieveResponse } from "./tasks.js";
|
|
4
|
+
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from "./text-to-image.js";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,KAAK,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,KAAK,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tasks = exports.Organization = exports.ImageToVideo = void 0;
|
|
4
|
+
exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = void 0;
|
|
5
5
|
var image_to_video_1 = require("./image-to-video.js");
|
|
6
6
|
Object.defineProperty(exports, "ImageToVideo", { enumerable: true, get: function () { return image_to_video_1.ImageToVideo; } });
|
|
7
7
|
var organization_1 = require("./organization.js");
|
|
8
8
|
Object.defineProperty(exports, "Organization", { enumerable: true, get: function () { return organization_1.Organization; } });
|
|
9
9
|
var tasks_1 = require("./tasks.js");
|
|
10
10
|
Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
|
|
11
|
+
var text_to_image_1 = require("./text-to-image.js");
|
|
12
|
+
Object.defineProperty(exports, "TextToImage", { enumerable: true, get: function () { return text_to_image_1.TextToImage; } });
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAAiF;AAAxE,4GAAA,YAAY,OAAA;AACrB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAAiF;AAAxE,4GAAA,YAAY,OAAA;AACrB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA"}
|
package/resources/index.mjs
CHANGED
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAGb;OACM,EAAE,YAAY,EAAqC;OACnD,EAAE,KAAK,EAA6B"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAGb;OACM,EAAE,YAAY,EAAqC;OACnD,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE"}
|
|
@@ -44,6 +44,10 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
44
44
|
* Limits associated with the gen3a_turbo model.
|
|
45
45
|
*/
|
|
46
46
|
gen3a_turbo?: Models.Gen3aTurbo;
|
|
47
|
+
/**
|
|
48
|
+
* Limits associated with the gen4_image model.
|
|
49
|
+
*/
|
|
50
|
+
gen4_image?: Models.Gen4Image;
|
|
47
51
|
/**
|
|
48
52
|
* Limits associated with the gen4_turbo model.
|
|
49
53
|
*/
|
|
@@ -63,6 +67,19 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
63
67
|
*/
|
|
64
68
|
maxDailyGenerations: number;
|
|
65
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Limits associated with the gen4_image model.
|
|
72
|
+
*/
|
|
73
|
+
interface Gen4Image {
|
|
74
|
+
/**
|
|
75
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
76
|
+
*/
|
|
77
|
+
maxConcurrentGenerations: number;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum number of generations that can be created each day for this model.
|
|
80
|
+
*/
|
|
81
|
+
maxDailyGenerations: number;
|
|
82
|
+
}
|
|
66
83
|
/**
|
|
67
84
|
* Limits associated with the gen4_turbo model.
|
|
68
85
|
*/
|
|
@@ -96,6 +113,10 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
96
113
|
* Usage data for the gen3a_turbo model.
|
|
97
114
|
*/
|
|
98
115
|
gen3a_turbo?: Models.Gen3aTurbo;
|
|
116
|
+
/**
|
|
117
|
+
* Usage data for the gen4_image model.
|
|
118
|
+
*/
|
|
119
|
+
gen4_image?: Models.Gen4Image;
|
|
99
120
|
/**
|
|
100
121
|
* Usage data for the gen4_turbo model.
|
|
101
122
|
*/
|
|
@@ -111,6 +132,15 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
111
132
|
*/
|
|
112
133
|
dailyGenerations: number;
|
|
113
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Usage data for the gen4_image model.
|
|
137
|
+
*/
|
|
138
|
+
interface Gen4Image {
|
|
139
|
+
/**
|
|
140
|
+
* The number of generations that have been run for this model in the past day.
|
|
141
|
+
*/
|
|
142
|
+
dailyGenerations: number;
|
|
143
|
+
}
|
|
114
144
|
/**
|
|
115
145
|
* Usage data for the gen4_turbo model.
|
|
116
146
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,Y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,0 +1,75 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class TextToImage extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint will start a new task to generate images from text.
|
|
6
|
+
*/
|
|
7
|
+
create(body: TextToImageCreateParams, options?: Core.RequestOptions): Core.APIPromise<TextToImageCreateResponse>;
|
|
8
|
+
}
|
|
9
|
+
export interface TextToImageCreateResponse {
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the newly created task.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TextToImageCreateParams {
|
|
16
|
+
/**
|
|
17
|
+
* The model variant to use.
|
|
18
|
+
*/
|
|
19
|
+
model: 'gen4_image';
|
|
20
|
+
/**
|
|
21
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
22
|
+
* should describe in detail what should appear in the output.
|
|
23
|
+
*/
|
|
24
|
+
promptText: string;
|
|
25
|
+
/**
|
|
26
|
+
* The resolution of the output image(s).
|
|
27
|
+
*/
|
|
28
|
+
ratio: '1920:1080' | '1080:1920' | '1024:1024' | '1360:768' | '1080:1080' | '1168:880' | '1440:1080' | '1080:1440' | '1808:768' | '2112:912';
|
|
29
|
+
/**
|
|
30
|
+
* Settings that affect the behavior of the content moderation system.
|
|
31
|
+
*/
|
|
32
|
+
contentModeration?: TextToImageCreateParams.ContentModeration;
|
|
33
|
+
/**
|
|
34
|
+
* An array of images to be used as references for the generated image output. Up
|
|
35
|
+
* to three reference images can be provided.
|
|
36
|
+
*/
|
|
37
|
+
referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
|
|
38
|
+
/**
|
|
39
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
40
|
+
* get different results for the same other request parameters. Using the same seed
|
|
41
|
+
* integer for an identical request will produce similar results.
|
|
42
|
+
*/
|
|
43
|
+
seed?: number;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace TextToImageCreateParams {
|
|
46
|
+
/**
|
|
47
|
+
* Settings that affect the behavior of the content moderation system.
|
|
48
|
+
*/
|
|
49
|
+
interface ContentModeration {
|
|
50
|
+
/**
|
|
51
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
52
|
+
* preventing generations that include recognizable public figures.
|
|
53
|
+
*/
|
|
54
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
55
|
+
}
|
|
56
|
+
interface ReferenceImage {
|
|
57
|
+
/**
|
|
58
|
+
* A HTTPS URL or data URI containing an encoded image to be used as reference for
|
|
59
|
+
* the generated output image. See [our docs](/assets/inputs#images) on image
|
|
60
|
+
* inputs for more information.
|
|
61
|
+
*/
|
|
62
|
+
uri: string;
|
|
63
|
+
/**
|
|
64
|
+
* A name used to refer to the image reference, from 3 to 16 characters in length.
|
|
65
|
+
* Tags must be alphanumeric (plus underscores) and start with a letter. You can
|
|
66
|
+
* refer to the reference image's tag in the prompt text with at-mention syntax:
|
|
67
|
+
* `@tag`. Tags are case-sensitive.
|
|
68
|
+
*/
|
|
69
|
+
tag?: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export declare namespace TextToImage {
|
|
73
|
+
export { type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=text-to-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAG9C;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC;IAE9D;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;IAEhE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED,UAAiB,cAAc;QAC7B;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TextToImage = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class TextToImage extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint will start a new task to generate images from text.
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/v1/text_to_image', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TextToImage = TextToImage;
|
|
15
|
+
//# sourceMappingURL=text-to-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-to-image.js","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAVD,kCAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class TextToImage extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint will start a new task to generate images from text.
|
|
6
|
+
*/
|
|
7
|
+
create(body, options) {
|
|
8
|
+
return this._client.post('/v1/text_to_image', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=text-to-image.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-to-image.mjs","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from './resources/image-to-video';
|
|
13
13
|
import { Organization, OrganizationRetrieveResponse } from './resources/organization';
|
|
14
14
|
import { TaskRetrieveResponse, Tasks } from './resources/tasks';
|
|
15
|
+
import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from './resources/text-to-image';
|
|
15
16
|
|
|
16
17
|
export interface ClientOptions {
|
|
17
18
|
/**
|
|
@@ -141,6 +142,7 @@ export class RunwayML extends Core.APIClient {
|
|
|
141
142
|
|
|
142
143
|
tasks: API.Tasks = new API.Tasks(this);
|
|
143
144
|
imageToVideo: API.ImageToVideo = new API.ImageToVideo(this);
|
|
145
|
+
textToImage: API.TextToImage = new API.TextToImage(this);
|
|
144
146
|
organization: API.Organization = new API.Organization(this);
|
|
145
147
|
|
|
146
148
|
protected override defaultQuery(): Core.DefaultQuery | undefined {
|
|
@@ -182,6 +184,7 @@ export class RunwayML extends Core.APIClient {
|
|
|
182
184
|
|
|
183
185
|
RunwayML.Tasks = Tasks;
|
|
184
186
|
RunwayML.ImageToVideo = ImageToVideo;
|
|
187
|
+
RunwayML.TextToImage = TextToImage;
|
|
185
188
|
RunwayML.Organization = Organization;
|
|
186
189
|
export declare namespace RunwayML {
|
|
187
190
|
export type RequestOptions = Core.RequestOptions;
|
|
@@ -194,6 +197,12 @@ export declare namespace RunwayML {
|
|
|
194
197
|
type ImageToVideoCreateParams as ImageToVideoCreateParams,
|
|
195
198
|
};
|
|
196
199
|
|
|
200
|
+
export {
|
|
201
|
+
TextToImage as TextToImage,
|
|
202
|
+
type TextToImageCreateResponse as TextToImageCreateResponse,
|
|
203
|
+
type TextToImageCreateParams as TextToImageCreateParams,
|
|
204
|
+
};
|
|
205
|
+
|
|
197
206
|
export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse };
|
|
198
207
|
}
|
|
199
208
|
|
|
@@ -61,9 +61,8 @@ export interface ImageToVideoCreateParams {
|
|
|
61
61
|
duration?: 5 | 10;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* A non-empty string up to 1000 UTF-16 code
|
|
65
|
-
*
|
|
66
|
-
* should appear in the output.
|
|
64
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
65
|
+
* should describe in detail what should appear in the output.
|
|
67
66
|
*/
|
|
68
67
|
promptText?: string;
|
|
69
68
|
|
package/src/resources/index.ts
CHANGED
|
@@ -7,3 +7,4 @@ export {
|
|
|
7
7
|
} from './image-to-video';
|
|
8
8
|
export { Organization, type OrganizationRetrieveResponse } from './organization';
|
|
9
9
|
export { Tasks, type TaskRetrieveResponse } from './tasks';
|
|
10
|
+
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
|
|
@@ -56,6 +56,11 @@ export namespace OrganizationRetrieveResponse {
|
|
|
56
56
|
*/
|
|
57
57
|
gen3a_turbo?: Models.Gen3aTurbo;
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Limits associated with the gen4_image model.
|
|
61
|
+
*/
|
|
62
|
+
gen4_image?: Models.Gen4Image;
|
|
63
|
+
|
|
59
64
|
/**
|
|
60
65
|
* Limits associated with the gen4_turbo model.
|
|
61
66
|
*/
|
|
@@ -78,6 +83,21 @@ export namespace OrganizationRetrieveResponse {
|
|
|
78
83
|
maxDailyGenerations: number;
|
|
79
84
|
}
|
|
80
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Limits associated with the gen4_image model.
|
|
88
|
+
*/
|
|
89
|
+
export interface Gen4Image {
|
|
90
|
+
/**
|
|
91
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
92
|
+
*/
|
|
93
|
+
maxConcurrentGenerations: number;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The maximum number of generations that can be created each day for this model.
|
|
97
|
+
*/
|
|
98
|
+
maxDailyGenerations: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
81
101
|
/**
|
|
82
102
|
* Limits associated with the gen4_turbo model.
|
|
83
103
|
*/
|
|
@@ -115,6 +135,11 @@ export namespace OrganizationRetrieveResponse {
|
|
|
115
135
|
*/
|
|
116
136
|
gen3a_turbo?: Models.Gen3aTurbo;
|
|
117
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Usage data for the gen4_image model.
|
|
140
|
+
*/
|
|
141
|
+
gen4_image?: Models.Gen4Image;
|
|
142
|
+
|
|
118
143
|
/**
|
|
119
144
|
* Usage data for the gen4_turbo model.
|
|
120
145
|
*/
|
|
@@ -132,6 +157,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
132
157
|
dailyGenerations: number;
|
|
133
158
|
}
|
|
134
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Usage data for the gen4_image model.
|
|
162
|
+
*/
|
|
163
|
+
export interface Gen4Image {
|
|
164
|
+
/**
|
|
165
|
+
* The number of generations that have been run for this model in the past day.
|
|
166
|
+
*/
|
|
167
|
+
dailyGenerations: number;
|
|
168
|
+
}
|
|
169
|
+
|
|
135
170
|
/**
|
|
136
171
|
* Usage data for the gen4_turbo model.
|
|
137
172
|
*/
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class TextToImage extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint will start a new task to generate images from text.
|
|
9
|
+
*/
|
|
10
|
+
create(
|
|
11
|
+
body: TextToImageCreateParams,
|
|
12
|
+
options?: Core.RequestOptions,
|
|
13
|
+
): Core.APIPromise<TextToImageCreateResponse> {
|
|
14
|
+
return this._client.post('/v1/text_to_image', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TextToImageCreateResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the newly created task.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface TextToImageCreateParams {
|
|
26
|
+
/**
|
|
27
|
+
* The model variant to use.
|
|
28
|
+
*/
|
|
29
|
+
model: 'gen4_image';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
33
|
+
* should describe in detail what should appear in the output.
|
|
34
|
+
*/
|
|
35
|
+
promptText: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The resolution of the output image(s).
|
|
39
|
+
*/
|
|
40
|
+
ratio:
|
|
41
|
+
| '1920:1080'
|
|
42
|
+
| '1080:1920'
|
|
43
|
+
| '1024:1024'
|
|
44
|
+
| '1360:768'
|
|
45
|
+
| '1080:1080'
|
|
46
|
+
| '1168:880'
|
|
47
|
+
| '1440:1080'
|
|
48
|
+
| '1080:1440'
|
|
49
|
+
| '1808:768'
|
|
50
|
+
| '2112:912';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Settings that affect the behavior of the content moderation system.
|
|
54
|
+
*/
|
|
55
|
+
contentModeration?: TextToImageCreateParams.ContentModeration;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* An array of images to be used as references for the generated image output. Up
|
|
59
|
+
* to three reference images can be provided.
|
|
60
|
+
*/
|
|
61
|
+
referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
65
|
+
* get different results for the same other request parameters. Using the same seed
|
|
66
|
+
* integer for an identical request will produce similar results.
|
|
67
|
+
*/
|
|
68
|
+
seed?: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace TextToImageCreateParams {
|
|
72
|
+
/**
|
|
73
|
+
* Settings that affect the behavior of the content moderation system.
|
|
74
|
+
*/
|
|
75
|
+
export interface ContentModeration {
|
|
76
|
+
/**
|
|
77
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
78
|
+
* preventing generations that include recognizable public figures.
|
|
79
|
+
*/
|
|
80
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ReferenceImage {
|
|
84
|
+
/**
|
|
85
|
+
* A HTTPS URL or data URI containing an encoded image to be used as reference for
|
|
86
|
+
* the generated output image. See [our docs](/assets/inputs#images) on image
|
|
87
|
+
* inputs for more information.
|
|
88
|
+
*/
|
|
89
|
+
uri: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A name used to refer to the image reference, from 3 to 16 characters in length.
|
|
93
|
+
* Tags must be alphanumeric (plus underscores) and start with a letter. You can
|
|
94
|
+
* refer to the reference image's tag in the prompt text with at-mention syntax:
|
|
95
|
+
* `@tag`. Tags are case-sensitive.
|
|
96
|
+
*/
|
|
97
|
+
tag?: string;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare namespace TextToImage {
|
|
102
|
+
export {
|
|
103
|
+
type TextToImageCreateResponse as TextToImageCreateResponse,
|
|
104
|
+
type TextToImageCreateParams as TextToImageCreateParams,
|
|
105
|
+
};
|
|
106
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.0
|
|
1
|
+
export const VERSION = '2.1.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0
|
|
1
|
+
export declare const VERSION = "2.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0
|
|
1
|
+
export const VERSION = '2.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|