Replicate now has a client library for Swift. It’s got everything you need to build an AI-powered app for iOS and macOS using Replicate's HTTP API.
Add it as a package dependency to your project:
Then, you can run predictions:
Follow our guide to building a SwiftUI app or read the full documentation on GitHub.