
2x2网格,16:9,为4部著名科幻电影执行此操作:class UniversalEditorialMetaphor: def __init__(self, topic): self.topic = topic self.semantics = infer_semantic_structure(topic) self.thesis = infer_visual_thesis(topic) self.mood = infer_editorial_tone(topic) self.metaphors = generate_candidate_metaphors( topic, count=12 ) self.best_metaphor = self.select_best_metaphor() def select_best_metaphor(self): return max( self.metaphors, key=lambda m: 0.35 * semantic_accuracy(m) + 0.25 * conceptual_originality(m) + 0.25 * visual_clarity(m) + 0.15 * silhouette_strength(m) ) def visual_actors(self): return { "primary": infer_dominant_form( self.best_metaphor ), "secondary": infer_consequence_or_partner( self.best_metaphor ), "interaction": infer_decisive_action( self.best_metaphor ) } def composition(self): return { "geometry": "不对称", "primary_scale": "纪念碑式", "secondary_scale": "小", "camera": "平面编辑正投影", "cropping": "戏剧性边界侵入", "negative_space": "主导", "focal_point": "物理交互" } def typography(self): return { "heading": derive_chapter_title(self.topic), "embedded_word": infer_single_action_label_if_needed( self.topic ), "density": "极简" } def render_style(self): return { "background": "暖象牙色", "foreground": "近黑色", "interior_lines": "精细白色轮廓", "shadows": None, "gradients": None, "texture": "极简编辑印刷", "format": "宽幅概念插画" } def render(self): return compose( actors=self.visual_actors(), metaphor=self.best_metaphor, layout=self.composition(), typography=self.typography(), style=self.render_style() ) FINAL_IMAGE = UniversalEditorialMetaphor( topic="[TOPIC]" ).render()
本图由 Google 的 Nano Banana 2.1 生成,页面上的提示词就是生成它的原始文本。
示例由 Nano Banana 2.1 生成,参数:120:67 · Poster · Cinematic · Sci-Fi。沿用这些参数可获得最接近的效果。
先原样复制提示词,只替换主体、保留风格/光影/构图关键词,多生成几次——每次输出都会有差异。
当然可以。提示词最适合作为起点——调整描述词、宽高比或风格标签,做出属于你自己的作品。