Spaces:
Running
on
Zero
image to image using FLUX.1 Kontext [dev]
hello can you listen me like we want to create a website like when I upload my image in my website I will have a generate button and when I click on the generate button it will show me the generated image but the main important thing is that when I upload my normal image the prompt will be added to my normal image and the generated image will be shown on the screen and it also have a download button you can also do it using a game face and I also have face API key and that's mean we want to do image to image conversion and please make a complete code for it and let me know how to do and FLUX.1 Kontext [dev] API Usage and use hugging face

Change background to a beautiful natural scenery (like greenery, mountains, or park), enhance lighting and colors for a cinematic tone. Keep faces 100% identical and natural — no change in expression or shape. Sharpen details, smooth skin slightly but keep realistic texture. Balance brightness and contrast for a professional portrait look. Output in ultra high quality, like captured with a full-frame mirrorless camera, with accurate skin tones and soft depth of field background blur.