惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy International News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
T
Tailwind CSS Blog
WordPress大学
WordPress大学
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - Franky
C
CERT Recently Published Vulnerability Notes
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
雷峰网
雷峰网
Schneier on Security
Schneier on Security
博客园 - 聂微东
T
Tor Project blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
AI
AI
T
Troy Hunt's Blog
Security Latest
Security Latest
T
The Blog of Author Tim Ferriss
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Check Point Blog
T
Threat Research - Cisco Blogs
W
WeLiveSecurity
V
Vulnerabilities – Threatpost
Recorded Future
Recorded Future
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cisco Talos Blog
Cisco Talos Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cloudbric
Cloudbric
J
Java Code Geeks
罗磊的独立博客
C
Cyber Attacks, Cyber Crime and Cyber Security
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
Lohrmann on Cybersecurity
I
InfoQ
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
The Hacker News
The Hacker News
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
N
News and Events Feed by Topic

Replicate's changelog

Agent skills for Replicate – Replicate changelog Fallback model for Nano Banana Pro – Replicate changelog MCP server auto-discovery – Replicate changelog Filter predictions by source – Replicate changelog The little things, week ending December 19, 2025 – Replicate changelog The little things, week ending December 5, 2025 – Replicate changelog The little things, week ending November 21, 2025 – Replicate changelog Code mode for Replicate's MCP server – Replicate changelog The little things, week ending November 7, 2025 – Replicate changelog Deployment setup monitoring – Replicate changelog The little things, week ending October 24, 2025 – Replicate changelog Set deadlines for predictions – Replicate changelog The little things, week ending October 10, 2025 – Replicate changelog Download invoices from billing settings – Replicate changelog Sort models by creation date via API – Replicate changelog Update model metadata via API – Replicate changelog The little things, week ending September 26, 2025 – Replicate changelog New search API, now in beta – Replicate changelog The little things, week ending September 12, 2025 – Replicate changelog Torch compile caching – Replicate changelog The little things, week ending August 29, 2025 – Replicate changelog The little things, week ending August 14, 2025 – Replicate changelog Run all models with the same API endpoint – Replicate changelog The little things, week ending August 1, 2025 – Replicate changelog Purchase prepaid credit – Replicate changelog Introducing a new Cog runtime – Replicate changelog The little things, week ending July 18, 2025 – Replicate changelog The little things, week ending July 4, 2025 – Replicate changelog Set a monthly spend limit deprecated – Replicate changelog See up to 24 hours of data on deployment metric graphs – Replicate changelog The little things, week ending June 20, 2025 – Replicate changelog Environment variables in running containers – Replicate changelog Slimmer API responses for model metadata – Replicate changelog The little things, week ending June 6, 2025 – Replicate changelog Faster, cheaper Flux training – Replicate changelog The little things, week ending May 23, 2025 – Replicate changelog Streaming text support in the playground – Replicate changelog Web URLs now in prediction objects – Replicate changelog Iterate in playground with audio support – Replicate changelog NVIDIA H100 GPUs now available – Replicate changelog More by this user – Replicate changelog The little things, week ending May 9, 2025 – Replicate changelog Copy docs directly to your LLM – Replicate changelog The little things, week ending April 25, 2025 – Replicate changelog The little things, week ending March 28, 2025 – Replicate changelog Simplified organizations – Replicate changelog The little things, week ending March 14, 2025 – Replicate changelog The little things, week ending February 28, 2025 – Replicate changelog Better prediction list – Replicate changelog The little things, week ending February 14, 2025 – Replicate changelog The little things, week ending January 31, 2025 – Replicate changelog Official models – Replicate changelog The little things, week ending January 17, 2025 – Replicate changelog The little things, week ending December 20, 2024 – Replicate changelog Language model training no longer supported – Replicate changelog GPU memory monitoring – Replicate changelog The little things, week ending December 06, 2024 – Replicate changelog The little things, week ending November 22, 2024 – Replicate changelog The little things, week ending November 8, 2024 – Replicate changelog A fond farewell to Python 3.7 – Replicate changelog The little things, week ending October 25, 2024 – Replicate changelog Dark mode – Replicate changelog Playground (beta) – Replicate changelog New documentation – Replicate changelog Synchronous API – Replicate changelog Large log outputs might be truncated – Replicate changelog Time limit for sharing predictions – Replicate changelog View training outputs on the web – Replicate changelog API for searching public models – Replicate changelog Streams always available, stream parameter deprecated – Replicate changelog Secret inputs for models – Replicate changelog Disable API tokens – Replicate changelog RSS and Atom feeds – Replicate changelog Delete stuff – Replicate changelog Docs and client library support for webhook verification – Replicate changelog Search for deployments – Replicate changelog Webhooks activity UI – Replicate changelog Improved validation for API prediction payloads – Replicate changelog T4 models now have more RAM – Replicate changelog GitHub secret scanning – Replicate changelog Bearer tokens – Replicate changelog Deployments API – Replicate changelog 3D viewer for GLB outputs – Replicate changelog Task-oriented collections – Replicate changelog Webhook verification – Replicate changelog Fine-tune SDXL from the web – Replicate changelog Compare image inputs to outputs – Replicate changelog Code snippets for every prediction – Replicate changelog API for creating models – Replicate changelog Improved training detail pages – Replicate changelog Prediction parameters as JSON – Replicate changelog API for listing public models – Replicate changelog Deployments – Replicate changelog Prediction query parameter – Replicate changelog Fullscreen training logs – Replicate changelog Dynamic status favicons – Replicate changelog Streaming output for language models – Replicate changelog Multiple API tokens for users – Replicate changelog A40 GPUs now available – Replicate changelog Hardware and pricing for trainable models – Replicate changelog
Swift client library – Replicate changelog
2023-05-10 · via Replicate's changelog

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:

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        // other dependencies
        .package(url: "https://github.com/replicate/replicate-swift", from: "0.12.1"),
    ],
    targets: [
        .target(name: "<target>", dependencies: [
            // other dependencies
            .product(name: "Replicate", package: "replicate-swift"),
        ]),
        // other targets
    ]
)

Then, you can run predictions:

import Replicate

// Get your API token at https://replicate.com/account
private let replicate = Replicate.Client(token: <#token#>)

let output = try await replicate.run(
    "stability-ai/stable-diffusion:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf",
    ["prompt": "a 19th century portrait of a wombat gentleman"]
)

print(output)
// ["https://replicate.com/api/models/stability-ai/stable-diffusion/files/50fcac81-865d-499e-81ac-49de0cb79264/out-0.png"]

Follow our guide to building a SwiftUI app or read the full documentation on GitHub.