SwarmUiGenerationApi

Defines the SwarmUiGenerationApi contract for the SDAI network layer.

Author

Dmitriy Moroz

Inheritors

Functions

Link copied to clipboard
abstract suspend fun downloadImage(url: String, authorization: BasicHttpAuthorization?): ByteArray

Executes the downloadImage step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun generate(baseUrl: String, request: SwarmUiGenerationRequest, authorization: BasicHttpAuthorization?): KtorSwarmUiGenerationResponse

Executes the generate step in the SDAI network layer.