Prediction
stability-ai/stable-diffusion-3Official model
ID
ys5jkv1081rh20cg496aa19nzw
Status
Succeeded
Source
Web
Total duration
Created
by @janghaludu
Input
- cfg
- 4.49
- prompt
- 4K photo, Woman on grass
- aspect_ratio
- 1:1
- output_format
- webp
- output_quality
- 100
- negative_prompt
- penis, vagina, sex, boobs
{
"cfg": 4.49,
"prompt": "4K photo, Woman on grass",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 100,
"negative_prompt": "penis, vagina, sex, boobs"
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run stability-ai/stable-diffusion-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
cfg: 4.49,
prompt: "4K photo, Woman on grass",
aspect_ratio: "1:1",
output_format: "webp",
output_quality: 100,
negative_prompt: "penis, vagina, sex, boobs"
};
const output = await replicate.run("stability-ai/stable-diffusion-3", { input });
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
import replicate
Run stability-ai/stable-diffusion-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"stability-ai/stable-diffusion-3",
input={
"cfg": 4.49,
"prompt": "4K photo, Woman on grass",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 100,
"negative_prompt": "penis, vagina, sex, boobs"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run stability-ai/stable-diffusion-3 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 $'{
"input": {
"cfg": 4.49,
"prompt": "4K photo, Woman on grass",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 100,
"negative_prompt": "penis, vagina, sex, boobs"
}
}' \
https://api.replicate.com/v1/models/stability-ai/stable-diffusion-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2024-06-16T18:25:40.368944Z",
"created_at": "2024-06-16T18:25:32.736000Z",
"data_removed": false,
"error": null,
"id": "ys5jkv1081rh20cg496aa19nzw",
"input": {
"cfg": 4.49,
"prompt": "4K photo, Woman on grass",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 100,
"negative_prompt": "penis, vagina, sex, boobs"
},
"logs": "Random seed set to: 1019958667\nRunning workflow\ngot prompt\nExecuting node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 71, title: CLIP Text Encode (Negative Prompt), class type: CLIPTextEncode\nExecuting node 67, title: ConditioningZeroOut, class type: ConditioningZeroOut\nExecuting node 68, title: ConditioningSetTimestepRange, class type: ConditioningSetTimestepRange\nExecuting node 70, title: ConditioningSetTimestepRange, class type: ConditioningSetTimestepRange\nExecuting node 69, title: Conditioning (Combine), class type: ConditioningCombine\nExecuting node 135, title: EmptySD3LatentImage, class type: EmptySD3LatentImage\nExecuting node 271, title: KSampler, class type: KSampler\n 0%| | 0/28 [00:00<?, ?it/s]\n 7%|▋ | 2/28 [00:00<00:02, 10.72it/s]\n 14%|█▍ | 4/28 [00:00<00:02, 10.56it/s]\n 21%|██▏ | 6/28 [00:00<00:02, 10.52it/s]\n 29%|██▊ | 8/28 [00:00<00:01, 10.49it/s]\n 36%|███▌ | 10/28 [00:00<00:01, 10.48it/s]\n 43%|████▎ | 12/28 [00:01<00:01, 10.48it/s]\n 50%|█████ | 14/28 [00:01<00:01, 10.46it/s]\n 57%|█████▋ | 16/28 [00:01<00:01, 10.47it/s]\n 64%|██████▍ | 18/28 [00:01<00:00, 10.47it/s]\n 71%|███████▏ | 20/28 [00:01<00:00, 10.47it/s]\n 79%|███████▊ | 22/28 [00:02<00:00, 10.48it/s]\n 86%|████████▌ | 24/28 [00:02<00:00, 10.46it/s]\n 93%|█████████▎| 26/28 [00:02<00:00, 10.46it/s]\n100%|██████████| 28/28 [00:02<00:00, 10.44it/s]\n100%|██████████| 28/28 [00:02<00:00, 10.47it/s]\nExecuting node 231, title: VAE Decode, class type: VAEDecode\nExecuting node 273, title: Save Image, class type: SaveImage\nPrompt executed in 6.83 seconds\noutputs: {'273': {'images': [{'filename': 'R8_SD3_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nR8_SD3_00001_.png",
"metrics": {
"predict_time": 7.626583843,
"total_time": 7.632944
},
"output": [
"https://replicate.delivery/pbxt/GX7ew85e6ivjW0KAczh14kz9iROkExJnezuLFLeOTKNRC48LB/R8_SD3_00001_.webp"
],
"started_at": "2024-06-16T18:25:32.742360Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ys5jkv1081rh20cg496aa19nzw",
"cancel": "https://api.replicate.com/v1/predictions/ys5jkv1081rh20cg496aa19nzw/cancel"
},
"version": "hidden"
}
Generated in
Random seed set to: 1019958667
Running workflow
got prompt
Executing node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode
Executing node 71, title: CLIP Text Encode (Negative Prompt), class type: CLIPTextEncode
Executing node 67, title: ConditioningZeroOut, class type: ConditioningZeroOut
Executing node 68, title: ConditioningSetTimestepRange, class type: ConditioningSetTimestepRange
Executing node 70, title: ConditioningSetTimestepRange, class type: ConditioningSetTimestepRange
Executing node 69, title: Conditioning (Combine), class type: ConditioningCombine
Executing node 135, title: EmptySD3LatentImage, class type: EmptySD3LatentImage
Executing node 271, title: KSampler, class type: KSampler
0%| | 0/28 [00:00<?, ?it/s]
7%|▋ | 2/28 [00:00<00:02, 10.72it/s]
14%|█▍ | 4/28 [00:00<00:02, 10.56it/s]
21%|██▏ | 6/28 [00:00<00:02, 10.52it/s]
29%|██▊ | 8/28 [00:00<00:01, 10.49it/s]
36%|███▌ | 10/28 [00:00<00:01, 10.48it/s]
43%|████▎ | 12/28 [00:01<00:01, 10.48it/s]
50%|█████ | 14/28 [00:01<00:01, 10.46it/s]
57%|█████▋ | 16/28 [00:01<00:01, 10.47it/s]
64%|██████▍ | 18/28 [00:01<00:00, 10.47it/s]
71%|███████▏ | 20/28 [00:01<00:00, 10.47it/s]
79%|███████▊ | 22/28 [00:02<00:00, 10.48it/s]
86%|████████▌ | 24/28 [00:02<00:00, 10.46it/s]
93%|█████████▎| 26/28 [00:02<00:00, 10.46it/s]
100%|██████████| 28/28 [00:02<00:00, 10.44it/s]
100%|██████████| 28/28 [00:02<00:00, 10.47it/s]
Executing node 231, title: VAE Decode, class type: VAEDecode
Executing node 273, title: Save Image, class type: SaveImage
Prompt executed in 6.83 seconds
outputs: {'273': {'images': [{'filename': 'R8_SD3_00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
R8_SD3_00001_.png