@civitai/orchestration-client 0.2.8 → 0.2.11
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/dist/client/CivitaiClient.js +70 -14
- package/dist/generated/index.d.ts +69 -24
- package/dist/generated/index.js +2 -2
- package/dist/generated/sdk.gen.d.ts +73 -2
- package/dist/generated/sdk.gen.js +73 -2
- package/dist/generated/services.gen.d.ts +48 -146
- package/dist/generated/services.gen.js +9 -16
- package/dist/generated/types.gen.d.ts +691 -278
- package/dist/generated/types.gen.js +18 -2
- package/package.json +1 -1
|
@@ -4791,15 +4791,6 @@ export type Gemini25FlashCreateImageGenInput = Omit<
|
|
|
4791
4791
|
model: '2.5-flash';
|
|
4792
4792
|
engine: 'gemini';
|
|
4793
4793
|
};
|
|
4794
|
-
export type Gemini25FlashEditImageGenInput = Omit<
|
|
4795
|
-
Gemini25FlashImageGenInput,
|
|
4796
|
-
'engine' | 'model' | 'operation'
|
|
4797
|
-
> & {
|
|
4798
|
-
images: Array<string>;
|
|
4799
|
-
operation: 'editImage';
|
|
4800
|
-
model: '2.5-flash';
|
|
4801
|
-
engine: 'gemini';
|
|
4802
|
-
};
|
|
4803
4794
|
export type Gemini25FlashImageGenInput = Omit<GeminiImageGenInput, 'engine' | 'model'> & {
|
|
4804
4795
|
operation: string;
|
|
4805
4796
|
quantity?: number;
|
|
@@ -4845,7 +4836,7 @@ export type GifOutputFormat = Omit<ImageOutputFormat, 'format'> & {
|
|
|
4845
4836
|
};
|
|
4846
4837
|
export type GitHubRunnerInput = {
|
|
4847
4838
|
/**
|
|
4848
|
-
* The single-use runner config from GitHub's generate-jitconfig endpoint.
|
|
4839
|
+
* The single-use runner config from GitHub's generate-jitconfig endpoint, as a base64 CMS envelope encrypted to the fleet certificate.
|
|
4849
4840
|
*/
|
|
4850
4841
|
jitConfig: string;
|
|
4851
4842
|
/**
|
|
@@ -5348,82 +5339,88 @@ export type HumanoidImageMaskInput = {
|
|
|
5348
5339
|
export type HumanoidImageMaskOutput = {
|
|
5349
5340
|
blob: Blob;
|
|
5350
5341
|
};
|
|
5351
|
-
export type
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
steps?: null | number;
|
|
5356
|
-
cfgScale?: null | number;
|
|
5357
|
-
sampler?:
|
|
5358
|
-
| 'euler'
|
|
5359
|
-
| 'euler_ancestral'
|
|
5360
|
-
| 'heun'
|
|
5361
|
-
| 'heunpp2'
|
|
5362
|
-
| 'dpm_2'
|
|
5363
|
-
| 'dpm_2_ancestral'
|
|
5364
|
-
| 'lms'
|
|
5365
|
-
| 'dpm_fast'
|
|
5366
|
-
| 'dpm_adaptive'
|
|
5367
|
-
| 'dpmpp_2s_ancestral'
|
|
5368
|
-
| 'dpmpp_sde'
|
|
5369
|
-
| 'dpmpp_2m'
|
|
5370
|
-
| 'dpmpp_2m_sde'
|
|
5371
|
-
| 'dpmpp_3m_sde'
|
|
5372
|
-
| 'ddpm'
|
|
5373
|
-
| 'lcm'
|
|
5374
|
-
| 'uni_pc'
|
|
5375
|
-
| 'uni_pc_bh2';
|
|
5376
|
-
scheduler?:
|
|
5377
|
-
| 'normal'
|
|
5378
|
-
| 'karras'
|
|
5379
|
-
| 'exponential'
|
|
5380
|
-
| 'sgm_uniform'
|
|
5381
|
-
| 'simple'
|
|
5382
|
-
| 'ddim_uniform'
|
|
5383
|
-
| 'beta';
|
|
5384
|
-
resolution?: null | number;
|
|
5385
|
-
vaeNumChunks?: number;
|
|
5386
|
-
octreeResolution?: number;
|
|
5387
|
-
meshThreshold?: number;
|
|
5388
|
-
seed?: null | number;
|
|
5389
|
-
shift?: number;
|
|
5390
|
-
model: 'hunyuan3D';
|
|
5391
|
-
engine: 'comfy';
|
|
5342
|
+
export type Hunyuan3dFalPolyGenInput = Omit<FalPolyGenInput, 'engine' | 'model'> & {
|
|
5343
|
+
version: string;
|
|
5344
|
+
model: 'hunyuan3d';
|
|
5345
|
+
engine: 'fal';
|
|
5392
5346
|
};
|
|
5393
|
-
export type
|
|
5394
|
-
|
|
5395
|
-
'engine' | 'model' | '
|
|
5347
|
+
export type Hunyuan3Dv36FalPolyGenInput = Omit<
|
|
5348
|
+
Hunyuan3dFalPolyGenInput,
|
|
5349
|
+
'engine' | 'model' | 'version'
|
|
5396
5350
|
> & {
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5351
|
+
operation: string;
|
|
5352
|
+
/**
|
|
5353
|
+
* false generates an untextured mesh and ignores every texture option.
|
|
5354
|
+
*/
|
|
5355
|
+
texture?: boolean;
|
|
5356
|
+
/**
|
|
5357
|
+
* Target face count of the mesh. Defaults to 2,000,000.
|
|
5358
|
+
*/
|
|
5359
|
+
faceCount?: null | number;
|
|
5360
|
+
/**
|
|
5361
|
+
* Hit faceCount exactly instead of adapting it to the geometry.
|
|
5362
|
+
*/
|
|
5363
|
+
faceStrictMode?: boolean;
|
|
5364
|
+
pbr?: boolean;
|
|
5365
|
+
textureResolution?: '2k' | '4k' | '8k';
|
|
5366
|
+
textureFormat?: 'jpeg' | 'png' | 'webp';
|
|
5367
|
+
/**
|
|
5368
|
+
* Fewer texture seams at the cost of some detail.
|
|
5369
|
+
*/
|
|
5370
|
+
seamlessTexture?: boolean;
|
|
5371
|
+
version: 'v3.6';
|
|
5372
|
+
model: 'hunyuan3d';
|
|
5373
|
+
engine: 'fal';
|
|
5405
5374
|
};
|
|
5406
|
-
export type
|
|
5407
|
-
|
|
5408
|
-
'engine' | 'model' | 'operation'
|
|
5375
|
+
export type Hunyuan3Dv36ImageTo3dFalPolyGenInput = Omit<
|
|
5376
|
+
Hunyuan3Dv36FalPolyGenInput,
|
|
5377
|
+
'engine' | 'model' | 'version' | 'operation'
|
|
5409
5378
|
> & {
|
|
5379
|
+
/**
|
|
5380
|
+
* Front view of the object: JPG, PNG or WebP, 128–5000 pixels per side, under 10 MB.
|
|
5381
|
+
*/
|
|
5410
5382
|
imageUrl: string;
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5383
|
+
/**
|
|
5384
|
+
* Additional views of the object, at most one image per view.
|
|
5385
|
+
*/
|
|
5386
|
+
viewImages?: Array<Hunyuan3dViewImage>;
|
|
5387
|
+
/**
|
|
5388
|
+
* Keep the image's lighting and shadows in the texture instead of an unlit albedo.
|
|
5389
|
+
*/
|
|
5390
|
+
bakeLighting?: boolean;
|
|
5391
|
+
/**
|
|
5392
|
+
* Ambient occlusion strength; applies only with viewImages.
|
|
5393
|
+
*/
|
|
5394
|
+
aoStrength?: number;
|
|
5395
|
+
operation: 'imageTo3D';
|
|
5396
|
+
version: 'v3.6';
|
|
5397
|
+
model: 'hunyuan3d';
|
|
5398
|
+
engine: 'fal';
|
|
5415
5399
|
};
|
|
5416
|
-
export type
|
|
5417
|
-
|
|
5418
|
-
'engine' | 'model' | 'operation'
|
|
5400
|
+
export type Hunyuan3Dv36TextTo3dFalPolyGenInput = Omit<
|
|
5401
|
+
Hunyuan3Dv36FalPolyGenInput,
|
|
5402
|
+
'engine' | 'model' | 'version' | 'operation'
|
|
5419
5403
|
> & {
|
|
5404
|
+
prompt: string;
|
|
5405
|
+
style?: null | 'qinghuaci' | 'china_style' | 'sculpture' | 'cartoon' | 'cyberpunk';
|
|
5406
|
+
operation: 'textTo3D';
|
|
5407
|
+
version: 'v3.6';
|
|
5408
|
+
model: 'hunyuan3d';
|
|
5409
|
+
engine: 'fal';
|
|
5410
|
+
};
|
|
5411
|
+
export declare const Hunyuan3dView: {
|
|
5412
|
+
readonly BACK: 'back';
|
|
5413
|
+
readonly LEFT: 'left';
|
|
5414
|
+
readonly RIGHT: 'right';
|
|
5415
|
+
readonly TOP: 'top';
|
|
5416
|
+
readonly BOTTOM: 'bottom';
|
|
5417
|
+
readonly LEFT_FRONT: 'left_front';
|
|
5418
|
+
readonly RIGHT_FRONT: 'right_front';
|
|
5419
|
+
};
|
|
5420
|
+
export type Hunyuan3dView = (typeof Hunyuan3dView)[keyof typeof Hunyuan3dView];
|
|
5421
|
+
export type Hunyuan3dViewImage = {
|
|
5422
|
+
view: Hunyuan3dView;
|
|
5420
5423
|
imageUrl: string;
|
|
5421
|
-
mesh: string;
|
|
5422
|
-
shouldRemesh?: boolean;
|
|
5423
|
-
enablePbr?: boolean;
|
|
5424
|
-
operation: 'texGen';
|
|
5425
|
-
model: 'hunyuan3D';
|
|
5426
|
-
engine: 'comfy';
|
|
5427
5424
|
};
|
|
5428
5425
|
export type HunyuanVdeoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
5429
5426
|
cfgScale: number;
|
|
@@ -5649,6 +5646,60 @@ export type ImageBlob = Omit<Blob, 'type'> & {
|
|
|
5649
5646
|
previewUrlExpiresAt?: null | string;
|
|
5650
5647
|
type: 'image';
|
|
5651
5648
|
};
|
|
5649
|
+
export type ImageFaceFixInput = {
|
|
5650
|
+
/**
|
|
5651
|
+
* Either A URL, A DataURL or a Base64 string
|
|
5652
|
+
*/
|
|
5653
|
+
image: string;
|
|
5654
|
+
/**
|
|
5655
|
+
* The SD1 or SDXL-family checkpoint that regenerates the faces, usually the one that made the image.
|
|
5656
|
+
*/
|
|
5657
|
+
checkpointModel: string;
|
|
5658
|
+
vaeModel?: null | string;
|
|
5659
|
+
loras?: {
|
|
5660
|
+
[key: string]: number;
|
|
5661
|
+
};
|
|
5662
|
+
embeddings?: Array<string>;
|
|
5663
|
+
clipSkip?: null | number;
|
|
5664
|
+
prompt: string;
|
|
5665
|
+
negativePrompt?: null | string;
|
|
5666
|
+
sampler?: ComfySampler;
|
|
5667
|
+
scheduler?: ComfyScheduler;
|
|
5668
|
+
steps?: number;
|
|
5669
|
+
cfgScale?: number;
|
|
5670
|
+
seed?: null | number;
|
|
5671
|
+
/**
|
|
5672
|
+
* How much of each detected face is regenerated.
|
|
5673
|
+
*/
|
|
5674
|
+
strength?: number;
|
|
5675
|
+
quantity?: number;
|
|
5676
|
+
outputFormat?: ImageGenOutputFormat;
|
|
5677
|
+
/**
|
|
5678
|
+
* External metadata that will be stored with the image
|
|
5679
|
+
*/
|
|
5680
|
+
imageMetadata?: null | string;
|
|
5681
|
+
};
|
|
5682
|
+
export type ImageFaceFixOutput = {
|
|
5683
|
+
images: Array<ImageBlob>;
|
|
5684
|
+
};
|
|
5685
|
+
/**
|
|
5686
|
+
* Detects the faces in an image and regenerates them with an SD1 or SDXL-family checkpoint.
|
|
5687
|
+
*/
|
|
5688
|
+
export type ImageFaceFixStep = Omit<WorkflowStep, '$type'> & {
|
|
5689
|
+
input: ImageFaceFixInput;
|
|
5690
|
+
output?: ImageFaceFixOutput;
|
|
5691
|
+
$type: 'imageFaceFix';
|
|
5692
|
+
};
|
|
5693
|
+
/**
|
|
5694
|
+
* Detects the faces in an image and regenerates them with an SD1 or SDXL-family checkpoint.
|
|
5695
|
+
*/
|
|
5696
|
+
export type ImageFaceFixStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
5697
|
+
/**
|
|
5698
|
+
* Input for the ImageFaceFixStep step.
|
|
5699
|
+
*/
|
|
5700
|
+
input: ImageFaceFixInput;
|
|
5701
|
+
$type: 'imageFaceFix';
|
|
5702
|
+
};
|
|
5652
5703
|
export type ImageGenInput = {
|
|
5653
5704
|
engine: string;
|
|
5654
5705
|
outputFormat?: ImageGenOutputFormat;
|
|
@@ -5851,7 +5902,7 @@ export type ImageScanningLabelScore = {
|
|
|
5851
5902
|
};
|
|
5852
5903
|
export type ImageScanningOutput = {
|
|
5853
5904
|
/**
|
|
5854
|
-
*
|
|
5905
|
+
* PG–XXX rating. For RADIO it is mapped from RatingV2's sexual label.
|
|
5855
5906
|
*/
|
|
5856
5907
|
nsfwLevel: NsfwLevel;
|
|
5857
5908
|
score: number;
|
|
@@ -5867,7 +5918,7 @@ export type ImageScanningOutput = {
|
|
|
5867
5918
|
*/
|
|
5868
5919
|
blockedReason?: null | string;
|
|
5869
5920
|
/**
|
|
5870
|
-
*
|
|
5921
|
+
* RADIO axes and the scanner's own routing decision.
|
|
5871
5922
|
*/
|
|
5872
5923
|
ratingV2?: ImageScanningRatingV2;
|
|
5873
5924
|
};
|
|
@@ -6037,6 +6088,22 @@ export type ImageUpscalerInput = {
|
|
|
6037
6088
|
* Number of times to repeat the upscale operation (1-3). Each repeat doubles the resolution.
|
|
6038
6089
|
*/
|
|
6039
6090
|
numberOfRepeats?: number;
|
|
6091
|
+
/**
|
|
6092
|
+
* `comfy` runs the upscale on ComfyUI and enables `scale` and `outputFormat`.
|
|
6093
|
+
*/
|
|
6094
|
+
engine?: 'sdcpp' | 'comfy';
|
|
6095
|
+
/**
|
|
6096
|
+
* Exact resize factor, replacing `numberOfRepeats`. Comfy engine only.
|
|
6097
|
+
*/
|
|
6098
|
+
scale?: null | number;
|
|
6099
|
+
/**
|
|
6100
|
+
* Comfy engine only; sd.cpp always outputs jpeg.
|
|
6101
|
+
*/
|
|
6102
|
+
outputFormat?: ImageGenOutputFormat;
|
|
6103
|
+
/**
|
|
6104
|
+
* External metadata that will be stored with the image
|
|
6105
|
+
*/
|
|
6106
|
+
imageMetadata?: null | string;
|
|
6040
6107
|
};
|
|
6041
6108
|
export type ImageUpscalerOutput = {
|
|
6042
6109
|
blob: ImageBlob;
|
|
@@ -6053,15 +6120,6 @@ export type ImageUpscalerStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
6053
6120
|
input: ImageUpscalerInput;
|
|
6054
6121
|
$type: 'imageUpscaler';
|
|
6055
6122
|
};
|
|
6056
|
-
export type Imagen4ImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'model'> & {
|
|
6057
|
-
prompt: string;
|
|
6058
|
-
negativePrompt?: string;
|
|
6059
|
-
aspectRatio?: '1:1' | '16:9' | '9:16' | '3:4' | '4:3';
|
|
6060
|
-
quantity?: number;
|
|
6061
|
-
model: 'imagen4';
|
|
6062
|
-
seed?: null | number;
|
|
6063
|
-
engine: 'google';
|
|
6064
|
-
};
|
|
6065
6123
|
export declare const JobSupport: {
|
|
6066
6124
|
readonly UNSUPPORTED: 'unsupported';
|
|
6067
6125
|
readonly UNAVAILABLE: 'unavailable';
|
|
@@ -6343,9 +6401,9 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
6343
6401
|
*/
|
|
6344
6402
|
keepTokens: number;
|
|
6345
6403
|
/**
|
|
6346
|
-
* CLIP layer skip for SD1.5;
|
|
6404
|
+
* CLIP layer skip for SD1.5 and SDXL-family models, also applied to previews. Defaults to 1 for SD1.5 and 2 for SDXL, which conditions on the penultimate layer at the least, so 1 is treated as 2 there; flow models use 1.
|
|
6347
6405
|
*/
|
|
6348
|
-
clipSkip
|
|
6406
|
+
clipSkip?: null | number;
|
|
6349
6407
|
/**
|
|
6350
6408
|
* Random horizontal image flips.
|
|
6351
6409
|
*/
|
|
@@ -7834,24 +7892,6 @@ export type MiniMaxMusic3StepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
7834
7892
|
input: MiniMaxMusic3Input;
|
|
7835
7893
|
$type: 'miniMaxMusic3';
|
|
7836
7894
|
};
|
|
7837
|
-
export type MiniMaxVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
7838
|
-
model?: MiniMaxVideoGenModel;
|
|
7839
|
-
enhancePrompt?: boolean;
|
|
7840
|
-
engine: 'minimax';
|
|
7841
|
-
/**
|
|
7842
|
-
* Either A URL, A DataURL or a Base64 string
|
|
7843
|
-
*/
|
|
7844
|
-
sourceImage?: null | string;
|
|
7845
|
-
};
|
|
7846
|
-
export declare const MiniMaxVideoGenModel: {
|
|
7847
|
-
readonly HAILOU: 'hailou';
|
|
7848
|
-
};
|
|
7849
|
-
export type MiniMaxVideoGenModel = (typeof MiniMaxVideoGenModel)[keyof typeof MiniMaxVideoGenModel];
|
|
7850
|
-
export type MochiVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
7851
|
-
seed: number;
|
|
7852
|
-
enhancePrompt?: boolean;
|
|
7853
|
-
engine: 'mochi';
|
|
7854
|
-
};
|
|
7855
7895
|
export type ModalitiesResponse = {
|
|
7856
7896
|
input: Array<string>;
|
|
7857
7897
|
output: Array<string>;
|
|
@@ -8372,57 +8412,6 @@ export type OmniVoiceTextToSpeechInput = Omit<VllmOmniTextToSpeechInput, 'engine
|
|
|
8372
8412
|
ecosystem: 'omnivoice';
|
|
8373
8413
|
engine: 'vllm-omni';
|
|
8374
8414
|
};
|
|
8375
|
-
export type OpenAiDallE2CreateImageGenInput = Omit<
|
|
8376
|
-
OpenAiDallE2ImageGenInput,
|
|
8377
|
-
'engine' | 'model' | 'operation'
|
|
8378
|
-
> & {
|
|
8379
|
-
background?: 'auto' | 'transparent' | 'opaque';
|
|
8380
|
-
operation: 'createImage';
|
|
8381
|
-
model: 'dall-e-2';
|
|
8382
|
-
engine: 'openai';
|
|
8383
|
-
};
|
|
8384
|
-
export type OpenAiDallE2EditImageInput = Omit<
|
|
8385
|
-
OpenAiDallE2ImageGenInput,
|
|
8386
|
-
'engine' | 'model' | 'operation'
|
|
8387
|
-
> & {
|
|
8388
|
-
/**
|
|
8389
|
-
* Either A URL, A DataURL or a Base64 string
|
|
8390
|
-
*/
|
|
8391
|
-
image: string;
|
|
8392
|
-
/**
|
|
8393
|
-
* Either A URL, A DataURL or a Base64 string
|
|
8394
|
-
*/
|
|
8395
|
-
mask?: null | string;
|
|
8396
|
-
operation: 'editImage';
|
|
8397
|
-
model: 'dall-e-2';
|
|
8398
|
-
engine: 'openai';
|
|
8399
|
-
};
|
|
8400
|
-
export type OpenAiDallE2ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8401
|
-
operation: string;
|
|
8402
|
-
prompt: string;
|
|
8403
|
-
size: '256x256' | '512x512' | '1024x1024';
|
|
8404
|
-
quantity?: number;
|
|
8405
|
-
model: 'dall-e-2';
|
|
8406
|
-
engine: 'openai';
|
|
8407
|
-
};
|
|
8408
|
-
export type OpenAiDallE3CreateImageGenInput = Omit<
|
|
8409
|
-
OpenAiDallE3ImageGenInput,
|
|
8410
|
-
'engine' | 'model' | 'operation'
|
|
8411
|
-
> & {
|
|
8412
|
-
background?: 'auto' | 'transparent' | 'opaque';
|
|
8413
|
-
operation: 'createImage';
|
|
8414
|
-
model: 'dall-e-3';
|
|
8415
|
-
engine: 'openai';
|
|
8416
|
-
};
|
|
8417
|
-
export type OpenAiDallE3ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8418
|
-
operation: string;
|
|
8419
|
-
prompt: string;
|
|
8420
|
-
size: '1024x1024' | '1792x1024' | '1024x1792';
|
|
8421
|
-
style?: 'natural' | 'vivid';
|
|
8422
|
-
quality?: 'auto' | 'hd' | 'standard';
|
|
8423
|
-
model: 'dall-e-3';
|
|
8424
|
-
engine: 'openai';
|
|
8425
|
-
};
|
|
8426
8415
|
export type OpenAiGpt15CreateImageInput = Omit<
|
|
8427
8416
|
OpenAiGpt15ImageGenInput,
|
|
8428
8417
|
'engine' | 'model' | 'operation'
|
|
@@ -8452,37 +8441,6 @@ export type OpenAiGpt15ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'mo
|
|
|
8452
8441
|
model: 'gpt-image-1.5';
|
|
8453
8442
|
engine: 'openai';
|
|
8454
8443
|
};
|
|
8455
|
-
export type OpenAiGpt1CreateImageInput = Omit<
|
|
8456
|
-
OpenAiGpt1ImageGenInput,
|
|
8457
|
-
'engine' | 'model' | 'operation'
|
|
8458
|
-
> & {
|
|
8459
|
-
operation: 'createImage';
|
|
8460
|
-
model: 'gpt-image-1';
|
|
8461
|
-
engine: 'openai';
|
|
8462
|
-
};
|
|
8463
|
-
export type OpenAiGpt1EditImageInput = Omit<
|
|
8464
|
-
OpenAiGpt1ImageGenInput,
|
|
8465
|
-
'engine' | 'model' | 'operation'
|
|
8466
|
-
> & {
|
|
8467
|
-
images: Array<string>;
|
|
8468
|
-
/**
|
|
8469
|
-
* Either A URL, A DataURL or a Base64 string
|
|
8470
|
-
*/
|
|
8471
|
-
mask?: null | string;
|
|
8472
|
-
operation: 'editImage';
|
|
8473
|
-
model: 'gpt-image-1';
|
|
8474
|
-
engine: 'openai';
|
|
8475
|
-
};
|
|
8476
|
-
export type OpenAiGpt1ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8477
|
-
operation: string;
|
|
8478
|
-
prompt: string;
|
|
8479
|
-
size?: '1024x1024' | '1536x1024' | '1024x1536';
|
|
8480
|
-
quantity?: number;
|
|
8481
|
-
background?: 'auto' | 'transparent' | 'opaque';
|
|
8482
|
-
quality?: 'auto' | 'high' | 'medium' | 'low';
|
|
8483
|
-
model: 'gpt-image-1';
|
|
8484
|
-
engine: 'openai';
|
|
8485
|
-
};
|
|
8486
8444
|
export type OpenAiGpt25FlareCreateImageInput = Omit<
|
|
8487
8445
|
OpenAiGpt25FlareImageGenInput,
|
|
8488
8446
|
'engine' | 'model' | 'operation'
|
|
@@ -8516,7 +8474,6 @@ export type OpenAiGpt25FlareEditImageInput = Omit<
|
|
|
8516
8474
|
};
|
|
8517
8475
|
/**
|
|
8518
8476
|
* GPT-Image-2.5 "flare": the faster of the two variants.
|
|
8519
|
-
* FAL endpoints: openai/gpt-image-2.5/flare/text-to-image[/edit]
|
|
8520
8477
|
*/
|
|
8521
8478
|
export type OpenAiGpt25FlareImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8522
8479
|
operation: string;
|
|
@@ -8561,7 +8518,6 @@ export type OpenAiGpt25SunburstEditImageInput = Omit<
|
|
|
8561
8518
|
};
|
|
8562
8519
|
/**
|
|
8563
8520
|
* GPT-Image-2.5 "sunburst": higher fidelity on intricate detail, slower.
|
|
8564
|
-
* FAL endpoints: openai/gpt-image-2.5/sunburst/text-to-image[/edit]
|
|
8565
8521
|
*/
|
|
8566
8522
|
export type OpenAiGpt25SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8567
8523
|
operation: string;
|
|
@@ -9582,9 +9538,11 @@ export type ResourceFee = {
|
|
|
9582
9538
|
type: ResourceFeeType;
|
|
9583
9539
|
settlementCurrency: SettlementCurrency;
|
|
9584
9540
|
recipientModelVersionId?: null | number;
|
|
9541
|
+
markup?: null | number;
|
|
9585
9542
|
};
|
|
9586
9543
|
export declare const ResourceFeeType: {
|
|
9587
9544
|
readonly PER_IMAGE_BUZZ: 'perImageBuzz';
|
|
9545
|
+
readonly PERCENT_OF_COMPUTE: 'percentOfCompute';
|
|
9588
9546
|
};
|
|
9589
9547
|
export type ResourceFeeType = (typeof ResourceFeeType)[keyof typeof ResourceFeeType];
|
|
9590
9548
|
export type ResourceInfo = {
|
|
@@ -9673,52 +9631,6 @@ export declare const ResourceView: {
|
|
|
9673
9631
|
* are addressed by AIR and only materialise once something asks for them.
|
|
9674
9632
|
*/
|
|
9675
9633
|
export type ResourceView = (typeof ResourceView)[keyof typeof ResourceView];
|
|
9676
|
-
export type ReveCreateFalImageGenInput = Omit<
|
|
9677
|
-
ReveFalImageGenInput,
|
|
9678
|
-
'engine' | 'model' | 'operation'
|
|
9679
|
-
> & {
|
|
9680
|
-
operation: 'createImage';
|
|
9681
|
-
model: 'reve';
|
|
9682
|
-
engine: 'fal';
|
|
9683
|
-
};
|
|
9684
|
-
export type ReveEditFalImageGenInput = Omit<
|
|
9685
|
-
ReveFalImageGenInput,
|
|
9686
|
-
'engine' | 'model' | 'operation'
|
|
9687
|
-
> & {
|
|
9688
|
-
/**
|
|
9689
|
-
* Address these from the prompt as <frame>N</frame>, 0-based.
|
|
9690
|
-
*/
|
|
9691
|
-
images: Array<string>;
|
|
9692
|
-
operation: 'editImage';
|
|
9693
|
-
model: 'reve';
|
|
9694
|
-
engine: 'fal';
|
|
9695
|
-
};
|
|
9696
|
-
export type ReveFalImageGenInput = Omit<FalImageGenInput, 'engine' | 'model'> & {
|
|
9697
|
-
operation: string;
|
|
9698
|
-
prompt: string;
|
|
9699
|
-
aspectRatio?:
|
|
9700
|
-
| 'auto'
|
|
9701
|
-
| '4:1'
|
|
9702
|
-
| '3:1'
|
|
9703
|
-
| '21:9'
|
|
9704
|
-
| '2:1'
|
|
9705
|
-
| '17:9'
|
|
9706
|
-
| '16:9'
|
|
9707
|
-
| '3:2'
|
|
9708
|
-
| '4:3'
|
|
9709
|
-
| '5:4'
|
|
9710
|
-
| '1:1'
|
|
9711
|
-
| '4:5'
|
|
9712
|
-
| '3:4'
|
|
9713
|
-
| '2:3'
|
|
9714
|
-
| '9:16'
|
|
9715
|
-
| '1:2'
|
|
9716
|
-
| '1:3'
|
|
9717
|
-
| '1:4';
|
|
9718
|
-
quantity?: number;
|
|
9719
|
-
model: 'reve';
|
|
9720
|
-
engine: 'fal';
|
|
9721
|
-
};
|
|
9722
9634
|
export type Sd1AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
9723
9635
|
/**
|
|
9724
9636
|
* Compensates for the varying noise strength applied to training images, suppressing large jumps when images have little noise.
|
|
@@ -9913,6 +9825,122 @@ export type SdxlVariantImageGenInput = Omit<
|
|
|
9913
9825
|
ecosystem: 'sdxl';
|
|
9914
9826
|
engine: 'sdcpp';
|
|
9915
9827
|
};
|
|
9828
|
+
/**
|
|
9829
|
+
* Translate a video's speech into another language and return the dubbed soundtrack, matching the video's length.
|
|
9830
|
+
*/
|
|
9831
|
+
export type SeedAudioDubbingInput = Omit<SeedAudioGenInput, 'operation'> & {
|
|
9832
|
+
/**
|
|
9833
|
+
* The video to dub (mp4 or mov, 4–360 s, 480p–1080p). Its speech must be Chinese or English; the source language is detected.
|
|
9834
|
+
*/
|
|
9835
|
+
video: string;
|
|
9836
|
+
targetLanguage:
|
|
9837
|
+
| 'zh'
|
|
9838
|
+
| 'en'
|
|
9839
|
+
| 'ja'
|
|
9840
|
+
| 'ko'
|
|
9841
|
+
| 'de'
|
|
9842
|
+
| 'fr'
|
|
9843
|
+
| 'pt-BR'
|
|
9844
|
+
| 'th'
|
|
9845
|
+
| 'id'
|
|
9846
|
+
| 'vi'
|
|
9847
|
+
| 'ms'
|
|
9848
|
+
| 'fil'
|
|
9849
|
+
| 'it'
|
|
9850
|
+
| 'ru'
|
|
9851
|
+
| 'nl'
|
|
9852
|
+
| 'pl'
|
|
9853
|
+
| 'tr'
|
|
9854
|
+
| 'sv'
|
|
9855
|
+
| 'es-ES'
|
|
9856
|
+
| 'es-MX'
|
|
9857
|
+
| 'ar'
|
|
9858
|
+
| 'pt-PT'
|
|
9859
|
+
| 'fi'
|
|
9860
|
+
| 'da'
|
|
9861
|
+
| 'no'
|
|
9862
|
+
| 'cs'
|
|
9863
|
+
| 'hu'
|
|
9864
|
+
| 'el'
|
|
9865
|
+
| 'ro'
|
|
9866
|
+
| 'hi';
|
|
9867
|
+
operation: 'dubbing';
|
|
9868
|
+
};
|
|
9869
|
+
/**
|
|
9870
|
+
* BytePlus Seed Audio; `operation` picks generation, dubbing a video, or separating audio into tracks.
|
|
9871
|
+
*/
|
|
9872
|
+
export type SeedAudioGenInput = {
|
|
9873
|
+
operation: null | string;
|
|
9874
|
+
outputFormat?: 'mp3' | 'wav';
|
|
9875
|
+
};
|
|
9876
|
+
export type SeedAudioGenOutput = {
|
|
9877
|
+
/**
|
|
9878
|
+
* The generated tracks, in the order Seed Audio returned them.
|
|
9879
|
+
*/
|
|
9880
|
+
blobs: Array<AudioBlob>;
|
|
9881
|
+
/**
|
|
9882
|
+
* Why Seed Audio refused the request, when it did.
|
|
9883
|
+
*/
|
|
9884
|
+
errors?: null | Array<string>;
|
|
9885
|
+
};
|
|
9886
|
+
/**
|
|
9887
|
+
* Generate speech, music and ambience, dub a video into another language, or separate audio into tracks with BytePlus Seed Audio.
|
|
9888
|
+
*/
|
|
9889
|
+
export type SeedAudioGenStep = Omit<WorkflowStep, '$type'> & {
|
|
9890
|
+
/**
|
|
9891
|
+
* BytePlus Seed Audio; `operation` picks generation, dubbing a video, or separating audio into tracks.
|
|
9892
|
+
*/
|
|
9893
|
+
input: SeedAudioGenInput;
|
|
9894
|
+
output?: SeedAudioGenOutput;
|
|
9895
|
+
$type: 'seedAudioGen';
|
|
9896
|
+
};
|
|
9897
|
+
/**
|
|
9898
|
+
* Generate speech, music and ambience, dub a video into another language, or separate audio into tracks with BytePlus Seed Audio.
|
|
9899
|
+
*/
|
|
9900
|
+
export type SeedAudioGenStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
9901
|
+
/**
|
|
9902
|
+
* Input for the SeedAudioGenStep step.
|
|
9903
|
+
*/
|
|
9904
|
+
input: SeedAudioGenInput;
|
|
9905
|
+
$type: 'seedAudioGen';
|
|
9906
|
+
};
|
|
9907
|
+
/**
|
|
9908
|
+
* Generate speech with music and ambience from a prompt, optionally guided by reference voices, a video or an image.
|
|
9909
|
+
*/
|
|
9910
|
+
export type SeedAudioGenerateInput = Omit<SeedAudioGenInput, 'operation'> & {
|
|
9911
|
+
/**
|
|
9912
|
+
* What to generate: the spoken lines in quotes, with language, speaker, emotion and pace, plus any music or ambience.
|
|
9913
|
+
* Seed Audio rejects prompts without a spoken line.
|
|
9914
|
+
*/
|
|
9915
|
+
prompt: string;
|
|
9916
|
+
/**
|
|
9917
|
+
* Up to 6 voice references (wav or mp3, 2–30 s each, 180 s in total).
|
|
9918
|
+
*/
|
|
9919
|
+
referenceAudios?: Array<string>;
|
|
9920
|
+
/**
|
|
9921
|
+
* A video (mp4 or mov, 4–360 s) for the audio to follow.
|
|
9922
|
+
*/
|
|
9923
|
+
referenceVideo?: null | string;
|
|
9924
|
+
/**
|
|
9925
|
+
* An image to set the scene. Can't be combined with reference audio or video.
|
|
9926
|
+
*/
|
|
9927
|
+
referenceImage?: null | string;
|
|
9928
|
+
operation: 'generate';
|
|
9929
|
+
};
|
|
9930
|
+
/**
|
|
9931
|
+
* Split an audio file into up to 6 tracks described in the prompt, such as each speaker, the music and the ambience.
|
|
9932
|
+
*/
|
|
9933
|
+
export type SeedAudioSeparationInput = Omit<SeedAudioGenInput, 'operation'> & {
|
|
9934
|
+
/**
|
|
9935
|
+
* The tracks to split into, each with a name and a description, e.g. "1. 'speech': all spoken voices. 2. 'background': music and ambience."
|
|
9936
|
+
*/
|
|
9937
|
+
prompt: string;
|
|
9938
|
+
/**
|
|
9939
|
+
* The audio to separate (wav or mp3, 2–360 s).
|
|
9940
|
+
*/
|
|
9941
|
+
audio: string;
|
|
9942
|
+
operation: 'separation';
|
|
9943
|
+
};
|
|
9916
9944
|
export declare const SeedanceModel: {
|
|
9917
9945
|
readonly V2: 'v2';
|
|
9918
9946
|
readonly V2_FAST: 'v2-fast';
|
|
@@ -9994,6 +10022,12 @@ export type ServiceHistory = {
|
|
|
9994
10022
|
*/
|
|
9995
10023
|
buckets: Array<BucketResponse>;
|
|
9996
10024
|
};
|
|
10025
|
+
export declare const ServiceHosting: {
|
|
10026
|
+
readonly PARTNER: 'partner';
|
|
10027
|
+
readonly INTERNAL: 'internal';
|
|
10028
|
+
readonly PER_REQUEST: 'perRequest';
|
|
10029
|
+
};
|
|
10030
|
+
export type ServiceHosting = (typeof ServiceHosting)[keyof typeof ServiceHosting];
|
|
9997
10031
|
/**
|
|
9998
10032
|
* A service we offer.
|
|
9999
10033
|
*/
|
|
@@ -10018,6 +10052,11 @@ export type ServiceResponse = {
|
|
|
10018
10052
|
* The workflow step $type this service is reached through.
|
|
10019
10053
|
*/
|
|
10020
10054
|
step?: null | string;
|
|
10055
|
+
/**
|
|
10056
|
+
* Who runs it: internal on Civitai's own workers, partner at an external provider, or perRequest when the request
|
|
10057
|
+
* decides. Null for a service the API doesn't declare.
|
|
10058
|
+
*/
|
|
10059
|
+
hosting?: ServiceHosting;
|
|
10021
10060
|
/**
|
|
10022
10061
|
* Where to submit this service.
|
|
10023
10062
|
*/
|
|
@@ -10199,39 +10238,60 @@ export type SoniloSoundEffectInput = Omit<SoniloAudioGenInput, 'operation'> & {
|
|
|
10199
10238
|
duration?: number;
|
|
10200
10239
|
operation: 'soundEffect';
|
|
10201
10240
|
};
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
engine: 'sora';
|
|
10241
|
+
export type StarVectorImageToSvgInput = Omit<ComfyImageToSvgInput, 'engine' | 'ecosystem'> & {
|
|
10242
|
+
model?: 'starvector-1b' | 'starvector-8b';
|
|
10243
|
+
precision?: 'fp16' | 'bf16';
|
|
10244
|
+
maxLength?: number;
|
|
10245
|
+
ecosystem: 'starvector';
|
|
10246
|
+
engine: 'comfy';
|
|
10209
10247
|
};
|
|
10210
10248
|
/**
|
|
10211
|
-
*
|
|
10249
|
+
* A sticker on the first tracked frame: centre and width as fractions of the frame, rotation in degrees clockwise.
|
|
10212
10250
|
*/
|
|
10213
|
-
export type
|
|
10214
|
-
|
|
10215
|
-
|
|
10251
|
+
export type StickerPlacement = {
|
|
10252
|
+
x: number;
|
|
10253
|
+
y: number;
|
|
10254
|
+
scale: number;
|
|
10255
|
+
rotation: number;
|
|
10256
|
+
};
|
|
10257
|
+
export type StickerTrackInput = {
|
|
10258
|
+
video: string;
|
|
10259
|
+
/**
|
|
10260
|
+
* A sticker on the first tracked frame: centre and width as fractions of the frame, rotation in degrees clockwise.
|
|
10261
|
+
*/
|
|
10262
|
+
placement: StickerPlacement;
|
|
10263
|
+
/**
|
|
10264
|
+
* Where tracking starts in the video, in milliseconds; `placement` is the sticker on this frame.
|
|
10265
|
+
*/
|
|
10266
|
+
startMs?: number;
|
|
10267
|
+
/**
|
|
10268
|
+
* How many milliseconds to track from `startMs`; the rest of the video, up to 60 seconds, when unset.
|
|
10269
|
+
*/
|
|
10270
|
+
maxMs?: null | number;
|
|
10271
|
+
};
|
|
10272
|
+
export type StickerTrackOutput = {
|
|
10273
|
+
/**
|
|
10274
|
+
* The track JSON: `{"v":1,"ms":250,"show":[[tick,0|1]],"x":[[tick,value]],"y":…,"s":…,"r":…}`, see civitai/civitai-sticker-track.
|
|
10275
|
+
*/
|
|
10276
|
+
track: Blob;
|
|
10216
10277
|
};
|
|
10217
10278
|
/**
|
|
10218
|
-
*
|
|
10279
|
+
* Keeps a sticker placed on the first tracked frame of a video on the character's head or eyes, returning a per-frame JSON track.
|
|
10219
10280
|
*/
|
|
10220
|
-
export type
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
resolution?: '720p' | '1080p';
|
|
10225
|
-
aspectRatio?: 'auto' | '16:9' | '9:16';
|
|
10226
|
-
usePro?: boolean;
|
|
10227
|
-
engine: 'sora';
|
|
10281
|
+
export type StickerTrackStep = Omit<WorkflowStep, '$type'> & {
|
|
10282
|
+
input: StickerTrackInput;
|
|
10283
|
+
output?: StickerTrackOutput;
|
|
10284
|
+
$type: 'stickerTrack';
|
|
10228
10285
|
};
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10286
|
+
/**
|
|
10287
|
+
* Keeps a sticker placed on the first tracked frame of a video on the character's head or eyes, returning a per-frame JSON track.
|
|
10288
|
+
*/
|
|
10289
|
+
export type StickerTrackStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
10290
|
+
/**
|
|
10291
|
+
* Input for the StickerTrackStep step.
|
|
10292
|
+
*/
|
|
10293
|
+
input: StickerTrackInput;
|
|
10294
|
+
$type: 'stickerTrack';
|
|
10235
10295
|
};
|
|
10236
10296
|
export type StreamingBlobAppendResponse = {
|
|
10237
10297
|
/**
|
|
@@ -11463,16 +11523,6 @@ export type Wan25FalImageGenInput = Omit<Wan25ImageGenInput, 'engine' | 'version
|
|
|
11463
11523
|
version: 'v2.5';
|
|
11464
11524
|
engine: 'wan';
|
|
11465
11525
|
};
|
|
11466
|
-
export type Wan25FalImageToImageInput = Omit<
|
|
11467
|
-
Wan25FalImageGenInput,
|
|
11468
|
-
'engine' | 'version' | 'provider' | 'operation'
|
|
11469
|
-
> & {
|
|
11470
|
-
images?: Array<string>;
|
|
11471
|
-
operation: 'image-to-image';
|
|
11472
|
-
provider: 'fal';
|
|
11473
|
-
version: 'v2.5';
|
|
11474
|
-
engine: 'wan';
|
|
11475
|
-
};
|
|
11476
11526
|
export type Wan25FalImageToVideoInput = Omit<
|
|
11477
11527
|
Wan25FalVideoGenInput,
|
|
11478
11528
|
'engine' | 'version' | 'provider' | 'operation'
|
|
@@ -11778,6 +11828,116 @@ export type WanVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
11778
11828
|
steps?: number;
|
|
11779
11829
|
loras?: Array<VideoGenInputLora>;
|
|
11780
11830
|
};
|
|
11831
|
+
export type WasmInput = {
|
|
11832
|
+
engine: string;
|
|
11833
|
+
/**
|
|
11834
|
+
* Streams stdout while the module runs, readable at `output.stdoutUrl`; the full stdout is still in the output once it exits.
|
|
11835
|
+
*/
|
|
11836
|
+
stream?: boolean;
|
|
11837
|
+
};
|
|
11838
|
+
export type WasmOutput = {
|
|
11839
|
+
/**
|
|
11840
|
+
* Set once the module exits, as are Civitai.Orchestration.Grains.Workflows.Steps.Wasm.WasmOutput.Stdout and Civitai.Orchestration.Grains.Workflows.Steps.Wasm.WasmOutput.Stderr.
|
|
11841
|
+
*/
|
|
11842
|
+
exitCode?: null | number;
|
|
11843
|
+
stdout?: null | string;
|
|
11844
|
+
stderr?: null | string;
|
|
11845
|
+
/**
|
|
11846
|
+
* Stdout as it is written, when the input asked to stream it.
|
|
11847
|
+
*/
|
|
11848
|
+
stdoutUrl?: null | string;
|
|
11849
|
+
/**
|
|
11850
|
+
* Stdout as JSON, when it parses as JSON; later steps reach it via `$ref` paths like `output.parsed.<field>`.
|
|
11851
|
+
*/
|
|
11852
|
+
parsed?: unknown;
|
|
11853
|
+
};
|
|
11854
|
+
export type WasmStep = Omit<WorkflowStep, '$type'> & {
|
|
11855
|
+
input: WasmInput;
|
|
11856
|
+
output?: WasmOutput;
|
|
11857
|
+
$type: 'wasm';
|
|
11858
|
+
};
|
|
11859
|
+
export type WasmStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
11860
|
+
/**
|
|
11861
|
+
* Input for the WasmStep step.
|
|
11862
|
+
*/
|
|
11863
|
+
input: WasmInput;
|
|
11864
|
+
$type: 'wasm';
|
|
11865
|
+
};
|
|
11866
|
+
export type WasmtimeAudioFile = Omit<WasmtimeFile, 'type'> & {
|
|
11867
|
+
url: string;
|
|
11868
|
+
type: 'audio';
|
|
11869
|
+
};
|
|
11870
|
+
/**
|
|
11871
|
+
* One media file handed to the module, imported through the path its kind takes in every other step.
|
|
11872
|
+
*/
|
|
11873
|
+
export type WasmtimeFile = {
|
|
11874
|
+
type: string;
|
|
11875
|
+
};
|
|
11876
|
+
/**
|
|
11877
|
+
* Imported and scanned as any source image is.
|
|
11878
|
+
*/
|
|
11879
|
+
export type WasmtimeImageFile = Omit<WasmtimeFile, 'type'> & {
|
|
11880
|
+
/**
|
|
11881
|
+
* Either A URL, A DataURL or a Base64 string
|
|
11882
|
+
*/
|
|
11883
|
+
url: string;
|
|
11884
|
+
type: 'image';
|
|
11885
|
+
};
|
|
11886
|
+
/**
|
|
11887
|
+
* What the run may use, which is also what it reserves on its worker. The timeout is named after `wasmtime run -W`.
|
|
11888
|
+
*/
|
|
11889
|
+
export type WasmtimeLimits = {
|
|
11890
|
+
/**
|
|
11891
|
+
* How long the module may run before it is interrupted.
|
|
11892
|
+
*/
|
|
11893
|
+
timeout?: string;
|
|
11894
|
+
/**
|
|
11895
|
+
* In MiB, how far the module's memory may grow.
|
|
11896
|
+
*/
|
|
11897
|
+
maxMemoryMb?: number;
|
|
11898
|
+
/**
|
|
11899
|
+
* Cores reserved, not enforced. A module runs on one thread, so less than 1 shares a core with other runs.
|
|
11900
|
+
*/
|
|
11901
|
+
cpus?: number;
|
|
11902
|
+
};
|
|
11903
|
+
export type WasmtimeVideoFile = Omit<WasmtimeFile, 'type'> & {
|
|
11904
|
+
url: string;
|
|
11905
|
+
type: 'video';
|
|
11906
|
+
};
|
|
11907
|
+
/**
|
|
11908
|
+
* Runs the module in Wasmtime as a WASI command, as `wasmtime run` would.
|
|
11909
|
+
*/
|
|
11910
|
+
export type WasmtimeWasmInput = Omit<WasmInput, 'engine'> & {
|
|
11911
|
+
/**
|
|
11912
|
+
* The module, compiled for `wasm32-wasip1`. A URL is imported into blob storage when the step is submitted.
|
|
11913
|
+
*/
|
|
11914
|
+
module: string;
|
|
11915
|
+
/**
|
|
11916
|
+
* When set, a module whose bytes don't match is refused.
|
|
11917
|
+
*/
|
|
11918
|
+
sha256?: null | string;
|
|
11919
|
+
/**
|
|
11920
|
+
* The arguments after the program name.
|
|
11921
|
+
*/
|
|
11922
|
+
args?: Array<string>;
|
|
11923
|
+
env?: {
|
|
11924
|
+
[key: string]: string;
|
|
11925
|
+
};
|
|
11926
|
+
stdin?: null | string;
|
|
11927
|
+
/**
|
|
11928
|
+
* Read-only directories by guest path, as `wasmtime run --dir` preopens them, each listing its media files by name.
|
|
11929
|
+
*/
|
|
11930
|
+
dirs?: {
|
|
11931
|
+
[key: string]: {
|
|
11932
|
+
[key: string]: WasmtimeFile;
|
|
11933
|
+
};
|
|
11934
|
+
};
|
|
11935
|
+
/**
|
|
11936
|
+
* What the run may use, which is also what it reserves on its worker. The timeout is named after `wasmtime run -W`.
|
|
11937
|
+
*/
|
|
11938
|
+
limits?: WasmtimeLimits;
|
|
11939
|
+
engine: 'wasmtime';
|
|
11940
|
+
};
|
|
11781
11941
|
/**
|
|
11782
11942
|
* An image repeated across the whole output, burned into every frame.
|
|
11783
11943
|
*/
|
|
@@ -11796,6 +11956,56 @@ export type Watermark = {
|
|
|
11796
11956
|
*/
|
|
11797
11957
|
angle?: number;
|
|
11798
11958
|
};
|
|
11959
|
+
export type WatermarkDetectionAudio = {
|
|
11960
|
+
detected: boolean;
|
|
11961
|
+
/**
|
|
11962
|
+
* The share of the audio that reads as watermarked, from 0 to 1; from 0.5 the watermark counts as found.
|
|
11963
|
+
*/
|
|
11964
|
+
score: number;
|
|
11965
|
+
};
|
|
11966
|
+
export type WatermarkDetectionInput = {
|
|
11967
|
+
/**
|
|
11968
|
+
* The image, video or audio file to check. URLs are imported into orchestrator blob storage before the job is queued.
|
|
11969
|
+
*/
|
|
11970
|
+
mediaUrl: string;
|
|
11971
|
+
};
|
|
11972
|
+
export type WatermarkDetectionOutput = {
|
|
11973
|
+
/**
|
|
11974
|
+
* Whether the picture or the audio carries Civitai's watermark.
|
|
11975
|
+
*/
|
|
11976
|
+
detected: boolean;
|
|
11977
|
+
/**
|
|
11978
|
+
* The watermark of the image or of the video's frames; null when the media has no picture.
|
|
11979
|
+
*/
|
|
11980
|
+
visual?: WatermarkDetectionVisual;
|
|
11981
|
+
/**
|
|
11982
|
+
* The watermark of the audio; null when the media has no audio.
|
|
11983
|
+
*/
|
|
11984
|
+
audio?: WatermarkDetectionAudio;
|
|
11985
|
+
};
|
|
11986
|
+
export type WatermarkDetectionStep = Omit<WorkflowStep, '$type'> & {
|
|
11987
|
+
input: WatermarkDetectionInput;
|
|
11988
|
+
output?: WatermarkDetectionOutput;
|
|
11989
|
+
$type: 'watermarkDetection';
|
|
11990
|
+
};
|
|
11991
|
+
export type WatermarkDetectionStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
11992
|
+
/**
|
|
11993
|
+
* Input for the WatermarkDetectionStep step.
|
|
11994
|
+
*/
|
|
11995
|
+
input: WatermarkDetectionInput;
|
|
11996
|
+
$type: 'watermarkDetection';
|
|
11997
|
+
};
|
|
11998
|
+
export type WatermarkDetectionVisual = {
|
|
11999
|
+
detected: boolean;
|
|
12000
|
+
/**
|
|
12001
|
+
* The version of the watermark that was found.
|
|
12002
|
+
*/
|
|
12003
|
+
version?: null | number;
|
|
12004
|
+
/**
|
|
12005
|
+
* How strongly the picture matches the watermark, as a z-score: unmarked pictures score around 0, and above 4.75 the watermark counts as found.
|
|
12006
|
+
*/
|
|
12007
|
+
score: number;
|
|
12008
|
+
};
|
|
11799
12009
|
export type WatermarkTransform = Omit<ImageTransform, 'type'> & {
|
|
11800
12010
|
/**
|
|
11801
12011
|
* An image repeated across the whole output, burned into every frame.
|
|
@@ -12251,7 +12461,7 @@ export type WorkflowTemplate = {
|
|
|
12251
12461
|
[key: string]: unknown;
|
|
12252
12462
|
};
|
|
12253
12463
|
/**
|
|
12254
|
-
* Indexed for searching. At most
|
|
12464
|
+
* Indexed for searching. At most 20 tags, each at most 200 characters.
|
|
12255
12465
|
*/
|
|
12256
12466
|
tags?: null | Array<string>;
|
|
12257
12467
|
steps: Array<WorkflowStepTemplate>;
|
|
@@ -13405,9 +13615,9 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
|
|
|
13405
13615
|
*/
|
|
13406
13616
|
keepTokens: number;
|
|
13407
13617
|
/**
|
|
13408
|
-
* CLIP layer skip for SD1.5;
|
|
13618
|
+
* CLIP layer skip for SD1.5 and SDXL-family models, also applied to previews. Defaults to 1 for SD1.5 and 2 for SDXL, which conditions on the penultimate layer at the least, so 1 is treated as 2 there; flow models use 1.
|
|
13409
13619
|
*/
|
|
13410
|
-
clipSkip
|
|
13620
|
+
clipSkip?: null | number;
|
|
13411
13621
|
/**
|
|
13412
13622
|
* Random horizontal image flips.
|
|
13413
13623
|
*/
|
|
@@ -15681,6 +15891,46 @@ export type InvokeImageBackgroundRemovalStepTemplateResponses = {
|
|
|
15681
15891
|
};
|
|
15682
15892
|
export type InvokeImageBackgroundRemovalStepTemplateResponse =
|
|
15683
15893
|
InvokeImageBackgroundRemovalStepTemplateResponses[keyof InvokeImageBackgroundRemovalStepTemplateResponses];
|
|
15894
|
+
export type InvokeImageFaceFixStepTemplateData = {
|
|
15895
|
+
body?: ImageFaceFixInput;
|
|
15896
|
+
path?: never;
|
|
15897
|
+
query?: {
|
|
15898
|
+
experimental?: boolean;
|
|
15899
|
+
allowMatureContent?: boolean;
|
|
15900
|
+
whatif?: boolean;
|
|
15901
|
+
ephemeral?: boolean;
|
|
15902
|
+
/**
|
|
15903
|
+
* How a workflow is paid for.
|
|
15904
|
+
*/
|
|
15905
|
+
tier?: WorkflowTier;
|
|
15906
|
+
tags?: Array<string>;
|
|
15907
|
+
};
|
|
15908
|
+
url: '/v2/consumer/recipes/imageFaceFix';
|
|
15909
|
+
};
|
|
15910
|
+
export type InvokeImageFaceFixStepTemplateErrors = {
|
|
15911
|
+
/**
|
|
15912
|
+
* Bad Request
|
|
15913
|
+
*/
|
|
15914
|
+
400: ProblemDetails;
|
|
15915
|
+
/**
|
|
15916
|
+
* Unauthorized
|
|
15917
|
+
*/
|
|
15918
|
+
401: ProblemDetails;
|
|
15919
|
+
/**
|
|
15920
|
+
* Forbidden
|
|
15921
|
+
*/
|
|
15922
|
+
403: ProblemDetails;
|
|
15923
|
+
};
|
|
15924
|
+
export type InvokeImageFaceFixStepTemplateError =
|
|
15925
|
+
InvokeImageFaceFixStepTemplateErrors[keyof InvokeImageFaceFixStepTemplateErrors];
|
|
15926
|
+
export type InvokeImageFaceFixStepTemplateResponses = {
|
|
15927
|
+
/**
|
|
15928
|
+
* OK
|
|
15929
|
+
*/
|
|
15930
|
+
200: ImageFaceFixOutput;
|
|
15931
|
+
};
|
|
15932
|
+
export type InvokeImageFaceFixStepTemplateResponse =
|
|
15933
|
+
InvokeImageFaceFixStepTemplateResponses[keyof InvokeImageFaceFixStepTemplateResponses];
|
|
15684
15934
|
export type InvokeImageGenStepTemplateData = {
|
|
15685
15935
|
body?: ImageGenInput;
|
|
15686
15936
|
path?: never;
|
|
@@ -16887,6 +17137,49 @@ export type InvokeRepeatStepTemplateResponses = {
|
|
|
16887
17137
|
};
|
|
16888
17138
|
export type InvokeRepeatStepTemplateResponse =
|
|
16889
17139
|
InvokeRepeatStepTemplateResponses[keyof InvokeRepeatStepTemplateResponses];
|
|
17140
|
+
export type InvokeSeedAudioGenStepTemplateData = {
|
|
17141
|
+
/**
|
|
17142
|
+
* BytePlus Seed Audio; `operation` picks generation, dubbing a video, or separating audio into tracks.
|
|
17143
|
+
*/
|
|
17144
|
+
body?: SeedAudioGenInput;
|
|
17145
|
+
path?: never;
|
|
17146
|
+
query?: {
|
|
17147
|
+
experimental?: boolean;
|
|
17148
|
+
allowMatureContent?: boolean;
|
|
17149
|
+
whatif?: boolean;
|
|
17150
|
+
ephemeral?: boolean;
|
|
17151
|
+
/**
|
|
17152
|
+
* How a workflow is paid for.
|
|
17153
|
+
*/
|
|
17154
|
+
tier?: WorkflowTier;
|
|
17155
|
+
tags?: Array<string>;
|
|
17156
|
+
};
|
|
17157
|
+
url: '/v2/consumer/recipes/seedAudioGen';
|
|
17158
|
+
};
|
|
17159
|
+
export type InvokeSeedAudioGenStepTemplateErrors = {
|
|
17160
|
+
/**
|
|
17161
|
+
* Bad Request
|
|
17162
|
+
*/
|
|
17163
|
+
400: ProblemDetails;
|
|
17164
|
+
/**
|
|
17165
|
+
* Unauthorized
|
|
17166
|
+
*/
|
|
17167
|
+
401: ProblemDetails;
|
|
17168
|
+
/**
|
|
17169
|
+
* Forbidden
|
|
17170
|
+
*/
|
|
17171
|
+
403: ProblemDetails;
|
|
17172
|
+
};
|
|
17173
|
+
export type InvokeSeedAudioGenStepTemplateError =
|
|
17174
|
+
InvokeSeedAudioGenStepTemplateErrors[keyof InvokeSeedAudioGenStepTemplateErrors];
|
|
17175
|
+
export type InvokeSeedAudioGenStepTemplateResponses = {
|
|
17176
|
+
/**
|
|
17177
|
+
* OK
|
|
17178
|
+
*/
|
|
17179
|
+
200: SeedAudioGenOutput;
|
|
17180
|
+
};
|
|
17181
|
+
export type InvokeSeedAudioGenStepTemplateResponse =
|
|
17182
|
+
InvokeSeedAudioGenStepTemplateResponses[keyof InvokeSeedAudioGenStepTemplateResponses];
|
|
16890
17183
|
export type InvokeShieldstralModerationStepTemplateData = {
|
|
16891
17184
|
body?: ShieldstralModerationInput;
|
|
16892
17185
|
path?: never;
|
|
@@ -16970,6 +17263,46 @@ export type InvokeSoniloAudioGenStepTemplateResponses = {
|
|
|
16970
17263
|
};
|
|
16971
17264
|
export type InvokeSoniloAudioGenStepTemplateResponse =
|
|
16972
17265
|
InvokeSoniloAudioGenStepTemplateResponses[keyof InvokeSoniloAudioGenStepTemplateResponses];
|
|
17266
|
+
export type InvokeStickerTrackStepTemplateData = {
|
|
17267
|
+
body?: StickerTrackInput;
|
|
17268
|
+
path?: never;
|
|
17269
|
+
query?: {
|
|
17270
|
+
experimental?: boolean;
|
|
17271
|
+
allowMatureContent?: boolean;
|
|
17272
|
+
whatif?: boolean;
|
|
17273
|
+
ephemeral?: boolean;
|
|
17274
|
+
/**
|
|
17275
|
+
* How a workflow is paid for.
|
|
17276
|
+
*/
|
|
17277
|
+
tier?: WorkflowTier;
|
|
17278
|
+
tags?: Array<string>;
|
|
17279
|
+
};
|
|
17280
|
+
url: '/v2/consumer/recipes/stickerTrack';
|
|
17281
|
+
};
|
|
17282
|
+
export type InvokeStickerTrackStepTemplateErrors = {
|
|
17283
|
+
/**
|
|
17284
|
+
* Bad Request
|
|
17285
|
+
*/
|
|
17286
|
+
400: ProblemDetails;
|
|
17287
|
+
/**
|
|
17288
|
+
* Unauthorized
|
|
17289
|
+
*/
|
|
17290
|
+
401: ProblemDetails;
|
|
17291
|
+
/**
|
|
17292
|
+
* Forbidden
|
|
17293
|
+
*/
|
|
17294
|
+
403: ProblemDetails;
|
|
17295
|
+
};
|
|
17296
|
+
export type InvokeStickerTrackStepTemplateError =
|
|
17297
|
+
InvokeStickerTrackStepTemplateErrors[keyof InvokeStickerTrackStepTemplateErrors];
|
|
17298
|
+
export type InvokeStickerTrackStepTemplateResponses = {
|
|
17299
|
+
/**
|
|
17300
|
+
* OK
|
|
17301
|
+
*/
|
|
17302
|
+
200: StickerTrackOutput;
|
|
17303
|
+
};
|
|
17304
|
+
export type InvokeStickerTrackStepTemplateResponse =
|
|
17305
|
+
InvokeStickerTrackStepTemplateResponses[keyof InvokeStickerTrackStepTemplateResponses];
|
|
16973
17306
|
export type InvokeTextToImageStepTemplateData = {
|
|
16974
17307
|
body?: TextToImageInput;
|
|
16975
17308
|
path?: never;
|
|
@@ -17490,6 +17823,86 @@ export type InvokeVideoUpscalerStepTemplateResponses = {
|
|
|
17490
17823
|
};
|
|
17491
17824
|
export type InvokeVideoUpscalerStepTemplateResponse =
|
|
17492
17825
|
InvokeVideoUpscalerStepTemplateResponses[keyof InvokeVideoUpscalerStepTemplateResponses];
|
|
17826
|
+
export type InvokeWasmStepTemplateData = {
|
|
17827
|
+
body?: WasmInput;
|
|
17828
|
+
path?: never;
|
|
17829
|
+
query?: {
|
|
17830
|
+
experimental?: boolean;
|
|
17831
|
+
allowMatureContent?: boolean;
|
|
17832
|
+
whatif?: boolean;
|
|
17833
|
+
ephemeral?: boolean;
|
|
17834
|
+
/**
|
|
17835
|
+
* How a workflow is paid for.
|
|
17836
|
+
*/
|
|
17837
|
+
tier?: WorkflowTier;
|
|
17838
|
+
tags?: Array<string>;
|
|
17839
|
+
};
|
|
17840
|
+
url: '/v2/consumer/recipes/wasm';
|
|
17841
|
+
};
|
|
17842
|
+
export type InvokeWasmStepTemplateErrors = {
|
|
17843
|
+
/**
|
|
17844
|
+
* Bad Request
|
|
17845
|
+
*/
|
|
17846
|
+
400: ProblemDetails;
|
|
17847
|
+
/**
|
|
17848
|
+
* Unauthorized
|
|
17849
|
+
*/
|
|
17850
|
+
401: ProblemDetails;
|
|
17851
|
+
/**
|
|
17852
|
+
* Forbidden
|
|
17853
|
+
*/
|
|
17854
|
+
403: ProblemDetails;
|
|
17855
|
+
};
|
|
17856
|
+
export type InvokeWasmStepTemplateError =
|
|
17857
|
+
InvokeWasmStepTemplateErrors[keyof InvokeWasmStepTemplateErrors];
|
|
17858
|
+
export type InvokeWasmStepTemplateResponses = {
|
|
17859
|
+
/**
|
|
17860
|
+
* OK
|
|
17861
|
+
*/
|
|
17862
|
+
200: WasmOutput;
|
|
17863
|
+
};
|
|
17864
|
+
export type InvokeWasmStepTemplateResponse =
|
|
17865
|
+
InvokeWasmStepTemplateResponses[keyof InvokeWasmStepTemplateResponses];
|
|
17866
|
+
export type InvokeWatermarkDetectionStepTemplateData = {
|
|
17867
|
+
body?: WatermarkDetectionInput;
|
|
17868
|
+
path?: never;
|
|
17869
|
+
query?: {
|
|
17870
|
+
experimental?: boolean;
|
|
17871
|
+
allowMatureContent?: boolean;
|
|
17872
|
+
whatif?: boolean;
|
|
17873
|
+
ephemeral?: boolean;
|
|
17874
|
+
/**
|
|
17875
|
+
* How a workflow is paid for.
|
|
17876
|
+
*/
|
|
17877
|
+
tier?: WorkflowTier;
|
|
17878
|
+
tags?: Array<string>;
|
|
17879
|
+
};
|
|
17880
|
+
url: '/v2/consumer/recipes/watermarkDetection';
|
|
17881
|
+
};
|
|
17882
|
+
export type InvokeWatermarkDetectionStepTemplateErrors = {
|
|
17883
|
+
/**
|
|
17884
|
+
* Bad Request
|
|
17885
|
+
*/
|
|
17886
|
+
400: ProblemDetails;
|
|
17887
|
+
/**
|
|
17888
|
+
* Unauthorized
|
|
17889
|
+
*/
|
|
17890
|
+
401: ProblemDetails;
|
|
17891
|
+
/**
|
|
17892
|
+
* Forbidden
|
|
17893
|
+
*/
|
|
17894
|
+
403: ProblemDetails;
|
|
17895
|
+
};
|
|
17896
|
+
export type InvokeWatermarkDetectionStepTemplateError =
|
|
17897
|
+
InvokeWatermarkDetectionStepTemplateErrors[keyof InvokeWatermarkDetectionStepTemplateErrors];
|
|
17898
|
+
export type InvokeWatermarkDetectionStepTemplateResponses = {
|
|
17899
|
+
/**
|
|
17900
|
+
* OK
|
|
17901
|
+
*/
|
|
17902
|
+
200: WatermarkDetectionOutput;
|
|
17903
|
+
};
|
|
17904
|
+
export type InvokeWatermarkDetectionStepTemplateResponse =
|
|
17905
|
+
InvokeWatermarkDetectionStepTemplateResponses[keyof InvokeWatermarkDetectionStepTemplateResponses];
|
|
17493
17906
|
export type InvokeWdTaggingStepTemplateData = {
|
|
17494
17907
|
body?: WdTaggingInput;
|
|
17495
17908
|
path?: never;
|