Hggd/mage-flow
0
1---2title: Mage-Flow3emoji: 🎨4colorFrom: green5colorTo: purple6sdk: gradio7sdk_version: 6.15.18app_file: app.py9short_description: Efficient native-resolution image generation and editing10python_version: "3.12"11startup_duration_timeout: 30m12---13 14# Mage-Flow15 16Efficient Native-Resolution Foundation Model for Image Generation and Editing.17 18This Space demonstrates [Mage-Flow](https://huggingface.co/papers/2607.19064) from Microsoft, a 4B-scale image generation and editing foundation model through a single unified interface:19 20- **No image** → text-to-image generation.21- **With an uploaded image** → instruction-based image editing.22 23Choose **Mage-Flow-Turbo · Fast** (4 steps, CFG 1.0) or **Mage-Flow · Quality**. The quality variant uses 20 steps / CFG 5.0 for generation and 30 steps / CFG 5.0 for editing; uploading or removing an image updates these defaults automatically.24 25## Usage26 271. Enter a prompt.282. *(Optional)* Upload an image to edit — the prompt becomes an edit instruction.293. Choose Fast or Quality, then click **Run**.30 31## References32 33- Paper: [Mage-Flow: An Efficient Native-Resolution Foundation Model for Image Generation and Editing](https://huggingface.co/papers/2607.19064)34- GitHub: [microsoft/Mage](https://github.com/microsoft/Mage)35- Models: [Mage-Flow](https://huggingface.co/microsoft/Mage-Flow), [Mage-Flow-Turbo](https://huggingface.co/microsoft/Mage-Flow-Turbo), [Mage-Flow-Edit](https://huggingface.co/microsoft/Mage-Flow-Edit), [Mage-Flow-Edit-Turbo](https://huggingface.co/microsoft/Mage-Flow-Edit-Turbo)