black-forest-labs/flux-kontext-max
A premium text-based image editing model that delivers maximum performance and improved typography generation for transforming images through natural language prompts
Prediction
black-forest-labs/flux-kontext-maxOfficial modelIDs5ny1abwn5rma0cq6ysbzw0re8StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Make the letters 3D, floating in space on a city street
- aspect_ratio
- match_input_image
- output_format
- jpg
- safety_tolerance
- 2
{ "prompt": "Make the letters 3D, floating in space on a city street", "input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }Install Replicate’s Node.js client library:npm install replicateImport 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 black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Make the letters 3D, floating in space on a city street", input_image: "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png", aspect_ratio: "match_input_image", output_format: "jpg", safety_tolerance: 2 }; const output = await replicate.run("black-forest-labs/flux-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 replicateImport the client:import replicateRun black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-kontext-max", input={ "prompt": "Make the letters 3D, floating in space on a city street", "input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-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": "Make the letters 3D, floating in space on a city street", "input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-kontext-max/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-06-03T21:28:58.602729Z", "created_at": "2025-06-03T21:28:53.673000Z", "data_removed": false, "error": null, "id": "s5ny1abwn5rma0cq6ysbzw0re8", "input": { "prompt": "Make the letters 3D, floating in space on a city street", "input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }, "logs": "Using seed: 558658691\nGenerating...\nGenerated image in 4.7sec\nDownloading 149928 bytes\nDownloaded 0.14MB in 0.14sec", "metrics": { "image_count": 1, "predict_time": 4.921643012, "total_time": 4.929729 }, "output": "https://replicate.delivery/xezq/Mbbd8Tx2YfRYXSEmLgblTzGtj4ZurpgPjLui6jAqfXLasRzUA/tmpkav_ivyd.jpg", "started_at": "2025-06-03T21:28:53.681086Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-xpekfj5uhysb2iyghdmeoezon5ywfblxkpmvujt6ujnmeobb475a", "get": "https://api.replicate.com/v1/predictions/s5ny1abwn5rma0cq6ysbzw0re8", "cancel": "https://api.replicate.com/v1/predictions/s5ny1abwn5rma0cq6ysbzw0re8/cancel" }, "version": "hidden" }Generated inUsing seed: 558658691 Generating... Generated image in 4.7sec Downloading 149928 bytes Downloaded 0.14MB in 0.14secPrediction
black-forest-labs/flux-kontext-maxOfficial modelIDy7efmy7zedrmc0cq70ev4n9k2rStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Convert to a 90s cartoon
- aspect_ratio
- match_input_image
- output_format
- jpg
- safety_tolerance
- 2
{ "prompt": "Convert to a 90s cartoon", "input_image": "https://replicate.delivery/pbxt/N5nDZ3aPQjsn5oCHPnNjEiBFiHARiiFgEuJK6ignD0OIvmhA/replicate-prediction-vnpm85cs6hrma0cq257ag2brcw.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }Install Replicate’s Node.js client library:npm install replicateImport 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 black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Convert to a 90s cartoon", input_image: "https://replicate.delivery/pbxt/N5nDZ3aPQjsn5oCHPnNjEiBFiHARiiFgEuJK6ignD0OIvmhA/replicate-prediction-vnpm85cs6hrma0cq257ag2brcw.png", aspect_ratio: "match_input_image", output_format: "jpg", safety_tolerance: 2 }; const output = await replicate.run("black-forest-labs/flux-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 replicateImport the client:import replicateRun black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-kontext-max", input={ "prompt": "Convert to a 90s cartoon", "input_image": "https://replicate.delivery/pbxt/N5nDZ3aPQjsn5oCHPnNjEiBFiHARiiFgEuJK6ignD0OIvmhA/replicate-prediction-vnpm85cs6hrma0cq257ag2brcw.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-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": "Convert to a 90s cartoon", "input_image": "https://replicate.delivery/pbxt/N5nDZ3aPQjsn5oCHPnNjEiBFiHARiiFgEuJK6ignD0OIvmhA/replicate-prediction-vnpm85cs6hrma0cq257ag2brcw.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-kontext-max/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-06-03T23:26:25.236091Z", "created_at": "2025-06-03T23:26:19.507000Z", "data_removed": false, "error": null, "id": "y7efmy7zedrmc0cq70ev4n9k2r", "input": { "prompt": "Convert to a 90s cartoon", "input_image": "https://replicate.delivery/pbxt/N5nDZ3aPQjsn5oCHPnNjEiBFiHARiiFgEuJK6ignD0OIvmhA/replicate-prediction-vnpm85cs6hrma0cq257ag2brcw.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }, "logs": "Using seed: 1013056281\nGenerating...\nGenerated image in 5.5sec\nDownloading 240696 bytes\nDownloaded 0.23MB in 0.13sec", "metrics": { "image_count": 1, "predict_time": 5.722466079, "total_time": 5.729091 }, "output": "https://replicate.delivery/xezq/wUmMa5y9wvKQFdBeRN7VVByZPkS26nw6PTyewCMZtgchaTzUA/tmptd2l5c_c.jpg", "started_at": "2025-06-03T23:26:19.513625Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-xtjiaklrdwh5ntpzao6iyn4rdje5rlkvhc5g43abgnof2alf4sxa", "get": "https://api.replicate.com/v1/predictions/y7efmy7zedrmc0cq70ev4n9k2r", "cancel": "https://api.replicate.com/v1/predictions/y7efmy7zedrmc0cq70ev4n9k2r/cancel" }, "version": "hidden" }Generated inUsing seed: 1013056281 Generating... Generated image in 5.5sec Downloading 240696 bytes Downloaded 0.23MB in 0.13secPrediction
black-forest-labs/flux-kontext-maxOfficial modelIDdfxgdb0a4nrme0cq70frqrbdpmStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Change the jacket and t-shirt to be viking warrior clothing
- aspect_ratio
- match_input_image
- output_format
- jpg
- safety_tolerance
- 2
{ "prompt": "Change the jacket and t-shirt to be viking warrior clothing", "input_image": "https://replicate.delivery/pbxt/N5iLXjvNS5dMD0GjiM25uB2uG4RJic86KS6GUOA25CGyARiC/red-jacket.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }Install Replicate’s Node.js client library:npm install replicateImport 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 black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Change the jacket and t-shirt to be viking warrior clothing", input_image: "https://replicate.delivery/pbxt/N5iLXjvNS5dMD0GjiM25uB2uG4RJic86KS6GUOA25CGyARiC/red-jacket.jpg", aspect_ratio: "match_input_image", output_format: "jpg", safety_tolerance: 2 }; const output = await replicate.run("black-forest-labs/flux-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 replicateImport the client:import replicateRun black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-kontext-max", input={ "prompt": "Change the jacket and t-shirt to be viking warrior clothing", "input_image": "https://replicate.delivery/pbxt/N5iLXjvNS5dMD0GjiM25uB2uG4RJic86KS6GUOA25CGyARiC/red-jacket.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-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": "Change the jacket and t-shirt to be viking warrior clothing", "input_image": "https://replicate.delivery/pbxt/N5iLXjvNS5dMD0GjiM25uB2uG4RJic86KS6GUOA25CGyARiC/red-jacket.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-kontext-max/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-06-03T23:27:33.335827Z", "created_at": "2025-06-03T23:27:27.781000Z", "data_removed": false, "error": null, "id": "dfxgdb0a4nrme0cq70frqrbdpm", "input": { "prompt": "Change the jacket and t-shirt to be viking warrior clothing", "input_image": "https://replicate.delivery/pbxt/N5iLXjvNS5dMD0GjiM25uB2uG4RJic86KS6GUOA25CGyARiC/red-jacket.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }, "logs": "Using seed: 1499840184\nGenerating...\nGenerated image in 5.4sec\nDownloading 137164 bytes\nDownloaded 0.13MB in 0.12sec", "metrics": { "image_count": 1, "predict_time": 5.54642391, "total_time": 5.554827 }, "output": "https://replicate.delivery/xezq/2UQqjm1eleigHkE22C2c2JBEsx4OoeSxcZoAh05WxuDL3mmpA/tmpflv47wo1.jpg", "started_at": "2025-06-03T23:27:27.789403Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-5vd7iuguftlyxylgikb7nsuvcfusqbcvfg3icenuam2h2sip7d3a", "get": "https://api.replicate.com/v1/predictions/dfxgdb0a4nrme0cq70frqrbdpm", "cancel": "https://api.replicate.com/v1/predictions/dfxgdb0a4nrme0cq70frqrbdpm/cancel" }, "version": "hidden" }Generated inUsing seed: 1499840184 Generating... Generated image in 5.4sec Downloading 137164 bytes Downloaded 0.13MB in 0.12secPrediction
black-forest-labs/flux-kontext-maxOfficial modelIDe3tb9ea9msrm80cq70hv4hd960StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table
- aspect_ratio
- match_input_image
- output_format
- jpg
- safety_tolerance
- 2
{ "prompt": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iBZzOxfsPi4juWQeAD9tUob9Q2eWfFceKwTseISixyNHY8/wave.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }Install Replicate’s Node.js client library:npm install replicateImport 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 black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", input_image: "https://replicate.delivery/pbxt/N5iBZzOxfsPi4juWQeAD9tUob9Q2eWfFceKwTseISixyNHY8/wave.png", aspect_ratio: "match_input_image", output_format: "jpg", safety_tolerance: 2 }; const output = await replicate.run("black-forest-labs/flux-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 replicateImport the client:import replicateRun black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-kontext-max", input={ "prompt": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iBZzOxfsPi4juWQeAD9tUob9Q2eWfFceKwTseISixyNHY8/wave.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-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": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iBZzOxfsPi4juWQeAD9tUob9Q2eWfFceKwTseISixyNHY8/wave.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-kontext-max/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-06-03T23:32:12.698528Z", "created_at": "2025-06-03T23:32:06.182000Z", "data_removed": false, "error": null, "id": "e3tb9ea9msrm80cq70hv4hd960", "input": { "prompt": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iBZzOxfsPi4juWQeAD9tUob9Q2eWfFceKwTseISixyNHY8/wave.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }, "logs": "Using seed: 221877748\nGenerating...\nGenerated image in 5.6sec\nDownloading 186841 bytes\nDownloaded 0.18MB in 0.84sec", "metrics": { "image_count": 1, "predict_time": 6.499949122, "total_time": 6.516528 }, "output": "https://replicate.delivery/xezq/m7f9eei1MfAKjRqlEjGiZshYDk4CkZgzUUFfa3fXIcgCfvpZKA/tmpxlir0ijc.jpg", "started_at": "2025-06-03T23:32:06.198579Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-vntdbzihurlwyfavvxtf5isnog4nsouy7dinhp3shtnqiantppfq", "get": "https://api.replicate.com/v1/predictions/e3tb9ea9msrm80cq70hv4hd960", "cancel": "https://api.replicate.com/v1/predictions/e3tb9ea9msrm80cq70hv4hd960/cancel" }, "version": "hidden" }Generated inUsing seed: 221877748 Generating... Generated image in 5.6sec Downloading 186841 bytes Downloaded 0.18MB in 0.84secPrediction
black-forest-labs/flux-kontext-maxOfficial modelIDdxjab8c2m9rmc0cq70haqvqk0cStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- In the text "Choose joy", change 'joy' to 'Max', so it says "Choose Max"
- aspect_ratio
- match_input_image
- output_format
- jpg
- safety_tolerance
- 2
{ "prompt": "In the text \"Choose joy\", change 'joy' to 'Max', so it says \"Choose Max\"", "input_image": "https://replicate.delivery/pbxt/N5i9dOFCmia9wY5ZeCHJXuowK3VC0mFvVF3zvDs40wHeEzM9/choose-joy.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }Install Replicate’s Node.js client library:npm install replicateImport 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 black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "In the text \"Choose joy\", change 'joy' to 'Max', so it says \"Choose Max\"", input_image: "https://replicate.delivery/pbxt/N5i9dOFCmia9wY5ZeCHJXuowK3VC0mFvVF3zvDs40wHeEzM9/choose-joy.png", aspect_ratio: "match_input_image", output_format: "jpg", safety_tolerance: 2 }; const output = await replicate.run("black-forest-labs/flux-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 replicateImport the client:import replicateRun black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-kontext-max", input={ "prompt": "In the text \"Choose joy\", change 'joy' to 'Max', so it says \"Choose Max\"", "input_image": "https://replicate.delivery/pbxt/N5i9dOFCmia9wY5ZeCHJXuowK3VC0mFvVF3zvDs40wHeEzM9/choose-joy.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-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": "In the text \\"Choose joy\\", change \'joy\' to \'Max\', so it says \\"Choose Max\\"", "input_image": "https://replicate.delivery/pbxt/N5i9dOFCmia9wY5ZeCHJXuowK3VC0mFvVF3zvDs40wHeEzM9/choose-joy.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-kontext-max/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-06-03T23:31:20.341940Z", "created_at": "2025-06-03T23:31:15.234000Z", "data_removed": false, "error": null, "id": "dxjab8c2m9rmc0cq70haqvqk0c", "input": { "prompt": "In the text \"Choose joy\", change 'joy' to 'Max', so it says \"Choose Max\"", "input_image": "https://replicate.delivery/pbxt/N5i9dOFCmia9wY5ZeCHJXuowK3VC0mFvVF3zvDs40wHeEzM9/choose-joy.png", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }, "logs": "Using seed: 1022994057\nGenerating...\nGenerated image in 4.8sec\nDownloading 131323 bytes\nDownloaded 0.13MB in 0.22sec", "metrics": { "image_count": 1, "predict_time": 5.10008126, "total_time": 5.10794 }, "output": "https://replicate.delivery/xezq/wdl4o1Xl245cC9FhXzL3dmkQMtF7fP06M6RofPGkDTkIfmmpA/tmpixuf1m9b.jpg", "started_at": "2025-06-03T23:31:15.241858Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-uqo7kmshkxkbubuztgt7sf2lgnwjwnbwdc7j4befd5cwnb5xjzoq", "get": "https://api.replicate.com/v1/predictions/dxjab8c2m9rmc0cq70haqvqk0c", "cancel": "https://api.replicate.com/v1/predictions/dxjab8c2m9rmc0cq70haqvqk0c/cancel" }, "version": "hidden" }Generated inUsing seed: 1022994057 Generating... Generated image in 4.8sec Downloading 131323 bytes Downloaded 0.13MB in 0.22secPrediction
black-forest-labs/flux-kontext-maxOfficial modelID7fesg94291rma0cq70jbc87rp8StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table
- aspect_ratio
- match_input_image
- output_format
- jpg
- safety_tolerance
- 2
{ "prompt": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iCcTQhEhMKTKiSMzkLNzVUUpwCID4RKHCgOY2KT9yOilRi/vincent-van-gogh.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }Install Replicate’s Node.js client library:npm install replicateImport 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 black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", input_image: "https://replicate.delivery/pbxt/N5iCcTQhEhMKTKiSMzkLNzVUUpwCID4RKHCgOY2KT9yOilRi/vincent-van-gogh.jpg", aspect_ratio: "match_input_image", output_format: "jpg", safety_tolerance: 2 }; const output = await replicate.run("black-forest-labs/flux-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 replicateImport the client:import replicateRun black-forest-labs/flux-kontext-max using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-kontext-max", input={ "prompt": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iCcTQhEhMKTKiSMzkLNzVUUpwCID4RKHCgOY2KT9yOilRi/vincent-van-gogh.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-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": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iCcTQhEhMKTKiSMzkLNzVUUpwCID4RKHCgOY2KT9yOilRi/vincent-van-gogh.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-kontext-max/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-06-03T23:33:31.969004Z", "created_at": "2025-06-03T23:33:26.216000Z", "data_removed": false, "error": null, "id": "7fesg94291rma0cq70jbc87rp8", "input": { "prompt": "Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table", "input_image": "https://replicate.delivery/pbxt/N5iCcTQhEhMKTKiSMzkLNzVUUpwCID4RKHCgOY2KT9yOilRi/vincent-van-gogh.jpg", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2 }, "logs": "Using seed: 901309748\nGenerating...\nGenerated image in 5.5sec\nDownloading 294598 bytes\nDownloaded 0.28MB in 0.14sec", "metrics": { "image_count": 1, "predict_time": 5.7451585099999996, "total_time": 5.753004 }, "output": "https://replicate.delivery/xezq/hIjdoxmYjIJXJl92qwWIl5slBt0qlGIogInGuvDd419S40MF/tmpdgps6syt.jpg", "started_at": "2025-06-03T23:33:26.223846Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-mboa2ampp37vx5if3a562fbhamlbvgkiw4vnvzouv6ooyr46wjtq", "get": "https://api.replicate.com/v1/predictions/7fesg94291rma0cq70jbc87rp8", "cancel": "https://api.replicate.com/v1/predictions/7fesg94291rma0cq70jbc87rp8/cancel" }, "version": "hidden" }Generated inUsing seed: 901309748 Generating... Generated image in 5.5sec Downloading 294598 bytes Downloaded 0.28MB in 0.14sec
Want to make some of these yourself?
Run this model










