KtorArliAiGenerationRemoteDataSource
class KtorArliAiGenerationRemoteDataSource(val api: ArliAiGenerationApi) : ArliAiGenerationDataSource.Remote(source)
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.
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
Treats any successful model-list request as a valid API key check.