Advanced Image Editing with AIGen SDK
Go beyond basic image generation. AIGen lets you edit existing images with powerful, prompt-driven transformations. Whether you're enhancing marketing assets, making profile edits, or translating visuals — the possibilities are endless.
✨ What Can You Edit?
With just a prompt and an image URL, you can:
- 🧼 Remove or replace backgrounds
- 🎨 Recolor, restyle, and rebrand content
- 🌍 Translate and localize visuals
- 🧠 Add context-aware objects and text
- 🤖 Combine real and AI-generated elements
🛠️ Basic Setup
const aigen = new AigenSDK('your-secret-key')
const url = await aigen.generateImage('Your edit prompt here', {
original: 'https://your.image/url.jpg',
model: 'gpt-image-1@openai'
})
🎨 Out-of-the-Box Examples
🕶️ Make Someone Look Like a Cyberpunk Hero
await aigen.generateImage('Transform the person in this photo into a cyberpunk hero. Add neon tattoos, a glowing visor, and a futuristic city in the background.', {
original: 'https://images.pexels.com/photos/1239291/pexels-photo-1239291.jpeg',
model: 'gpt-image-1@openai'
})
🏝️ Place Yourself on a Tropical Island
await aigen.generateImage('Remove the background and place the person on a sunny tropical island with palm trees and turquoise waters.', {
original: 'https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg',
model: 'gpt-image-1@openai'
})
🧢 Add a Branded Product to the Scene
await aigen.generateImage('Add a branded coffee cup with the logo "Yumankind" in the person’s hand. Make it look like a real product placement.', {
original: 'https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg',
model: 'gpt-image-1@openai'
})
🌐 Localize for a Foreign Market
await aigen.generateImage('Translate all visible text to Japanese and adapt the image style to match Japanese design preferences.', {
original: 'https://images.pexels.com/photos/3184436/pexels-photo-3184436.jpeg',
model: 'gpt-image-1@openai'
})
🧑🎨 Convert a Real Photo to a Van Gogh Painting
await aigen.generateImage('Turn this real photo into a painting in the style of Vincent Van Gogh.', {
original: 'https://images.pexels.com/photos/414612/pexels-photo-414612.jpeg',
model: 'gpt-image-1@openai'
})
🕵️ Add a Hidden Object in the Scene
await aigen.generateImage('Hide a tiny UFO in the sky. Make it subtle but visible when closely inspected.', {
original: 'https://images.pexels.com/photos/417173/pexels-photo-417173.jpeg',
model: 'gpt-image-1@openai'
})
📷 Turn Your Image Into a Magazine Cover
await aigen.generateImage('Add stylish magazine layout elements like headlines and sections. Make this photo look like a cover of TIME magazine.', {
original: 'https://images.pexels.com/photos/3760852/pexels-photo-3760852.jpeg',
model: 'gpt-image-1@openai'
})
🤯 Tips for Creative Editing
- Use style prompts like "as if shot in 70s film" or "comic book illustration"
- Layer intent: "Add product branding and simulate a rainy mood"
- Combine real data with fantasy: "Turn this into a scene from a dream"
- Ask to add text: use textures as the original image or describe textures for more realistic results (gpt-image-1@openai recommended for best results)
📌 Remember
- You need the
originalimage URL - Prompt must clearly describe what to change, add, or keep
- Best results with high-res photos and the
gpt-image-1@openaimodel, specially with text
👗 Virtual Models & Try-Ons (with Social Profiles)
You can use AIGen's profile importer to simulate virtual try-ons for yourself or your customers. This is perfect for:
- 🛍️ Showcasing how a clothing line looks on different people
- 📲 Personalizing eCommerce experiences
- 👕 Creating promotional visuals for fashion campaigns
✨ Try-On Examples
🧥 Add Branded Jacket to Profile
await aigen.generateImage('Show $$profile.name$$ wearing our new branded black hoodie with a minimal white logo. Use a plain white background for a clean ecommerce look.', {
original: 'https://URL_OF_THE_IMAGE_OF_YOUR_HOODIE.jpeg',
profile: 'instagram:username',
model: 'gpt-image-1@openai'
})
🧢 Fashion Line Preview with Customer Image
await aigen.generateImage('Replace the clothing on this person with our new summer collection: a light pastel green oversized t-shirt with the brand logo "LunaWave". Make it look like a lifestyle photoshoot.', {
profile: 'instagram:your.customer',
original: 'https://URL_OF_YOUR_SUMMER_COLLECTION.jpeg',
model: 'gpt-image-1@openai'
})
👠 Social Campaign with Influencers
await aigen.generateImage('Feature $$profile.name$$ wearing our limited edition sneakers in a streetwear editorial photo. Use a trendy urban backdrop.', {
profile: 'linkedin:jane.doe',
original: 'https://URL_OF_YOUR_SNEAKERS_IMAGE.jpeg',
model: 'gpt-image-1@openai'
})
✅ Tips
- Make sure your prompt is specific about clothing style, logo placement, or background
- Use high-quality original images or social profiles for best results
- Combine multiple profile prompts for fashion lookbooks or collections
You can even simulate before-and-after comparisons with the original and generated image!
💇 Style Swaps: Hair, Glasses, and Full Outfits
Use AIGen to explore different looks or preview fashion ideas before production. With just a photo or profile, you can simulate:
- ✂️ New hairstyles
- 👓 Glasses and accessories
- 🧥 Full outfit changes
🧑🎤 Try a New Hairstyle
await aigen.generateImage('Change $$profile.name$$’s hairstyle to a short platinum blonde cut with side shave. Keep the same lighting and background.', {
profile: 'instagram:username',
model: 'gpt-image-1@openai'
})
👓 Add Stylish Glasses
await aigen.generateImage('Add fashionable round eyeglasses with gold rims to this person. Make them look natural and high-end.', {
original: 'https://images.pexels.com/photos/1704488/pexels-photo-1704488.jpeg',
model: 'gpt-image-1@openai'
})
🧥 Full Outfit Change
await aigen.generateImage('Replace the current clothes with a tailored black blazer, white turtleneck, and slim-fit jeans. Make it look like a fashion editorial.', {
original: 'https://images.pexels.com/photos/428340/pexels-photo-428340.jpeg',
model: 'gpt-image-1@openai'
})
🧳 Combine With Social Profiles
await aigen.generateImage('Show $$profile.name$$ wearing our luxury travel outfit: beige trench coat, leather gloves, and a carry-on bag. Use an airport terminal background.', {
profile: 'facebook:john.doe',
model: 'gpt-image-1@openai'
})
👗 Pro Tip
Use this to:
- Show your audience how they’d look in your newest collection
- Run A/B tests with different styles for product pages
- Personalize lookbooks, catalogs, or influencer kits
💬 Want More Ideas?
Follow us on social media Instagram or Facebook or email support with your use case. We would love to know the creative ways you use AIGen!
❤️ Build creative magic at scale — with aigen.run
Other pages
AI models & Pricing Guide
List of all AI models you can use
Advanced Image Editing
All the options you have to edit images with AI
Generate images
All the options you have to generate images with AI
Image templates
How you can use image templates to have more fine control of the AI generated images
AIGen SDK (Node.js) Reference
This is the official reference for the AIGen Node.js SDK. Use it to generate AI images, personalize templates, and securely share results via signed URLs.