Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
daanelson /stable-diffusion-speed-lab:49055001
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run daanelson/stable-diffusion-speed-lab using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"daanelson/stable-diffusion-speed-lab:4905500191572a49169c7b2eef219b3ac7a3da0beeaeb0f132e8df8766de6146",
{
input: {
prompt: "landscape photography of fundatura ponorului by marc adamus, morning, mist, rays of light, beautiful",
num_outputs: 1,
guidance_scale: 7.5,
negative_prompt: "bad anatomy, low res, blurry, bad features, noisy",
num_inference_steps: 50
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run daanelson/stable-diffusion-speed-lab using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"daanelson/stable-diffusion-speed-lab:4905500191572a49169c7b2eef219b3ac7a3da0beeaeb0f132e8df8766de6146",
input={
"prompt": "landscape photography of fundatura ponorului by marc adamus, morning, mist, rays of light, beautiful",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "bad anatomy, low res, blurry, bad features, noisy",
"num_inference_steps": 50
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run daanelson/stable-diffusion-speed-lab using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "daanelson/stable-diffusion-speed-lab:4905500191572a49169c7b2eef219b3ac7a3da0beeaeb0f132e8df8766de6146",
"input": {
"prompt": "landscape photography of fundatura ponorului by marc adamus, morning, mist, rays of light, beautiful",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "bad anatomy, low res, blurry, bad features, noisy",
"num_inference_steps": 50
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-02-08T23:54:35.936119Z",
"created_at": "2023-02-08T23:54:34.017502Z",
"data_removed": false,
"error": null,
"id": "wtl2het2lrfnjiemra7wzsp2dq",
"input": {
"prompt": "landscape photography of fundatura ponorului by marc adamus, morning, mist, rays of light, beautiful",
"negative_prompt": "bad anatomy, low res, blurry, bad features, noisy"
},
"logs": "Using seed: 59594\n 0%| | 0/50 [00:00<?, ?it/s]\n 10%|█ | 5/50 [00:00<00:01, 41.70it/s]\n 20%|██ | 10/50 [00:00<00:00, 42.05it/s]\n 32%|███▏ | 16/50 [00:00<00:00, 46.64it/s]\n 44%|████▍ | 22/50 [00:00<00:00, 48.93it/s]\n 56%|█████▌ | 28/50 [00:00<00:00, 50.18it/s]\n 68%|██████▊ | 34/50 [00:00<00:00, 50.94it/s]\n 80%|████████ | 40/50 [00:00<00:00, 51.34it/s]\n 92%|█████████▏| 46/50 [00:00<00:00, 51.60it/s]\n100%|██████████| 50/50 [00:01<00:00, 49.85it/s]",
"metrics": {
"predict_time": 1.860448,
"total_time": 1.918617
},
"output": [
"https://replicate.delivery/pbxt/pRnsWOemWD0QZqSy3NOZdCuOhYtd5BETyf7QYynq1Tp7ge4gA/out-0.png"
],
"started_at": "2023-02-08T23:54:34.075671Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/wtl2het2lrfnjiemra7wzsp2dq",
"cancel": "https://api.replicate.com/v1/predictions/wtl2het2lrfnjiemra7wzsp2dq/cancel"
},
"version": "4905500191572a49169c7b2eef219b3ac7a3da0beeaeb0f132e8df8766de6146"
}
Using seed: 59594
0%| | 0/50 [00:00<?, ?it/s]
10%|█ | 5/50 [00:00<00:01, 41.70it/s]
20%|██ | 10/50 [00:00<00:00, 42.05it/s]
32%|███▏ | 16/50 [00:00<00:00, 46.64it/s]
44%|████▍ | 22/50 [00:00<00:00, 48.93it/s]
56%|█████▌ | 28/50 [00:00<00:00, 50.18it/s]
68%|██████▊ | 34/50 [00:00<00:00, 50.94it/s]
80%|████████ | 40/50 [00:00<00:00, 51.34it/s]
92%|█████████▏| 46/50 [00:00<00:00, 51.60it/s]
100%|██████████| 50/50 [00:01<00:00, 49.85it/s]