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.
goodguy1963 /sdxl-finetunes-img2img:ad440b43
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 goodguy1963/sdxl-finetunes-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"goodguy1963/sdxl-finetunes-img2img:ad440b43e31f31a1f9cdee75a034e2db2c6c9c62b2c24c780f26405f61537f7a",
{
input: {
cfg: 7.5,
steps: 50,
width: 1024,
height: 1024,
prompt: "high quality, detailed, photorealistic, perfect eyes, bokeh, photo, perfect light, detailed style, depth of field",
denoise: 0.8,
scheduler: "karras",
sampler_name: "euler",
output_format: "webp",
safety_filter: true,
output_quality: 95,
checkpoint_name: "realismEngineSDXL_v30VAE.safetensors",
negative_prompt: "ugly, deformed, soft, ext, watermark, abstract, big hands, fake, fake hands, distorted, drawing, painting, crayon, sketch, impressionist, worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed",
ipadapter_end_at: 1,
ipadapter_weight: 0.9,
ipadapter_start_at: 0,
controlnet_strength: 1,
lora1_strength_clip: 1,
lora2_strength_clip: 1,
lora3_strength_clip: 1,
lora1_strength_model: 1,
lora2_strength_model: 2,
lora3_strength_model: 1,
controlnet_end_percent: 0.5,
controlnet_start_percent: 0
}
}
);
// 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 goodguy1963/sdxl-finetunes-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"goodguy1963/sdxl-finetunes-img2img:ad440b43e31f31a1f9cdee75a034e2db2c6c9c62b2c24c780f26405f61537f7a",
input={
"cfg": 7.5,
"steps": 50,
"width": 1024,
"height": 1024,
"prompt": "high quality, detailed, photorealistic, perfect eyes, bokeh, photo, perfect light, detailed style, depth of field",
"denoise": 0.8,
"scheduler": "karras",
"sampler_name": "euler",
"output_format": "webp",
"safety_filter": True,
"output_quality": 95,
"checkpoint_name": "realismEngineSDXL_v30VAE.safetensors",
"negative_prompt": "ugly, deformed, soft, ext, watermark, abstract, big hands, fake, fake hands, distorted, drawing, painting, crayon, sketch, impressionist, worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed",
"ipadapter_end_at": 1,
"ipadapter_weight": 0.9,
"ipadapter_start_at": 0,
"controlnet_strength": 1,
"lora1_strength_clip": 1,
"lora2_strength_clip": 1,
"lora3_strength_clip": 1,
"lora1_strength_model": 1,
"lora2_strength_model": 2,
"lora3_strength_model": 1,
"controlnet_end_percent": 0.5,
"controlnet_start_percent": 0
}
)
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 goodguy1963/sdxl-finetunes-img2img 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": "ad440b43e31f31a1f9cdee75a034e2db2c6c9c62b2c24c780f26405f61537f7a",
"input": {
"cfg": 7.5,
"steps": 50,
"width": 1024,
"height": 1024,
"prompt": "high quality, detailed, photorealistic, perfect eyes, bokeh, photo, perfect light, detailed style, depth of field",
"denoise": 0.8,
"scheduler": "karras",
"sampler_name": "euler",
"output_format": "webp",
"safety_filter": true,
"output_quality": 95,
"checkpoint_name": "realismEngineSDXL_v30VAE.safetensors",
"negative_prompt": "ugly, deformed, soft, ext, watermark, abstract, big hands, fake, fake hands, distorted, drawing, painting, crayon, sketch, impressionist, worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed",
"ipadapter_end_at": 1,
"ipadapter_weight": 0.9,
"ipadapter_start_at": 0,
"controlnet_strength": 1,
"lora1_strength_clip": 1,
"lora2_strength_clip": 1,
"lora3_strength_clip": 1,
"lora1_strength_model": 1,
"lora2_strength_model": 2,
"lora3_strength_model": 1,
"controlnet_end_percent": 0.5,
"controlnet_start_percent": 0
}
}' \
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
No output yet! Press "Submit" to start a prediction.