Generate and edit high-quality images using Gemini 2.5 Flash Image and Gemini 3 Pro Image (Nano Banana). Supports Text-to-Image, Style Transfer, Virtual Try-On, and Character Consistency.
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Use this skill to generate and edit images using the google-genai Python SDK with Gemini's specialized image models (Nano Banana).
from google import genai
from google.genai import types
from PIL import Image
import io
client = genai.Client()gemini-2.5-flash-image (Nano Banana): Fast, high-quality generation and editing. Best for most use cases.gemini-3-pro-image-preview (Nano Banana Pro): Highest fidelity, supports 2K and 4K resolution, complex prompt adherence, and grounding.response = client.models.generate_content(
model='gemini-2.5-flash-image',
contents='A cute robot eating a banana',
config=types.GenerateContentConfig(
response_modalities=['IMAGE']
)
)response = client.models.generate_content(
model='gemini-3-pro-image-preview',
contents=[
types.Part.from_uri(file_uri='gs://.../shoe.jpg', mime_type='image/jpeg'),
"Change the color of the shoe to neon green."
],
config=types.GenerateContentConfig(response_modalities=['IMAGE'])
)cnemri/google-genai-skills
7277476
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.