奈米香蕉 是社群暱稱/代號 Gemini 2.5 Flash 影像是 Google DeepMind 最新的圖像生成和編輯模型。它專為 編輯(你給它自然語言指令)特別關注 (在編輯過程中保持同一個人/寵物/物體的顯示), (在來源照片中混合物件)以及 Gemini 和 Google AI Studio 等應用程式中的低延遲互動式使用。該模型可透過 Google 的 Gemini API、AI Studio 取得,並且已在 CometAPI 中出現。
curl --location --request POST 'https://api.cometapi.com/v1beta/models/gemini-2.5-flash-image-preview:generateContent' \
--header 'Authorization: sk-xxx' \
--header 'User-Agent: Apidog/1.0.0 (https://apidog.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: api.cometapi.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "A model is posing and leaning against a pink bmw. She is wearing the following items, the scene is against a light grey background. The green alien is a keychain and it's attached to the pink handbag. The model also has a pink parrot on her shoulder. There is a pug sitting next to her wearing a pink collar and gold headphones"
},
{
"inline_data": {
"mime_type": "image/jpeg",
"data": "iVBORw0KGgoA Note: Base64 data here"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}'
Edit the uploaded photo into a professional corporate headshot:
- Replace outfit with a navy single-breasted blazer and white shirt.
- Preserve face shape, eyeglasses, and expression exactly.
- Apply softbox studio lighting (slightly warm), remove harsh shadows.
- Output ratio 4:5 portrait, photorealistic, high detail.
提示 — 背景交換 + 修飾
Edit the uploaded image: replace background with a clean light-gray studio backdrop, remove small blemishes, slightly sharpen eyes, and keep all facial proportions. Preserve left ear earring and hairline.
2)電子商務與產品視覺化
用途:將產品放入生活場景中,從不同角度產生一致的產品鏡頭,或顯示顏色變化。
提示-產品場景(多影像融合)
Using Image A (product photo on white) and Image B (cozy living room scene), place the product on the living room coffee table with natural shadows matching the scene. Keep product scale realistic and preserve product texture and labeling.
提示 — 顏色變體(編輯)
Edit the uploaded product image: generate three color variants (forest green, deep navy, and charcoal). Keep product dimensions, seams, and label legible; output as a 3-up grid, photorealistic.
3)社群內容和影響力行銷
用途:快速風格編輯、服裝交換、季節性疊加或社交平台的多格式裁剪。
提示 — 動態和故事的季節性編輯
Edit the uploaded photo: swap casual tee for a chic leather jacket, add subtle golden-hour lighting from top-left, crop a square for feed and a 9:16 vertical for story. Preserve face and sunglasses.
提示 — 風格化的促銷變體
Edit the uploaded portrait to create a high-contrast editorial style: increase contrast moderately, add film grain, and maintain natural skin texture; preserve facial proportions and jewelry.
4)角色/品牌資產的一致性(吉祥物、重複出現的角色)
用途:讓標誌、吉祥物或角色在場景、活動或劇集中保持視覺相同。
提示 — 角色表強制執行
Reference: character_sheet.png (attached). Key identifiers to preserve exactly across edits: warm olive skin, split-dimple on right cheek, green scarf with gold pin. Create a portrait of the character on a busy café terrace; maintain identifiers and expression.
5)歷史照片修復及上色
用途:恢復或著色檔案影像,同時保留構圖和精細的臉部細節。
提示 — 著色 + 修復
Edit uploaded black-and-white photo: colorize with natural skin tones based on European 1940s palette, remove scratches and dust, repair torn left border, preserve original composition and facial proportions. Output: high-resolution TIFF-quality.