HordeGenerationApi

Defines the HordeGenerationApi contract for the SDAI network layer.

Author

Dmitriy Moroz

Inheritors

Functions

Link copied to clipboard
abstract suspend fun cancelRequest(apiKey: String, requestId: String)

Executes the cancelRequest step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun checkGeneration(apiKey: String, id: String): HordeGenerationCheckResponse

Executes the checkGeneration step in the SDAI network layer.

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

Executes the checkHordeApiKey step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun checkStatus(apiKey: String, id: String): HordeGenerationCheckFullResponse

Executes the checkStatus step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun downloadImage(url: String): ByteArray

Executes the downloadImage step in the SDAI network layer.

Link copied to clipboard

Executes the generateAsync step in the SDAI network layer.