flux-kontext-apps / multi-image-kontext-max
An experimental FLUX Kontext model that can combine two input images
- Public
- 69.2K runs
-
Commercial use
Prediction
flux-kontext-apps/multi-image-kontext-maxOfficial modelIDy9khwmsxxsrme0cq3hh8b1rpbcStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Put Elsa and Mona Lisa dancing together at a deep house rave
- aspect_ratio
- 3:2
{ "prompt": "Put Elsa and Mona Lisa dancing together at a deep house rave", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5qwPSq6UtqIHdHfJmrntyLNGeCpHIF7BrJ7KwWvw0mOOhFv/elsa.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5qwP15NEUY6uYQKeX65DNlpLmpOpbkIZAOseLRur0XM6ymW/mona-lisa.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Put Elsa and Mona Lisa dancing together at a deep house rave", aspect_ratio: "3:2", input_image_1: "https://replicate.delivery/pbxt/N5qwPSq6UtqIHdHfJmrntyLNGeCpHIF7BrJ7KwWvw0mOOhFv/elsa.jpg", input_image_2: "https://replicate.delivery/pbxt/N5qwP15NEUY6uYQKeX65DNlpLmpOpbkIZAOseLRur0XM6ymW/mona-lisa.png" }; const output = await replicate.run("flux-kontext-apps/multi-image-kontext-max", { input }); // 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 flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/multi-image-kontext-max", input={ "prompt": "Put Elsa and Mona Lisa dancing together at a deep house rave", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5qwPSq6UtqIHdHfJmrntyLNGeCpHIF7BrJ7KwWvw0mOOhFv/elsa.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5qwP15NEUY6uYQKeX65DNlpLmpOpbkIZAOseLRur0XM6ymW/mona-lisa.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run flux-kontext-apps/multi-image-kontext-max 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 $'{ "input": { "prompt": "Put Elsa and Mona Lisa dancing together at a deep house rave", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5qwPSq6UtqIHdHfJmrntyLNGeCpHIF7BrJ7KwWvw0mOOhFv/elsa.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5qwP15NEUY6uYQKeX65DNlpLmpOpbkIZAOseLRur0XM6ymW/mona-lisa.png" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/multi-image-kontext-max/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:11:38.189362Z", "created_at": "2025-05-29T14:11:29.902000Z", "data_removed": false, "error": null, "id": "y9khwmsxxsrme0cq3hh8b1rpbc", "input": { "prompt": "Put Elsa and Mona Lisa dancing together at a deep house rave", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5qwPSq6UtqIHdHfJmrntyLNGeCpHIF7BrJ7KwWvw0mOOhFv/elsa.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5qwP15NEUY6uYQKeX65DNlpLmpOpbkIZAOseLRur0XM6ymW/mona-lisa.png" }, "logs": "Using seed: 928013586\nGenerating...\nGenerated image in 6.5sec\nDownloading 1067542 bytes\nDownloaded 1.02MB in 1.12sec", "metrics": { "image_count": 1, "predict_time": 8.272553461, "total_time": 8.287362 }, "output": "https://replicate.delivery/xezq/TfGjkMa5dyUkWKCfNWfwMLUMvZW6EfTHHEexStAWGMDUjOMmC/tmpmco14zt1.png", "started_at": "2025-05-29T14:11:29.916808Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-7rjp6krscnyqoj442llcnu736uxr7hs6u3af6ewdqunjx46o3zya", "get": "https://api.replicate.com/v1/predictions/y9khwmsxxsrme0cq3hh8b1rpbc", "cancel": "https://api.replicate.com/v1/predictions/y9khwmsxxsrme0cq3hh8b1rpbc/cancel" }, "version": "hidden" }
Prediction
flux-kontext-apps/multi-image-kontext-maxOfficial modelIDke0dxqbyhsrmc0cq3hns9fxzrmStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Put the woman and the na'vi together at a garden party, the friends pose in the evening light
- aspect_ratio
- 3:4
{ "prompt": "Put the woman and the na'vi together at a garden party, the friends pose in the evening light", "aspect_ratio": "3:4", "input_image_1": "https://replicate.delivery/pbxt/N5r5yVs7j4HKcKTpm2QPieGxK4JPestxQeKPerYB6IpNoR8T/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", "input_image_2": "https://replicate.delivery/pbxt/N5r5ye1XmjLspGxeSadMVexOv5nQFfCDI43BaBQwXMYiEd8S/16627900db04b76fae3b64266ca161511422059cd24062fb5d900971003a0b70._SX1080_FMjpg_.jpg" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Put the woman and the na'vi together at a garden party, the friends pose in the evening light", aspect_ratio: "3:4", input_image_1: "https://replicate.delivery/pbxt/N5r5yVs7j4HKcKTpm2QPieGxK4JPestxQeKPerYB6IpNoR8T/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", input_image_2: "https://replicate.delivery/pbxt/N5r5ye1XmjLspGxeSadMVexOv5nQFfCDI43BaBQwXMYiEd8S/16627900db04b76fae3b64266ca161511422059cd24062fb5d900971003a0b70._SX1080_FMjpg_.jpg" }; const output = await replicate.run("flux-kontext-apps/multi-image-kontext-max", { input }); // 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 flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/multi-image-kontext-max", input={ "prompt": "Put the woman and the na'vi together at a garden party, the friends pose in the evening light", "aspect_ratio": "3:4", "input_image_1": "https://replicate.delivery/pbxt/N5r5yVs7j4HKcKTpm2QPieGxK4JPestxQeKPerYB6IpNoR8T/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", "input_image_2": "https://replicate.delivery/pbxt/N5r5ye1XmjLspGxeSadMVexOv5nQFfCDI43BaBQwXMYiEd8S/16627900db04b76fae3b64266ca161511422059cd24062fb5d900971003a0b70._SX1080_FMjpg_.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run flux-kontext-apps/multi-image-kontext-max 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 $'{ "input": { "prompt": "Put the woman and the na\'vi together at a garden party, the friends pose in the evening light", "aspect_ratio": "3:4", "input_image_1": "https://replicate.delivery/pbxt/N5r5yVs7j4HKcKTpm2QPieGxK4JPestxQeKPerYB6IpNoR8T/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", "input_image_2": "https://replicate.delivery/pbxt/N5r5ye1XmjLspGxeSadMVexOv5nQFfCDI43BaBQwXMYiEd8S/16627900db04b76fae3b64266ca161511422059cd24062fb5d900971003a0b70._SX1080_FMjpg_.jpg" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/multi-image-kontext-max/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:21:47.203384Z", "created_at": "2025-05-29T14:21:36.270000Z", "data_removed": false, "error": null, "id": "ke0dxqbyhsrmc0cq3hns9fxzrm", "input": { "prompt": "Put the woman and the na'vi together at a garden party, the friends pose in the evening light", "aspect_ratio": "3:4", "input_image_1": "https://replicate.delivery/pbxt/N5r5yVs7j4HKcKTpm2QPieGxK4JPestxQeKPerYB6IpNoR8T/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", "input_image_2": "https://replicate.delivery/pbxt/N5r5ye1XmjLspGxeSadMVexOv5nQFfCDI43BaBQwXMYiEd8S/16627900db04b76fae3b64266ca161511422059cd24062fb5d900971003a0b70._SX1080_FMjpg_.jpg" }, "logs": "Using seed: 1554561672\nGenerating...\nGenerated image in 6.5sec\nDownloading 1195919 bytes\nDownloaded 1.14MB in 1.36sec", "metrics": { "image_count": 1, "predict_time": 10.928114404, "total_time": 10.933384 }, "output": "https://replicate.delivery/xezq/2J2lQXr0o7ojPBeaovdK34LaPZgFwiSPc9dzmVCUwq19ehxUA/tmpuq4a01rb.png", "started_at": "2025-05-29T14:21:36.275269Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-x6jq5cj2ffvwmb2ze7gqfftjd6lojg7kdx4fe3wmd2a36si53diq", "get": "https://api.replicate.com/v1/predictions/ke0dxqbyhsrmc0cq3hns9fxzrm", "cancel": "https://api.replicate.com/v1/predictions/ke0dxqbyhsrmc0cq3hns9fxzrm/cancel" }, "version": "hidden" }
Prediction
flux-kontext-apps/multi-image-kontext-maxOfficial modelID0sn3zm2ya5rma0cq3hq9w9vk2wStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A photo of the reimagined vase in the colorful aurora style
- aspect_ratio
- 3:2
{ "prompt": "A photo of the reimagined vase in the colorful aurora style", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5r8yETfV3T9YqjwSx1BTSh92JiICmPW59bHEqgRJcHAOS3n/53541851-62f3-44a7-b075-ef053ae2f324.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5r8xmDuVNpJpOcvNFXuFj38evyLiNDWHo6ytWRDdlbJPQuU/FoxAYAnXEAId3tm.jpg" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A photo of the reimagined vase in the colorful aurora style", aspect_ratio: "3:2", input_image_1: "https://replicate.delivery/pbxt/N5r8yETfV3T9YqjwSx1BTSh92JiICmPW59bHEqgRJcHAOS3n/53541851-62f3-44a7-b075-ef053ae2f324.jpg", input_image_2: "https://replicate.delivery/pbxt/N5r8xmDuVNpJpOcvNFXuFj38evyLiNDWHo6ytWRDdlbJPQuU/FoxAYAnXEAId3tm.jpg" }; const output = await replicate.run("flux-kontext-apps/multi-image-kontext-max", { input }); // 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 flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/multi-image-kontext-max", input={ "prompt": "A photo of the reimagined vase in the colorful aurora style", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5r8yETfV3T9YqjwSx1BTSh92JiICmPW59bHEqgRJcHAOS3n/53541851-62f3-44a7-b075-ef053ae2f324.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5r8xmDuVNpJpOcvNFXuFj38evyLiNDWHo6ytWRDdlbJPQuU/FoxAYAnXEAId3tm.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run flux-kontext-apps/multi-image-kontext-max 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 $'{ "input": { "prompt": "A photo of the reimagined vase in the colorful aurora style", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5r8yETfV3T9YqjwSx1BTSh92JiICmPW59bHEqgRJcHAOS3n/53541851-62f3-44a7-b075-ef053ae2f324.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5r8xmDuVNpJpOcvNFXuFj38evyLiNDWHo6ytWRDdlbJPQuU/FoxAYAnXEAId3tm.jpg" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/multi-image-kontext-max/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:24:53.345044Z", "created_at": "2025-05-29T14:24:44.625000Z", "data_removed": false, "error": null, "id": "0sn3zm2ya5rma0cq3hq9w9vk2w", "input": { "prompt": "A photo of the reimagined vase in the colorful aurora style", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5r8yETfV3T9YqjwSx1BTSh92JiICmPW59bHEqgRJcHAOS3n/53541851-62f3-44a7-b075-ef053ae2f324.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5r8xmDuVNpJpOcvNFXuFj38evyLiNDWHo6ytWRDdlbJPQuU/FoxAYAnXEAId3tm.jpg" }, "logs": "Using seed: 604115259\nGenerating...\nGenerated image in 6.6sec\nDownloading 487385 bytes\nDownloaded 0.46MB in 1.02sec", "metrics": { "image_count": 1, "predict_time": 8.710615575, "total_time": 8.720044 }, "output": "https://replicate.delivery/xezq/QrSFteUPrelaRk4HJaikL5SBF3kSkub9cLxIGlRiPor1AixUA/tmpml55k410.png", "started_at": "2025-05-29T14:24:44.634429Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-dp24icc6y232u43hxqzmbeihnl5s7nfy2fq3qaejwallukoomyeq", "get": "https://api.replicate.com/v1/predictions/0sn3zm2ya5rma0cq3hq9w9vk2w", "cancel": "https://api.replicate.com/v1/predictions/0sn3zm2ya5rma0cq3hq9w9vk2w/cancel" }, "version": "hidden" }
Prediction
flux-kontext-apps/multi-image-kontext-maxOfficial modelIDt1t7eg9nssrm80cq3ht97f6xgmStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Add the handwriting to the car scene, the text says "Look at this car!"
- aspect_ratio
- 3:2
{ "prompt": "Add the handwriting to the car scene, the text says \"Look at this car!\"", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5rF1Kok6wctOOyKwy33SE4roPQMrWP63ElG3XOhaf5jRyKo/tmposgdnyki.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5rF1BuyC9C2IaWJU7exEK4DZ6f6ZbzC9ui5yDBJZIZ2spFf/out-0-1.jpg" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Add the handwriting to the car scene, the text says \"Look at this car!\"", aspect_ratio: "3:2", input_image_1: "https://replicate.delivery/pbxt/N5rF1Kok6wctOOyKwy33SE4roPQMrWP63ElG3XOhaf5jRyKo/tmposgdnyki.jpg", input_image_2: "https://replicate.delivery/pbxt/N5rF1BuyC9C2IaWJU7exEK4DZ6f6ZbzC9ui5yDBJZIZ2spFf/out-0-1.jpg" }; const output = await replicate.run("flux-kontext-apps/multi-image-kontext-max", { input }); // 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 flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/multi-image-kontext-max", input={ "prompt": "Add the handwriting to the car scene, the text says \"Look at this car!\"", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5rF1Kok6wctOOyKwy33SE4roPQMrWP63ElG3XOhaf5jRyKo/tmposgdnyki.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5rF1BuyC9C2IaWJU7exEK4DZ6f6ZbzC9ui5yDBJZIZ2spFf/out-0-1.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run flux-kontext-apps/multi-image-kontext-max 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 $'{ "input": { "prompt": "Add the handwriting to the car scene, the text says \\"Look at this car!\\"", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5rF1Kok6wctOOyKwy33SE4roPQMrWP63ElG3XOhaf5jRyKo/tmposgdnyki.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5rF1BuyC9C2IaWJU7exEK4DZ6f6ZbzC9ui5yDBJZIZ2spFf/out-0-1.jpg" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/multi-image-kontext-max/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:31:16.267420Z", "created_at": "2025-05-29T14:31:07.470000Z", "data_removed": false, "error": null, "id": "t1t7eg9nssrm80cq3ht97f6xgm", "input": { "prompt": "Add the handwriting to the car scene, the text says \"Look at this car!\"", "aspect_ratio": "3:2", "input_image_1": "https://replicate.delivery/pbxt/N5rF1Kok6wctOOyKwy33SE4roPQMrWP63ElG3XOhaf5jRyKo/tmposgdnyki.jpg", "input_image_2": "https://replicate.delivery/pbxt/N5rF1BuyC9C2IaWJU7exEK4DZ6f6ZbzC9ui5yDBJZIZ2spFf/out-0-1.jpg" }, "logs": "Using seed: 1428323683\nGenerating...\nGenerated image in 6.4sec\nDownloading 927849 bytes\nDownloaded 0.88MB in 1.57sec", "metrics": { "image_count": 1, "predict_time": 8.789765609, "total_time": 8.79742 }, "output": "https://replicate.delivery/xezq/hTunzPb14fw3GigVU2wohrC349ezxXghODBhPMRHpeXpNEjpA/tmp0x9i76dv.png", "started_at": "2025-05-29T14:31:07.477654Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-me4rova7y4wu5p3ykmw6c3lauudrvubmgus5uxzlqn3yzcfletba", "get": "https://api.replicate.com/v1/predictions/t1t7eg9nssrm80cq3ht97f6xgm", "cancel": "https://api.replicate.com/v1/predictions/t1t7eg9nssrm80cq3ht97f6xgm/cancel" }, "version": "hidden" }
Prediction
flux-kontext-apps/multi-image-kontext-maxOfficial modelIDn06kn3k221rmc0cq3j0rpat0rcStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Put the woman into a white t-shirt with the text on it
- aspect_ratio
- 1:1
{ "prompt": "Put the woman into a white t-shirt with the text on it", "aspect_ratio": "1:1", "input_image_1": "https://replicate.delivery/pbxt/N5rSeJrCafWpmJuLb62moY8pSMEpSBBwSf7N6hxyIn4fNYMa/w8msa88d01rm80cq3hzsqrdehg.png", "input_image_2": "https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Put the woman into a white t-shirt with the text on it", aspect_ratio: "1:1", input_image_1: "https://replicate.delivery/pbxt/N5rSeJrCafWpmJuLb62moY8pSMEpSBBwSf7N6hxyIn4fNYMa/w8msa88d01rm80cq3hzsqrdehg.png", input_image_2: "https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp" }; const output = await replicate.run("flux-kontext-apps/multi-image-kontext-max", { input }); // 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 flux-kontext-apps/multi-image-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/multi-image-kontext-max", input={ "prompt": "Put the woman into a white t-shirt with the text on it", "aspect_ratio": "1:1", "input_image_1": "https://replicate.delivery/pbxt/N5rSeJrCafWpmJuLb62moY8pSMEpSBBwSf7N6hxyIn4fNYMa/w8msa88d01rm80cq3hzsqrdehg.png", "input_image_2": "https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run flux-kontext-apps/multi-image-kontext-max 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 $'{ "input": { "prompt": "Put the woman into a white t-shirt with the text on it", "aspect_ratio": "1:1", "input_image_1": "https://replicate.delivery/pbxt/N5rSeJrCafWpmJuLb62moY8pSMEpSBBwSf7N6hxyIn4fNYMa/w8msa88d01rm80cq3hzsqrdehg.png", "input_image_2": "https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/multi-image-kontext-max/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:45:39.015889Z", "created_at": "2025-05-29T14:45:30.768000Z", "data_removed": false, "error": null, "id": "n06kn3k221rmc0cq3j0rpat0rc", "input": { "prompt": "Put the woman into a white t-shirt with the text on it", "aspect_ratio": "1:1", "input_image_1": "https://replicate.delivery/pbxt/N5rSeJrCafWpmJuLb62moY8pSMEpSBBwSf7N6hxyIn4fNYMa/w8msa88d01rm80cq3hzsqrdehg.png", "input_image_2": "https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp" }, "logs": "Using seed: 122495798\nGenerating...\nGenerated image in 6.4sec\nDownloading 590297 bytes\nDownloaded 0.56MB in 1.05sec", "metrics": { "image_count": 1, "predict_time": 8.239513763, "total_time": 8.247889 }, "output": "https://replicate.delivery/xezq/7wlLiKHs0arKBtHaijl2tM1fFU2R18b57eR3nWzA2KlTUixUA/tmpe2rpyzyh.png", "started_at": "2025-05-29T14:45:30.776375Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zjknhtgqwz7e4c7cubdigsjnf2yfoknp26iy66sjelin4obygsqq", "get": "https://api.replicate.com/v1/predictions/n06kn3k221rmc0cq3j0rpat0rc", "cancel": "https://api.replicate.com/v1/predictions/n06kn3k221rmc0cq3j0rpat0rc/cancel" }, "version": "hidden" }
Want to make some of these yourself?
Run this model