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.
jyoung105 /instant-style-control:bf470ed0
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jyoung105/instant-style-control using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa",
{
input: {
prompt: "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
block_mode: "original",
num_outputs: 1,
style_image: "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png",
adapter_mode: "plus",
control_image: "https://replicate.delivery/pbxt/KhuVSESWxoUIHzU1pajEJGrE7aZOTpbxm23JbLI4XMWl5JnS/33ef158a8a6247d0a058046c66a0c0c0_496baaa7f7cc4587989b6e967c354a56.png",
guidance_scale: 1,
style_strength: 1,
negative_prompt: "ugly, deformed, disfigured, poor details, bad anatomy",
num_inference_steps: 10,
enable_negative_content: false,
negative_content_strength: 0.5
}
}
);
// 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 jyoung105/instant-style-control using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa",
input={
"prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
"block_mode": "original",
"num_outputs": 1,
"style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png",
"adapter_mode": "plus",
"control_image": "https://replicate.delivery/pbxt/KhuVSESWxoUIHzU1pajEJGrE7aZOTpbxm23JbLI4XMWl5JnS/33ef158a8a6247d0a058046c66a0c0c0_496baaa7f7cc4587989b6e967c354a56.png",
"guidance_scale": 1,
"style_strength": 1,
"negative_prompt": "ugly, deformed, disfigured, poor details, bad anatomy",
"num_inference_steps": 10,
"enable_negative_content": False,
"negative_content_strength": 0.5
}
)
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 jyoung105/instant-style-control 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": "jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa",
"input": {
"prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
"block_mode": "original",
"num_outputs": 1,
"style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png",
"adapter_mode": "plus",
"control_image": "https://replicate.delivery/pbxt/KhuVSESWxoUIHzU1pajEJGrE7aZOTpbxm23JbLI4XMWl5JnS/33ef158a8a6247d0a058046c66a0c0c0_496baaa7f7cc4587989b6e967c354a56.png",
"guidance_scale": 1,
"style_strength": 1,
"negative_prompt": "ugly, deformed, disfigured, poor details, bad anatomy",
"num_inference_steps": 10,
"enable_negative_content": false,
"negative_content_strength": 0.5
}
}' \
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-04-07T19:16:18.606187Z",
"created_at": "2024-04-07T19:13:10.500000Z",
"data_removed": false,
"error": null,
"id": "43vgaxmkchrgp0ceq7xb30cf9g",
"input": {
"prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
"block_mode": "original",
"num_outputs": 1,
"style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png",
"adapter_mode": "plus",
"control_image": "https://replicate.delivery/pbxt/KhuVSESWxoUIHzU1pajEJGrE7aZOTpbxm23JbLI4XMWl5JnS/33ef158a8a6247d0a058046c66a0c0c0_496baaa7f7cc4587989b6e967c354a56.png",
"guidance_scale": 1,
"style_strength": 1,
"negative_prompt": "ugly, deformed, disfigured, poor details, bad anatomy",
"num_inference_steps": 10,
"enable_negative_content": false,
"negative_content_strength": 0.5
},
"logs": "Using seed: 9325\nDEVICE: cuda\nDTYPE: torch.float16\nStart inference...\n[Debug] Prompt: Astronaut in a jungle, cold color palette, muted colors, detailed, 8k, best quality, high detail, sharp focus,\n[Debug] Neg Prompt: text, watermark, lowres, low quality, worst quality, deformed, glitch, low contrast, noisy, saturation, blurry, ugly, deformed, disfigured, poor details, bad anatomy\n 0%| | 0/10 [00:00<?, ?it/s]\n 10%|█ | 1/10 [00:00<00:01, 6.16it/s]\n 20%|██ | 2/10 [00:00<00:01, 7.18it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.68it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.46it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.31it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.27it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.22it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.19it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.17it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.16it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.29it/s]\nFinish generation in 2.2489283084869385 secs.",
"metrics": {
"predict_time": 7.084129,
"total_time": 188.106187
},
"output": [
"https://replicate.delivery/pbxt/rC7SqkObrl7BBFWy560GMb2C3aE3KLuZY0eACPKb65sAGFUJA/out_0.png"
],
"started_at": "2024-04-07T19:16:11.522058Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/43vgaxmkchrgp0ceq7xb30cf9g",
"cancel": "https://api.replicate.com/v1/predictions/43vgaxmkchrgp0ceq7xb30cf9g/cancel"
},
"version": "bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa"
}
Using seed: 9325
DEVICE: cuda
DTYPE: torch.float16
Start inference...
[Debug] Prompt: Astronaut in a jungle, cold color palette, muted colors, detailed, 8k, best quality, high detail, sharp focus,
[Debug] Neg Prompt: text, watermark, lowres, low quality, worst quality, deformed, glitch, low contrast, noisy, saturation, blurry, ugly, deformed, disfigured, poor details, bad anatomy
0%| | 0/10 [00:00<?, ?it/s]
10%|█ | 1/10 [00:00<00:01, 6.16it/s]
20%|██ | 2/10 [00:00<00:01, 7.18it/s]
30%|███ | 3/10 [00:00<00:01, 6.68it/s]
40%|████ | 4/10 [00:00<00:00, 6.46it/s]
50%|█████ | 5/10 [00:00<00:00, 6.31it/s]
60%|██████ | 6/10 [00:00<00:00, 6.27it/s]
70%|███████ | 7/10 [00:01<00:00, 6.22it/s]
80%|████████ | 8/10 [00:01<00:00, 6.19it/s]
90%|█████████ | 9/10 [00:01<00:00, 6.17it/s]
100%|██████████| 10/10 [00:01<00:00, 6.16it/s]
100%|██████████| 10/10 [00:01<00:00, 6.29it/s]
Finish generation in 2.2489283084869385 secs.