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)(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)

Properties

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 = "height")
val height: Int

Exposes the height 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 = "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 = "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.