KtorArliAiGenerationRemoteDataSource

Maps ArliAI network responses into domain generation results.

The provider response is Automatic1111-compatible, so this data source reuses the Stable Diffusion response mappers after converting domain payloads into ArliAI requests.

Author

Dmitriy Moroz

Parameters

api

ArliAI network API used for validation and generation calls.

Constructors

Link copied to clipboard
constructor(api: ArliAiGenerationApi)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun imageToImage(apiKey: String, model: String, payload: ImageToImagePayload): List<AiGenerationResult>

Sends image-to-image generation and maps returned images with the current timestamp.

Link copied to clipboard
open suspend override fun textToImage(apiKey: String, model: String, payload: TextToImagePayload): List<AiGenerationResult>

Sends text-to-image generation and maps returned images with the current timestamp.

Link copied to clipboard
open suspend override fun validateApiKey(apiKey: String): Boolean

Treats any successful model-list request as a valid API key check.