flux-kontext-apps/impossible-scenarios

Experience impossible adventures and extreme scenarios from a single image

Quickly change someone's hair style and hair color, powered by FLUX.1 Kontext [pro]

Create a professional headshot photo from any single image

Create a series of portrait photos from a single image

Put yourself in an iconic location around the world from a single image

An experimental FLUX Kontext model that can combine two input images

Bring your subjects into focus with FLUX.1 Kontext [pro]

Turn your image into a cartoon with FLUX.1 Kontext [pro]

Remove all text from an image with FLUX.1 Kontext

Use FLUX Kontext to restore, fix scratches and damage, and colorize old photos

Add simple filters to your images

An experimental model with FLUX Kontext Pro that can combine two input images

FLUX Kontext max with list input for multiple images

Turn yourself into a renaissance-era painting for those renaissance moments

Become a character, in style

Use flux-kontext-pro to change the first or last frame of a video. Useful to use as inputs for restyling an entire video in a certain way

"Zoom out" with this FLUX Kontext LoRA

Turn satellite imagery into professional-quality aerial shots

Overlay one image over another to merge them

InScene is a LoRA by Peter O’Malley (POM) that's designed to generate images that maintain scene consistency with a source image. It is trained on top of Flux.1-Kontext.dev.

Use kontext to turn any image into an emoji, using a lora by starsfriday

Experience impossible adventures and extreme scenarios from a single image
Prediction
flux-kontext-apps/impossible-scenariosOfficial modelID63ekgs91ksrme0cq3hsvyv2m98StatusSucceededSourceWebTotal durationCreatedInput
- gender
- none
- aspect_ratio
- match_input_image
- impossible_scenario
- Floating in space as an astronaut
{ "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Floating in space as an astronaut" }
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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { gender: "none", input_image: "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", aspect_ratio: "match_input_image", impossible_scenario: "Floating in space as an astronaut" }; const output = await replicate.run("flux-kontext-apps/impossible-scenarios", { 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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/impossible-scenarios", input={ "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Floating in space as an astronaut" } ) # 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 flux-kontext-apps/impossible-scenarios 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": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Floating in space as an astronaut" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/impossible-scenarios/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:30:03.569936Z", "created_at": "2025-05-29T14:29:56.766000Z", "data_removed": false, "error": null, "id": "63ekgs91ksrme0cq3hsvyv2m98", "input": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Floating in space as an astronaut" }, "logs": "Prompt: Change the background and setting to: Floating in space as an astronaut. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation.\nUsing seed: 77999200\nGenerating...\nGenerated image in 5.4sec\nDownloading 1394648 bytes\nDownloaded 1.33MB in 1.28sec", "metrics": { "predict_time": 6.789339493, "total_time": 6.803936 }, "output": "https://replicate.delivery/xezq/PTE2MLNyLOpLAl0bA4O6OCZlyEcJVJpUllHtP1LiJX7ahYMF/tmpb_svj4zf.png", "started_at": "2025-05-29T14:29:56.780597Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zlzdeemciz3pebkwwi3mhrrlhoslspnnbst2gdrpyis3ctbgdilq", "get": "https://api.replicate.com/v1/predictions/63ekgs91ksrme0cq3hsvyv2m98", "cancel": "https://api.replicate.com/v1/predictions/63ekgs91ksrme0cq3hsvyv2m98/cancel" }, "version": "hidden" }
Generated inPrompt: Change the background and setting to: Floating in space as an astronaut. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation. Using seed: 77999200 Generating... Generated image in 5.4sec Downloading 1394648 bytes Downloaded 1.33MB in 1.28sec
Prediction
flux-kontext-apps/impossible-scenariosOfficial modelIDy7vveqmva1rm80cq3hsvad3thcStatusSucceededSourceWebTotal durationCreatedInput
{ "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Skydiving from 30,000 feet" }
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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { gender: "none", input_image: "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", aspect_ratio: "match_input_image", impossible_scenario: "Skydiving from 30,000 feet" }; const output = await replicate.run("flux-kontext-apps/impossible-scenarios", { 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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/impossible-scenarios", input={ "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Skydiving from 30,000 feet" } ) # 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 flux-kontext-apps/impossible-scenarios 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": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Skydiving from 30,000 feet" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/impossible-scenarios/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:30:34.270459Z", "created_at": "2025-05-29T14:30:27.920000Z", "data_removed": false, "error": null, "id": "y7vveqmva1rm80cq3hsvad3thc", "input": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/N5r0L7Cv9vSvsrRe73caYcmcj273A7LGH7oAck8y31xf1ixy/Screenshot%202025-05-02%20at%2015.21.27.png", "aspect_ratio": "match_input_image", "impossible_scenario": "Skydiving from 30,000 feet" }, "logs": "Prompt: Change the background and setting to: Skydiving from 30,000 feet. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation.\nUsing seed: 1340567541\nGenerating...\nGenerated image in 5.0sec\nDownloading 1316302 bytes\nDownloaded 1.26MB in 1.28sec", "metrics": { "image_count": 1, "predict_time": 6.341368104, "total_time": 6.350459 }, "output": "https://replicate.delivery/xezq/4et7svrT0wzOESMn4J4BAKBAYf9DfxeUfgO5btuvmj0WxQMmC/tmpho_ksonq.png", "started_at": "2025-05-29T14:30:27.929091Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-frllzfhmo3xxdcogai3ax4nhr5h36hmhqjhfoynllx55wyltd3iq", "get": "https://api.replicate.com/v1/predictions/y7vveqmva1rm80cq3hsvad3thc", "cancel": "https://api.replicate.com/v1/predictions/y7vveqmva1rm80cq3hsvad3thc/cancel" }, "version": "hidden" }
Generated inPrompt: Change the background and setting to: Skydiving from 30,000 feet. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation. Using seed: 1340567541 Generating... Generated image in 5.0sec Downloading 1316302 bytes Downloaded 1.26MB in 1.28sec
Prediction
flux-kontext-apps/impossible-scenariosOfficial modelIDfg56k3gpydrmc0cq3hxv6re7k4StatusSucceededSourceWebTotal durationCreatedInput
{ "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" }
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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { gender: "none", input_image: "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", aspect_ratio: "match_input_image", impossible_scenario: "Random" }; const output = await replicate.run("flux-kontext-apps/impossible-scenarios", { 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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/impossible-scenarios", input={ "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" } ) # 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 flux-kontext-apps/impossible-scenarios 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": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/impossible-scenarios/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:38:44.095289Z", "created_at": "2025-05-29T14:38:38.323000Z", "data_removed": false, "error": null, "id": "fg56k3gpydrmc0cq3hxv6re7k4", "input": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" }, "logs": "Random scenario selected: Base jumping off a skyscraper\nPrompt: Change the background and setting to: Base jumping off a skyscraper. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation.\nUsing seed: 1256755662\nGenerating...\nGenerated image in 5.2sec\nDownloading 1784147 bytes\nDownloaded 1.70MB in 0.45sec", "metrics": { "image_count": 1, "predict_time": 5.764240676, "total_time": 5.772289 }, "output": "https://replicate.delivery/xezq/Bc50b6qDT2ZJP1LrhEkFhFV5mDJ6ftTK5SV0ZBytHzH6GxYKA/tmpzjzqab2h.png", "started_at": "2025-05-29T14:38:38.331048Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-orfx4k36z7gxgklrnp54347sdlg7f6ddesgkfjhlhndztp2l36jq", "get": "https://api.replicate.com/v1/predictions/fg56k3gpydrmc0cq3hxv6re7k4", "cancel": "https://api.replicate.com/v1/predictions/fg56k3gpydrmc0cq3hxv6re7k4/cancel" }, "version": "hidden" }
Generated inRandom scenario selected: Base jumping off a skyscraper Prompt: Change the background and setting to: Base jumping off a skyscraper. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation. Using seed: 1256755662 Generating... Generated image in 5.2sec Downloading 1784147 bytes Downloaded 1.70MB in 0.45sec
Prediction
flux-kontext-apps/impossible-scenariosOfficial modelIDz16jqft0wsrme0cq3hxth770bwStatusSucceededSourceWebTotal durationCreatedInput
{ "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" }
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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { gender: "none", input_image: "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", aspect_ratio: "match_input_image", impossible_scenario: "Random" }; const output = await replicate.run("flux-kontext-apps/impossible-scenarios", { 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/impossible-scenarios using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "flux-kontext-apps/impossible-scenarios", input={ "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" } ) # 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 flux-kontext-apps/impossible-scenarios 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": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" } }' \ https://api.replicate.com/v1/models/flux-kontext-apps/impossible-scenarios/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-05-29T14:38:55.271274Z", "created_at": "2025-05-29T14:38:49.062000Z", "data_removed": false, "error": null, "id": "z16jqft0wsrme0cq3hxth770bw", "input": { "gender": "none", "input_image": "https://replicate.delivery/pbxt/MtNw1Safv0BWXmoNNObPAZdu9vMoaUZBWXlFPtDOpDgcMNFr/0_1.webp", "aspect_ratio": "match_input_image", "impossible_scenario": "Random" }, "logs": "Random scenario selected: Parachuting into a volcano\nPrompt: Change the background and setting to: Parachuting into a volcano. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation.\nUsing seed: 237276493\nGenerating...\nGenerated image in 4.9sec\nDownloading 1597277 bytes\nDownloaded 1.52MB in 1.20sec", "metrics": { "image_count": 1, "predict_time": 6.200971309, "total_time": 6.209274 }, "output": "https://replicate.delivery/xezq/d3evffWMvvUJBpkG7dOYF56dgzQkQLH405gOcbIU1Obf3IGTB/tmpleafnpeg.png", "started_at": "2025-05-29T14:38:49.070303Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-spzc2xdjtlocgzp7yfomld3xpqr3mz33wv2dct2j2dbfgm36y6ia", "get": "https://api.replicate.com/v1/predictions/z16jqft0wsrme0cq3hxth770bw", "cancel": "https://api.replicate.com/v1/predictions/z16jqft0wsrme0cq3hxth770bw/cancel" }, "version": "hidden" }
Generated inRandom scenario selected: Parachuting into a volcano Prompt: Change the background and setting to: Parachuting into a volcano. Keep the person in the exact same position, pose, scale, camera angle, and framing. Preserve them exact facial features, hairstyle, eye color, and facial expression. Add appropriate protective gear or outfit if needed for the scenario while maintaining them identity. Only replace the environment around them. Make it look realistic and dramatic as if them is actually in this extreme situation. Using seed: 237276493 Generating... Generated image in 4.9sec Downloading 1597277 bytes Downloaded 1.52MB in 1.20sec
Want to make some of these yourself?
Run this model