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.
camenduru /comfyui-ipadapter-latentupscale:f4ed8ed0
This version has been disabled because it consistently fails to complete setup.
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 camenduru/comfyui-ipadapter-latentupscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"camenduru/comfyui-ipadapter-latentupscale:f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0",
{
input: {
cfg: 7,
seed: 543543,
steps: 30,
width: 768,
height: 512,
scheduler: "karras",
sampler_name: "dpmpp_2m",
image_denoise: 1,
red_threshold: 0.15,
latent_upscale: false,
black_threshold: 0.15,
green_threshold: 0.15,
red_image_weight: 0.7,
red_prompt_weight: 1,
black_image_weight: 0.7,
green_image_weight: 0.7,
black_prompt_weight: 1,
green_prompt_weight: 1,
latent_upscale_size: 1.5,
red_negative_prompt: "",
red_positive_prompt: "anime illustration of a young woman with a black jacket",
black_negative_prompt: "blurry, lowres, bad art, ill, distorted, malformed, horror",
black_positive_prompt: "closeup of two girl friends shopping in a sci-fi space station",
green_negative_prompt: "anime",
green_positive_prompt: "illustration of a blond woman",
latent_upscale_denoise: 0.55
}
}
);
// 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 camenduru/comfyui-ipadapter-latentupscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"camenduru/comfyui-ipadapter-latentupscale:f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0",
input={
"cfg": 7,
"seed": 543543,
"steps": 30,
"width": 768,
"height": 512,
"scheduler": "karras",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"red_threshold": 0.15,
"latent_upscale": False,
"black_threshold": 0.15,
"green_threshold": 0.15,
"red_image_weight": 0.7,
"red_prompt_weight": 1,
"black_image_weight": 0.7,
"green_image_weight": 0.7,
"black_prompt_weight": 1,
"green_prompt_weight": 1,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime illustration of a young woman with a black jacket",
"black_negative_prompt": "blurry, lowres, bad art, ill, distorted, malformed, horror",
"black_positive_prompt": "closeup of two girl friends shopping in a sci-fi space station",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
}
)
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 camenduru/comfyui-ipadapter-latentupscale 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": "f4ed8ed006c27bc298d827a5de1943ca829e5eb4ed2c98d83670c3dfbf9292f0",
"input": {
"cfg": 7,
"seed": 543543,
"steps": 30,
"width": 768,
"height": 512,
"scheduler": "karras",
"sampler_name": "dpmpp_2m",
"image_denoise": 1,
"red_threshold": 0.15,
"latent_upscale": false,
"black_threshold": 0.15,
"green_threshold": 0.15,
"red_image_weight": 0.7,
"red_prompt_weight": 1,
"black_image_weight": 0.7,
"green_image_weight": 0.7,
"black_prompt_weight": 1,
"green_prompt_weight": 1,
"latent_upscale_size": 1.5,
"red_negative_prompt": "",
"red_positive_prompt": "anime illustration of a young woman with a black jacket",
"black_negative_prompt": "blurry, lowres, bad art, ill, distorted, malformed, horror",
"black_positive_prompt": "closeup of two girl friends shopping in a sci-fi space station",
"green_negative_prompt": "anime",
"green_positive_prompt": "illustration of a blond woman",
"latent_upscale_denoise": 0.55
}
}' \
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.