KtorStabilityAiGenerationRemoteDataSource

Coordinates KtorStabilityAiGenerationRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Throws

when the delegated operation cannot complete.

Constructors

constructor(api: StabilityAiGenerationApi)

Properties

Link copied to clipboard

Exposes the api value used by the SDAI data layer.

Functions

Link copied to clipboard
open suspend override fun imageToImage(apiKey: String, engineId: String, payload: ImageToImagePayload): AiGenerationResult

Executes the imageToImage step in the SDAI data layer.

Link copied to clipboard

Executes the processResponse step in the SDAI data layer.

Link copied to clipboard
open suspend override fun textToImage(apiKey: String, engineId: String, payload: TextToImagePayload): AiGenerationResult

Executes the textToImage step in the SDAI data layer.

Link copied to clipboard
open suspend override fun validateApiKey(apiKey: String): Boolean

Executes the validateApiKey step in the SDAI data layer.