Analysis of Image Prompt Safety Filtering Mechanism

Category: SFWPublished: Updated:

Analysis of Image Prompt Safety Filtering Mechanism – photo prompt for Gemini and AI image models

Analysis of Image Prompt Safety Filtering Mechanism Prompt

兄弟们,分享一个🍌生图提示词的安全过滤机制🔥。
---
最近在调用谷歌 Nano Banana pro 的 API 的时候老是触发他的安全过滤器(Safety Filter)导致生图失败。
---
总结了下风控策略,是因为触发了一些禁用词汇,而导致🍌直接拒绝生图了。
---
可以在生图提示词的 prompt 里面添加如下描述,能够防止因触发风控而生图失败的场景。
---
应用现在能够自动过滤所有危险词汇,使用安全替代词,并确保生成的提示词符合平台风控要求
---
绝对禁止的词汇:
---
类别禁用词汇
能量/特效lightning, electric, energy, spark, voltage, current
战斗/冲突attack, battle, fight, punch, kick, strike, combat, clash
危险元素fire, flame, explosion, weapon, sword, knife, gun
负面情绪fierce, intense, aggressive, violent, rage, angry, scream, panic
身体恐怖glowing eyes, red eyes, blood, wound, transform, distort
强制使用的安全替代词
原词替代词
lightning/electricsoft light, warm light, ambient light
fight/attackmove toward, approach, interaction
fierce/intensewarm, calm, gentle, peaceful
explosion/firebloom, brighten, illuminate, radiate
angry/rageconcerned, surprised, amazed, excited
每个提示词必须包含至少2个安全词汇
gentle, soft, calm, peaceful, warm, bright, smooth, quiet, serene, beautiful, lovely, sweet, slowly, smoothly, gracefully