@civitai/client 0.2.0-beta.5 → 0.2.0-beta.7
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.
|
@@ -393,6 +393,10 @@ export type ImageGenOutput = {
|
|
|
393
393
|
* A collection of output images.
|
|
394
394
|
*/
|
|
395
395
|
images: Array<ImageBlob>;
|
|
396
|
+
/**
|
|
397
|
+
* An optional list of errors related to generation failures
|
|
398
|
+
*/
|
|
399
|
+
errors?: Array<string> | null;
|
|
396
400
|
};
|
|
397
401
|
/**
|
|
398
402
|
* Image Generation
|
|
@@ -480,6 +484,10 @@ export type ImageResourceTrainingInput = {
|
|
|
480
484
|
* A selection of sample prompts.
|
|
481
485
|
*/
|
|
482
486
|
samplePrompts?: Array<string>;
|
|
487
|
+
/**
|
|
488
|
+
* An optional negative prompt that will get applied when generating samples
|
|
489
|
+
*/
|
|
490
|
+
negativePrompt?: string | null;
|
|
483
491
|
};
|
|
484
492
|
export type ImageResourceTrainingOutput = {
|
|
485
493
|
moderationStatus: ImageResouceTrainingModerationStatus;
|
|
@@ -1000,6 +1008,41 @@ export type ProblemDetails = {
|
|
|
1000
1008
|
| (string | null)
|
|
1001
1009
|
| undefined;
|
|
1002
1010
|
};
|
|
1011
|
+
export type Qwen20bCreateImageGenInput = Qwen20bImageGenInput & {
|
|
1012
|
+
width?: number;
|
|
1013
|
+
height?: number;
|
|
1014
|
+
} & {
|
|
1015
|
+
operation: 'createImage';
|
|
1016
|
+
};
|
|
1017
|
+
export type Qwen20bEditImageGenInput = Qwen20bImageGenInput & {
|
|
1018
|
+
/**
|
|
1019
|
+
* Either A URL, A DataURL or a Base64 string
|
|
1020
|
+
*/
|
|
1021
|
+
image: string;
|
|
1022
|
+
denoise?: number;
|
|
1023
|
+
} & {
|
|
1024
|
+
operation: 'editImage';
|
|
1025
|
+
};
|
|
1026
|
+
export type Qwen20bImageGenInput = QwenImageGenInput & {
|
|
1027
|
+
operation: string;
|
|
1028
|
+
unet?: string;
|
|
1029
|
+
prompt: string;
|
|
1030
|
+
negativePrompt?: string | null;
|
|
1031
|
+
scheduler?: Scheduler;
|
|
1032
|
+
steps?: number;
|
|
1033
|
+
cfgScale?: number;
|
|
1034
|
+
seed?: number | null;
|
|
1035
|
+
quantity?: number;
|
|
1036
|
+
} & {
|
|
1037
|
+
model: '20b';
|
|
1038
|
+
};
|
|
1039
|
+
export type QwenImageGenInput = ImageGenInput & {
|
|
1040
|
+
engine: 'qwen';
|
|
1041
|
+
} & {
|
|
1042
|
+
model: string;
|
|
1043
|
+
} & {
|
|
1044
|
+
engine: 'qwen';
|
|
1045
|
+
};
|
|
1003
1046
|
/**
|
|
1004
1047
|
* Details for a specific resource.
|
|
1005
1048
|
*/
|
|
@@ -1112,6 +1155,26 @@ export declare const Scheduler: {
|
|
|
1112
1155
|
* The available options for schedulers used in image generation.
|
|
1113
1156
|
*/
|
|
1114
1157
|
export type Scheduler = (typeof Scheduler)[keyof typeof Scheduler];
|
|
1158
|
+
export type SeedreamImageGenInput = ImageGenInput & {
|
|
1159
|
+
engine: 'seedream';
|
|
1160
|
+
} & {
|
|
1161
|
+
prompt: string;
|
|
1162
|
+
quantity?: number;
|
|
1163
|
+
width?: number;
|
|
1164
|
+
height?: number;
|
|
1165
|
+
guidanceScale?: number;
|
|
1166
|
+
seed?: number | null;
|
|
1167
|
+
enableSafetyChecker?: boolean;
|
|
1168
|
+
version?: SeedreamVersion;
|
|
1169
|
+
images?: Array<string>;
|
|
1170
|
+
} & {
|
|
1171
|
+
engine: 'seedream';
|
|
1172
|
+
};
|
|
1173
|
+
export declare const SeedreamVersion: {
|
|
1174
|
+
readonly V3: 'v3';
|
|
1175
|
+
readonly V4: 'v4';
|
|
1176
|
+
};
|
|
1177
|
+
export type SeedreamVersion = (typeof SeedreamVersion)[keyof typeof SeedreamVersion];
|
|
1115
1178
|
/**
|
|
1116
1179
|
* Input for an text to image step.
|
|
1117
1180
|
*/
|
|
@@ -1521,6 +1584,7 @@ export type Wan225bFalVideoGenInput = Wan225bVideoGenInput & {
|
|
|
1521
1584
|
aspectRatio?: '1:1' | '16:9' | '9:16' | 'auto';
|
|
1522
1585
|
enablePromptExpansion?: boolean;
|
|
1523
1586
|
useDistill?: boolean;
|
|
1587
|
+
useFastWan?: boolean;
|
|
1524
1588
|
interpolatorModel?: 'none' | 'film' | 'rife';
|
|
1525
1589
|
negativePrompt?: string | null;
|
|
1526
1590
|
enableSafetyChecker?: boolean;
|