KtorStabilityAiGenerationRemoteDataSource
class KtorStabilityAiGenerationRemoteDataSource(val api: StabilityAiGenerationApi) : StabilityAiGenerationDataSource.Remote(source)
Coordinates KtorStabilityAiGenerationRemoteDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Throws
when the delegated operation cannot complete.
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
Executes the validateApiKey step in the SDAI data layer.