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.
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/ssd-1b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/ssd-1b:b19e3639452c59ce8295b82aba70a231404cb062f2eb580ea894b31e8ce5bbb6",
{
input: {
seed: 36446545872,
width: 768,
height: 768,
prompt: "with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
batched_prompt: false,
guidance_scale: 9,
apply_watermark: true,
negative_prompt: "scary, cartoon, painting",
prompt_strength: 0.8,
num_inference_steps: 25
}
}
);
console.log(output);
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 lucataco/ssd-1b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/ssd-1b:b19e3639452c59ce8295b82aba70a231404cb062f2eb580ea894b31e8ce5bbb6",
input={
"seed": 36446545872,
"width": 768,
"height": 768,
"prompt": "with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"batched_prompt": False,
"guidance_scale": 9,
"apply_watermark": True,
"negative_prompt": "scary, cartoon, painting",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
)
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 lucataco/ssd-1b 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": "b19e3639452c59ce8295b82aba70a231404cb062f2eb580ea894b31e8ce5bbb6",
"input": {
"seed": 36446545872,
"width": 768,
"height": 768,
"prompt": "with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"batched_prompt": false,
"guidance_scale": 9,
"apply_watermark": true,
"negative_prompt": "scary, cartoon, painting",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
}' \
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": "2024-12-06T21:08:18.042372Z",
"created_at": "2024-12-06T21:08:16.635000Z",
"data_removed": false,
"error": null,
"id": "7n0h7128fdrma0ckkq6rphkkn4",
"input": {
"seed": 36446545872,
"width": 768,
"height": 768,
"prompt": "with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"batched_prompt": false,
"guidance_scale": 9,
"apply_watermark": true,
"negative_prompt": "scary, cartoon, painting",
"prompt_strength": 0.8,
"num_inference_steps": 25
},
"logs": "Using seed: 36446545872\nPrompt: with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background\ntxt2img mode\n 0%| | 0/25 [00:00<?, ?it/s]\n 8%|▊ | 2/25 [00:00<00:01, 17.04it/s]\n 20%|██ | 5/25 [00:00<00:00, 22.00it/s]\n 32%|███▏ | 8/25 [00:00<00:00, 23.40it/s]\n 44%|████▍ | 11/25 [00:00<00:00, 24.11it/s]\n 56%|█████▌ | 14/25 [00:00<00:00, 24.51it/s]\n 68%|██████▊ | 17/25 [00:00<00:00, 24.73it/s]\n 80%|████████ | 20/25 [00:00<00:00, 24.86it/s]\n 92%|█████████▏| 23/25 [00:00<00:00, 24.92it/s]\n100%|██████████| 25/25 [00:01<00:00, 24.23it/s]",
"metrics": {
"predict_time": 1.398281685,
"total_time": 1.407372
},
"output": [
"https://replicate.delivery/xezq/22omflc90SUAI6J8R2tioVJYeDq1oYO8XrDYrUYzeF8FOjwnA/out-0.png"
],
"started_at": "2024-12-06T21:08:16.644090Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-ap226x5vfp2teztlqgnawxm5e3nhg5breye7rkwsfxb7aoflzhta",
"get": "https://api.replicate.com/v1/predictions/7n0h7128fdrma0ckkq6rphkkn4",
"cancel": "https://api.replicate.com/v1/predictions/7n0h7128fdrma0ckkq6rphkkn4/cancel"
},
"version": "b19e3639452c59ce8295b82aba70a231404cb062f2eb580ea894b31e8ce5bbb6"
}
Using seed: 36446545872
Prompt: with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background
txt2img mode
0%| | 0/25 [00:00<?, ?it/s]
8%|▊ | 2/25 [00:00<00:01, 17.04it/s]
20%|██ | 5/25 [00:00<00:00, 22.00it/s]
32%|███▏ | 8/25 [00:00<00:00, 23.40it/s]
44%|████▍ | 11/25 [00:00<00:00, 24.11it/s]
56%|█████▌ | 14/25 [00:00<00:00, 24.51it/s]
68%|██████▊ | 17/25 [00:00<00:00, 24.73it/s]
80%|████████ | 20/25 [00:00<00:00, 24.86it/s]
92%|█████████▏| 23/25 [00:00<00:00, 24.92it/s]
100%|██████████| 25/25 [00:01<00:00, 24.23it/s]