FalAiGenerationApi

Defines the FalAiGenerationApi contract for the SDAI network layer.

Author

Dmitriy Moroz

Inheritors

Functions

Link copied to clipboard
abstract suspend fun downloadImage(url: String): ByteArray

Executes the downloadImage step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun getQueueResult(apiKey: String, responseUrl: String): FalAiGenerationResponse

Executes the getQueueResult step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun getQueueStatus(apiKey: String, statusUrl: String): FalAiQueueStatusResponse

Executes the getQueueStatus step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun submitImageToImage(apiKey: String, model: String, request: FalAiImageToImageRequest): FalAiQueueSubmitResponse

Executes the submitImageToImage step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun submitTextToImage(apiKey: String, model: String, request: FalAiTextToImageRequest): FalAiQueueSubmitResponse

Executes the submitTextToImage step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun validateApiKey(apiKey: String)

Executes the validateApiKey step in the SDAI network layer.