Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ArliAiImageToImageRequest(val sdModelCheckpoint: String, val prompt: String, val negativePrompt: String, val initImages: List<String>, val mask: String?, val denoisingStrength: Float, val steps: Int, val samplerName: String, val width: Int, val height: Int, val seed: Long?, val cfgScale: Float, val batchSize: Int, val restoreFaces: Boolean, val maskBlur: Int?, val inPaintingFill: Int?, val inPaintFullRes: Boolean?, val inPaintFullResPadding: Int?, val inPaintingMaskInvert: Int?, val detailerEnabled: Boolean? = null, val detailerPrompt: String? = null, val detailerNegative: String? = null, val detailerSteps: Int? = null, val detailerStrength: Float? = null, val detailerModel: String? = null, val detailerConfidence: Float? = null, val detailerPadding: Int? = null, val detailerBlur: Int? = null)

JSON payload for ArliAI image-to-image generation.

Link copied to clipboard
@Serializable
data class ArliAiTextToImageRequest(val sdModelCheckpoint: String, val prompt: String, val negativePrompt: String, val steps: Int, val samplerName: String, val width: Int, val height: Int, val seed: Long?, val cfgScale: Float, val batchSize: Int, val restoreFaces: Boolean, val detailerEnabled: Boolean? = null, val detailerPrompt: String? = null, val detailerNegative: String? = null, val detailerSteps: Int? = null, val detailerStrength: Float? = null, val detailerModel: String? = null, val detailerConfidence: Float? = null, val detailerPadding: Int? = null, val detailerBlur: Int? = null)

JSON payload for ArliAI text-to-image generation.

Link copied to clipboard
@Serializable
data class FalAiImageToImageRequest(val imageUrl: String, val prompt: String, val strength: Float, val imageSize: String? = null, 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")

Carries FalAiImageToImageRequest data through the SDAI network layer.

Link copied to clipboard
@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")

Carries FalAiTextToImageRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class HordeGenerationAsyncRequest(val prompt: String, val params: HordeGenerationAsyncRequest.Params, val nsfw: Boolean, val sourceProcessing: String?, val sourceImage: String?)

Carries HordeGenerationAsyncRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class HuggingFaceGenerationRequest(val inputs: String, val parameters: HuggingFaceGenerationRequest.Parameters = Parameters())

Carries HuggingFaceGenerationRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class ImageToImageRequest(val initImages: List<String>, val includeInitImages: Boolean, val mask: String?, val inPaintingMaskInvert: Int?, val inPaintFullResPadding: Int?, val inPaintingFill: Int?, val inPaintFullRes: Boolean?, val maskBlur: Int?, val denoisingStrength: Float, 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)

Carries ImageToImageRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class OpenAiRequest(val prompt: String, val model: String, val size: String, val quality: String? = null)

Carries OpenAiRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class OverrideSettings(val forgeAdditionalModules: List<String>? = null)

Carries OverrideSettings data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class ReportRequest(val text: String, val reason: String, val image: String, val serverSource: String, val model: String)

Carries ReportRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class StabilityTextToImageRequest(val height: Int, val width: Int, val textPrompts: List<StabilityTextPromptRaw>, val cfgScale: Float, val clipGuidancePreset: String, val sampler: String?, val seed: Long, val steps: Int, val stylePreset: String?)

Carries StabilityTextToImageRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class SwarmUiGenerationRequest(val sessionId: String, val model: String, val initImage: String?, val initImageCreativity: String?, val images: Int, val prompt: String, val negativePrompt: String, val width: Int, val height: Int, val seed: String?, val variationSeed: String?, val variationSeedStrength: String?, val cfgScale: Float?, val steps: Int)

Carries SwarmUiGenerationRequest data through the SDAI network layer.

Link copied to clipboard
@Serializable
data class SwarmUiModelsRequest(val sessionId: String, val subType: String, val path: String, val depth: Int)

Carries SwarmUiModelsRequest data through the SDAI network layer.

Link copied to clipboard
@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)

Carries TextToImageRequest data through the SDAI network layer.