FalAiTextToImageRequest

@Serializable
data class FalAiTextToImageRequest(val prompt: String, val imageSize: String, val numInferenceSteps: Int, val guidanceScale: Float, val seed: Long? = null, val syncMode: Boolean = false, val numImages: Int = 1, val enableSafetyChecker: Boolean = true, val outputFormat: String = "png", val acceleration: String = "none")(source)

Carries FalAiTextToImageRequest data through the SDAI network layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(prompt: String, imageSize: String, numInferenceSteps: Int, guidanceScale: Float, seed: Long? = null, syncMode: Boolean = false, numImages: Int = 1, enableSafetyChecker: Boolean = true, outputFormat: String = "png", acceleration: String = "none")

Properties

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

Exposes the acceleration value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "enable_safety_checker")
val enableSafetyChecker: Boolean

Exposes the enableSafetyChecker value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "guidance_scale")
val guidanceScale: Float

Exposes the guidanceScale value used by the SDAI network layer.

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

Exposes the imageSize value used by the SDAI network layer.

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

Exposes the numImages value used by the SDAI network layer.

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

Exposes the numInferenceSteps value used by the SDAI network layer.

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

Exposes the outputFormat 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 = "seed")
val seed: Long?

Exposes the seed value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "sync_mode")
val syncMode: Boolean

Exposes the syncMode value used by the SDAI network layer.