Package-level declarations

Types

Link copied to clipboard
@Serializable
private data class ImageToImagePayloadDto(val base64Image: String, val base64MaskImage: String, val denoisingStrength: Float, val prompt: String, val negativePrompt: String, val samplingSteps: Int, val cfgScale: Float, val width: Int, val height: Int, val restoreFaces: Boolean, val seed: String, val subSeed: String, val subSeedStrength: Float, val sampler: String, val nsfw: Boolean, val batchCount: Int, val inPaintingMaskInvert: Int, val inPaintFullResPadding: Int, val inPaintingFill: Int, val inPaintFullRes: Boolean, val maskBlur: Int, val stabilityAiClipGuidance: String?, val stabilityAiStylePreset: String?)

Carries ImageToImagePayloadDto data through the SDAI background work feature layer.

Link copied to clipboard
@Serializable
private data class TextToImagePayloadDto(val prompt: String, val negativePrompt: String, val samplingSteps: Int, val cfgScale: Float, val width: Int, val height: Int, val restoreFaces: Boolean, val seed: String, val subSeed: String, val subSeedStrength: Float, val sampler: String, val nsfw: Boolean, val batchCount: Int, val style: String?, val quality: String?, val openAiModel: String?, val stabilityAiClipGuidance: String?, val stabilityAiStylePreset: String?)

Carries TextToImagePayloadDto data through the SDAI background work feature layer.

Properties

Link copied to clipboard
internal val payloadJson: Json

Exposes the payloadJson value used by the SDAI background work feature layer.

Functions

Link copied to clipboard
internal inline fun <T : Enum<T>> String?.parseEnumOrNull(): T?

Executes the function step in the SDAI background work feature layer.

Link copied to clipboard

Converts SDAI data with toByteArray.

Link copied to clipboard

Converts SDAI data with toImageToImagePayload.

Link copied to clipboard

Converts SDAI data with toTextToImagePayload.