typetext
{
"guidance_scale": 4.5,
"height": 2048,
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"negative_conditioning_end": 0,
"negative_prompt": "",
"number_of_images": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"shift": 3,
"steps": 28,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"triple_prompt_empty_padding": true,
"triple_prompt_t5": "",
"use_triple_prompt": false,
"width": 2048
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_RAy**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fofr/sd3-explorer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sd3-explorer:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
{
input: {
guidance_scale: 4.5,
height: 2048,
model: "sd3_medium_incl_clips_t5xxlfp16.safetensors",
negative_conditioning_end: 0,
negative_prompt: "",
number_of_images: 1,
output_format: "webp",
output_quality: 80,
prompt: "a closeup portrait photo of a man",
sampler: "dpmpp_2m",
scheduler: "sgm_uniform",
shift: 3,
steps: 28,
triple_prompt_clip_g: "",
triple_prompt_clip_l: "",
triple_prompt_empty_padding: true,
triple_prompt_t5: "",
use_triple_prompt: false,
width: 2048
}
}
);
// 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=r8_RAy**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/sd3-explorer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sd3-explorer:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
input={
"guidance_scale": 4.5,
"height": 2048,
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"negative_conditioning_end": 0,
"negative_prompt": "",
"number_of_images": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"shift": 3,
"steps": 28,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"triple_prompt_empty_padding": True,
"triple_prompt_t5": "",
"use_triple_prompt": False,
"width": 2048
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_RAy**********************************
This is your API token. Keep it to yourself.
Run fofr/sd3-explorer 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": "fofr/sd3-explorer:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
"input": {
"guidance_scale": 4.5,
"height": 2048,
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"negative_conditioning_end": 0,
"negative_prompt": "",
"number_of_images": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"shift": 3,
"steps": 28,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"triple_prompt_empty_padding": true,
"triple_prompt_t5": "",
"use_triple_prompt": false,
"width": 2048
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "4qnntmc8znrgj0cg5dc928wsk0",
"model": "fofr/sd3-explorer",
"version": "ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
"input": {
"guidance_scale": 4.5,
"height": 2048,
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"negative_conditioning_end": 0,
"negative_prompt": "",
"number_of_images": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"shift": 3,
"steps": 28,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"triple_prompt_empty_padding": true,
"triple_prompt_t5": "",
"use_triple_prompt": false,
"width": 2048
},
"logs": "Random seed set to: 2477690887\nChecking weights\n✅ sd3_medium_incl_clips_t5xxlfp16.safetensors exists in ComfyUI/models/checkpoints\n====================================\nRunning workflow\ngot prompt\nExecuting node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 275, title: Empty SD3 Latent Image, class type: EmptySD3LatentImage\nExecuting node 271, title: KSampler, class type: KSampler\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:04, 5.59it/s]\n 7%|▋ | 2/28 [00:02<00:41, 1.59s/it]\n 11%|█ | 3/28 [00:04<00:37, 1.49s/it]\n 14%|█▍ | 4/28 [00:05<00:34, 1.45s/it]\n 18%|█▊ | 5/28 [00:06<00:32, 1.43s/it]\n 21%|██▏ | 6/28 [00:08<00:31, 1.42s/it]\n 25%|██▌ | 7/28 [00:09<00:29, 1.41s/it]\n 29%|██▊ | 8/28 [00:11<00:28, 1.40s/it]\n 32%|███▏ | 9/28 [00:12<00:26, 1.40s/it]\n 36%|███▌ | 10/28 [00:13<00:25, 1.40s/it]\n 39%|███▉ | 11/28 [00:15<00:23, 1.39s/it]\n 43%|████▎ | 12/28 [00:16<00:22, 1.39s/it]\n 46%|████▋ | 13/28 [00:18<00:20, 1.39s/it]\n 50%|█████ | 14/28 [00:19<00:19, 1.39s/it]\n 54%|█████▎ | 15/28 [00:20<00:18, 1.39s/it]\n 57%|█████▋ | 16/28 [00:22<00:16, 1.39s/it]\n 61%|██████ | 17/28 [00:23<00:15, 1.39s/it]\n 64%|██████▍ | 18/28 [00:25<00:13, 1.39s/it]\n 68%|██████▊ | 19/28 [00:26<00:12, 1.39s/it]\n 71%|███████▏ | 20/28 [00:27<00:11, 1.39s/it]\n 75%|███████▌ | 21/28 [00:29<00:09, 1.39s/it]\n 79%|███████▊ | 22/28 [00:30<00:08, 1.39s/it]\n 82%|████████▏ | 23/28 [00:31<00:06, 1.39s/it]\n 86%|████████▌ | 24/28 [00:33<00:05, 1.39s/it]\n 89%|████████▉ | 25/28 [00:34<00:04, 1.40s/it]\n 93%|█████████▎| 26/28 [00:36<00:02, 1.40s/it]\n 96%|█████████▋| 27/28 [00:37<00:01, 1.40s/it]\n100%|██████████| 28/28 [00:38<00:00, 1.40s/it]\n100%|██████████| 28/28 [00:38<00:00, 1.39s/it]\nExecuting node 231, title: VAE Decode, class type: VAEDecode\nExecuting node 273, title: Save Image, class type: SaveImage\nPrompt executed in 41.09 seconds\noutputs: {'273': {'images': [{'filename': 'SD3_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nSD3_00001_.png",
"output": [
"https://replicate.delivery/pbxt/Mi52JBn3OL7BLlzvqIp0B6Sddr0UNXcZ0eBY7df9YsTMFzflA/SD3_00001_.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-06-18T12:35:40.925Z",
"started_at": "2024-06-18T12:35:46.269682Z",
"completed_at": "2024-06-18T12:36:28.778256Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/4qnntmc8znrgj0cg5dc928wsk0/cancel",
"get": "https://api.replicate.com/v1/predictions/4qnntmc8znrgj0cg5dc928wsk0",
"web": "https://replicate.com/p/4qnntmc8znrgj0cg5dc928wsk0"
},
"metrics": {
"predict_time": 42.508573635,
"total_time": 47.853256
}
}