
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。沿用這些參數可獲得最接近的效果。
先原樣複製提示詞,只替換主體、保留風格/光影/構圖關鍵詞,多生成幾次——每次輸出都會有差異。
當然可以。提示詞最適合作為起點——調整描述詞、寬高比或風格標籤,做出屬於你自己的作品。