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

Swift Client - fal

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

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

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

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

访问原网页

页面简介

fal client library for iOS, macOS, tvOS, and watchOS

正文摘录

The fal-swift package provides a native Swift interface for calling fal AI models on Apple platforms. Installation Add the package via Swift Package Manager: .package(url: "https://github.com/fal-ai/fal-swift.git", from: "0.5.6") Quick Start import FalClient let result = try await fal.subscribe( to: "fal-ai/flux/dev", input: [ "prompt": "a cat", "seed": 6252023, "image_size": "landscape_4_3", "num_images": 4 ], includeLogs: true ) { update in if case let .inProgress(logs) = update { print(logs) } } Supported Platforms iOS 16+ macOS 13+ tvOS 16+ watchOS 9+ API Reference Swift API ReferenceFull API documentation on Swift Package Index GitHub RepositorySource code and examplesWas this page helpful?YesNo⌘I