TextToImageRequest

@Serializable
data class TextToImageRequest(val prompt: String, val negativePrompt: String, val steps: Int, val cfgScale: Float, val width: Int, val height: Int, val batchSize: Int, val restoreFaces: Boolean, val seed: String?, val subSeed: String?, val subSeedStrength: Float?, val samplerIndex: String, val scheduler: String? = null, val alwaysOnScripts: JsonObject? = null, val enableHr: Boolean? = null, val hrUpscaler: String? = null, val hrScale: Float? = null, val hrSecondPassSteps: Int? = null, val hrCfg: Float? = null, val hrDistilledCfg: Float? = null, val denoisingStrength: Float? = null, val overrideSettings: OverrideSettings? = null)(source)

Carries TextToImageRequest data through the SDAI network layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(prompt: String, negativePrompt: String, steps: Int, cfgScale: Float, width: Int, height: Int, batchSize: Int, restoreFaces: Boolean, seed: String?, subSeed: String?, subSeedStrength: Float?, samplerIndex: String, scheduler: String? = null, alwaysOnScripts: JsonObject? = null, enableHr: Boolean? = null, hrUpscaler: String? = null, hrScale: Float? = null, hrSecondPassSteps: Int? = null, hrCfg: Float? = null, hrDistilledCfg: Float? = null, denoisingStrength: Float? = null, overrideSettings: OverrideSettings? = null)

Properties

Link copied to clipboard
@SerialName(value = "alwayson_scripts")
val alwaysOnScripts: JsonObject?

Exposes the alwaysOnScripts value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "batch_size")
val batchSize: Int

Exposes the batchSize value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "cfg_scale")
val cfgScale: Float

Exposes the cfgScale value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "denoising_strength")
val denoisingStrength: Float?

Exposes the denoisingStrength value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "enable_hr")
val enableHr: Boolean?

Exposes the enableHr value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "height")
val height: Int

Exposes the height value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "hr_cfg")
val hrCfg: Float?

Exposes the hrCfg value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "hr_distilled_cfg")
val hrDistilledCfg: Float?

Exposes the hrDistilledCfg value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "hr_scale")
val hrScale: Float?

Exposes the hrScale value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "hr_second_pass_steps")
val hrSecondPassSteps: Int?

Exposes the hrSecondPassSteps value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "hr_upscaler")
val hrUpscaler: String?

Exposes the hrUpscaler value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "negative_prompt")
val negativePrompt: String

Exposes the negativePrompt value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "override_settings")
val overrideSettings: OverrideSettings?

Exposes the overrideSettings value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "prompt")
val prompt: String

Exposes the prompt value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "restore_faces")
val restoreFaces: Boolean

Exposes the restoreFaces value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "sampler_index")
val samplerIndex: String

Exposes the samplerIndex value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "scheduler")
val scheduler: String?

Exposes the scheduler value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "seed")
val seed: String?

Exposes the seed value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "steps")
val steps: Int

Exposes the steps value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "subseed")
val subSeed: String?

Exposes the subSeed value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "subseed_strength")
val subSeedStrength: Float?

Exposes the subSeedStrength value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "width")
val width: Int

Exposes the width value used by the SDAI network layer.