AI图像生成与编辑能力,基于 Nano Banana (Gemini Image) 实现文生图、图生图、图像编辑。适用于创意设计、营销素材、社交媒体内容、演示文稿配图等场景。支持多种风格、高分辨率输出(最高4K)、文字渲染、角色一致性保持。
AI图像生成能力让你能够:
底层基于 Google Gemini 的 Nano Banana / Nano Banana Pro 模型。
<subject> <action> <scene> <style> <quality>generate_image 工具edit_image 工具prompt: 图像描述(英文效果更佳)style: 风格预设(realistic, anime, oil_painting, watercolor, minimal, cinematic)aspect_ratio: 宽高比(1:1, 16:9, 9:16, 4:3, 3:4)resolution: 分辨率(1K, 2K, 4K)num_images: 生成数量(1-4)generate_image(
prompt="A majestic horse galloping through cherry blossoms, golden hour lighting, Chinese New Year festive atmosphere",
style="realistic",
aspect_ratio="16:9",
resolution="2K",
num_images=2
)
image_path: 原图路径或URLprompt: 编辑指令(如:"将背景改为夜景")preserve_subject: 是否保持主体不变(默认True)edit_image(
image_path="/workspace/photo.jpg",
prompt="Add Chinese New Year decorations and red lanterns to the background",
preserve_subject=True
)
[主体] + [动作/姿态] + [场景/背景] + [风格] + [氛围/光线]
high quality, detailed, sharp focusprofessional photography, award winning4K resolution, ultra detailedprompt_template: |
A {animal} in {pose}, surrounded by {decorations},
Chinese New Year theme, festive red and gold colors,
{style} style, high quality, {text_content}