getting-started-swiftui icon indicating copy to clipboard operation
getting-started-swiftui copied to clipboard

[Request] - Make version optional to run models like stable-diffusion-3

Open kyleledbetter opened this issue 8 months ago • 1 comments

Stable Diffusion 3 doesn't have a version: https://replicate.com/stability-ai/stable-diffusion-3/api

import Replicate from 'replicate';
const replicate = new Replicate();

const input = {
    prompt: "a photo of vibrant artistic graffiti on a wall saying \"SD3 medium\"",
    aspect_ratio: "3:2",
    output_quality: 79,
    negative_prompt: "ugly, distorted"
};

for await (const event of replicate.stream("stability-ai/stable-diffusion-3", { input })) {
  console.log(output)
};

So when I try to run a prediction against it I get Error generating prediction: The specified version does not exist (or perhaps you don't have permission to use it?)

Is their any way to run without a version and not get this error? Or does stability-ai/stable-diffusion-3 actually have a version I can use?

Thanks btw, so far running this package is Swift has been great and your tutorial was extremely helpful

kyleledbetter avatar Jun 18 '24 20:06 kyleledbetter