|
export type GenerationStatus = |
|
| "idle" |
|
| "generating" |
|
| "upscaling" |
|
| "cropping" |
|
| "finished" |
|
| "error" |
|
|
|
export type Settings = { |
|
huggingfaceApiKey: string |
|
huggingfaceInferenceApiModel: string |
|
huggingfaceInferenceApiModelTrigger: string |
|
huggingfaceInferenceApiFileType: string |
|
} |
|
|
|
|
|
export interface StableDiffusionParams { |
|
prompt: string |
|
negativePrompt: string |
|
guidanceScale: number |
|
seed: number |
|
width: number |
|
height: number |
|
numInferenceSteps: number |
|
hfApiKey: string |
|
} |
|
|
|
export interface StableCascadeParams { |
|
prompt: string |
|
negativePrompt: string |
|
|
|
|
|
|
|
guidanceScale: number |
|
seed: number |
|
width: number |
|
height: number |
|
|
|
|
|
nbPriorInferenceSteps: number |
|
|
|
|
|
nbDecoderInferenceSteps: number |
|
} |
|
|
|
export type UpscalingParams = { |
|
imageAsBase64: string |
|
prompt: string |
|
negativePrompt: string |
|
scaleFactor: number |
|
seed: number |
|
|
|
|
|
|
|
|
|
nbSteps: number |
|
} |
|
|
|
export type BackgroundRemovalParams = { |
|
imageAsBase64: string |
|
} |