TextToImagePayloadDto

@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 scheduler: String? = null, val nsfw: Boolean, val batchCount: Int, val style: String?, val quality: String?, val openAiModel: String?, val stabilityAiClipGuidance: String?, val stabilityAiStylePreset: String?, val aDetailer: ADetailerConfigDto = ADetailerConfigDto(), val hires: HiresConfigDto = HiresConfigDto(), val forgeModules: List<ForgeModuleDto> = emptyList(), val falAiModel: String? = null, val falAiImageSize: String? = null, val falAiAcceleration: String? = null, val sdxlBackend: String? = null, val bonsaiBackend: String? = null, val falAiSyncMode: Boolean = false)(source)

Stable serialized form for txt2img background work.

The DTO stores provider-specific options as strings so enum aliases can be parsed with backwards-compatible defaults when app versions change.

Constructors

Link copied to clipboard
constructor(prompt: String, negativePrompt: String, samplingSteps: Int, cfgScale: Float, width: Int, height: Int, restoreFaces: Boolean, seed: String, subSeed: String, subSeedStrength: Float, sampler: String, scheduler: String? = null, nsfw: Boolean, batchCount: Int, style: String?, quality: String?, openAiModel: String?, stabilityAiClipGuidance: String?, stabilityAiStylePreset: String?, aDetailer: ADetailerConfigDto = ADetailerConfigDto(), hires: HiresConfigDto = HiresConfigDto(), forgeModules: List<ForgeModuleDto> = emptyList(), falAiModel: String? = null, falAiImageSize: String? = null, falAiAcceleration: String? = null, sdxlBackend: String? = null, bonsaiBackend: String? = null, falAiSyncMode: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard