KtorStabilityAiEnginesApi

class KtorStabilityAiEnginesApi(val httpClient: HttpClient, val baseUrl: String, val json: Json = defaultNetworkJson) : StabilityAiEnginesApi(source)

Ktor implementation of Stability AI engine discovery counted as configuration sync traffic.

Author

Dmitriy Moroz

Parameters

httpClient

Configured Ktor client used to send provider requests.

baseUrl

Stability AI API base URL.

json

JSON codec used for counted response payloads.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, baseUrl: String, json: Json = defaultNetworkJson)
constructor(baseUrl: String)

Types

Link copied to clipboard
private object Companion

Properties

Link copied to clipboard
private val baseUrl: String

Exposes the baseUrl value used by the SDAI network layer.

Link copied to clipboard
private val httpClient: HttpClient

Exposes the httpClient value used by the SDAI network layer.

Link copied to clipboard
private val json: Json

Exposes the json value used by the SDAI network layer.

Functions

Link copied to clipboard
open suspend override fun fetchEngines(apiKey: String): List<StabilityAiEngineRaw>

Loads SDAI data through fetchEngines.