replicate / replicate-swift

Swift client for Replicate
https://replicate.com
Apache License 2.0
165 stars 35 forks source link

How to call sd3 using this api #86

Closed justthecontent closed 3 months ago

justthecontent commented 3 months ago

stability-ai/stable-diffusion-3 – Run with an API on Replicate

replicate swift API expects a version but I am unable to find a working version of the above model. I tried passing "latest" but that didn't work.

I attempted finding the latest version with this curl call - https://api.replicate.com/v1/models/stability-ai/stable-diffusion-3/versions but got only a 404 with This model is an official model and does not expose a list of versions.

Also, any hooks for ssl pinning would be helpful.

mattt commented 3 months ago

Hi @justthecontent. Some Replicate models require a version, while others like stability-ai/stable-diffusion-3 don't. For those that don't, use the Client.createPrediction(model:input:webhook:) method or Client.run, passing the model name.

Your question about TLS/SSL pinning is a good one. I just opened https://github.com/replicate/replicate-swift/issues/87 to track that work.