KtorFalAiGenerationApi
class KtorFalAiGenerationApi(val httpClient: HttpClient, val apiBaseUrl: String, val queueBaseUrl: String) : FalAiGenerationApi(source)
Ktor implementation of Fal AI generation and queue polling with traffic accounting.
Author
Dmitriy Moroz
Parameters
httpClient
Configured Ktor client used to send provider requests.
apiBaseUrl
Base API URL for validation and model submission endpoints.
queueBaseUrl
Base queue URL for polling and result endpoints.
Types
Properties
Functions
Link copied to clipboard
Executes the downloadImage step in the SDAI network layer.
Link copied to clipboard
open suspend override fun getQueueResult(apiKey: String, responseUrl: String): FalAiGenerationResponse
Executes the getQueueResult step in the SDAI network layer.
Link copied to clipboard
open suspend override fun getQueueStatus(apiKey: String, statusUrl: String): FalAiQueueStatusResponse
Executes the getQueueStatus step in the SDAI network layer.
Link copied to clipboard
open suspend override fun submitImageToImage(apiKey: String, model: String, request: FalAiImageToImageRequest): FalAiQueueSubmitResponse
Executes the submitImageToImage step in the SDAI network layer.
Link copied to clipboard
open suspend override fun submitTextToImage(apiKey: String, model: String, request: FalAiTextToImageRequest): FalAiQueueSubmitResponse
Executes the submitTextToImage step in the SDAI network layer.
Link copied to clipboard
Executes the validateApiKey step in the SDAI network layer.