StabilityAiGenerationApi

Defines the StabilityAiGenerationApi contract for the SDAI network layer.

Author

Dmitriy Moroz

Inheritors

Functions

Link copied to clipboard
abstract suspend fun fetchCredits(apiKey: String): StabilityCreditsResponse

Loads SDAI data through fetchCredits.

Link copied to clipboard
abstract suspend fun imageToImage(apiKey: String, engineId: String, imageBytes: ByteArray, parameters: Map<String, String>): StabilityGenerationResponse

Executes the imageToImage step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun textToImage(apiKey: String, engineId: String, request: StabilityTextToImageRequest): StabilityGenerationResponse

Executes the textToImage step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun validateBearerToken(apiKey: String)

Executes the validateBearerToken step in the SDAI network layer.