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.
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 cjwbw/supir-v0f using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/supir-v0f:b9c26267b41f3617099b53f09f2d894a621ebf4a59b632bfedb5031eeabd8959",
{
input: {
image: "https://replicate.delivery/pbxt/KSGCHApvib6EmVBpjerLhsht3UU2YAI9GkV87kWVp5wAT98T/07.png",
s_cfg: 7.5,
s_churn: 5,
s_noise: 1.003,
upscale: 1,
a_prompt: "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
min_size: 1024,
n_prompt: "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
s_stage1: -1,
s_stage2: 1,
edm_steps: 50,
linear_CFG: false,
color_fix_type: "Wavelet",
spt_linear_CFG: 1,
linear_s_stage2: false,
spt_linear_s_stage2: 0
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
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 cjwbw/supir-v0f using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/supir-v0f:b9c26267b41f3617099b53f09f2d894a621ebf4a59b632bfedb5031eeabd8959",
input={
"image": "https://replicate.delivery/pbxt/KSGCHApvib6EmVBpjerLhsht3UU2YAI9GkV87kWVp5wAT98T/07.png",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"upscale": 1,
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"min_size": 1024,
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_stage1": -1,
"s_stage2": 1,
"edm_steps": 50,
"linear_CFG": False,
"color_fix_type": "Wavelet",
"spt_linear_CFG": 1,
"linear_s_stage2": False,
"spt_linear_s_stage2": 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 cjwbw/supir-v0f 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": "cjwbw/supir-v0f:b9c26267b41f3617099b53f09f2d894a621ebf4a59b632bfedb5031eeabd8959",
"input": {
"image": "https://replicate.delivery/pbxt/KSGCHApvib6EmVBpjerLhsht3UU2YAI9GkV87kWVp5wAT98T/07.png",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"upscale": 1,
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"min_size": 1024,
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_stage1": -1,
"s_stage2": 1,
"edm_steps": 50,
"linear_CFG": false,
"color_fix_type": "Wavelet",
"spt_linear_CFG": 1,
"linear_s_stage2": false,
"spt_linear_s_stage2": 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
{
"completed_at": "2024-02-23T17:07:40.453884Z",
"created_at": "2024-02-23T17:02:45.269479Z",
"data_removed": false,
"error": null,
"id": "x7htpwdb2qglkvyfpfovjonq5a",
"input": {
"image": "https://replicate.delivery/pbxt/KSGCHApvib6EmVBpjerLhsht3UU2YAI9GkV87kWVp5wAT98T/07.png",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"upscale": 1,
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"min_size": 1024,
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_stage1": -1,
"s_stage2": 1,
"edm_steps": 50,
"linear_CFG": false,
"color_fix_type": "Wavelet",
"spt_linear_CFG": 1,
"linear_s_stage2": false,
"spt_linear_s_stage2": 0
},
"logs": "Using seed: 6424\nSeed set to 6424",
"metrics": {
"predict_time": 23.541291,
"total_time": 295.184405
},
"output": "https://replicate.delivery/pbxt/if3rev1GNfAB6IMsqqW8CqQtVP75pXvU3dLQeV6CFkVutgmJB/out.png",
"started_at": "2024-02-23T17:07:16.912593Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/x7htpwdb2qglkvyfpfovjonq5a",
"cancel": "https://api.replicate.com/v1/predictions/x7htpwdb2qglkvyfpfovjonq5a/cancel"
},
"version": "b9c26267b41f3617099b53f09f2d894a621ebf4a59b632bfedb5031eeabd8959"
}
Using seed: 6424
Seed set to 6424