jyoung105 / instant-style-control
Free Lunch towards Style-Preserving in Text-to-Image Generation by InstantX team, with ControlNet
Prediction
jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfaID69a1dmafzhrgp0ceq7x9eyn87wStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
- block_mode
- original
- num_outputs
- 1
- adapter_mode
- original
- guidance_scale
- 1
- style_strength
- 1
- negative_prompt
- ugly, deformed, disfigured, poor details, bad anatomy
- num_inference_steps
- 10
- enable_negative_content
- negative_content_strength
- 0.5
{ "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": "original", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "original", 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "original", "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.
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": "original", "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.
Output
{ "completed_at": "2024-04-07T19:16:01.792931Z", "created_at": "2024-04-07T19:12:53.244000Z", "data_removed": false, "error": null, "id": "69a1dmafzhrgp0ceq7x9eyn87w", "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": "original", "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: 21992\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:02, 3.25it/s]\n 20%|██ | 2/10 [00:00<00:01, 4.96it/s]\n 30%|███ | 3/10 [00:00<00:01, 5.48it/s]\n 40%|████ | 4/10 [00:00<00:01, 5.75it/s]\n 50%|█████ | 5/10 [00:00<00:00, 5.90it/s]\n 60%|██████ | 6/10 [00:01<00:00, 5.98it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.03it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.06it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.09it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.10it/s]\n100%|██████████| 10/10 [00:01<00:00, 5.77it/s]\nFinish generation in 2.479693651199341 secs.", "metrics": { "predict_time": 11.871255, "total_time": 188.548931 }, "output": [ "https://replicate.delivery/pbxt/opGOcVLnchJCLFjzQV4VHmO0K8jiKufgYOBMqTa81EW4FFUJA/out_0.png" ], "started_at": "2024-04-07T19:15:49.921676Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/69a1dmafzhrgp0ceq7x9eyn87w", "cancel": "https://api.replicate.com/v1/predictions/69a1dmafzhrgp0ceq7x9eyn87w/cancel" }, "version": "bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa" }
Generated inUsing seed: 21992 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:02, 3.25it/s] 20%|██ | 2/10 [00:00<00:01, 4.96it/s] 30%|███ | 3/10 [00:00<00:01, 5.48it/s] 40%|████ | 4/10 [00:00<00:01, 5.75it/s] 50%|█████ | 5/10 [00:00<00:00, 5.90it/s] 60%|██████ | 6/10 [00:01<00:00, 5.98it/s] 70%|███████ | 7/10 [00:01<00:00, 6.03it/s] 80%|████████ | 8/10 [00:01<00:00, 6.06it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.09it/s] 100%|██████████| 10/10 [00:01<00:00, 6.10it/s] 100%|██████████| 10/10 [00:01<00:00, 5.77it/s] Finish generation in 2.479693651199341 secs.
Prediction
jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfaIDrb6c0wb67srgp0ceq7xabtt0n8StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
- block_mode
- style-only
- num_outputs
- 1
- adapter_mode
- original
- guidance_scale
- 1
- style_strength
- 1
- negative_prompt
- ugly, deformed, disfigured, poor details, bad anatomy
- num_inference_steps
- 10
- enable_negative_content
- negative_content_strength
- 0.5
{ "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-only", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "style-only", num_outputs: 1, style_image: "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", adapter_mode: "original", 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "style-only", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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.
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": "style-only", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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.
Output
{ "completed_at": "2024-04-07T19:16:11.255110Z", "created_at": "2024-04-07T19:12:58.942000Z", "data_removed": false, "error": null, "id": "rb6c0wb67srgp0ceq7xabtt0n8", "input": { "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-only", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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: 8386\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.24it/s]\n 20%|██ | 2/10 [00:00<00:01, 7.48it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.90it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.66it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.53it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.45it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.39it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.35it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.33it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.32it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.47it/s]\nFinish generation in 2.228179693222046 secs.", "metrics": { "predict_time": 9.012746, "total_time": 192.31311 }, "output": [ "https://replicate.delivery/pbxt/k6PdakVvElZNI5icjjOSXGifI5dICNYSacd6dW8kqrK9FFUJA/out_0.png" ], "started_at": "2024-04-07T19:16:02.242364Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/rb6c0wb67srgp0ceq7xabtt0n8", "cancel": "https://api.replicate.com/v1/predictions/rb6c0wb67srgp0ceq7xabtt0n8/cancel" }, "version": "bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa" }
Generated inUsing seed: 8386 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.24it/s] 20%|██ | 2/10 [00:00<00:01, 7.48it/s] 30%|███ | 3/10 [00:00<00:01, 6.90it/s] 40%|████ | 4/10 [00:00<00:00, 6.66it/s] 50%|█████ | 5/10 [00:00<00:00, 6.53it/s] 60%|██████ | 6/10 [00:00<00:00, 6.45it/s] 70%|███████ | 7/10 [00:01<00:00, 6.39it/s] 80%|████████ | 8/10 [00:01<00:00, 6.35it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.33it/s] 100%|██████████| 10/10 [00:01<00:00, 6.32it/s] 100%|██████████| 10/10 [00:01<00:00, 6.47it/s] Finish generation in 2.228179693222046 secs.
Prediction
jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfaIDzzbjkd3tz5rgm0ceq7x823q7dmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
- block_mode
- style-and-layout
- num_outputs
- 1
- adapter_mode
- original
- guidance_scale
- 1
- style_strength
- 1
- negative_prompt
- ugly, deformed, disfigured, poor details, bad anatomy
- num_inference_steps
- 10
- enable_negative_content
- negative_content_strength
- 0.5
{ "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-and-layout", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "style-and-layout", num_outputs: 1, style_image: "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", adapter_mode: "original", 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "style-and-layout", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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.
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": "style-and-layout", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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.
Output
{ "completed_at": "2024-04-07T19:16:14.836165Z", "created_at": "2024-04-07T19:13:04.249000Z", "data_removed": false, "error": null, "id": "zzbjkd3tz5rgm0ceq7x823q7dm", "input": { "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-and-layout", "num_outputs": 1, "style_image": "https://replicate.delivery/pbxt/KhuVS13nzXsU2rMYgEdlcJpNAmEiwP6U8SynbW2TKDyjQOoO/f66790d6bcbc4d529479540bec1b9f1e_06b38be3804e49e789f32fcdde1b576d.png", "adapter_mode": "original", "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: 11724\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:02, 3.37it/s]\n 20%|██ | 2/10 [00:00<00:01, 5.20it/s]\n 30%|███ | 3/10 [00:00<00:01, 5.70it/s]\n 40%|████ | 4/10 [00:00<00:01, 5.96it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.09it/s]\n 60%|██████ | 6/10 [00:01<00:00, 6.17it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.21it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.13it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.17it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.34it/s]\n100%|██████████| 10/10 [00:01<00:00, 5.96it/s]\nFinish generation in 2.4655044078826904 secs.", "metrics": { "predict_time": 10.773586, "total_time": 190.587165 }, "output": [ "https://replicate.delivery/pbxt/yBdC2yPP9jrcD56WbijsdlhLfd9yeifnQU7EzdCGcBt8XUQlA/out_0.png" ], "started_at": "2024-04-07T19:16:04.062579Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zzbjkd3tz5rgm0ceq7x823q7dm", "cancel": "https://api.replicate.com/v1/predictions/zzbjkd3tz5rgm0ceq7x823q7dm/cancel" }, "version": "bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa" }
Generated inUsing seed: 11724 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:02, 3.37it/s] 20%|██ | 2/10 [00:00<00:01, 5.20it/s] 30%|███ | 3/10 [00:00<00:01, 5.70it/s] 40%|████ | 4/10 [00:00<00:01, 5.96it/s] 50%|█████ | 5/10 [00:00<00:00, 6.09it/s] 60%|██████ | 6/10 [00:01<00:00, 6.17it/s] 70%|███████ | 7/10 [00:01<00:00, 6.21it/s] 80%|████████ | 8/10 [00:01<00:00, 6.13it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.17it/s] 100%|██████████| 10/10 [00:01<00:00, 6.34it/s] 100%|██████████| 10/10 [00:01<00:00, 5.96it/s] Finish generation in 2.4655044078826904 secs.
Prediction
jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfaID74eg975scsrgm0ceq7x93az324StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
- block_mode
- style-and-layout
- num_outputs
- 1
- adapter_mode
- plus
- guidance_scale
- 1
- style_strength
- 1
- negative_prompt
- ugly, deformed, disfigured, poor details, bad anatomy
- num_inference_steps
- 10
- enable_negative_content
- negative_content_strength
- 0.5
{ "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-and-layout", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "style-and-layout", 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "style-and-layout", "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.
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": "style-and-layout", "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.
Output
{ "completed_at": "2024-04-07T19:16:25.946845Z", "created_at": "2024-04-07T19:13:20.230000Z", "data_removed": false, "error": null, "id": "74eg975scsrgm0ceq7x93az324", "input": { "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-and-layout", "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: 49605\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.26it/s]\n 20%|██ | 2/10 [00:00<00:01, 7.42it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.87it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.62it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.50it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.42it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.37it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.33it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.31it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.29it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.44it/s]\nFinish generation in 2.1732349395751953 secs.", "metrics": { "predict_time": 7.039922, "total_time": 185.716845 }, "output": [ "https://replicate.delivery/pbxt/I1HjAzCdWl4YJtT8vFk5N8WnWFk4LutHndaK6UmeTiYEGFUJA/out_0.png" ], "started_at": "2024-04-07T19:16:18.906923Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/74eg975scsrgm0ceq7x93az324", "cancel": "https://api.replicate.com/v1/predictions/74eg975scsrgm0ceq7x93az324/cancel" }, "version": "bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa" }
Generated inUsing seed: 49605 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.26it/s] 20%|██ | 2/10 [00:00<00:01, 7.42it/s] 30%|███ | 3/10 [00:00<00:01, 6.87it/s] 40%|████ | 4/10 [00:00<00:00, 6.62it/s] 50%|█████ | 5/10 [00:00<00:00, 6.50it/s] 60%|██████ | 6/10 [00:00<00:00, 6.42it/s] 70%|███████ | 7/10 [00:01<00:00, 6.37it/s] 80%|████████ | 8/10 [00:01<00:00, 6.33it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.31it/s] 100%|██████████| 10/10 [00:01<00:00, 6.29it/s] 100%|██████████| 10/10 [00:01<00:00, 6.44it/s] Finish generation in 2.1732349395751953 secs.
Prediction
jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfaID43vgaxmkchrgp0ceq7xb30cf9gStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
- block_mode
- original
- num_outputs
- 1
- adapter_mode
- plus
- guidance_scale
- 1
- style_strength
- 1
- negative_prompt
- ugly, deformed, disfigured, poor details, bad anatomy
- num_inference_steps
- 10
- enable_negative_content
- negative_content_strength
- 0.5
{ "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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.
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.
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" }
Generated inUsing 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.
Prediction
jyoung105/instant-style-control:bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfaID8e1pjrd681rgm0ceq7xbaj6mvgStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
- block_mode
- style-only
- num_outputs
- 1
- adapter_mode
- plus
- guidance_scale
- 1
- style_strength
- 1
- negative_prompt
- ugly, deformed, disfigured, poor details, bad anatomy
- num_inference_steps
- 10
- enable_negative_content
- negative_content_strength
- 0.5
{ "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-only", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "style-only", 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "style-only", "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.
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": "style-only", "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.
Output
{ "completed_at": "2024-04-07T19:16:32.684773Z", "created_at": "2024-04-07T19:13:15.328000Z", "data_removed": false, "error": null, "id": "8e1pjrd681rgm0ceq7xbaj6mvg", "input": { "prompt": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "block_mode": "style-only", "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: 12691\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.33it/s]\n 20%|██ | 2/10 [00:00<00:01, 7.54it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.94it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.68it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.54it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.47it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.41it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.38it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.35it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.34it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.49it/s]\nFinish generation in 2.224304676055908 secs.", "metrics": { "predict_time": 17.778502, "total_time": 197.356773 }, "output": [ "https://replicate.delivery/pbxt/kfHVTmC6V210B6NILnVY872OxFFefYbL3ePx9GAicQtBxogKB/out_0.png" ], "started_at": "2024-04-07T19:16:14.906271Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/8e1pjrd681rgm0ceq7xbaj6mvg", "cancel": "https://api.replicate.com/v1/predictions/8e1pjrd681rgm0ceq7xbaj6mvg/cancel" }, "version": "bf470ed019c0dfe7ce5bf2a684b82256e39d215f10b0410f8735638c011c4cfa" }
Generated inUsing seed: 12691 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.33it/s] 20%|██ | 2/10 [00:00<00:01, 7.54it/s] 30%|███ | 3/10 [00:00<00:01, 6.94it/s] 40%|████ | 4/10 [00:00<00:00, 6.68it/s] 50%|█████ | 5/10 [00:00<00:00, 6.54it/s] 60%|██████ | 6/10 [00:00<00:00, 6.47it/s] 70%|███████ | 7/10 [00:01<00:00, 6.41it/s] 80%|████████ | 8/10 [00:01<00:00, 6.38it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.35it/s] 100%|██████████| 10/10 [00:01<00:00, 6.34it/s] 100%|██████████| 10/10 [00:01<00:00, 6.49it/s] Finish generation in 2.224304676055908 secs.
Want to make some of these yourself?
Run this model