KtorArliAiGenerationApi
class KtorArliAiGenerationApi(val httpClient: HttpClient, val baseUrl: String) : ArliAiGenerationApi(source)
Ktor implementation of ArliAI validation, model discovery, and image generation.
Model-list traffic is counted as NetworkUsageCategory.CONFIGS. Text-to-image and image-to-image request and response bodies are counted as NetworkUsageCategory.INFERENCE.
Author
Dmitriy Moroz
Parameters
httpClient
configured Ktor client used to send provider requests.
baseUrl
ArliAI SDNext-compatible API base URL.
Functions
Link copied to clipboard
Loads available ArliAI checkpoints and records the response as configuration traffic.
Link copied to clipboard
open suspend override fun imageToImage(apiKey: String, request: ArliAiImageToImageRequest): SdGenerationResponse
Sends image-to-image generation and records request plus response bytes as inference traffic.
Link copied to clipboard
open suspend override fun textToImage(apiKey: String, request: ArliAiTextToImageRequest): SdGenerationResponse
Sends text-to-image generation and records request plus response bytes as inference traffic.
Link copied to clipboard
Validates the key by loading the ArliAI model list.