翻篇收录说明
翻篇网页快照

Kotlin / Java Client - fal

https://fal.ai/docs/api-reference/client-libraries/kotlin

最近抓取:2026-12-03 17:39:03(北京时间)

最近内容变化:2026-12-03 17:39:03(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

fal client library for Android and JVM applications

正文摘录

The fal-client packages provide Kotlin and Java interfaces for calling fal AI models on Android and JVM platforms. Installation Gradle (Kotlin)Gradle (Java)Maven (Kotlin)Maven (Java)implementation 'ai.fal.client:fal-client-kotlin:0.7.1' Java Async SupportIf your code relies on asynchronous operations via CompletableFuture or Future, use the ai.fal.client:fal-client-async artifact instead. Quick Start KotlinJavaimport ai.fal.client.kt val fal = createFalClient() val input = mapOf<String, Any>( "prompt" to "a cat", "seed" to 6252023, "image_size" to "landscape_4_3", "num_images" to 4 ) val result = fal.subscribe("fal-ai/flux/dev", input, options = SubscribeOptions( logs = true )) { update -> if (update is QueueStatus.InProgress) { println(update.logs) } } Supported Platforms Android (API 21+) JVM (Java 11+) Kotlin Multiplatform (JVM target) API Reference Java API ReferenceJavaDoc documentationKotlin API ReferenceKDoc documentation GitHub RepositorySource code and examplesWas this page helpful?YesNo⌘I