lucataco
/
flux-in-context
In-Context LoRA with Image-to-Image and Inpainting to apply your logo to anything
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307Input
- logo_description
- a black background with a fish in magenta and cyan, title "BLINK" in a bold font
- destination_prompt
- An embroidered hat
{ "logo_image": "https://replicate.delivery/pbxt/MYuHkOKRkJrDg5tkCEqet039csQUIcd0ppzxxdekcNMuLPLE/blink_fish.png", "logo_description": "a black background with a fish in magenta and cyan, title \"BLINK\" in a bold font", "destination_prompt": "An embroidered hat" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MYuHkOKRkJrDg5tkCEqet039csQUIcd0ppzxxdekcNMuLPLE/blink_fish.png", logo_description: "a black background with a fish in magenta and cyan, title \"BLINK\" in a bold font", destination_prompt: "An embroidered hat" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MYuHkOKRkJrDg5tkCEqet039csQUIcd0ppzxxdekcNMuLPLE/blink_fish.png", "logo_description": "a black background with a fish in magenta and cyan, title \"BLINK\" in a bold font", "destination_prompt": "An embroidered hat" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuHkOKRkJrDg5tkCEqet039csQUIcd0ppzxxdekcNMuLPLE/blink_fish.png", "logo_description": "a black background with a fish in magenta and cyan, title \\"BLINK\\" in a bold font", "destination_prompt": "An embroidered hat" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-25T18:35:05.715561Z", "created_at": "2025-02-25T18:34:40.066000Z", "data_removed": false, "error": null, "id": "0wa1may289rmc0cn7shr66dkfm", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuHkOKRkJrDg5tkCEqet039csQUIcd0ppzxxdekcNMuLPLE/blink_fish.png", "logo_description": "a black background with a fish in magenta and cyan, title \"BLINK\" in a bold font", "destination_prompt": "An embroidered hat" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.01s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.07it/s]\n 11%|█ | 3/28 [00:02<00:22, 1.10it/s]\n 14%|█▍ | 4/28 [00:03<00:21, 1.11it/s]\n 18%|█▊ | 5/28 [00:04<00:20, 1.12it/s]\n 21%|██▏ | 6/28 [00:05<00:19, 1.12it/s]\n 25%|██▌ | 7/28 [00:06<00:18, 1.12it/s]\n 29%|██▊ | 8/28 [00:07<00:17, 1.12it/s]\n 32%|███▏ | 9/28 [00:08<00:16, 1.13it/s]\n 36%|███▌ | 10/28 [00:08<00:15, 1.13it/s]\n 39%|███▉ | 11/28 [00:09<00:15, 1.13it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.13it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.13it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.13it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.13it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.13it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.12it/s]\n 64%|██████▍ | 18/28 [00:16<00:08, 1.12it/s]\n 68%|██████▊ | 19/28 [00:16<00:08, 1.12it/s]\n 71%|███████▏ | 20/28 [00:17<00:07, 1.12it/s]\n 75%|███████▌ | 21/28 [00:18<00:06, 1.12it/s]\n 79%|███████▊ | 22/28 [00:19<00:05, 1.12it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.12it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.12it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.12it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.12it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.12it/s]\n100%|██████████| 28/28 [00:24<00:00, 1.19it/s]\n100%|██████████| 28/28 [00:24<00:00, 1.13it/s]", "metrics": { "predict_time": 25.641393557, "total_time": 25.649561 }, "output": "https://replicate.delivery/xezq/rFEdj0jjMgowHxppjvYfSj67Oppg7eMuXRxJBz2Ipa1Z97SUA/output.png", "started_at": "2025-02-25T18:34:40.074167Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-lceudrrpmji6t2runcftb3hifdnmtsag56f37dshvirszsk5eygq", "get": "https://api.replicate.com/v1/predictions/0wa1may289rmc0cn7shr66dkfm", "cancel": "https://api.replicate.com/v1/predictions/0wa1may289rmc0cn7shr66dkfm/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.01s/it] 7%|▋ | 2/28 [00:01<00:24, 1.07it/s] 11%|█ | 3/28 [00:02<00:22, 1.10it/s] 14%|█▍ | 4/28 [00:03<00:21, 1.11it/s] 18%|█▊ | 5/28 [00:04<00:20, 1.12it/s] 21%|██▏ | 6/28 [00:05<00:19, 1.12it/s] 25%|██▌ | 7/28 [00:06<00:18, 1.12it/s] 29%|██▊ | 8/28 [00:07<00:17, 1.12it/s] 32%|███▏ | 9/28 [00:08<00:16, 1.13it/s] 36%|███▌ | 10/28 [00:08<00:15, 1.13it/s] 39%|███▉ | 11/28 [00:09<00:15, 1.13it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.13it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.13it/s] 50%|█████ | 14/28 [00:12<00:12, 1.13it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.13it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.13it/s] 61%|██████ | 17/28 [00:15<00:09, 1.12it/s] 64%|██████▍ | 18/28 [00:16<00:08, 1.12it/s] 68%|██████▊ | 19/28 [00:16<00:08, 1.12it/s] 71%|███████▏ | 20/28 [00:17<00:07, 1.12it/s] 75%|███████▌ | 21/28 [00:18<00:06, 1.12it/s] 79%|███████▊ | 22/28 [00:19<00:05, 1.12it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.12it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.12it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.12it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.12it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.12it/s] 100%|██████████| 28/28 [00:24<00:00, 1.19it/s] 100%|██████████| 28/28 [00:24<00:00, 1.13it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307IDc2fgq5qj99rmc0cn7skage9yggStatusSucceededSourceWebHardwareL40STotal durationCreatedInput
- logo_description
- a stylized, fish in magenta and cyan, with text “BLINK” in an bold font, with bubble details underneath, on a black background
- destination_prompt
- a black tshirt
{ "logo_image": "https://replicate.delivery/pbxt/MYuL32PjNjHTxEIBH952aMpwZu8ngKZbKZl2o15IQ0GbXKiM/blink_fish.png", "logo_description": "a stylized, fish in magenta and cyan, with text “BLINK” in an bold font, with bubble details underneath, on a black background", "destination_prompt": "a black tshirt" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MYuL32PjNjHTxEIBH952aMpwZu8ngKZbKZl2o15IQ0GbXKiM/blink_fish.png", logo_description: "a stylized, fish in magenta and cyan, with text “BLINK” in an bold font, with bubble details underneath, on a black background", destination_prompt: "a black tshirt" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MYuL32PjNjHTxEIBH952aMpwZu8ngKZbKZl2o15IQ0GbXKiM/blink_fish.png", "logo_description": "a stylized, fish in magenta and cyan, with text “BLINK” in an bold font, with bubble details underneath, on a black background", "destination_prompt": "a black tshirt" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuL32PjNjHTxEIBH952aMpwZu8ngKZbKZl2o15IQ0GbXKiM/blink_fish.png", "logo_description": "a stylized, fish in magenta and cyan, with text “BLINK” in an bold font, with bubble details underneath, on a black background", "destination_prompt": "a black tshirt" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-25T18:38:34.861947Z", "created_at": "2025-02-25T18:38:08.970000Z", "data_removed": false, "error": null, "id": "c2fgq5qj99rmc0cn7skage9ygg", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuL32PjNjHTxEIBH952aMpwZu8ngKZbKZl2o15IQ0GbXKiM/blink_fish.png", "logo_description": "a stylized, fish in magenta and cyan, with text “BLINK” in an bold font, with bubble details underneath, on a black background", "destination_prompt": "a black tshirt" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.02s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.05it/s]\n 11%|█ | 3/28 [00:02<00:23, 1.08it/s]\n 14%|█▍ | 4/28 [00:03<00:21, 1.09it/s]\n 18%|█▊ | 5/28 [00:04<00:20, 1.10it/s]\n 21%|██▏ | 6/28 [00:05<00:19, 1.11it/s]\n 25%|██▌ | 7/28 [00:06<00:18, 1.11it/s]\n 29%|██▊ | 8/28 [00:07<00:18, 1.11it/s]\n 32%|███▏ | 9/28 [00:08<00:17, 1.11it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.11it/s]\n 39%|███▉ | 11/28 [00:09<00:15, 1.11it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.11it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.11it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.11it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.11it/s]\n 64%|██████▍ | 18/28 [00:16<00:08, 1.11it/s]\n 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s]\n 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s]\n 75%|███████▌ | 21/28 [00:18<00:06, 1.11it/s]\n 79%|███████▊ | 22/28 [00:19<00:05, 1.11it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.18it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.12it/s]", "metrics": { "predict_time": 25.883043114, "total_time": 25.891947 }, "output": "https://replicate.delivery/xezq/E2v6kq2qw4qLP5OB3kMBzUHUuToVWGo26dPvywPCHfQVAeSUA/output.png", "started_at": "2025-02-25T18:38:08.978904Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-qtjubmjixnqupfrp3b3ms3ru74siznaa256wmqv4dm7tevv5nyta", "get": "https://api.replicate.com/v1/predictions/c2fgq5qj99rmc0cn7skage9ygg", "cancel": "https://api.replicate.com/v1/predictions/c2fgq5qj99rmc0cn7skage9ygg/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.02s/it] 7%|▋ | 2/28 [00:01<00:24, 1.05it/s] 11%|█ | 3/28 [00:02<00:23, 1.08it/s] 14%|█▍ | 4/28 [00:03<00:21, 1.09it/s] 18%|█▊ | 5/28 [00:04<00:20, 1.10it/s] 21%|██▏ | 6/28 [00:05<00:19, 1.11it/s] 25%|██▌ | 7/28 [00:06<00:18, 1.11it/s] 29%|██▊ | 8/28 [00:07<00:18, 1.11it/s] 32%|███▏ | 9/28 [00:08<00:17, 1.11it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.11it/s] 39%|███▉ | 11/28 [00:09<00:15, 1.11it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.11it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.11it/s] 50%|█████ | 14/28 [00:12<00:12, 1.11it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s] 61%|██████ | 17/28 [00:15<00:09, 1.11it/s] 64%|██████▍ | 18/28 [00:16<00:08, 1.11it/s] 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s] 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s] 75%|███████▌ | 21/28 [00:18<00:06, 1.11it/s] 79%|███████▊ | 22/28 [00:19<00:05, 1.11it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s] 100%|██████████| 28/28 [00:25<00:00, 1.18it/s] 100%|██████████| 28/28 [00:25<00:00, 1.12it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307Input
{ "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a rainbow tie dye hat" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", logo_description: "a white logo on a black background", destination_prompt: "a rainbow tie dye hat" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a rainbow tie dye hat" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a rainbow tie dye hat" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-25T18:45:09.761793Z", "created_at": "2025-02-25T18:44:43.767000Z", "data_removed": false, "error": null, "id": "msxxscfrexrma0cn7sp8z9kjbg", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a rainbow tie dye hat" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.03s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.05it/s]\n 11%|█ | 3/28 [00:02<00:23, 1.08it/s]\n 14%|█▍ | 4/28 [00:03<00:22, 1.09it/s]\n 18%|█▊ | 5/28 [00:04<00:20, 1.10it/s]\n 21%|██▏ | 6/28 [00:05<00:19, 1.10it/s]\n 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s]\n 29%|██▊ | 8/28 [00:07<00:18, 1.11it/s]\n 32%|███▏ | 9/28 [00:08<00:17, 1.11it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.11it/s]\n 39%|███▉ | 11/28 [00:10<00:15, 1.11it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.11it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.11it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.11it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.11it/s]\n 64%|██████▍ | 18/28 [00:16<00:08, 1.11it/s]\n 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s]\n 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s]\n 75%|███████▌ | 21/28 [00:19<00:06, 1.11it/s]\n 79%|███████▊ | 22/28 [00:19<00:05, 1.11it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.18it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.11it/s]", "metrics": { "predict_time": 25.985755714, "total_time": 25.994793 }, "output": "https://replicate.delivery/xezq/uQNpj7j7IFpVKFfGeskygfUvC6tvaN4bmmfcYWubMk4WbwLRB/output.png", "started_at": "2025-02-25T18:44:43.776037Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zvfey6fj6rtvyoqv66w7mzjdu7hzjyxfjulceziu3now35guavlq", "get": "https://api.replicate.com/v1/predictions/msxxscfrexrma0cn7sp8z9kjbg", "cancel": "https://api.replicate.com/v1/predictions/msxxscfrexrma0cn7sp8z9kjbg/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.03s/it] 7%|▋ | 2/28 [00:01<00:24, 1.05it/s] 11%|█ | 3/28 [00:02<00:23, 1.08it/s] 14%|█▍ | 4/28 [00:03<00:22, 1.09it/s] 18%|█▊ | 5/28 [00:04<00:20, 1.10it/s] 21%|██▏ | 6/28 [00:05<00:19, 1.10it/s] 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s] 29%|██▊ | 8/28 [00:07<00:18, 1.11it/s] 32%|███▏ | 9/28 [00:08<00:17, 1.11it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.11it/s] 39%|███▉ | 11/28 [00:10<00:15, 1.11it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.11it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.11it/s] 50%|█████ | 14/28 [00:12<00:12, 1.11it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s] 61%|██████ | 17/28 [00:15<00:09, 1.11it/s] 64%|██████▍ | 18/28 [00:16<00:08, 1.11it/s] 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s] 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s] 75%|███████▌ | 21/28 [00:19<00:06, 1.11it/s] 79%|███████▊ | 22/28 [00:19<00:05, 1.11it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s] 100%|██████████| 28/28 [00:25<00:00, 1.18it/s] 100%|██████████| 28/28 [00:25<00:00, 1.11it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307IDmtzjhb5rmnrm80cn82xacc1frcStatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple hoodie" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", logo_description: "a taco emoji logo", destination_prompt: "a purple hoodie" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple hoodie" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple hoodie" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-26T05:29:19.820789Z", "created_at": "2025-02-26T05:28:53.669000Z", "data_removed": false, "error": null, "id": "mtzjhb5rmnrm80cn82xacc1frc", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple hoodie" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.04s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.04it/s]\n 11%|█ | 3/28 [00:02<00:23, 1.07it/s]\n 14%|█▍ | 4/28 [00:03<00:22, 1.08it/s]\n 18%|█▊ | 5/28 [00:04<00:21, 1.09it/s]\n 21%|██▏ | 6/28 [00:05<00:20, 1.10it/s]\n 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s]\n 29%|██▊ | 8/28 [00:07<00:18, 1.10it/s]\n 32%|███▏ | 9/28 [00:08<00:17, 1.10it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.10it/s]\n 39%|███▉ | 11/28 [00:10<00:15, 1.10it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.10it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.10it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.11it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.11it/s]\n 64%|██████▍ | 18/28 [00:16<00:09, 1.10it/s]\n 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s]\n 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s]\n 75%|███████▌ | 21/28 [00:19<00:06, 1.11it/s]\n 79%|███████▊ | 22/28 [00:20<00:05, 1.11it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.18it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.11it/s]", "metrics": { "predict_time": 26.143615502, "total_time": 26.151789 }, "output": "https://replicate.delivery/xezq/aEljbWu8enUSaaN0u0T6NxEH7kBtro9yftCxTt7peyqeKWMRB/output.png", "started_at": "2025-02-26T05:28:53.677173Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-qcoxf4byuyljyijaa6e6kya42z553kdqwisfklghpynqcq2m24gq", "get": "https://api.replicate.com/v1/predictions/mtzjhb5rmnrm80cn82xacc1frc", "cancel": "https://api.replicate.com/v1/predictions/mtzjhb5rmnrm80cn82xacc1frc/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.04s/it] 7%|▋ | 2/28 [00:01<00:24, 1.04it/s] 11%|█ | 3/28 [00:02<00:23, 1.07it/s] 14%|█▍ | 4/28 [00:03<00:22, 1.08it/s] 18%|█▊ | 5/28 [00:04<00:21, 1.09it/s] 21%|██▏ | 6/28 [00:05<00:20, 1.10it/s] 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s] 29%|██▊ | 8/28 [00:07<00:18, 1.10it/s] 32%|███▏ | 9/28 [00:08<00:17, 1.10it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.10it/s] 39%|███▉ | 11/28 [00:10<00:15, 1.10it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.10it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.10it/s] 50%|█████ | 14/28 [00:12<00:12, 1.11it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s] 61%|██████ | 17/28 [00:15<00:09, 1.11it/s] 64%|██████▍ | 18/28 [00:16<00:09, 1.10it/s] 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s] 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s] 75%|███████▌ | 21/28 [00:19<00:06, 1.11it/s] 79%|███████▊ | 22/28 [00:20<00:05, 1.11it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s] 100%|██████████| 28/28 [00:25<00:00, 1.18it/s] 100%|██████████| 28/28 [00:25<00:00, 1.11it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307IDs29d7y77h1rm80cn82yrbjaes0StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "logo_image": "https://replicate.delivery/pbxt/MZ4KvfyfyBB0aBHMLTd8s15s1k5tCuJ1gdUnTUQwwYU6YRcl/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a tote bag" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MZ4KvfyfyBB0aBHMLTd8s15s1k5tCuJ1gdUnTUQwwYU6YRcl/taco.png", logo_description: "a taco emoji logo", destination_prompt: "a tote bag" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MZ4KvfyfyBB0aBHMLTd8s15s1k5tCuJ1gdUnTUQwwYU6YRcl/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a tote bag" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4KvfyfyBB0aBHMLTd8s15s1k5tCuJ1gdUnTUQwwYU6YRcl/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a tote bag" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-26T05:32:48.418769Z", "created_at": "2025-02-26T05:32:22.280000Z", "data_removed": false, "error": null, "id": "s29d7y77h1rm80cn82yrbjaes0", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4KvfyfyBB0aBHMLTd8s15s1k5tCuJ1gdUnTUQwwYU6YRcl/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a tote bag" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.03s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.05it/s]\n 11%|█ | 3/28 [00:02<00:23, 1.07it/s]\n 14%|█▍ | 4/28 [00:03<00:22, 1.08it/s]\n 18%|█▊ | 5/28 [00:04<00:21, 1.09it/s]\n 21%|██▏ | 6/28 [00:05<00:20, 1.10it/s]\n 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s]\n 29%|██▊ | 8/28 [00:07<00:18, 1.10it/s]\n 32%|███▏ | 9/28 [00:08<00:17, 1.10it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.10it/s]\n 39%|███▉ | 11/28 [00:10<00:15, 1.10it/s]\n 43%|████▎ | 12/28 [00:11<00:14, 1.10it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.10it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.10it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.10it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.10it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.10it/s]\n 64%|██████▍ | 18/28 [00:16<00:09, 1.10it/s]\n 68%|██████▊ | 19/28 [00:17<00:08, 1.10it/s]\n 71%|███████▏ | 20/28 [00:18<00:07, 1.10it/s]\n 75%|███████▌ | 21/28 [00:19<00:06, 1.11it/s]\n 79%|███████▊ | 22/28 [00:20<00:05, 1.11it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.18it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.11it/s]", "metrics": { "predict_time": 26.130277335, "total_time": 26.138769 }, "output": "https://replicate.delivery/xezq/IPK2EVezyZXDOi5w1xlSM80x4yjaojZpAB4DIuDsT2LAziJKA/output.png", "started_at": "2025-02-26T05:32:22.288491Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-sk6my36ort5lrvng24ykujhj6u3tvycvoy24gmjdzlqm74ahz2ha", "get": "https://api.replicate.com/v1/predictions/s29d7y77h1rm80cn82yrbjaes0", "cancel": "https://api.replicate.com/v1/predictions/s29d7y77h1rm80cn82yrbjaes0/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.03s/it] 7%|▋ | 2/28 [00:01<00:24, 1.05it/s] 11%|█ | 3/28 [00:02<00:23, 1.07it/s] 14%|█▍ | 4/28 [00:03<00:22, 1.08it/s] 18%|█▊ | 5/28 [00:04<00:21, 1.09it/s] 21%|██▏ | 6/28 [00:05<00:20, 1.10it/s] 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s] 29%|██▊ | 8/28 [00:07<00:18, 1.10it/s] 32%|███▏ | 9/28 [00:08<00:17, 1.10it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.10it/s] 39%|███▉ | 11/28 [00:10<00:15, 1.10it/s] 43%|████▎ | 12/28 [00:11<00:14, 1.10it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.10it/s] 50%|█████ | 14/28 [00:12<00:12, 1.10it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.10it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.10it/s] 61%|██████ | 17/28 [00:15<00:09, 1.10it/s] 64%|██████▍ | 18/28 [00:16<00:09, 1.10it/s] 68%|██████▊ | 19/28 [00:17<00:08, 1.10it/s] 71%|███████▏ | 20/28 [00:18<00:07, 1.10it/s] 75%|███████▌ | 21/28 [00:19<00:06, 1.11it/s] 79%|███████▊ | 22/28 [00:20<00:05, 1.11it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s] 100%|██████████| 28/28 [00:25<00:00, 1.18it/s] 100%|██████████| 28/28 [00:25<00:00, 1.11it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307IDea4mzeavw9rme0cn82zr8dv1qwStatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "logo_image": "https://replicate.delivery/pbxt/MZ4Leg14k8f3wAEpD5HpwJS18T0YrxkEVmEFor7EonzIpCzS/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a soda can" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MZ4Leg14k8f3wAEpD5HpwJS18T0YrxkEVmEFor7EonzIpCzS/taco.png", logo_description: "a taco emoji logo", destination_prompt: "a soda can" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MZ4Leg14k8f3wAEpD5HpwJS18T0YrxkEVmEFor7EonzIpCzS/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a soda can" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4Leg14k8f3wAEpD5HpwJS18T0YrxkEVmEFor7EonzIpCzS/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a soda can" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-26T05:34:23.726440Z", "created_at": "2025-02-26T05:33:57.602000Z", "data_removed": false, "error": null, "id": "ea4mzeavw9rme0cn82zr8dv1qw", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4Leg14k8f3wAEpD5HpwJS18T0YrxkEVmEFor7EonzIpCzS/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a soda can" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.03s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.05it/s]\n 11%|█ | 3/28 [00:02<00:23, 1.07it/s]\n 14%|█▍ | 4/28 [00:03<00:22, 1.08it/s]\n 18%|█▊ | 5/28 [00:04<00:21, 1.09it/s]\n 21%|██▏ | 6/28 [00:05<00:20, 1.10it/s]\n 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s]\n 29%|██▊ | 8/28 [00:07<00:18, 1.10it/s]\n 32%|███▏ | 9/28 [00:08<00:17, 1.10it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.10it/s]\n 39%|███▉ | 11/28 [00:10<00:15, 1.10it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.10it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.10it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.10it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.10it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.10it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.10it/s]\n 64%|██████▍ | 18/28 [00:16<00:09, 1.10it/s]\n 68%|██████▊ | 19/28 [00:17<00:08, 1.10it/s]\n 71%|███████▏ | 20/28 [00:18<00:07, 1.10it/s]\n 75%|███████▌ | 21/28 [00:19<00:06, 1.10it/s]\n 79%|███████▊ | 22/28 [00:20<00:05, 1.10it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.10it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.10it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.10it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.10it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.10it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.17it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.11it/s]", "metrics": { "predict_time": 26.117535369, "total_time": 26.12444 }, "output": "https://replicate.delivery/xezq/aduSfCkLU3UNCStuHZOOAjGANBDorylVes7cL8HCHPVfOLmoA/output.png", "started_at": "2025-02-26T05:33:57.608904Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-qwzzxadthx34d4vpvjiutxsaomzxtaufkkf27ioeruxu3k7dw4ta", "get": "https://api.replicate.com/v1/predictions/ea4mzeavw9rme0cn82zr8dv1qw", "cancel": "https://api.replicate.com/v1/predictions/ea4mzeavw9rme0cn82zr8dv1qw/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.03s/it] 7%|▋ | 2/28 [00:01<00:24, 1.05it/s] 11%|█ | 3/28 [00:02<00:23, 1.07it/s] 14%|█▍ | 4/28 [00:03<00:22, 1.08it/s] 18%|█▊ | 5/28 [00:04<00:21, 1.09it/s] 21%|██▏ | 6/28 [00:05<00:20, 1.10it/s] 25%|██▌ | 7/28 [00:06<00:19, 1.10it/s] 29%|██▊ | 8/28 [00:07<00:18, 1.10it/s] 32%|███▏ | 9/28 [00:08<00:17, 1.10it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.10it/s] 39%|███▉ | 11/28 [00:10<00:15, 1.10it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.10it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.10it/s] 50%|█████ | 14/28 [00:12<00:12, 1.10it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.10it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.10it/s] 61%|██████ | 17/28 [00:15<00:09, 1.10it/s] 64%|██████▍ | 18/28 [00:16<00:09, 1.10it/s] 68%|██████▊ | 19/28 [00:17<00:08, 1.10it/s] 71%|███████▏ | 20/28 [00:18<00:07, 1.10it/s] 75%|███████▌ | 21/28 [00:19<00:06, 1.10it/s] 79%|███████▊ | 22/28 [00:20<00:05, 1.10it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.10it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.10it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.10it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.10it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.10it/s] 100%|██████████| 28/28 [00:25<00:00, 1.17it/s] 100%|██████████| 28/28 [00:25<00:00, 1.11it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307IDg4w3zt9sc5rmc0cn8c59vqx4p4StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
- logo_description
- a white logo on a black background
- destination_prompt
- a red pink yellow orange tie dye hat
{ "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a red pink yellow orange tie dye hat" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", logo_description: "a white logo on a black background", destination_prompt: "a red pink yellow orange tie dye hat" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a red pink yellow orange tie dye hat" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a red pink yellow orange tie dye hat" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-26T16:15:24.230877Z", "created_at": "2025-02-26T16:14:58.401000Z", "data_removed": false, "error": null, "id": "g4w3zt9sc5rmc0cn8c59vqx4p4", "input": { "logo_image": "https://replicate.delivery/pbxt/MYuQmsrqokVA0X0YdjRvHNQzyKnWOlpsyRX0r8ThmtqFXhaw/replicate.png", "logo_description": "a white logo on a black background", "destination_prompt": "a red pink yellow orange tie dye hat" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.02s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.05it/s]\n 11%|█ | 3/28 [00:02<00:23, 1.08it/s]\n 14%|█▍ | 4/28 [00:03<00:21, 1.09it/s]\n 18%|█▊ | 5/28 [00:04<00:20, 1.10it/s]\n 21%|██▏ | 6/28 [00:05<00:19, 1.11it/s]\n 25%|██▌ | 7/28 [00:06<00:18, 1.11it/s]\n 29%|██▊ | 8/28 [00:07<00:18, 1.11it/s]\n 32%|███▏ | 9/28 [00:08<00:17, 1.11it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.11it/s]\n 39%|███▉ | 11/28 [00:09<00:15, 1.11it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.11it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.11it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.11it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.11it/s]\n 64%|██████▍ | 18/28 [00:16<00:09, 1.11it/s]\n 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s]\n 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s]\n 75%|███████▌ | 21/28 [00:18<00:06, 1.11it/s]\n 79%|███████▊ | 22/28 [00:19<00:05, 1.11it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.18it/s]\n100%|██████████| 28/28 [00:25<00:00, 1.12it/s]", "metrics": { "predict_time": 25.822250876, "total_time": 25.829877 }, "output": "https://replicate.delivery/xezq/xzZrm5iGbaLrI5t323xwf5MrH2aEeSqmCd55Vke32yewB8MRB/output.png", "started_at": "2025-02-26T16:14:58.408626Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-it5gaq27gq6p22zxx6qmlmuto4hwxzjskmpgopyqqvlel6luxg7a", "get": "https://api.replicate.com/v1/predictions/g4w3zt9sc5rmc0cn8c59vqx4p4", "cancel": "https://api.replicate.com/v1/predictions/g4w3zt9sc5rmc0cn8c59vqx4p4/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.02s/it] 7%|▋ | 2/28 [00:01<00:24, 1.05it/s] 11%|█ | 3/28 [00:02<00:23, 1.08it/s] 14%|█▍ | 4/28 [00:03<00:21, 1.09it/s] 18%|█▊ | 5/28 [00:04<00:20, 1.10it/s] 21%|██▏ | 6/28 [00:05<00:19, 1.11it/s] 25%|██▌ | 7/28 [00:06<00:18, 1.11it/s] 29%|██▊ | 8/28 [00:07<00:18, 1.11it/s] 32%|███▏ | 9/28 [00:08<00:17, 1.11it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.11it/s] 39%|███▉ | 11/28 [00:09<00:15, 1.11it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.11it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.11it/s] 50%|█████ | 14/28 [00:12<00:12, 1.11it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.11it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.11it/s] 61%|██████ | 17/28 [00:15<00:09, 1.11it/s] 64%|██████▍ | 18/28 [00:16<00:09, 1.11it/s] 68%|██████▊ | 19/28 [00:17<00:08, 1.11it/s] 71%|███████▏ | 20/28 [00:18<00:07, 1.11it/s] 75%|███████▌ | 21/28 [00:18<00:06, 1.11it/s] 79%|███████▊ | 22/28 [00:19<00:05, 1.11it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.11it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.11it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.11it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.11it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.11it/s] 100%|██████████| 28/28 [00:25<00:00, 1.18it/s] 100%|██████████| 28/28 [00:25<00:00, 1.12it/s]
Prediction
lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307IDry4y2ddfj5rma0cnne2akdg1y8StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple cap" }
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 lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", { input: { logo_image: "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", logo_description: "a taco emoji logo", destination_prompt: "a purple cap" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/flux-in-context using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/flux-in-context:703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", input={ "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple cap" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/flux-in-context 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": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple cap" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-18T23:09:40.070015Z", "created_at": "2025-03-18T23:09:14.513000Z", "data_removed": false, "error": null, "id": "ry4y2ddfj5rma0cnne2akdg1y8", "input": { "logo_image": "https://replicate.delivery/pbxt/MZ4HdvEgTOIbbOadXMh7NulzxSEeIPIReaT1tkugGRIYjekX/taco.png", "logo_description": "a taco emoji logo", "destination_prompt": "a purple cap" }, "logs": "0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:27, 1.01s/it]\n 7%|▋ | 2/28 [00:01<00:24, 1.07it/s]\n 11%|█ | 3/28 [00:02<00:22, 1.09it/s]\n 14%|█▍ | 4/28 [00:03<00:21, 1.11it/s]\n 18%|█▊ | 5/28 [00:04<00:20, 1.11it/s]\n 21%|██▏ | 6/28 [00:05<00:19, 1.12it/s]\n 25%|██▌ | 7/28 [00:06<00:18, 1.12it/s]\n 29%|██▊ | 8/28 [00:07<00:17, 1.12it/s]\n 32%|███▏ | 9/28 [00:08<00:16, 1.12it/s]\n 36%|███▌ | 10/28 [00:09<00:16, 1.12it/s]\n 39%|███▉ | 11/28 [00:09<00:15, 1.13it/s]\n 43%|████▎ | 12/28 [00:10<00:14, 1.13it/s]\n 46%|████▋ | 13/28 [00:11<00:13, 1.13it/s]\n 50%|█████ | 14/28 [00:12<00:12, 1.13it/s]\n 54%|█████▎ | 15/28 [00:13<00:11, 1.13it/s]\n 57%|█████▋ | 16/28 [00:14<00:10, 1.13it/s]\n 61%|██████ | 17/28 [00:15<00:09, 1.13it/s]\n 64%|██████▍ | 18/28 [00:16<00:08, 1.13it/s]\n 68%|██████▊ | 19/28 [00:16<00:07, 1.13it/s]\n 71%|███████▏ | 20/28 [00:17<00:07, 1.13it/s]\n 75%|███████▌ | 21/28 [00:18<00:06, 1.12it/s]\n 79%|███████▊ | 22/28 [00:19<00:05, 1.12it/s]\n 82%|████████▏ | 23/28 [00:20<00:04, 1.12it/s]\n 86%|████████▌ | 24/28 [00:21<00:03, 1.12it/s]\n 89%|████████▉ | 25/28 [00:22<00:02, 1.12it/s]\n 93%|█████████▎| 26/28 [00:23<00:01, 1.12it/s]\n 96%|█████████▋| 27/28 [00:24<00:00, 1.12it/s]\n100%|██████████| 28/28 [00:24<00:00, 1.19it/s]\n100%|██████████| 28/28 [00:24<00:00, 1.13it/s]", "metrics": { "predict_time": 25.54941238, "total_time": 25.557015 }, "output": "https://replicate.delivery/xezq/9FAfpTtf7Atn3E9oshfbo8KXH2axan0q6C4lGPJqP3dp51zoA/output.png", "started_at": "2025-03-18T23:09:14.520603Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-wad4el6e2ybxdzj4f2mrhxgolmacg4bagfnaxvnmnjk7iw63fgda", "get": "https://api.replicate.com/v1/predictions/ry4y2ddfj5rma0cnne2akdg1y8", "cancel": "https://api.replicate.com/v1/predictions/ry4y2ddfj5rma0cnne2akdg1y8/cancel" }, "version": "703f38c44b9c2820b79b54f96ef5f6554240b3ec4035a0cf80ba04e1f87ae307" }
Generated in0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:27, 1.01s/it] 7%|▋ | 2/28 [00:01<00:24, 1.07it/s] 11%|█ | 3/28 [00:02<00:22, 1.09it/s] 14%|█▍ | 4/28 [00:03<00:21, 1.11it/s] 18%|█▊ | 5/28 [00:04<00:20, 1.11it/s] 21%|██▏ | 6/28 [00:05<00:19, 1.12it/s] 25%|██▌ | 7/28 [00:06<00:18, 1.12it/s] 29%|██▊ | 8/28 [00:07<00:17, 1.12it/s] 32%|███▏ | 9/28 [00:08<00:16, 1.12it/s] 36%|███▌ | 10/28 [00:09<00:16, 1.12it/s] 39%|███▉ | 11/28 [00:09<00:15, 1.13it/s] 43%|████▎ | 12/28 [00:10<00:14, 1.13it/s] 46%|████▋ | 13/28 [00:11<00:13, 1.13it/s] 50%|█████ | 14/28 [00:12<00:12, 1.13it/s] 54%|█████▎ | 15/28 [00:13<00:11, 1.13it/s] 57%|█████▋ | 16/28 [00:14<00:10, 1.13it/s] 61%|██████ | 17/28 [00:15<00:09, 1.13it/s] 64%|██████▍ | 18/28 [00:16<00:08, 1.13it/s] 68%|██████▊ | 19/28 [00:16<00:07, 1.13it/s] 71%|███████▏ | 20/28 [00:17<00:07, 1.13it/s] 75%|███████▌ | 21/28 [00:18<00:06, 1.12it/s] 79%|███████▊ | 22/28 [00:19<00:05, 1.12it/s] 82%|████████▏ | 23/28 [00:20<00:04, 1.12it/s] 86%|████████▌ | 24/28 [00:21<00:03, 1.12it/s] 89%|████████▉ | 25/28 [00:22<00:02, 1.12it/s] 93%|█████████▎| 26/28 [00:23<00:01, 1.12it/s] 96%|█████████▋| 27/28 [00:24<00:00, 1.12it/s] 100%|██████████| 28/28 [00:24<00:00, 1.19it/s] 100%|██████████| 28/28 [00:24<00:00, 1.13it/s]
Want to make some of these yourself?
Run this model