Readme
This model doesn't have a readme.
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 datong-new/bg_change using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"datong-new/bg_change:ffd2758462e300b87784a9456ee0ff42bac0230190faa231542870adf1a999b6",
{
input: {
seed: 0,
prompt: "A 4k, highly detailed, high quality, cinematic. Keep the product unchanged!",
resolution: 1024,
mask_prompt: "",
art_fixation: 1,
fix_fixation: 0.8,
shape_fixation: 0.92,
style_fixation: 0.7,
negative_prompt: "unsuitable, nude, watermark, glitch, noise, bad, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, worst quality,low quality, glare",
illustration_mode: 1
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.