camenduru
/
visual-style-prompting-controlnet
Visual Style Prompting with Swapping Self-Attention
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDsmrkaylb3ouadd2pb7ngxqwv3iStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "fire", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T10:57:40.127542Z", "created_at": "2024-03-15T10:47:53.970356Z", "data_removed": false, "error": null, "id": "smrkaylb3ouadd2pb7ngxqwv3i", "input": { "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:25, 2.96s/it]\n 4%|▍ | 2/50 [00:03<01:18, 1.64s/it]\n 6%|▌ | 3/50 [00:04<00:57, 1.22s/it]\n 8%|▊ | 4/50 [00:05<00:47, 1.03s/it]\n 10%|█ | 5/50 [00:05<00:41, 1.09it/s]\n 12%|█▏ | 6/50 [00:06<00:37, 1.17it/s]\n 14%|█▍ | 7/50 [00:07<00:34, 1.23it/s]\n 16%|█▌ | 8/50 [00:08<00:33, 1.27it/s]\n 18%|█▊ | 9/50 [00:08<00:31, 1.30it/s]\n 20%|██ | 10/50 [00:09<00:30, 1.33it/s]\n 22%|██▏ | 11/50 [00:10<00:29, 1.34it/s]\n 24%|██▍ | 12/50 [00:10<00:28, 1.35it/s]\n 26%|██▌ | 13/50 [00:11<00:27, 1.36it/s]\n 28%|██▊ | 14/50 [00:12<00:26, 1.37it/s]\n 30%|███ | 15/50 [00:13<00:25, 1.37it/s]\n 32%|███▏ | 16/50 [00:13<00:24, 1.37it/s]\n 34%|███▍ | 17/50 [00:14<00:24, 1.37it/s]\n 36%|███▌ | 18/50 [00:15<00:23, 1.37it/s]\n 38%|███▊ | 19/50 [00:16<00:22, 1.38it/s]\n 40%|████ | 20/50 [00:16<00:21, 1.38it/s]\n 42%|████▏ | 21/50 [00:17<00:21, 1.37it/s]\n 44%|████▍ | 22/50 [00:18<00:20, 1.38it/s]\n 46%|████▌ | 23/50 [00:18<00:19, 1.37it/s]\n 48%|████▊ | 24/50 [00:19<00:18, 1.37it/s]\n 50%|█████ | 25/50 [00:20<00:18, 1.37it/s]\n 52%|█████▏ | 26/50 [00:21<00:17, 1.37it/s]\n 54%|█████▍ | 27/50 [00:21<00:16, 1.37it/s]\n 56%|█████▌ | 28/50 [00:22<00:16, 1.37it/s]\n 58%|█████▊ | 29/50 [00:23<00:15, 1.37it/s]\n 60%|██████ | 30/50 [00:24<00:14, 1.37it/s]\n 62%|██████▏ | 31/50 [00:24<00:13, 1.37it/s]\n 64%|██████▍ | 32/50 [00:25<00:13, 1.37it/s]\n 66%|██████▌ | 33/50 [00:26<00:12, 1.37it/s]\n 68%|██████▊ | 34/50 [00:26<00:11, 1.37it/s]\n 70%|███████ | 35/50 [00:27<00:10, 1.37it/s]\n 72%|███████▏ | 36/50 [00:28<00:10, 1.37it/s]\n 74%|███████▍ | 37/50 [00:29<00:09, 1.37it/s]\n 76%|███████▌ | 38/50 [00:29<00:08, 1.37it/s]\n 78%|███████▊ | 39/50 [00:30<00:08, 1.37it/s]\n 80%|████████ | 40/50 [00:31<00:07, 1.37it/s]\n 82%|████████▏ | 41/50 [00:32<00:06, 1.37it/s]\n 84%|████████▍ | 42/50 [00:32<00:05, 1.37it/s]\n 86%|████████▌ | 43/50 [00:33<00:05, 1.37it/s]\n 88%|████████▊ | 44/50 [00:34<00:04, 1.37it/s]\n 90%|█████████ | 45/50 [00:35<00:03, 1.37it/s]\n 92%|█████████▏| 46/50 [00:35<00:02, 1.37it/s]\n 94%|█████████▍| 47/50 [00:36<00:02, 1.37it/s]\n 96%|█████████▌| 48/50 [00:37<00:01, 1.37it/s]\n 98%|█████████▊| 49/50 [00:37<00:00, 1.37it/s]\n100%|██████████| 50/50 [00:38<00:00, 1.36it/s]\n100%|██████████| 50/50 [00:38<00:00, 1.29it/s]", "metrics": { "predict_time": 48.040479, "total_time": 586.157186 }, "output": "https://replicate.delivery/pbxt/qimyFL11jnb3F1WseOX0hCFcBxd2Y4s0ZW4fZVCV6chiudgSA/output_image.png", "started_at": "2024-03-15T10:56:52.087063Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/smrkaylb3ouadd2pb7ngxqwv3i", "cancel": "https://api.replicate.com/v1/predictions/smrkaylb3ouadd2pb7ngxqwv3i/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:25, 2.96s/it] 4%|▍ | 2/50 [00:03<01:18, 1.64s/it] 6%|▌ | 3/50 [00:04<00:57, 1.22s/it] 8%|▊ | 4/50 [00:05<00:47, 1.03s/it] 10%|█ | 5/50 [00:05<00:41, 1.09it/s] 12%|█▏ | 6/50 [00:06<00:37, 1.17it/s] 14%|█▍ | 7/50 [00:07<00:34, 1.23it/s] 16%|█▌ | 8/50 [00:08<00:33, 1.27it/s] 18%|█▊ | 9/50 [00:08<00:31, 1.30it/s] 20%|██ | 10/50 [00:09<00:30, 1.33it/s] 22%|██▏ | 11/50 [00:10<00:29, 1.34it/s] 24%|██▍ | 12/50 [00:10<00:28, 1.35it/s] 26%|██▌ | 13/50 [00:11<00:27, 1.36it/s] 28%|██▊ | 14/50 [00:12<00:26, 1.37it/s] 30%|███ | 15/50 [00:13<00:25, 1.37it/s] 32%|███▏ | 16/50 [00:13<00:24, 1.37it/s] 34%|███▍ | 17/50 [00:14<00:24, 1.37it/s] 36%|███▌ | 18/50 [00:15<00:23, 1.37it/s] 38%|███▊ | 19/50 [00:16<00:22, 1.38it/s] 40%|████ | 20/50 [00:16<00:21, 1.38it/s] 42%|████▏ | 21/50 [00:17<00:21, 1.37it/s] 44%|████▍ | 22/50 [00:18<00:20, 1.38it/s] 46%|████▌ | 23/50 [00:18<00:19, 1.37it/s] 48%|████▊ | 24/50 [00:19<00:18, 1.37it/s] 50%|█████ | 25/50 [00:20<00:18, 1.37it/s] 52%|█████▏ | 26/50 [00:21<00:17, 1.37it/s] 54%|█████▍ | 27/50 [00:21<00:16, 1.37it/s] 56%|█████▌ | 28/50 [00:22<00:16, 1.37it/s] 58%|█████▊ | 29/50 [00:23<00:15, 1.37it/s] 60%|██████ | 30/50 [00:24<00:14, 1.37it/s] 62%|██████▏ | 31/50 [00:24<00:13, 1.37it/s] 64%|██████▍ | 32/50 [00:25<00:13, 1.37it/s] 66%|██████▌ | 33/50 [00:26<00:12, 1.37it/s] 68%|██████▊ | 34/50 [00:26<00:11, 1.37it/s] 70%|███████ | 35/50 [00:27<00:10, 1.37it/s] 72%|███████▏ | 36/50 [00:28<00:10, 1.37it/s] 74%|███████▍ | 37/50 [00:29<00:09, 1.37it/s] 76%|███████▌ | 38/50 [00:29<00:08, 1.37it/s] 78%|███████▊ | 39/50 [00:30<00:08, 1.37it/s] 80%|████████ | 40/50 [00:31<00:07, 1.37it/s] 82%|████████▏ | 41/50 [00:32<00:06, 1.37it/s] 84%|████████▍ | 42/50 [00:32<00:05, 1.37it/s] 86%|████████▌ | 43/50 [00:33<00:05, 1.37it/s] 88%|████████▊ | 44/50 [00:34<00:04, 1.37it/s] 90%|█████████ | 45/50 [00:35<00:03, 1.37it/s] 92%|█████████▏| 46/50 [00:35<00:02, 1.37it/s] 94%|█████████▍| 47/50 [00:36<00:02, 1.37it/s] 96%|█████████▌| 48/50 [00:37<00:01, 1.37it/s] 98%|█████████▊| 49/50 [00:37<00:00, 1.37it/s] 100%|██████████| 50/50 [00:38<00:00, 1.36it/s] 100%|██████████| 50/50 [00:38<00:00, 1.29it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDe7pum2zbi5jm4zkhx35w6izmhiStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "default", "depth_image": "https://replicate.delivery/pbxt/KZeCccYvXGHZODPIvUcUzqJqwNOe6vLwAOH8xvhHgflFhiW1/0_3.webp", "style_image": "https://replicate.delivery/pbxt/KZeCcGmC9iF39pN7aKkHLf5uk0gzWJxAIZTi4jvazRVB2P0p/breath-of-the-wild-zelda-featured.jpg", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "default", depth_image: "https://replicate.delivery/pbxt/KZeCccYvXGHZODPIvUcUzqJqwNOe6vLwAOH8xvhHgflFhiW1/0_3.webp", style_image: "https://replicate.delivery/pbxt/KZeCcGmC9iF39pN7aKkHLf5uk0gzWJxAIZTi4jvazRVB2P0p/breath-of-the-wild-zelda-featured.jpg", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "default", "depth_image": "https://replicate.delivery/pbxt/KZeCccYvXGHZODPIvUcUzqJqwNOe6vLwAOH8xvhHgflFhiW1/0_3.webp", "style_image": "https://replicate.delivery/pbxt/KZeCcGmC9iF39pN7aKkHLf5uk0gzWJxAIZTi4jvazRVB2P0p/breath-of-the-wild-zelda-featured.jpg", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "default", "depth_image": "https://replicate.delivery/pbxt/KZeCccYvXGHZODPIvUcUzqJqwNOe6vLwAOH8xvhHgflFhiW1/0_3.webp", "style_image": "https://replicate.delivery/pbxt/KZeCcGmC9iF39pN7aKkHLf5uk0gzWJxAIZTi4jvazRVB2P0p/breath-of-the-wild-zelda-featured.jpg", "diffusion_steps": 50, "controlnet_scale": 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-03-15T12:35:18.534203Z", "created_at": "2024-03-15T12:31:23.351128Z", "data_removed": false, "error": null, "id": "e7pum2zbi5jm4zkhx35w6izmhi", "input": { "prompt": "", "style_name": "default", "depth_image": "https://replicate.delivery/pbxt/KZeCccYvXGHZODPIvUcUzqJqwNOe6vLwAOH8xvhHgflFhiW1/0_3.webp", "style_image": "https://replicate.delivery/pbxt/KZeCcGmC9iF39pN7aKkHLf5uk0gzWJxAIZTi4jvazRVB2P0p/breath-of-the-wild-zelda-featured.jpg", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:03<02:32, 3.11s/it]\n 4%|▍ | 2/50 [00:03<01:12, 1.50s/it]\n 6%|▌ | 3/50 [00:03<00:46, 1.01it/s]\n 8%|▊ | 4/50 [00:04<00:34, 1.34it/s]\n 10%|█ | 5/50 [00:04<00:27, 1.64it/s]\n 12%|█▏ | 6/50 [00:04<00:23, 1.88it/s]\n 14%|█▍ | 7/50 [00:05<00:20, 2.09it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.24it/s]\n 18%|█▊ | 9/50 [00:06<00:17, 2.36it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.45it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s]\n 24%|██▍ | 12/50 [00:07<00:14, 2.56it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.59it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.61it/s]\n 30%|███ | 15/50 [00:08<00:13, 2.63it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.64it/s]\n 34%|███▍ | 17/50 [00:09<00:12, 2.62it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.62it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.64it/s]\n 40%|████ | 20/50 [00:10<00:11, 2.64it/s]\n 42%|████▏ | 21/50 [00:10<00:10, 2.65it/s]\n 44%|████▍ | 22/50 [00:11<00:10, 2.65it/s]\n 46%|████▌ | 23/50 [00:11<00:10, 2.66it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.66it/s]\n 50%|█████ | 25/50 [00:12<00:09, 2.66it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.66it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.66it/s]\n 56%|█████▌ | 28/50 [00:13<00:08, 2.66it/s]\n 58%|█████▊ | 29/50 [00:13<00:07, 2.66it/s]\n 60%|██████ | 30/50 [00:14<00:07, 2.63it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s]\n 66%|██████▌ | 33/50 [00:15<00:06, 2.65it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.65it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.65it/s]\n 72%|███████▏ | 36/50 [00:16<00:05, 2.59it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.61it/s]\n 76%|███████▌ | 38/50 [00:17<00:04, 2.63it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.64it/s]\n 82%|████████▏ | 41/50 [00:18<00:03, 2.65it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.65it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.65it/s]\n 88%|████████▊ | 44/50 [00:19<00:02, 2.65it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.65it/s]\n 92%|█████████▏| 46/50 [00:20<00:01, 2.66it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.65it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.65it/s]\n 98%|█████████▊| 49/50 [00:21<00:00, 2.66it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.66it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.32it/s]", "metrics": { "predict_time": 27.148811, "total_time": 235.183075 }, "output": "https://replicate.delivery/pbxt/dbftXtlEmeqaI04DKKrzZcKpKNfgWqyPXkHjy4EuXCMNUeBKB/output_image.png", "started_at": "2024-03-15T12:34:51.385392Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/e7pum2zbi5jm4zkhx35w6izmhi", "cancel": "https://api.replicate.com/v1/predictions/e7pum2zbi5jm4zkhx35w6izmhi/cancel" }, "version": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:03<02:32, 3.11s/it] 4%|▍ | 2/50 [00:03<01:12, 1.50s/it] 6%|▌ | 3/50 [00:03<00:46, 1.01it/s] 8%|▊ | 4/50 [00:04<00:34, 1.34it/s] 10%|█ | 5/50 [00:04<00:27, 1.64it/s] 12%|█▏ | 6/50 [00:04<00:23, 1.88it/s] 14%|█▍ | 7/50 [00:05<00:20, 2.09it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.24it/s] 18%|█▊ | 9/50 [00:06<00:17, 2.36it/s] 20%|██ | 10/50 [00:06<00:16, 2.45it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s] 24%|██▍ | 12/50 [00:07<00:14, 2.56it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.59it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.61it/s] 30%|███ | 15/50 [00:08<00:13, 2.63it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.64it/s] 34%|███▍ | 17/50 [00:09<00:12, 2.62it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.62it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.64it/s] 40%|████ | 20/50 [00:10<00:11, 2.64it/s] 42%|████▏ | 21/50 [00:10<00:10, 2.65it/s] 44%|████▍ | 22/50 [00:11<00:10, 2.65it/s] 46%|████▌ | 23/50 [00:11<00:10, 2.66it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.66it/s] 50%|█████ | 25/50 [00:12<00:09, 2.66it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.66it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.66it/s] 56%|█████▌ | 28/50 [00:13<00:08, 2.66it/s] 58%|█████▊ | 29/50 [00:13<00:07, 2.66it/s] 60%|██████ | 30/50 [00:14<00:07, 2.63it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s] 66%|██████▌ | 33/50 [00:15<00:06, 2.65it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.65it/s] 70%|███████ | 35/50 [00:15<00:05, 2.65it/s] 72%|███████▏ | 36/50 [00:16<00:05, 2.59it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.61it/s] 76%|███████▌ | 38/50 [00:17<00:04, 2.63it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s] 80%|████████ | 40/50 [00:17<00:03, 2.64it/s] 82%|████████▏ | 41/50 [00:18<00:03, 2.65it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.65it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.65it/s] 88%|████████▊ | 44/50 [00:19<00:02, 2.65it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.65it/s] 92%|█████████▏| 46/50 [00:20<00:01, 2.66it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.65it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.65it/s] 98%|█████████▊| 49/50 [00:21<00:00, 2.66it/s] 100%|██████████| 50/50 [00:21<00:00, 2.66it/s] 100%|██████████| 50/50 [00:21<00:00, 2.32it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDxwdipjzbfqyqggd5673qp2v6qyStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "fire", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T11:09:36.469647Z", "created_at": "2024-03-15T11:04:42.611455Z", "data_removed": false, "error": null, "id": "xwdipjzbfqyqggd5673qp2v6qy", "input": { "prompt": "", "style_name": "fire", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZccYM9O5deD8ojgR7f0jQct4suKTXCo6Xqomx4f5qxFqoac/ref_fire_fire.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:18, 2.82s/it]\n 4%|▍ | 2/50 [00:03<01:05, 1.37s/it]\n 6%|▌ | 3/50 [00:03<00:43, 1.09it/s]\n 8%|▊ | 4/50 [00:03<00:32, 1.42it/s]\n 10%|█ | 5/50 [00:04<00:26, 1.71it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.94it/s]\n 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.27it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.46it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.55it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.58it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.60it/s]\n 30%|███ | 15/50 [00:08<00:13, 2.61it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.62it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.59it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.61it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.62it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.63it/s]\n 42%|████▏ | 21/50 [00:10<00:11, 2.63it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.61it/s]\n 46%|████▌ | 23/50 [00:11<00:10, 2.46it/s]\n 48%|████▊ | 24/50 [00:11<00:10, 2.52it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.55it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.58it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.60it/s]\n 56%|█████▌ | 28/50 [00:13<00:08, 2.61it/s]\n 58%|█████▊ | 29/50 [00:13<00:08, 2.62it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.62it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.63it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.63it/s]\n 66%|██████▌ | 33/50 [00:15<00:06, 2.62it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.63it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.63it/s]\n 72%|███████▏ | 36/50 [00:16<00:05, 2.62it/s]\n 74%|███████▍ | 37/50 [00:16<00:05, 2.53it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.52it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.56it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.58it/s]\n 82%|████████▏ | 41/50 [00:18<00:03, 2.59it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.61it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.61it/s]\n 88%|████████▊ | 44/50 [00:19<00:02, 2.62it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.62it/s]\n 92%|█████████▏| 46/50 [00:20<00:01, 2.63it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.63it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.63it/s]\n 98%|█████████▊| 49/50 [00:21<00:00, 2.61it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.62it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.32it/s]", "metrics": { "predict_time": 30.800651, "total_time": 293.858192 }, "output": "https://replicate.delivery/pbxt/eehLBvNw7WsyU0NNkCZ6ULlffufnTfvyctI2HUyF6K0MceOQJA/output_image.png", "started_at": "2024-03-15T11:09:05.668996Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xwdipjzbfqyqggd5673qp2v6qy", "cancel": "https://api.replicate.com/v1/predictions/xwdipjzbfqyqggd5673qp2v6qy/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:18, 2.82s/it] 4%|▍ | 2/50 [00:03<01:05, 1.37s/it] 6%|▌ | 3/50 [00:03<00:43, 1.09it/s] 8%|▊ | 4/50 [00:03<00:32, 1.42it/s] 10%|█ | 5/50 [00:04<00:26, 1.71it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.94it/s] 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.27it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s] 20%|██ | 10/50 [00:06<00:16, 2.46it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.55it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.58it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.60it/s] 30%|███ | 15/50 [00:08<00:13, 2.61it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.62it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.59it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.61it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.62it/s] 40%|████ | 20/50 [00:09<00:11, 2.63it/s] 42%|████▏ | 21/50 [00:10<00:11, 2.63it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.61it/s] 46%|████▌ | 23/50 [00:11<00:10, 2.46it/s] 48%|████▊ | 24/50 [00:11<00:10, 2.52it/s] 50%|█████ | 25/50 [00:11<00:09, 2.55it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.58it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.60it/s] 56%|█████▌ | 28/50 [00:13<00:08, 2.61it/s] 58%|█████▊ | 29/50 [00:13<00:08, 2.62it/s] 60%|██████ | 30/50 [00:13<00:07, 2.62it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.63it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.63it/s] 66%|██████▌ | 33/50 [00:15<00:06, 2.62it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.63it/s] 70%|███████ | 35/50 [00:15<00:05, 2.63it/s] 72%|███████▏ | 36/50 [00:16<00:05, 2.62it/s] 74%|███████▍ | 37/50 [00:16<00:05, 2.53it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.52it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.56it/s] 80%|████████ | 40/50 [00:17<00:03, 2.58it/s] 82%|████████▏ | 41/50 [00:18<00:03, 2.59it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.61it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.61it/s] 88%|████████▊ | 44/50 [00:19<00:02, 2.62it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.62it/s] 92%|█████████▏| 46/50 [00:20<00:01, 2.63it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.63it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.63it/s] 98%|█████████▊| 49/50 [00:21<00:00, 2.61it/s] 100%|██████████| 50/50 [00:21<00:00, 2.62it/s] 100%|██████████| 50/50 [00:21<00:00, 2.32it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDa34bs4zbsjpj2l2wzzmrx4cctiStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "low-poly", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd0cHQEE4aXTpzzebpLwb7JSPfxHpUl2tsc2aaPTWlGXTg3/ref_low-poly_A%20cat.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "low-poly", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZd0cHQEE4aXTpzzebpLwb7JSPfxHpUl2tsc2aaPTWlGXTg3/ref_low-poly_A%20cat.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "low-poly", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd0cHQEE4aXTpzzebpLwb7JSPfxHpUl2tsc2aaPTWlGXTg3/ref_low-poly_A%20cat.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "low-poly", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd0cHQEE4aXTpzzebpLwb7JSPfxHpUl2tsc2aaPTWlGXTg3/ref_low-poly_A%20cat.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T11:18:18.120667Z", "created_at": "2024-03-15T11:13:17.697061Z", "data_removed": false, "error": null, "id": "a34bs4zbsjpj2l2wzzmrx4ccti", "input": { "prompt": "", "style_name": "low-poly", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd0cHQEE4aXTpzzebpLwb7JSPfxHpUl2tsc2aaPTWlGXTg3/ref_low-poly_A%20cat.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:15, 2.77s/it]\n 4%|▍ | 2/50 [00:03<01:04, 1.35s/it]\n 6%|▌ | 3/50 [00:03<00:42, 1.10it/s]\n 8%|▊ | 4/50 [00:03<00:32, 1.44it/s]\n 10%|█ | 5/50 [00:04<00:26, 1.72it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.96it/s]\n 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.28it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.39it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.46it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.52it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.56it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.59it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.61it/s]\n 30%|███ | 15/50 [00:08<00:13, 2.62it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.63it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.64it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.63it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.64it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.64it/s]\n 42%|████▏ | 21/50 [00:10<00:10, 2.65it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.65it/s]\n 46%|████▌ | 23/50 [00:11<00:10, 2.65it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.65it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.65it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.62it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s]\n 56%|█████▌ | 28/50 [00:12<00:08, 2.64it/s]\n 58%|█████▊ | 29/50 [00:13<00:07, 2.64it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.64it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s]\n 66%|██████▌ | 33/50 [00:14<00:06, 2.65it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.65it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.64it/s]\n 72%|███████▏ | 36/50 [00:15<00:05, 2.64it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.64it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.64it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.64it/s]\n 82%|████████▏ | 41/50 [00:17<00:03, 2.64it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.64it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.64it/s]\n 88%|████████▊ | 44/50 [00:18<00:02, 2.64it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.64it/s]\n 92%|█████████▏| 46/50 [00:19<00:01, 2.64it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.64it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.64it/s]\n 98%|█████████▊| 49/50 [00:20<00:00, 2.64it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.64it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.35it/s]", "metrics": { "predict_time": 30.105333, "total_time": 300.423606 }, "output": "https://replicate.delivery/pbxt/yc1auBSeUoSGDSgYbYw9NDzHGSvCS8cj9JLL2hnh8Mf5BeAlA/output_image.png", "started_at": "2024-03-15T11:17:48.015334Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/a34bs4zbsjpj2l2wzzmrx4ccti", "cancel": "https://api.replicate.com/v1/predictions/a34bs4zbsjpj2l2wzzmrx4ccti/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:15, 2.77s/it] 4%|▍ | 2/50 [00:03<01:04, 1.35s/it] 6%|▌ | 3/50 [00:03<00:42, 1.10it/s] 8%|▊ | 4/50 [00:03<00:32, 1.44it/s] 10%|█ | 5/50 [00:04<00:26, 1.72it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.96it/s] 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.28it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.39it/s] 20%|██ | 10/50 [00:06<00:16, 2.46it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.52it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.56it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.59it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.61it/s] 30%|███ | 15/50 [00:08<00:13, 2.62it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.63it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.64it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.63it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.64it/s] 40%|████ | 20/50 [00:09<00:11, 2.64it/s] 42%|████▏ | 21/50 [00:10<00:10, 2.65it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.65it/s] 46%|████▌ | 23/50 [00:11<00:10, 2.65it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.65it/s] 50%|█████ | 25/50 [00:11<00:09, 2.65it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.62it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s] 56%|█████▌ | 28/50 [00:12<00:08, 2.64it/s] 58%|█████▊ | 29/50 [00:13<00:07, 2.64it/s] 60%|██████ | 30/50 [00:13<00:07, 2.64it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s] 66%|██████▌ | 33/50 [00:14<00:06, 2.65it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.65it/s] 70%|███████ | 35/50 [00:15<00:05, 2.64it/s] 72%|███████▏ | 36/50 [00:15<00:05, 2.64it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.64it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.64it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s] 80%|████████ | 40/50 [00:17<00:03, 2.64it/s] 82%|████████▏ | 41/50 [00:17<00:03, 2.64it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.64it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.64it/s] 88%|████████▊ | 44/50 [00:18<00:02, 2.64it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.64it/s] 92%|█████████▏| 46/50 [00:19<00:01, 2.64it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.64it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.64it/s] 98%|█████████▊| 49/50 [00:20<00:00, 2.64it/s] 100%|██████████| 50/50 [00:21<00:00, 2.64it/s] 100%|██████████| 50/50 [00:21<00:00, 2.35it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796ID4dasfijbgznreqqouv2exptpnaStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "line-art", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd1EawcS3C0isEIigAUcejhWAsDviZWBqWE3ReA5kT39azZ/ref_line-art_an%20owl.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "line-art", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZd1EawcS3C0isEIigAUcejhWAsDviZWBqWE3ReA5kT39azZ/ref_line-art_an%20owl.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "line-art", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd1EawcS3C0isEIigAUcejhWAsDviZWBqWE3ReA5kT39azZ/ref_line-art_an%20owl.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "line-art", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd1EawcS3C0isEIigAUcejhWAsDviZWBqWE3ReA5kT39azZ/ref_line-art_an%20owl.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T11:18:45.256023Z", "created_at": "2024-03-15T11:13:55.977489Z", "data_removed": false, "error": null, "id": "4dasfijbgznreqqouv2exptpna", "input": { "prompt": "", "style_name": "line-art", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd1EawcS3C0isEIigAUcejhWAsDviZWBqWE3ReA5kT39azZ/ref_line-art_an%20owl.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:08, 2.63s/it]\n 4%|▍ | 2/50 [00:03<01:02, 1.30s/it]\n 6%|▌ | 3/50 [00:03<00:41, 1.14it/s]\n 8%|▊ | 4/50 [00:03<00:31, 1.47it/s]\n 10%|█ | 5/50 [00:04<00:25, 1.75it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.98it/s]\n 14%|█▍ | 7/50 [00:04<00:19, 2.16it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.29it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.39it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.47it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.52it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.56it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.58it/s]\n 28%|██▊ | 14/50 [00:07<00:14, 2.51it/s]\n 30%|███ | 15/50 [00:08<00:14, 2.43it/s]\n 32%|███▏ | 16/50 [00:08<00:14, 2.38it/s]\n 34%|███▍ | 17/50 [00:08<00:13, 2.39it/s]\n 36%|███▌ | 18/50 [00:09<00:13, 2.38it/s]\n 38%|███▊ | 19/50 [00:09<00:12, 2.44it/s]\n 40%|████ | 20/50 [00:10<00:12, 2.47it/s]\n 42%|████▏ | 21/50 [00:10<00:11, 2.50it/s]\n 44%|████▍ | 22/50 [00:10<00:11, 2.51it/s]\n 46%|████▌ | 23/50 [00:11<00:11, 2.40it/s]\n 48%|████▊ | 24/50 [00:11<00:11, 2.22it/s]\n 50%|█████ | 25/50 [00:12<00:11, 2.24it/s]\n 52%|█████▏ | 26/50 [00:12<00:11, 2.18it/s]\n 54%|█████▍ | 27/50 [00:13<00:10, 2.14it/s]\n 56%|█████▌ | 28/50 [00:13<00:10, 2.16it/s]\n 58%|█████▊ | 29/50 [00:14<00:09, 2.17it/s]\n 60%|██████ | 30/50 [00:14<00:08, 2.26it/s]\n 62%|██████▏ | 31/50 [00:14<00:08, 2.37it/s]\n 64%|██████▍ | 32/50 [00:15<00:07, 2.44it/s]\n 66%|██████▌ | 33/50 [00:15<00:06, 2.50it/s]\n 68%|██████▊ | 34/50 [00:16<00:06, 2.54it/s]\n 70%|███████ | 35/50 [00:16<00:05, 2.57it/s]\n 72%|███████▏ | 36/50 [00:16<00:05, 2.59it/s]\n 74%|███████▍ | 37/50 [00:17<00:04, 2.60it/s]\n 76%|███████▌ | 38/50 [00:17<00:04, 2.61it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.62it/s]\n 80%|████████ | 40/50 [00:18<00:03, 2.62it/s]\n 82%|████████▏ | 41/50 [00:18<00:03, 2.62it/s]\n 84%|████████▍ | 42/50 [00:19<00:03, 2.63it/s]\n 86%|████████▌ | 43/50 [00:19<00:02, 2.63it/s]\n 88%|████████▊ | 44/50 [00:19<00:02, 2.63it/s]\n 90%|█████████ | 45/50 [00:20<00:01, 2.64it/s]\n 92%|█████████▏| 46/50 [00:20<00:01, 2.64it/s]\n 94%|█████████▍| 47/50 [00:21<00:01, 2.64it/s]\n 96%|█████████▌| 48/50 [00:21<00:00, 2.64it/s]\n 98%|█████████▊| 49/50 [00:21<00:00, 2.64it/s]\n100%|██████████| 50/50 [00:22<00:00, 2.64it/s]\n100%|██████████| 50/50 [00:22<00:00, 2.26it/s]", "metrics": { "predict_time": 27.068939, "total_time": 289.278534 }, "output": "https://replicate.delivery/pbxt/6X2gqgKjSyqJGNNxRPpumm9EjTiFiMhUsIX5U70VpRVlgHoE/output_image.png", "started_at": "2024-03-15T11:18:18.187084Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4dasfijbgznreqqouv2exptpna", "cancel": "https://api.replicate.com/v1/predictions/4dasfijbgznreqqouv2exptpna/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:08, 2.63s/it] 4%|▍ | 2/50 [00:03<01:02, 1.30s/it] 6%|▌ | 3/50 [00:03<00:41, 1.14it/s] 8%|▊ | 4/50 [00:03<00:31, 1.47it/s] 10%|█ | 5/50 [00:04<00:25, 1.75it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.98it/s] 14%|█▍ | 7/50 [00:04<00:19, 2.16it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.29it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.39it/s] 20%|██ | 10/50 [00:06<00:16, 2.47it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.52it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.56it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.58it/s] 28%|██▊ | 14/50 [00:07<00:14, 2.51it/s] 30%|███ | 15/50 [00:08<00:14, 2.43it/s] 32%|███▏ | 16/50 [00:08<00:14, 2.38it/s] 34%|███▍ | 17/50 [00:08<00:13, 2.39it/s] 36%|███▌ | 18/50 [00:09<00:13, 2.38it/s] 38%|███▊ | 19/50 [00:09<00:12, 2.44it/s] 40%|████ | 20/50 [00:10<00:12, 2.47it/s] 42%|████▏ | 21/50 [00:10<00:11, 2.50it/s] 44%|████▍ | 22/50 [00:10<00:11, 2.51it/s] 46%|████▌ | 23/50 [00:11<00:11, 2.40it/s] 48%|████▊ | 24/50 [00:11<00:11, 2.22it/s] 50%|█████ | 25/50 [00:12<00:11, 2.24it/s] 52%|█████▏ | 26/50 [00:12<00:11, 2.18it/s] 54%|█████▍ | 27/50 [00:13<00:10, 2.14it/s] 56%|█████▌ | 28/50 [00:13<00:10, 2.16it/s] 58%|█████▊ | 29/50 [00:14<00:09, 2.17it/s] 60%|██████ | 30/50 [00:14<00:08, 2.26it/s] 62%|██████▏ | 31/50 [00:14<00:08, 2.37it/s] 64%|██████▍ | 32/50 [00:15<00:07, 2.44it/s] 66%|██████▌ | 33/50 [00:15<00:06, 2.50it/s] 68%|██████▊ | 34/50 [00:16<00:06, 2.54it/s] 70%|███████ | 35/50 [00:16<00:05, 2.57it/s] 72%|███████▏ | 36/50 [00:16<00:05, 2.59it/s] 74%|███████▍ | 37/50 [00:17<00:04, 2.60it/s] 76%|███████▌ | 38/50 [00:17<00:04, 2.61it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.62it/s] 80%|████████ | 40/50 [00:18<00:03, 2.62it/s] 82%|████████▏ | 41/50 [00:18<00:03, 2.62it/s] 84%|████████▍ | 42/50 [00:19<00:03, 2.63it/s] 86%|████████▌ | 43/50 [00:19<00:02, 2.63it/s] 88%|████████▊ | 44/50 [00:19<00:02, 2.63it/s] 90%|█████████ | 45/50 [00:20<00:01, 2.64it/s] 92%|█████████▏| 46/50 [00:20<00:01, 2.64it/s] 94%|█████████▍| 47/50 [00:21<00:01, 2.64it/s] 96%|█████████▌| 48/50 [00:21<00:00, 2.64it/s] 98%|█████████▊| 49/50 [00:21<00:00, 2.64it/s] 100%|██████████| 50/50 [00:22<00:00, 2.64it/s] 100%|██████████| 50/50 [00:22<00:00, 2.26it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796ID5quc7gbbkywvxzjvj4rmmtjquqStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "cloud", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd2HHolGa9AE2lNX7uGg9PtRn99YYtGpzyIgV5gj6VKYkyp/ref_cloud_a%20Cloud%20in%20the%20sky.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "cloud", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZd2HHolGa9AE2lNX7uGg9PtRn99YYtGpzyIgV5gj6VKYkyp/ref_cloud_a%20Cloud%20in%20the%20sky.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "cloud", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd2HHolGa9AE2lNX7uGg9PtRn99YYtGpzyIgV5gj6VKYkyp/ref_cloud_a%20Cloud%20in%20the%20sky.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "cloud", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd2HHolGa9AE2lNX7uGg9PtRn99YYtGpzyIgV5gj6VKYkyp/ref_cloud_a%20Cloud%20in%20the%20sky.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T11:19:11.815836Z", "created_at": "2024-03-15T11:15:01.471345Z", "data_removed": false, "error": null, "id": "5quc7gbbkywvxzjvj4rmmtjquq", "input": { "prompt": "", "style_name": "cloud", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd2HHolGa9AE2lNX7uGg9PtRn99YYtGpzyIgV5gj6VKYkyp/ref_cloud_a%20Cloud%20in%20the%20sky.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:15, 2.77s/it]\n 4%|▍ | 2/50 [00:03<01:05, 1.36s/it]\n 6%|▌ | 3/50 [00:03<00:42, 1.10it/s]\n 8%|▊ | 4/50 [00:03<00:32, 1.43it/s]\n 10%|█ | 5/50 [00:04<00:26, 1.71it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.94it/s]\n 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.27it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.37it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.45it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.55it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.57it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.59it/s]\n 30%|███ | 15/50 [00:08<00:13, 2.60it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.62it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.59it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.60it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.61it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.62it/s]\n 42%|████▏ | 21/50 [00:10<00:11, 2.63it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.63it/s]\n 46%|████▌ | 23/50 [00:11<00:10, 2.63it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.64it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.64it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.64it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s]\n 56%|█████▌ | 28/50 [00:13<00:08, 2.64it/s]\n 58%|█████▊ | 29/50 [00:13<00:07, 2.64it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.64it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s]\n 66%|██████▌ | 33/50 [00:14<00:06, 2.64it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.64it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.62it/s]\n 72%|███████▏ | 36/50 [00:16<00:05, 2.62it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.63it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.63it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.63it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.63it/s]\n 82%|████████▏ | 41/50 [00:17<00:03, 2.63it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.63it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.64it/s]\n 88%|████████▊ | 44/50 [00:19<00:02, 2.64it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.64it/s]\n 92%|█████████▏| 46/50 [00:19<00:01, 2.63it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.34it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.41it/s]\n 98%|█████████▊| 49/50 [00:21<00:00, 2.48it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.52it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.32it/s]", "metrics": { "predict_time": 26.525088, "total_time": 250.344491 }, "output": "https://replicate.delivery/pbxt/0d0D7Nj3J17LDRJmduGggkyeBqgGdTD6YKufZzQ1dfUeK4BKB/output_image.png", "started_at": "2024-03-15T11:18:45.290748Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5quc7gbbkywvxzjvj4rmmtjquq", "cancel": "https://api.replicate.com/v1/predictions/5quc7gbbkywvxzjvj4rmmtjquq/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:15, 2.77s/it] 4%|▍ | 2/50 [00:03<01:05, 1.36s/it] 6%|▌ | 3/50 [00:03<00:42, 1.10it/s] 8%|▊ | 4/50 [00:03<00:32, 1.43it/s] 10%|█ | 5/50 [00:04<00:26, 1.71it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.94it/s] 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.27it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.37it/s] 20%|██ | 10/50 [00:06<00:16, 2.45it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.55it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.57it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.59it/s] 30%|███ | 15/50 [00:08<00:13, 2.60it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.62it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.59it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.60it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.61it/s] 40%|████ | 20/50 [00:09<00:11, 2.62it/s] 42%|████▏ | 21/50 [00:10<00:11, 2.63it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.63it/s] 46%|████▌ | 23/50 [00:11<00:10, 2.63it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.64it/s] 50%|█████ | 25/50 [00:11<00:09, 2.64it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.64it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s] 56%|█████▌ | 28/50 [00:13<00:08, 2.64it/s] 58%|█████▊ | 29/50 [00:13<00:07, 2.64it/s] 60%|██████ | 30/50 [00:13<00:07, 2.64it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s] 66%|██████▌ | 33/50 [00:14<00:06, 2.64it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.64it/s] 70%|███████ | 35/50 [00:15<00:05, 2.62it/s] 72%|███████▏ | 36/50 [00:16<00:05, 2.62it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.63it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.63it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.63it/s] 80%|████████ | 40/50 [00:17<00:03, 2.63it/s] 82%|████████▏ | 41/50 [00:17<00:03, 2.63it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.63it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.64it/s] 88%|████████▊ | 44/50 [00:19<00:02, 2.64it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.64it/s] 92%|█████████▏| 46/50 [00:19<00:01, 2.63it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.34it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.41it/s] 98%|█████████▊| 49/50 [00:21<00:00, 2.48it/s] 100%|██████████| 50/50 [00:21<00:00, 2.52it/s] 100%|██████████| 50/50 [00:21<00:00, 2.32it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDcgpwhljbhubmy6eohrhnrkrqe4StatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "van-gogh", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd3By1oRgSgtnxKKuaYh5HlHAdN92WNVzPzVIbTymYvekbA/ref_van-gogh_The%20Starry%20Night.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "van-gogh", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZd3By1oRgSgtnxKKuaYh5HlHAdN92WNVzPzVIbTymYvekbA/ref_van-gogh_The%20Starry%20Night.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "van-gogh", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd3By1oRgSgtnxKKuaYh5HlHAdN92WNVzPzVIbTymYvekbA/ref_van-gogh_The%20Starry%20Night.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "van-gogh", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd3By1oRgSgtnxKKuaYh5HlHAdN92WNVzPzVIbTymYvekbA/ref_van-gogh_The%20Starry%20Night.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T11:19:31.301149Z", "created_at": "2024-03-15T11:16:01.227715Z", "data_removed": false, "error": null, "id": "cgpwhljbhubmy6eohrhnrkrqe4", "input": { "prompt": "", "style_name": "van-gogh", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd3By1oRgSgtnxKKuaYh5HlHAdN92WNVzPzVIbTymYvekbA/ref_van-gogh_The%20Starry%20Night.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:07, 2.60s/it]\n 4%|▍ | 2/50 [00:02<01:01, 1.29s/it]\n 6%|▌ | 3/50 [00:03<00:41, 1.14it/s]\n 8%|▊ | 4/50 [00:03<00:31, 1.47it/s]\n 10%|█ | 5/50 [00:04<00:25, 1.75it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.98it/s]\n 14%|█▍ | 7/50 [00:04<00:19, 2.15it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.28it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.46it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s]\n 24%|██▍ | 12/50 [00:06<00:15, 2.52it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.55it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.57it/s]\n 30%|███ | 15/50 [00:07<00:13, 2.59it/s]\n 32%|███▏ | 16/50 [00:08<00:13, 2.59it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.60it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.61it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.61it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.61it/s]\n 42%|████▏ | 21/50 [00:10<00:11, 2.61it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.60it/s]\n 46%|████▌ | 23/50 [00:10<00:10, 2.61it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.61it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.61it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.61it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.61it/s]\n 56%|█████▌ | 28/50 [00:12<00:08, 2.61it/s]\n 58%|█████▊ | 29/50 [00:13<00:08, 2.61it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.61it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.62it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.61it/s]\n 66%|██████▌ | 33/50 [00:14<00:06, 2.61it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.61it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.61it/s]\n 72%|███████▏ | 36/50 [00:15<00:05, 2.61it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.61it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.61it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.61it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.61it/s]\n 82%|████████▏ | 41/50 [00:17<00:03, 2.61it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.61it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.61it/s]\n 88%|████████▊ | 44/50 [00:19<00:02, 2.61it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.61it/s]\n 92%|█████████▏| 46/50 [00:19<00:01, 2.61it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.61it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.61it/s]\n 98%|█████████▊| 49/50 [00:20<00:00, 2.61it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.60it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.34it/s]", "metrics": { "predict_time": 26.247728, "total_time": 210.073434 }, "output": "https://replicate.delivery/pbxt/c37PNlNfCR0GLKHt1rgV6GFxANYS8o8gpawDf6OQHUdDDeAlA/output_image.png", "started_at": "2024-03-15T11:19:05.053421Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cgpwhljbhubmy6eohrhnrkrqe4", "cancel": "https://api.replicate.com/v1/predictions/cgpwhljbhubmy6eohrhnrkrqe4/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:07, 2.60s/it] 4%|▍ | 2/50 [00:02<01:01, 1.29s/it] 6%|▌ | 3/50 [00:03<00:41, 1.14it/s] 8%|▊ | 4/50 [00:03<00:31, 1.47it/s] 10%|█ | 5/50 [00:04<00:25, 1.75it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.98it/s] 14%|█▍ | 7/50 [00:04<00:19, 2.15it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.28it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s] 20%|██ | 10/50 [00:06<00:16, 2.46it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s] 24%|██▍ | 12/50 [00:06<00:15, 2.52it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.55it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.57it/s] 30%|███ | 15/50 [00:07<00:13, 2.59it/s] 32%|███▏ | 16/50 [00:08<00:13, 2.59it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.60it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.61it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.61it/s] 40%|████ | 20/50 [00:09<00:11, 2.61it/s] 42%|████▏ | 21/50 [00:10<00:11, 2.61it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.60it/s] 46%|████▌ | 23/50 [00:10<00:10, 2.61it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.61it/s] 50%|█████ | 25/50 [00:11<00:09, 2.61it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.61it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.61it/s] 56%|█████▌ | 28/50 [00:12<00:08, 2.61it/s] 58%|█████▊ | 29/50 [00:13<00:08, 2.61it/s] 60%|██████ | 30/50 [00:13<00:07, 2.61it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.62it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.61it/s] 66%|██████▌ | 33/50 [00:14<00:06, 2.61it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.61it/s] 70%|███████ | 35/50 [00:15<00:05, 2.61it/s] 72%|███████▏ | 36/50 [00:15<00:05, 2.61it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.61it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.61it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.61it/s] 80%|████████ | 40/50 [00:17<00:03, 2.61it/s] 82%|████████▏ | 41/50 [00:17<00:03, 2.61it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.61it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.61it/s] 88%|████████▊ | 44/50 [00:19<00:02, 2.61it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.61it/s] 92%|█████████▏| 46/50 [00:19<00:01, 2.61it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.61it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.61it/s] 98%|█████████▊| 49/50 [00:20<00:00, 2.61it/s] 100%|██████████| 50/50 [00:21<00:00, 2.60it/s] 100%|██████████| 50/50 [00:21<00:00, 2.34it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDuad4xybbdxab22ums3juibieoqStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "chinese-ink-paint", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd4g4mpV8ndzHl9rb3R8TeS8pYhC0oMbSTsDEyWKB9uclHs/ref_chinese-ink-paint_A%20horse.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "chinese-ink-paint", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZd4g4mpV8ndzHl9rb3R8TeS8pYhC0oMbSTsDEyWKB9uclHs/ref_chinese-ink-paint_A%20horse.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "chinese-ink-paint", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd4g4mpV8ndzHl9rb3R8TeS8pYhC0oMbSTsDEyWKB9uclHs/ref_chinese-ink-paint_A%20horse.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "chinese-ink-paint", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd4g4mpV8ndzHl9rb3R8TeS8pYhC0oMbSTsDEyWKB9uclHs/ref_chinese-ink-paint_A%20horse.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T11:19:38.040919Z", "created_at": "2024-03-15T11:17:33.932485Z", "data_removed": false, "error": null, "id": "uad4xybbdxab22ums3juibieoq", "input": { "prompt": "", "style_name": "chinese-ink-paint", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZd4g4mpV8ndzHl9rb3R8TeS8pYhC0oMbSTsDEyWKB9uclHs/ref_chinese-ink-paint_A%20horse.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:12, 2.70s/it]\n 4%|▍ | 2/50 [00:03<01:04, 1.33s/it]\n 6%|▌ | 3/50 [00:03<00:42, 1.11it/s]\n 8%|▊ | 4/50 [00:03<00:31, 1.44it/s]\n 10%|█ | 5/50 [00:04<00:26, 1.73it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.96it/s]\n 14%|█▍ | 7/50 [00:04<00:20, 2.14it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.28it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.46it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.55it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.58it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.59it/s]\n 30%|███ | 15/50 [00:07<00:13, 2.61it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.62it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.63it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.63it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.63it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.63it/s]\n 42%|████▏ | 21/50 [00:10<00:11, 2.64it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.64it/s]\n 46%|████▌ | 23/50 [00:11<00:10, 2.64it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.64it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.64it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.64it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s]\n 56%|█████▌ | 28/50 [00:12<00:08, 2.62it/s]\n 58%|█████▊ | 29/50 [00:13<00:07, 2.63it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.63it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.63it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s]\n 66%|██████▌ | 33/50 [00:14<00:06, 2.64it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.64it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.64it/s]\n 72%|███████▏ | 36/50 [00:15<00:05, 2.64it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.64it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.64it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.64it/s]\n 82%|████████▏ | 41/50 [00:17<00:03, 2.64it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.64it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.64it/s]\n 88%|████████▊ | 44/50 [00:18<00:02, 2.64it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.64it/s]\n 92%|█████████▏| 46/50 [00:19<00:01, 2.64it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.64it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.64it/s]\n 98%|█████████▊| 49/50 [00:20<00:00, 2.64it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.64it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.35it/s]", "metrics": { "predict_time": 26.175776, "total_time": 124.108434 }, "output": "https://replicate.delivery/pbxt/xv1lXPYN1c6gPZhHjBS9Uwc6IWfBQphRPBbQAI5VwYwkBPQJA/output_image.png", "started_at": "2024-03-15T11:19:11.865143Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/uad4xybbdxab22ums3juibieoq", "cancel": "https://api.replicate.com/v1/predictions/uad4xybbdxab22ums3juibieoq/cancel" }, "version": "bfd1dedbb46545a191b3a42b5f3778d6c97fa6b6c0283de7d099403c05560b65" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:12, 2.70s/it] 4%|▍ | 2/50 [00:03<01:04, 1.33s/it] 6%|▌ | 3/50 [00:03<00:42, 1.11it/s] 8%|▊ | 4/50 [00:03<00:31, 1.44it/s] 10%|█ | 5/50 [00:04<00:26, 1.73it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.96it/s] 14%|█▍ | 7/50 [00:04<00:20, 2.14it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.28it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s] 20%|██ | 10/50 [00:06<00:16, 2.46it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.51it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.55it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.58it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.59it/s] 30%|███ | 15/50 [00:07<00:13, 2.61it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.62it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.63it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.63it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.63it/s] 40%|████ | 20/50 [00:09<00:11, 2.63it/s] 42%|████▏ | 21/50 [00:10<00:11, 2.64it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.64it/s] 46%|████▌ | 23/50 [00:11<00:10, 2.64it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.64it/s] 50%|█████ | 25/50 [00:11<00:09, 2.64it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.64it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s] 56%|█████▌ | 28/50 [00:12<00:08, 2.62it/s] 58%|█████▊ | 29/50 [00:13<00:07, 2.63it/s] 60%|██████ | 30/50 [00:13<00:07, 2.63it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.63it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s] 66%|██████▌ | 33/50 [00:14<00:06, 2.64it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.64it/s] 70%|███████ | 35/50 [00:15<00:05, 2.64it/s] 72%|███████▏ | 36/50 [00:15<00:05, 2.64it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.64it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.64it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s] 80%|████████ | 40/50 [00:17<00:03, 2.64it/s] 82%|████████▏ | 41/50 [00:17<00:03, 2.64it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.64it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.64it/s] 88%|████████▊ | 44/50 [00:18<00:02, 2.64it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.64it/s] 92%|█████████▏| 46/50 [00:19<00:01, 2.64it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.64it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.64it/s] 98%|█████████▊| 49/50 [00:20<00:00, 2.64it/s] 100%|██████████| 50/50 [00:21<00:00, 2.64it/s] 100%|██████████| 50/50 [00:21<00:00, 2.35it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796ID3affh5jbkw3canjd7w3odhlceaStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "klimt", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZgMPl7KqlyizqCsPR2Tlk4TdVQIU3dwm8IH28oX143jEatD/ref_klimt_the%20kiss.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "klimt", depth_image: "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", style_image: "https://replicate.delivery/pbxt/KZgMPl7KqlyizqCsPR2Tlk4TdVQIU3dwm8IH28oX143jEatD/ref_klimt_the%20kiss.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "klimt", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZgMPl7KqlyizqCsPR2Tlk4TdVQIU3dwm8IH28oX143jEatD/ref_klimt_the%20kiss.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "klimt", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZgMPl7KqlyizqCsPR2Tlk4TdVQIU3dwm8IH28oX143jEatD/ref_klimt_the%20kiss.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T14:57:24.396211Z", "created_at": "2024-03-15T14:52:35.312637Z", "data_removed": false, "error": null, "id": "3affh5jbkw3canjd7w3odhlcea", "input": { "prompt": "", "style_name": "klimt", "depth_image": "https://replicate.delivery/pbxt/KZccXvxIrAPKRoK2ptD9etXWNi7MBqEJwiq0Q8vq6J5lpei4/gundam.png", "style_image": "https://replicate.delivery/pbxt/KZgMPl7KqlyizqCsPR2Tlk4TdVQIU3dwm8IH28oX143jEatD/ref_klimt_the%20kiss.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:15, 2.76s/it]\n 4%|▍ | 2/50 [00:03<01:04, 1.35s/it]\n 6%|▌ | 3/50 [00:03<00:42, 1.11it/s]\n 8%|▊ | 4/50 [00:03<00:31, 1.44it/s]\n 10%|█ | 5/50 [00:04<00:26, 1.73it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.97it/s]\n 14%|█▍ | 7/50 [00:04<00:19, 2.16it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.30it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.41it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.49it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.54it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.58it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.61it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.63it/s]\n 30%|███ | 15/50 [00:07<00:13, 2.64it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.65it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.64it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.66it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.66it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.67it/s]\n 42%|████▏ | 21/50 [00:10<00:10, 2.67it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.67it/s]\n 46%|████▌ | 23/50 [00:10<00:10, 2.67it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.67it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.67it/s]\n 52%|█████▏ | 26/50 [00:12<00:08, 2.67it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.67it/s]\n 56%|█████▌ | 28/50 [00:12<00:08, 2.67it/s]\n 58%|█████▊ | 29/50 [00:13<00:07, 2.67it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.67it/s]\n 62%|██████▏ | 31/50 [00:13<00:07, 2.67it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.67it/s]\n 66%|██████▌ | 33/50 [00:14<00:06, 2.67it/s]\n 68%|██████▊ | 34/50 [00:15<00:05, 2.67it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.67it/s]\n 72%|███████▏ | 36/50 [00:15<00:05, 2.67it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.67it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.67it/s]\n 78%|███████▊ | 39/50 [00:16<00:04, 2.66it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.66it/s]\n 82%|████████▏ | 41/50 [00:17<00:03, 2.66it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.67it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.67it/s]\n 88%|████████▊ | 44/50 [00:18<00:02, 2.67it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.67it/s]\n 92%|█████████▏| 46/50 [00:19<00:01, 2.67it/s]\n 94%|█████████▍| 47/50 [00:19<00:01, 2.67it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.67it/s]\n 98%|█████████▊| 49/50 [00:20<00:00, 2.67it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.67it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.37it/s]", "metrics": { "predict_time": 30.387301, "total_time": 289.083574 }, "output": "https://replicate.delivery/pbxt/EE62pk2KbvL3A93UNpaL6eZ0GffApzK7otA6aJmfTnTS9ECKB/output_image.png", "started_at": "2024-03-15T14:56:54.008910Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3affh5jbkw3canjd7w3odhlcea", "cancel": "https://api.replicate.com/v1/predictions/3affh5jbkw3canjd7w3odhlcea/cancel" }, "version": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:15, 2.76s/it] 4%|▍ | 2/50 [00:03<01:04, 1.35s/it] 6%|▌ | 3/50 [00:03<00:42, 1.11it/s] 8%|▊ | 4/50 [00:03<00:31, 1.44it/s] 10%|█ | 5/50 [00:04<00:26, 1.73it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.97it/s] 14%|█▍ | 7/50 [00:04<00:19, 2.16it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.30it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.41it/s] 20%|██ | 10/50 [00:06<00:16, 2.49it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.54it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.58it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.61it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.63it/s] 30%|███ | 15/50 [00:07<00:13, 2.64it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.65it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.64it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.66it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.66it/s] 40%|████ | 20/50 [00:09<00:11, 2.67it/s] 42%|████▏ | 21/50 [00:10<00:10, 2.67it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.67it/s] 46%|████▌ | 23/50 [00:10<00:10, 2.67it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.67it/s] 50%|█████ | 25/50 [00:11<00:09, 2.67it/s] 52%|█████▏ | 26/50 [00:12<00:08, 2.67it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.67it/s] 56%|█████▌ | 28/50 [00:12<00:08, 2.67it/s] 58%|█████▊ | 29/50 [00:13<00:07, 2.67it/s] 60%|██████ | 30/50 [00:13<00:07, 2.67it/s] 62%|██████▏ | 31/50 [00:13<00:07, 2.67it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.67it/s] 66%|██████▌ | 33/50 [00:14<00:06, 2.67it/s] 68%|██████▊ | 34/50 [00:15<00:05, 2.67it/s] 70%|███████ | 35/50 [00:15<00:05, 2.67it/s] 72%|███████▏ | 36/50 [00:15<00:05, 2.67it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.67it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.67it/s] 78%|███████▊ | 39/50 [00:16<00:04, 2.66it/s] 80%|████████ | 40/50 [00:17<00:03, 2.66it/s] 82%|████████▏ | 41/50 [00:17<00:03, 2.66it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.67it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.67it/s] 88%|████████▊ | 44/50 [00:18<00:02, 2.67it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.67it/s] 92%|█████████▏| 46/50 [00:19<00:01, 2.67it/s] 94%|█████████▍| 47/50 [00:19<00:01, 2.67it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.67it/s] 98%|█████████▊| 49/50 [00:20<00:00, 2.67it/s] 100%|██████████| 50/50 [00:21<00:00, 2.67it/s] 100%|██████████| 50/50 [00:21<00:00, 2.37it/s]
Prediction
camenduru/visual-style-prompting-controlnet:5c672796IDdgphesbbg2baxfsiixziy6ukmuStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
{ "prompt": "", "style_name": "totoro", "depth_image": "https://replicate.delivery/pbxt/KZgjflXhj3V7U8z7rWmGyQiqJJjeJ3Ns7wps6TO05YPDukfj/8e28e2fec7e142faba25fc5fca85202e.jpg", "style_image": "https://replicate.delivery/pbxt/KZgjejcBgvJ8b3S1uNAfa2sRWsIo7jMQFFJonW3h2OYANAVG/ref_totoro_totoro%20holding%20a%20tiny%20umbrella%20in%20the%20rain.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", { input: { prompt: "", style_name: "totoro", depth_image: "https://replicate.delivery/pbxt/KZgjflXhj3V7U8z7rWmGyQiqJJjeJ3Ns7wps6TO05YPDukfj/8e28e2fec7e142faba25fc5fca85202e.jpg", style_image: "https://replicate.delivery/pbxt/KZgjejcBgvJ8b3S1uNAfa2sRWsIo7jMQFFJonW3h2OYANAVG/ref_totoro_totoro%20holding%20a%20tiny%20umbrella%20in%20the%20rain.png", diffusion_steps: 50, controlnet_scale: 0.5 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run camenduru/visual-style-prompting-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/visual-style-prompting-controlnet:5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", input={ "prompt": "", "style_name": "totoro", "depth_image": "https://replicate.delivery/pbxt/KZgjflXhj3V7U8z7rWmGyQiqJJjeJ3Ns7wps6TO05YPDukfj/8e28e2fec7e142faba25fc5fca85202e.jpg", "style_image": "https://replicate.delivery/pbxt/KZgjejcBgvJ8b3S1uNAfa2sRWsIo7jMQFFJonW3h2OYANAVG/ref_totoro_totoro%20holding%20a%20tiny%20umbrella%20in%20the%20rain.png", "diffusion_steps": 50, "controlnet_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/visual-style-prompting-controlnet 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": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768", "input": { "prompt": "", "style_name": "totoro", "depth_image": "https://replicate.delivery/pbxt/KZgjflXhj3V7U8z7rWmGyQiqJJjeJ3Ns7wps6TO05YPDukfj/8e28e2fec7e142faba25fc5fca85202e.jpg", "style_image": "https://replicate.delivery/pbxt/KZgjejcBgvJ8b3S1uNAfa2sRWsIo7jMQFFJonW3h2OYANAVG/ref_totoro_totoro%20holding%20a%20tiny%20umbrella%20in%20the%20rain.png", "diffusion_steps": 50, "controlnet_scale": 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-03-15T15:17:34.848405Z", "created_at": "2024-03-15T15:17:08.058824Z", "data_removed": false, "error": null, "id": "dgphesbbg2baxfsiixziy6ukmu", "input": { "prompt": "", "style_name": "totoro", "depth_image": "https://replicate.delivery/pbxt/KZgjflXhj3V7U8z7rWmGyQiqJJjeJ3Ns7wps6TO05YPDukfj/8e28e2fec7e142faba25fc5fca85202e.jpg", "style_image": "https://replicate.delivery/pbxt/KZgjejcBgvJ8b3S1uNAfa2sRWsIo7jMQFFJonW3h2OYANAVG/ref_totoro_totoro%20holding%20a%20tiny%20umbrella%20in%20the%20rain.png", "diffusion_steps": 50, "controlnet_scale": 0.5 }, "logs": "0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<02:16, 2.79s/it]\n 4%|▍ | 2/50 [00:03<01:06, 1.38s/it]\n 6%|▌ | 3/50 [00:03<00:43, 1.09it/s]\n 8%|▊ | 4/50 [00:03<00:32, 1.42it/s]\n 10%|█ | 5/50 [00:04<00:26, 1.70it/s]\n 12%|█▏ | 6/50 [00:04<00:22, 1.94it/s]\n 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s]\n 16%|█▌ | 8/50 [00:05<00:18, 2.27it/s]\n 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s]\n 20%|██ | 10/50 [00:06<00:16, 2.43it/s]\n 22%|██▏ | 11/50 [00:06<00:15, 2.50it/s]\n 24%|██▍ | 12/50 [00:06<00:14, 2.53it/s]\n 26%|██▌ | 13/50 [00:07<00:14, 2.57it/s]\n 28%|██▊ | 14/50 [00:07<00:13, 2.59it/s]\n 30%|███ | 15/50 [00:08<00:13, 2.62it/s]\n 32%|███▏ | 16/50 [00:08<00:12, 2.63it/s]\n 34%|███▍ | 17/50 [00:08<00:12, 2.64it/s]\n 36%|███▌ | 18/50 [00:09<00:12, 2.64it/s]\n 38%|███▊ | 19/50 [00:09<00:11, 2.63it/s]\n 40%|████ | 20/50 [00:09<00:11, 2.62it/s]\n 42%|████▏ | 21/50 [00:10<00:11, 2.61it/s]\n 44%|████▍ | 22/50 [00:10<00:10, 2.63it/s]\n 46%|████▌ | 23/50 [00:11<00:10, 2.63it/s]\n 48%|████▊ | 24/50 [00:11<00:09, 2.62it/s]\n 50%|█████ | 25/50 [00:11<00:09, 2.63it/s]\n 52%|█████▏ | 26/50 [00:12<00:09, 2.63it/s]\n 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s]\n 56%|█████▌ | 28/50 [00:13<00:08, 2.64it/s]\n 58%|█████▊ | 29/50 [00:13<00:07, 2.63it/s]\n 60%|██████ | 30/50 [00:13<00:07, 2.64it/s]\n 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s]\n 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s]\n 66%|██████▌ | 33/50 [00:14<00:06, 2.65it/s]\n 68%|██████▊ | 34/50 [00:15<00:06, 2.65it/s]\n 70%|███████ | 35/50 [00:15<00:05, 2.65it/s]\n 72%|███████▏ | 36/50 [00:16<00:05, 2.65it/s]\n 74%|███████▍ | 37/50 [00:16<00:04, 2.62it/s]\n 76%|███████▌ | 38/50 [00:16<00:04, 2.63it/s]\n 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s]\n 80%|████████ | 40/50 [00:17<00:03, 2.64it/s]\n 82%|████████▏ | 41/50 [00:17<00:03, 2.64it/s]\n 84%|████████▍ | 42/50 [00:18<00:03, 2.64it/s]\n 86%|████████▌ | 43/50 [00:18<00:02, 2.65it/s]\n 88%|████████▊ | 44/50 [00:19<00:02, 2.65it/s]\n 90%|█████████ | 45/50 [00:19<00:01, 2.65it/s]\n 92%|█████████▏| 46/50 [00:19<00:01, 2.64it/s]\n 94%|█████████▍| 47/50 [00:20<00:01, 2.60it/s]\n 96%|█████████▌| 48/50 [00:20<00:00, 2.61it/s]\n 98%|█████████▊| 49/50 [00:20<00:00, 2.62it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.63it/s]\n100%|██████████| 50/50 [00:21<00:00, 2.34it/s]", "metrics": { "predict_time": 26.77161, "total_time": 26.789581 }, "output": "https://replicate.delivery/pbxt/sWGwgSUEI7akNlmkPk9aINL2iPEY8RUvQhmS6paIG2gjYIoE/output_image.png", "started_at": "2024-03-15T15:17:08.076795Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/dgphesbbg2baxfsiixziy6ukmu", "cancel": "https://api.replicate.com/v1/predictions/dgphesbbg2baxfsiixziy6ukmu/cancel" }, "version": "5c67279640102e520d0e5cbc612cf4d56cc6d3bf55e69a9fca6d11b1d341a768" }
Generated in0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:02<02:16, 2.79s/it] 4%|▍ | 2/50 [00:03<01:06, 1.38s/it] 6%|▌ | 3/50 [00:03<00:43, 1.09it/s] 8%|▊ | 4/50 [00:03<00:32, 1.42it/s] 10%|█ | 5/50 [00:04<00:26, 1.70it/s] 12%|█▏ | 6/50 [00:04<00:22, 1.94it/s] 14%|█▍ | 7/50 [00:05<00:20, 2.13it/s] 16%|█▌ | 8/50 [00:05<00:18, 2.27it/s] 18%|█▊ | 9/50 [00:05<00:17, 2.38it/s] 20%|██ | 10/50 [00:06<00:16, 2.43it/s] 22%|██▏ | 11/50 [00:06<00:15, 2.50it/s] 24%|██▍ | 12/50 [00:06<00:14, 2.53it/s] 26%|██▌ | 13/50 [00:07<00:14, 2.57it/s] 28%|██▊ | 14/50 [00:07<00:13, 2.59it/s] 30%|███ | 15/50 [00:08<00:13, 2.62it/s] 32%|███▏ | 16/50 [00:08<00:12, 2.63it/s] 34%|███▍ | 17/50 [00:08<00:12, 2.64it/s] 36%|███▌ | 18/50 [00:09<00:12, 2.64it/s] 38%|███▊ | 19/50 [00:09<00:11, 2.63it/s] 40%|████ | 20/50 [00:09<00:11, 2.62it/s] 42%|████▏ | 21/50 [00:10<00:11, 2.61it/s] 44%|████▍ | 22/50 [00:10<00:10, 2.63it/s] 46%|████▌ | 23/50 [00:11<00:10, 2.63it/s] 48%|████▊ | 24/50 [00:11<00:09, 2.62it/s] 50%|█████ | 25/50 [00:11<00:09, 2.63it/s] 52%|█████▏ | 26/50 [00:12<00:09, 2.63it/s] 54%|█████▍ | 27/50 [00:12<00:08, 2.64it/s] 56%|█████▌ | 28/50 [00:13<00:08, 2.64it/s] 58%|█████▊ | 29/50 [00:13<00:07, 2.63it/s] 60%|██████ | 30/50 [00:13<00:07, 2.64it/s] 62%|██████▏ | 31/50 [00:14<00:07, 2.64it/s] 64%|██████▍ | 32/50 [00:14<00:06, 2.64it/s] 66%|██████▌ | 33/50 [00:14<00:06, 2.65it/s] 68%|██████▊ | 34/50 [00:15<00:06, 2.65it/s] 70%|███████ | 35/50 [00:15<00:05, 2.65it/s] 72%|███████▏ | 36/50 [00:16<00:05, 2.65it/s] 74%|███████▍ | 37/50 [00:16<00:04, 2.62it/s] 76%|███████▌ | 38/50 [00:16<00:04, 2.63it/s] 78%|███████▊ | 39/50 [00:17<00:04, 2.64it/s] 80%|████████ | 40/50 [00:17<00:03, 2.64it/s] 82%|████████▏ | 41/50 [00:17<00:03, 2.64it/s] 84%|████████▍ | 42/50 [00:18<00:03, 2.64it/s] 86%|████████▌ | 43/50 [00:18<00:02, 2.65it/s] 88%|████████▊ | 44/50 [00:19<00:02, 2.65it/s] 90%|█████████ | 45/50 [00:19<00:01, 2.65it/s] 92%|█████████▏| 46/50 [00:19<00:01, 2.64it/s] 94%|█████████▍| 47/50 [00:20<00:01, 2.60it/s] 96%|█████████▌| 48/50 [00:20<00:00, 2.61it/s] 98%|█████████▊| 49/50 [00:20<00:00, 2.62it/s] 100%|██████████| 50/50 [00:21<00:00, 2.63it/s] 100%|██████████| 50/50 [00:21<00:00, 2.34it/s]
Want to make some of these yourself?
Run this model