fofr / kolors-with-ipadapter
Kolors with style transfer, composition transfer and other IPAdapter techniques
Prediction
fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eedIDvrahx8gdfdrgm0cgrvbsh0h950StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- cfg
- 4
- steps
- 25
- width
- 1024
- height
- 1024
- prompt
- a cyberpunk portrait
- sampler
- dpmpp_2m_sde_gpu
- scheduler
- karras
- output_format
- webp
- output_quality
- 80
- negative_prompt
- number_of_images
- 1
- ip_adapter_weight
- 1
- ip_adapter_weight_type
- style transfer precise
{ "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5RtDlX79f3jAJg0BuKLpA68RmwZxDMz3QtaMYFRbxrAXlq/ComfyUI_01601_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "a cyberpunk portrait", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" }
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 fofr/kolors-with-ipadapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", { input: { cfg: 4, image: "https://replicate.delivery/pbxt/LI5RtDlX79f3jAJg0BuKLpA68RmwZxDMz3QtaMYFRbxrAXlq/ComfyUI_01601_.png", steps: 25, width: 1024, height: 1024, prompt: "a cyberpunk portrait", sampler: "dpmpp_2m_sde_gpu", scheduler: "karras", output_format: "webp", output_quality: 80, negative_prompt: "", number_of_images: 1, ip_adapter_weight: 1, ip_adapter_weight_type: "style transfer precise" } } ); // 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 fofr/kolors-with-ipadapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", input={ "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5RtDlX79f3jAJg0BuKLpA68RmwZxDMz3QtaMYFRbxrAXlq/ComfyUI_01601_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "a cyberpunk portrait", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run fofr/kolors-with-ipadapter 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": "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", "input": { "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5RtDlX79f3jAJg0BuKLpA68RmwZxDMz3QtaMYFRbxrAXlq/ComfyUI_01601_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "a cyberpunk portrait", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-18T17:15:08.324579Z", "created_at": "2024-07-18T17:15:00.859000Z", "data_removed": false, "error": null, "id": "vrahx8gdfdrgm0cgrvbsh0h950", "input": { "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5RtDlX79f3jAJg0BuKLpA68RmwZxDMz3QtaMYFRbxrAXlq/ComfyUI_01601_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "a cyberpunk portrait", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" }, "logs": "Random seed set to: 1432918853\nRunning workflow\ngot prompt\nExecuting node 67, title: MinusZone - ChatGLM3TextEncode, class type: MZ_ChatGLM3\nExecuting node 79, title: KSampler, class type: KSampler\nRequested to load SDXL\nLoading 1 new model\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:04, 4.96it/s]\n 8%|▊ | 2/25 [00:00<00:04, 4.90it/s]\n 12%|█▏ | 3/25 [00:00<00:04, 4.90it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 4.89it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.90it/s]\n 24%|██▍ | 6/25 [00:01<00:03, 4.89it/s]\n 28%|██▊ | 7/25 [00:01<00:03, 4.88it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.87it/s]\n 36%|███▌ | 9/25 [00:01<00:03, 4.87it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.87it/s]\n 44%|████▍ | 11/25 [00:02<00:02, 4.86it/s]\n 48%|████▊ | 12/25 [00:02<00:02, 4.87it/s]\n 52%|█████▏ | 13/25 [00:02<00:02, 4.87it/s]\n 56%|█████▌ | 14/25 [00:02<00:02, 4.87it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.87it/s]\n 64%|██████▍ | 16/25 [00:03<00:01, 4.87it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.88it/s]\n 72%|███████▏ | 18/25 [00:03<00:01, 4.87it/s]\n 76%|███████▌ | 19/25 [00:03<00:01, 4.87it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.87it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.88it/s]\n 88%|████████▊ | 22/25 [00:04<00:00, 4.90it/s]\n 92%|█████████▏| 23/25 [00:04<00:00, 4.90it/s]\n 96%|█████████▌| 24/25 [00:04<00:00, 4.92it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.94it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.89it/s]\nRequested to load AutoencoderKL\nLoading 1 new model\nExecuting node 80, title: VAE Decode, class type: VAEDecode\nExecuting node 89, title: Save Image, class type: SaveImage\nPrompt executed in 5.73 seconds\noutputs: {'89': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nComfyUI_00001_.png", "metrics": { "predict_time": 7.3695629369999995, "total_time": 7.465579 }, "output": [ "https://replicate.delivery/pbxt/xWYZfxWf3Fof6oQvN3CZIx3tTA1DyRqLohUWTwy5PUL38fmMB/ComfyUI_00001_.webp" ], "started_at": "2024-07-18T17:15:00.955016Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vrahx8gdfdrgm0cgrvbsh0h950", "cancel": "https://api.replicate.com/v1/predictions/vrahx8gdfdrgm0cgrvbsh0h950/cancel" }, "version": "5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed" }
Generated inRandom seed set to: 1432918853 Running workflow got prompt Executing node 67, title: MinusZone - ChatGLM3TextEncode, class type: MZ_ChatGLM3 Executing node 79, title: KSampler, class type: KSampler Requested to load SDXL Loading 1 new model 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:04, 4.96it/s] 8%|▊ | 2/25 [00:00<00:04, 4.90it/s] 12%|█▏ | 3/25 [00:00<00:04, 4.90it/s] 16%|█▌ | 4/25 [00:00<00:04, 4.89it/s] 20%|██ | 5/25 [00:01<00:04, 4.90it/s] 24%|██▍ | 6/25 [00:01<00:03, 4.89it/s] 28%|██▊ | 7/25 [00:01<00:03, 4.88it/s] 32%|███▏ | 8/25 [00:01<00:03, 4.87it/s] 36%|███▌ | 9/25 [00:01<00:03, 4.87it/s] 40%|████ | 10/25 [00:02<00:03, 4.87it/s] 44%|████▍ | 11/25 [00:02<00:02, 4.86it/s] 48%|████▊ | 12/25 [00:02<00:02, 4.87it/s] 52%|█████▏ | 13/25 [00:02<00:02, 4.87it/s] 56%|█████▌ | 14/25 [00:02<00:02, 4.87it/s] 60%|██████ | 15/25 [00:03<00:02, 4.87it/s] 64%|██████▍ | 16/25 [00:03<00:01, 4.87it/s] 68%|██████▊ | 17/25 [00:03<00:01, 4.88it/s] 72%|███████▏ | 18/25 [00:03<00:01, 4.87it/s] 76%|███████▌ | 19/25 [00:03<00:01, 4.87it/s] 80%|████████ | 20/25 [00:04<00:01, 4.87it/s] 84%|████████▍ | 21/25 [00:04<00:00, 4.88it/s] 88%|████████▊ | 22/25 [00:04<00:00, 4.90it/s] 92%|█████████▏| 23/25 [00:04<00:00, 4.90it/s] 96%|█████████▌| 24/25 [00:04<00:00, 4.92it/s] 100%|██████████| 25/25 [00:05<00:00, 4.94it/s] 100%|██████████| 25/25 [00:05<00:00, 4.89it/s] Requested to load AutoencoderKL Loading 1 new model Executing node 80, title: VAE Decode, class type: VAEDecode Executing node 89, title: Save Image, class type: SaveImage Prompt executed in 5.73 seconds outputs: {'89': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}} ==================================== ComfyUI_00001_.png
Prediction
fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eedID3eqtsdhv35rgm0cgrvd8yr1y7cStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedby @fofrInput
- cfg
- 4
- steps
- 25
- width
- 1024
- height
- 1024
- prompt
- an illustration of a cute dog jumping over a sleeping cat
- sampler
- dpmpp_2m_sde_gpu
- scheduler
- karras
- output_format
- webp
- output_quality
- 80
- negative_prompt
- number_of_images
- 1
- ip_adapter_weight
- 1
- ip_adapter_weight_type
- style transfer precise
{ "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5VAhU2v3jNTjuE76GMTzikT1XMiUoRSznZdXR0cAnK1XJS/ComfyUI_00362_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" }
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 fofr/kolors-with-ipadapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", { input: { cfg: 4, image: "https://replicate.delivery/pbxt/LI5VAhU2v3jNTjuE76GMTzikT1XMiUoRSznZdXR0cAnK1XJS/ComfyUI_00362_.png", steps: 25, width: 1024, height: 1024, prompt: "an illustration of a cute dog jumping over a sleeping cat", sampler: "dpmpp_2m_sde_gpu", scheduler: "karras", output_format: "webp", output_quality: 80, negative_prompt: "", number_of_images: 1, ip_adapter_weight: 1, ip_adapter_weight_type: "style transfer precise" } } ); // 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 fofr/kolors-with-ipadapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", input={ "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5VAhU2v3jNTjuE76GMTzikT1XMiUoRSznZdXR0cAnK1XJS/ComfyUI_00362_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run fofr/kolors-with-ipadapter 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": "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", "input": { "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5VAhU2v3jNTjuE76GMTzikT1XMiUoRSznZdXR0cAnK1XJS/ComfyUI_00362_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-18T17:18:37.129145Z", "created_at": "2024-07-18T17:18:29.145000Z", "data_removed": false, "error": null, "id": "3eqtsdhv35rgm0cgrvd8yr1y7c", "input": { "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5VAhU2v3jNTjuE76GMTzikT1XMiUoRSznZdXR0cAnK1XJS/ComfyUI_00362_.png", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 1, "ip_adapter_weight_type": "style transfer precise" }, "logs": "Random seed set to: 1134600525\nRunning workflow\ngot prompt\nExecuting node 67, title: MinusZone - ChatGLM3TextEncode, class type: MZ_ChatGLM3\nExecuting node 79, title: KSampler, class type: KSampler\nRequested to load SDXL\nLoading 1 new model\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:04, 4.94it/s]\n 8%|▊ | 2/25 [00:00<00:04, 4.90it/s]\n 12%|█▏ | 3/25 [00:00<00:04, 4.89it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 4.89it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.90it/s]\n 24%|██▍ | 6/25 [00:01<00:03, 4.89it/s]\n 28%|██▊ | 7/25 [00:01<00:03, 4.89it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.89it/s]\n 36%|███▌ | 9/25 [00:01<00:03, 4.89it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.86it/s]\n 44%|████▍ | 11/25 [00:02<00:02, 4.86it/s]\n 48%|████▊ | 12/25 [00:02<00:02, 4.87it/s]\n 52%|█████▏ | 13/25 [00:02<00:02, 4.88it/s]\n 56%|█████▌ | 14/25 [00:02<00:02, 4.88it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.89it/s]\n 64%|██████▍ | 16/25 [00:03<00:01, 4.89it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.90it/s]\n 72%|███████▏ | 18/25 [00:03<00:01, 4.90it/s]\n 76%|███████▌ | 19/25 [00:03<00:01, 4.90it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.90it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.89it/s]\n 88%|████████▊ | 22/25 [00:04<00:00, 4.90it/s]\n 92%|█████████▏| 23/25 [00:04<00:00, 4.90it/s]\n 96%|█████████▌| 24/25 [00:04<00:00, 4.92it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.94it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.90it/s]\nRequested to load AutoencoderKL\nLoading 1 new model\nExecuting node 80, title: VAE Decode, class type: VAEDecode\nExecuting node 89, title: Save Image, class type: SaveImage\nPrompt executed in 5.91 seconds\noutputs: {'89': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nComfyUI_00001_.png", "metrics": { "predict_time": 7.888414131, "total_time": 7.984145 }, "output": [ "https://replicate.delivery/pbxt/6afB4UMVrtXOCCUwnEN3pGvVx0OqPTr4A1656w6SSUL2A4kJA/ComfyUI_00001_.webp" ], "started_at": "2024-07-18T17:18:29.240731Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3eqtsdhv35rgm0cgrvd8yr1y7c", "cancel": "https://api.replicate.com/v1/predictions/3eqtsdhv35rgm0cgrvd8yr1y7c/cancel" }, "version": "5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed" }
Generated inRandom seed set to: 1134600525 Running workflow got prompt Executing node 67, title: MinusZone - ChatGLM3TextEncode, class type: MZ_ChatGLM3 Executing node 79, title: KSampler, class type: KSampler Requested to load SDXL Loading 1 new model 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:04, 4.94it/s] 8%|▊ | 2/25 [00:00<00:04, 4.90it/s] 12%|█▏ | 3/25 [00:00<00:04, 4.89it/s] 16%|█▌ | 4/25 [00:00<00:04, 4.89it/s] 20%|██ | 5/25 [00:01<00:04, 4.90it/s] 24%|██▍ | 6/25 [00:01<00:03, 4.89it/s] 28%|██▊ | 7/25 [00:01<00:03, 4.89it/s] 32%|███▏ | 8/25 [00:01<00:03, 4.89it/s] 36%|███▌ | 9/25 [00:01<00:03, 4.89it/s] 40%|████ | 10/25 [00:02<00:03, 4.86it/s] 44%|████▍ | 11/25 [00:02<00:02, 4.86it/s] 48%|████▊ | 12/25 [00:02<00:02, 4.87it/s] 52%|█████▏ | 13/25 [00:02<00:02, 4.88it/s] 56%|█████▌ | 14/25 [00:02<00:02, 4.88it/s] 60%|██████ | 15/25 [00:03<00:02, 4.89it/s] 64%|██████▍ | 16/25 [00:03<00:01, 4.89it/s] 68%|██████▊ | 17/25 [00:03<00:01, 4.90it/s] 72%|███████▏ | 18/25 [00:03<00:01, 4.90it/s] 76%|███████▌ | 19/25 [00:03<00:01, 4.90it/s] 80%|████████ | 20/25 [00:04<00:01, 4.90it/s] 84%|████████▍ | 21/25 [00:04<00:00, 4.89it/s] 88%|████████▊ | 22/25 [00:04<00:00, 4.90it/s] 92%|█████████▏| 23/25 [00:04<00:00, 4.90it/s] 96%|█████████▌| 24/25 [00:04<00:00, 4.92it/s] 100%|██████████| 25/25 [00:05<00:00, 4.94it/s] 100%|██████████| 25/25 [00:05<00:00, 4.90it/s] Requested to load AutoencoderKL Loading 1 new model Executing node 80, title: VAE Decode, class type: VAEDecode Executing node 89, title: Save Image, class type: SaveImage Prompt executed in 5.91 seconds outputs: {'89': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}} ==================================== ComfyUI_00001_.png
Prediction
fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eedIDhhxyfrw6d5rgj0cgrvetxhrz4gStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- cfg
- 4
- steps
- 25
- width
- 1024
- height
- 1024
- prompt
- an illustration of a cute dog jumping over a sleeping cat
- sampler
- dpmpp_2m_sde_gpu
- scheduler
- karras
- output_format
- webp
- output_quality
- 80
- negative_prompt
- number_of_images
- 1
- ip_adapter_weight
- 0.85
- ip_adapter_weight_type
- style transfer precise
{ "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5YaUC2BygRqX8nUU1nKfjGg1k4j3fcRjZLfQHVUZZWWLQA/R8_Kolor_00001_.webp", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 0.85, "ip_adapter_weight_type": "style transfer precise" }
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 fofr/kolors-with-ipadapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", { input: { cfg: 4, image: "https://replicate.delivery/pbxt/LI5YaUC2BygRqX8nUU1nKfjGg1k4j3fcRjZLfQHVUZZWWLQA/R8_Kolor_00001_.webp", steps: 25, width: 1024, height: 1024, prompt: "an illustration of a cute dog jumping over a sleeping cat", sampler: "dpmpp_2m_sde_gpu", scheduler: "karras", output_format: "webp", output_quality: 80, negative_prompt: "", number_of_images: 1, ip_adapter_weight: 0.85, ip_adapter_weight_type: "style transfer precise" } } ); // 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 fofr/kolors-with-ipadapter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", input={ "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5YaUC2BygRqX8nUU1nKfjGg1k4j3fcRjZLfQHVUZZWWLQA/R8_Kolor_00001_.webp", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 0.85, "ip_adapter_weight_type": "style transfer precise" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run fofr/kolors-with-ipadapter 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": "fofr/kolors-with-ipadapter:5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed", "input": { "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5YaUC2BygRqX8nUU1nKfjGg1k4j3fcRjZLfQHVUZZWWLQA/R8_Kolor_00001_.webp", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 0.85, "ip_adapter_weight_type": "style transfer precise" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-07-18T17:22:15.197256Z", "created_at": "2024-07-18T17:22:05.033000Z", "data_removed": false, "error": null, "id": "hhxyfrw6d5rgj0cgrvetxhrz4g", "input": { "cfg": 4, "image": "https://replicate.delivery/pbxt/LI5YaUC2BygRqX8nUU1nKfjGg1k4j3fcRjZLfQHVUZZWWLQA/R8_Kolor_00001_.webp", "steps": 25, "width": 1024, "height": 1024, "prompt": "an illustration of a cute dog jumping over a sleeping cat", "sampler": "dpmpp_2m_sde_gpu", "scheduler": "karras", "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "ip_adapter_weight": 0.85, "ip_adapter_weight_type": "style transfer precise" }, "logs": "Random seed set to: 2201315485\nRunning workflow\ngot prompt\nExecuting node 95, title: Load Image, class type: LoadImage\nRequested to load CLIPVisionModelProjection\nLoading 1 new model\nExecuting node 96, title: IPAdapter Advanced, class type: IPAdapterAdvanced\nExecuting node 79, title: KSampler, class type: KSampler\nRequested to load SDXL\nLoading 1 new model\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:04, 4.93it/s]\n 8%|▊ | 2/25 [00:00<00:04, 4.89it/s]\n 12%|█▏ | 3/25 [00:00<00:04, 4.90it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 4.90it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.91it/s]\n 24%|██▍ | 6/25 [00:01<00:03, 4.90it/s]\n 28%|██▊ | 7/25 [00:01<00:03, 4.89it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.88it/s]\n 36%|███▌ | 9/25 [00:01<00:03, 4.88it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.88it/s]\n 44%|████▍ | 11/25 [00:02<00:02, 4.88it/s]\n 48%|████▊ | 12/25 [00:02<00:02, 4.88it/s]\n 52%|█████▏ | 13/25 [00:02<00:02, 4.88it/s]\n 56%|█████▌ | 14/25 [00:02<00:02, 4.87it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.88it/s]\n 64%|██████▍ | 16/25 [00:03<00:01, 4.88it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.89it/s]\n 72%|███████▏ | 18/25 [00:03<00:01, 4.88it/s]\n 76%|███████▌ | 19/25 [00:03<00:01, 4.89it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.88it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.88it/s]\n 88%|████████▊ | 22/25 [00:04<00:00, 4.89it/s]\n 92%|█████████▏| 23/25 [00:04<00:00, 4.89it/s]\n 96%|█████████▌| 24/25 [00:04<00:00, 4.91it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.93it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.89it/s]\nExecuting node 80, title: VAE Decode, class type: VAEDecode\nExecuting node 89, title: Save Image, class type: SaveImage\nPrompt executed in 8.08 seconds\noutputs: {'89': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nComfyUI_00001_.png", "metrics": { "predict_time": 10.068631882, "total_time": 10.164256 }, "output": [ "https://replicate.delivery/pbxt/KWCroYScRDZfESFgzCelPOj3e1CZy8Ogl1OHNoDgmhGMKgTmA/ComfyUI_00001_.webp" ], "started_at": "2024-07-18T17:22:05.128624Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hhxyfrw6d5rgj0cgrvetxhrz4g", "cancel": "https://api.replicate.com/v1/predictions/hhxyfrw6d5rgj0cgrvetxhrz4g/cancel" }, "version": "5a1a92b2c0f81813225d48ed8e411813da41aa84e7582fb705d1af46eea36eed" }
Generated inRandom seed set to: 2201315485 Running workflow got prompt Executing node 95, title: Load Image, class type: LoadImage Requested to load CLIPVisionModelProjection Loading 1 new model Executing node 96, title: IPAdapter Advanced, class type: IPAdapterAdvanced Executing node 79, title: KSampler, class type: KSampler Requested to load SDXL Loading 1 new model 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:04, 4.93it/s] 8%|▊ | 2/25 [00:00<00:04, 4.89it/s] 12%|█▏ | 3/25 [00:00<00:04, 4.90it/s] 16%|█▌ | 4/25 [00:00<00:04, 4.90it/s] 20%|██ | 5/25 [00:01<00:04, 4.91it/s] 24%|██▍ | 6/25 [00:01<00:03, 4.90it/s] 28%|██▊ | 7/25 [00:01<00:03, 4.89it/s] 32%|███▏ | 8/25 [00:01<00:03, 4.88it/s] 36%|███▌ | 9/25 [00:01<00:03, 4.88it/s] 40%|████ | 10/25 [00:02<00:03, 4.88it/s] 44%|████▍ | 11/25 [00:02<00:02, 4.88it/s] 48%|████▊ | 12/25 [00:02<00:02, 4.88it/s] 52%|█████▏ | 13/25 [00:02<00:02, 4.88it/s] 56%|█████▌ | 14/25 [00:02<00:02, 4.87it/s] 60%|██████ | 15/25 [00:03<00:02, 4.88it/s] 64%|██████▍ | 16/25 [00:03<00:01, 4.88it/s] 68%|██████▊ | 17/25 [00:03<00:01, 4.89it/s] 72%|███████▏ | 18/25 [00:03<00:01, 4.88it/s] 76%|███████▌ | 19/25 [00:03<00:01, 4.89it/s] 80%|████████ | 20/25 [00:04<00:01, 4.88it/s] 84%|████████▍ | 21/25 [00:04<00:00, 4.88it/s] 88%|████████▊ | 22/25 [00:04<00:00, 4.89it/s] 92%|█████████▏| 23/25 [00:04<00:00, 4.89it/s] 96%|█████████▌| 24/25 [00:04<00:00, 4.91it/s] 100%|██████████| 25/25 [00:05<00:00, 4.93it/s] 100%|██████████| 25/25 [00:05<00:00, 4.89it/s] Executing node 80, title: VAE Decode, class type: VAEDecode Executing node 89, title: Save Image, class type: SaveImage Prompt executed in 8.08 seconds outputs: {'89': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}} ==================================== ComfyUI_00001_.png
Want to make some of these yourself?
Run this model