Model Details
FireRed Image Edit is a state-of-the-art model that allows you to modify images using simple text instructions. This versatile tool can handle a wide range of editing tasks, from simple adjustments to complex compositions involving multiple images. By providing a descriptive prompt, you can guide the model to perform precise changes, making it an intuitive solution for creative image manipulation.
The model's core strength lies in its ability to understand and execute edits based on natural language. Whether you need to alter a background, change an object's color, or add new elements, a clear instruction is all it takes. Furthermore, FireRed Image Edit excels at tasks that require multiple image references. You can seamlessly combine subjects from one photo with the background of another, transfer the artistic style from a reference image, or even create virtual try-on scenarios by placing clothing items onto a model.
### Key Features - **Instruction-Based Editing:** Use text prompts in English or Chinese to describe your desired modifications. - **Multi-Image Referencing:** Combine elements or transfer styles from two or more source images. - **Fine-Tuning Controls:** Adjust parameters like `guidance_scale` to control how closely the model follows your prompt and `num_inference_steps` for image quality. - **Multiple Outputs:** Generate up to four variations of your edit in a single run to find the perfect result.
### Tips - For best results, write clear and specific prompts. Instead of "make it better," try "change the background to a sunny beach with blue skies." - When combining images, use high-quality sources for a more seamless blend. - Use the `seed` parameter to generate reproducible results if you need consistency across edits.
### Example Usage To run this model using the JavaScript client: ```javascript import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe("fireredteam/firered-image-edit", { input: { prompt: "Make trees grow on the given book", image_urls: [ "https://example.url/example-image.png", "https://example.url/example-image2.jpg", ], num_inference_steps: 30, guidance_scale: 4 }, });
console.log(result); ```


