



const main = async () => {
const response = await fetch('https://api.ai.cc/v1/images/generations', {
method: 'POST',
headers: {
Authorization: 'Bearer ',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'google/gemini-2.5-flash-image-edit',
prompt: 'Mona Lisa with glasses',
image_urls: [
'https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/960px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg',
'https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Glasses_black.jpg/960px-Glasses_black.jpg',
]
}),
}).then((res) => res.json());
console.log('Generation:', response);
};
main();
import requests
def main():
response = requests.post(
"https://api.ai.cc/v1/images/generations",
headers={
"Authorization": "Bearer ",
"Content-Type": "application/json",
},
json={
"prompt": "Mona Lisa with glasses",
"model": "google/gemini-2.5-flash-image-edit",
"image_urls": [
"https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/960px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg",
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Glasses_black.jpg/960px-Glasses_black.jpg",
]
},
)
response.raise_for_status()
data = response.json()
print("Generation:", data)
if __name__ == "__main__":
main()
-
AI Playground

Test all API models in the sandbox environment before you integrate.
We provide more than 300 models to integrate into your app.


Product Detail
Introducing Gemini 2.5 Flash Image Edit, codenamed Nano Banana, Google DeepMind's state-of-the-art AI model developed under the Gemini 3 initiative. This advanced tool revolutionizes image generation and editing, allowing users to perform highly precise, natural language-driven edits without the need for manual masking. It seamlessly integrates into creative workflows, excelling at merging multiple images into cohesive scenes, maintaining character and style consistency, and producing photorealistic, high-quality results with lightning-fast inference.
✓ Transform your visuals: This model empowers professional creators and marketers to streamline image manipulation tasks with detailed, targeted visual transformations. Simply use descriptive prompts like "change the background to a neon cityscape," "restore a faded photo," or "alter the character's outfit." Gemini 2.5 Flash Image Edit is ideal for applications including product photography enhancement, AI influencer content generation, social media campaigns, film and game post-production, and architectural visualization.

Prompt: A close-up shot of a romantic moment holding each other while it snows
🔧 Technical Specifications
- ✅ Multi-Image Fusion: Allows integration of objects or restyling by merging up to three images into a single composition.
- ✅ Consistent Identities: Maintains character, object, and style identities across multiple images and editing sessions, vital for branding and narrative coherence.
- ✅ Conversational Editing: Supports targeted visual transformations through intuitive natural language commands (e.g., blurring backgrounds, removing objects, changing poses, and colorizing images).
- ✅ Advanced Visual Reasoning: Incorporates integrated world knowledge, enabling complex image understanding beyond mere photorealism.
- ✅ SynthID Watermarking: Embeds invisible digital watermarks in outputs to ensure transparency and responsible AI usage.
- ✅ Broad Input Support: Accepts native inputs in PNG, JPEG, and WEBP formats, with an input size of up to 500 MB.
- ✅ Optimized Efficiency: Engineered for low latency and cost-efficiency, making it suitable for real-time interactive editing and rapid prototyping workflows.
🚀 Performance Metrics
Gemini 2.5 Flash Image Edit leads the industry in balanced excellence, combining high inference speed with superior image quality. It consistently outperforms competitor models in crucial aspects such as prompt adherence, photorealism, and character consistency. Its efficiency in memory usage and processing significantly accelerates workflows while maintaining professional-grade fidelity, making it the preferred choice for creative industries that demand rapid, precise editing with consistent style.

Visualized Performance Metrics Comparison
💰 Key Use Cases
- ★ Product Photography Enhancement: Achieve complex scene adjustments and detailed product imagery.
- ★ AI-Generated Influencer Content: Create visuals with consistent identity and branding preservation.
- ★ Social Media Campaigns: Rapidly generate high-quality visual content for dynamic campaigns.
- ★ Film & Game Post-Production: Facilitate scene reconstruction, object manipulation, and visual effects.
- ★ Architectural Visualization: Adapt designs and concepts through seamless style and texture transfers.
- ★ Batch Processing: Efficiently generate consistent branding and narrative assets at scale.
💲 API Pricing
Cost-effective: $0.04095 per image
💡 Tips for Maximizing Efficiency
For the best results with Gemini 2.5 Flash Image Edit, provide explicit, context-rich natural language prompts. Clearly describe your desired edits, specifying style, composition, lighting, and particular subject modifications. Avoid vague directions to ensure the model accurately interprets your spatial and stylistic intents. Leverage its iterative editing capabilities for complex transformations, consistently keeping prompt details precise to maintain high fidelity and coherence.
.jpg)
Iterative Prompting Example: Prompt 1: The t-rex is in a halloween costume. Prompt 2: Now try a more fun costume. Prompt 3: Fun. Now let's try a cute costume. Prompt 4: How about a pirate costume?
💻 Code Sample
📈 Comparison with Other Leading Models
- ✅ VS Flux Kontext: Gemini consistently delivers coherent and photorealistic edits in a single pass. In contrast, Flux Kontext often requires multiple attempts for precise facial details and struggles with consistent character preservation.
- ✅ VS DALL-E 3: Gemini achieves superior prompt adherence, faster generation speeds, improved photorealism, and more accurate text rendering within complex compositions and style transfers.
- ✅ VS Midjourney v7: Gemini offers superior style consistency and layout-aware outpainting for more natural scene extensions and better spatial preservation. Midjourney v7, while producing stylized images, often yields less consistent edits for professional use.
- ✅ VS Stable Diffusion 3: Gemini provides higher semantic accuracy, faster processing speeds, and better memory efficiency, optimized specifically for mobile TPU architectures and real-time workflows. Stable Diffusion 3 is faster in some scenarios but demonstrates less consistency in style and coherence.
❓ Frequently Asked Questions (FAQ)
1. What efficient architecture enables Gemini 2.5 Flash Image Edit's rapid yet precise image manipulation?
Gemini 2.5 Flash Image Edit employs a streamlined conditional diffusion architecture optimized for low-latency image editing while maintaining high precision. It features sparse attention mechanisms, efficient cross-modal alignment for quick instruction interpretation, and progressive refinement pipelines. This allows for complex edits with response times under 500ms, preserving visual quality and semantic accuracy.
2. How does the model maintain editing quality despite accelerated processing?
The architecture implements intelligent quality-efficiency tradeoffs through selective high-detail processing of critical regions, early visual coherence assessment, and adaptive computation allocation. It employs efficient semantic understanding, streamlined object manipulation, and optimized style transfer to ensure that accelerated edits maintain professional quality standards, crucial for interactive applications.
3. What types of image editing tasks benefit most from the flash-optimized approach?
The model excels at rapid object removal and replacement, quick background modifications, fast style adjustments, efficient color and lighting corrections, and speedy compositional improvements. It maintains strong performance on common editing workflows including product image optimization, social media content enhancement, quick photo retouching, and real-time creative exploration, especially for applications requiring immediate visual feedback.
4. How does Gemini 2.5 Flash Image Edit handle real-time interactive editing sessions?
It supports seamless interactive editing through incremental processing of edit requests, efficient state management that tracks editing history without significant overhead, and responsive preview generation for immediate visual feedback. The model also features adaptive quality scaling, intelligent request prioritization, and streamlined undo/redo capabilities, enabling fluid creative exploration without performance degradation during intensive sessions.
5. What deployment advantages does the flash-optimized model offer for scalable editing services?
The efficiency optimizations enable cost-effective large-scale deployment through significantly reduced computational requirements per edit, improved throughput on shared infrastructure, and consistent performance under high concurrent usage. The model supports efficient batch processing of similar edits, adaptive resource utilization, and seamless integration into automated editing pipelines, making it ideal for services requiring reliable, responsive image editing at scale.
Learn how you can transformyour company with AICC APIs



Log in