PROMPT 详情

{ "project_settings": { "task_type": "九宫格新年祝福肖像(男生版)",...

{ "project_settings": { "task_type": "九宫格新年祝福肖像(男生版)", "aspect_ratio": "1:1", "grid_layout": "3x3", "batch_size": 1 }, "overall_style": { "整体风格": "极简新年祝福风", "视觉基调": "干净、温和、克制的节日感", "背景": "纯色白墙面,无装饰", "光线": "自然柔光,均匀无强阴影", "色彩重点": "中国红(服装 + 文字)" }, "subject_base": { "人物一致性": "九宫格内为同一位人物", "人物类型": "亚洲男性", "性别气质": "干净、阳光、自然,不油腻", "发型": "黑色短发,自然蓬松,简洁利落", "服装": "红色针织毛衣或卫衣,简洁无图案", "妆容": "无明显妆感,真实自然肤质", "表情气质": "开心,克制的微笑,不夸张" }, "pose_variations": { "grid_1": "食指竖于嘴前,轻松安静手势", "grid_2": "单手比 V 手势靠近脸部", "grid_3": "单手做 OK 或三指手势", "grid_4": "双手举起做轻松俏皮手势(不过度卖萌)", "grid_5": "单手张开遮住半边脸", "grid_6": "单手做电话手势靠近脸侧", "grid_7": "单手轻点脸颊或下巴", "grid_8": "单手托下巴,轻微思考姿势", "grid_9": "双手指向脸部或克制比心变体" }, "text_overlays": { "字体风格": "传统中文新年书法字体", "文字颜色": "中国红", "年份颜色": "深蓝色", "文字位置": "每一格顶部居中", "文字结构": "四字祝福语 + 年份" }, "text_content": [ { "position": "grid_1", "text": "一帆风顺", "year": "2026" }, { "position": "grid_2", "text": "双喜临门", "year": "2026" }, { "position": "grid_3", "text": "三阳开泰", "year": "2026" }, { "position": "grid_4", "text": "四季发财", "year": "2026" }, { "position": "grid_5", "text": "五福临门", "year": "2026" }, { "position": "grid_6", "text": "六六大顺", "year": "2026" }, { "position": "grid_7", "text": "七星高照", "year": "2026" }, { "position": "grid_8", "text": "八方来财", "year": "2026" }, { "position": "grid_9", "text": "九九同心", "year": "2026" } ], "constraints": { "禁止项": [ "不改变人物身份", "不夸张表情", "不女性化姿态", "不使用复杂背景", "不添加节日道具", "不风格化面部" ], "一致性要求": [ "人物脸型五官保持完全一致", "服装颜色与材质一致", "拍摄角度与距离基本一致" ] }, "use_cases": [ "男生新年纪念照", "个人春节祝福九宫格", "社交平台头像矩阵", "品牌新年男生模板" ] }
nano-banana-2 /api/v1/nano_banana/text_to_image
运行信息
模型
nano-banana-2
提供方
Google
服务
Nano Banana
Endpoint
Text To Image
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "project_settings": { "task_type": "九宫格新年祝福肖像(男生版)", "aspect_ratio": "1:1", "grid_layout": "3x3", "batch_size": 1 }, "overall_style": { "整体风格": "极简新年祝福风", "视觉基调": "干净、温和、克制的节日感", "背景": "纯色白墙面,无装饰", "光线": "自然柔光,均匀无强阴影", "色彩重点": "中国红(服装 + 文字)" }, "subject_base": { "人物一致性": "九宫格内为同一位人物", "人物类型": "亚洲男性", "性别气质": "干净、阳光、自然,不油腻", "发型": "黑色短发,自然蓬松,简洁利落", "服装": "红色针织毛衣或卫衣,简洁无图案", "妆容": "无明显妆感,真实自然肤质", "表情气质": "开心,克制的微笑,不夸张" }, "pose_variations": { "grid_1": "食指竖于嘴前,轻松安静手势", "grid_2": "单手比 V 手势靠近脸部", "grid_3": "单手做 OK 或三指手势", "grid_4": "双手举起做轻松俏皮手势(不过度卖萌)", "grid_5": "单手张开遮住半边脸", "grid_6": "单手做电话手势靠近脸侧", "grid_7": "单手轻点脸颊或下巴", "grid_8": "单手托下巴,轻微思考姿势", "grid_9": "双手指向脸部或克制比心变体" }, "text_overlays": { "字体风格": "传统中文新年书法字体", "文字颜色": "中国红", "年份颜色": "深蓝色", "文字位置": "每一格顶部居中", "文字结构": "四字祝福语 + 年份" }, "text_content": [ { "position": "grid_1", "text": "一帆风顺", "year": "2026" }, { "position": "grid_2", "text": "双喜临门", "year": "2026" }, { "position": "grid_3", "text": "三阳开泰", "year": "2026" }, { "position": "grid_4", "text": "四季发财", "year": "2026" }, { "position": "grid_5", "text": "五福临门", "year": "2026" }, { "position": "grid_6", "text": "六六大顺", "year": "2026" }, { "position": "grid_7", "text": "七星高照", "year": "2026" }, { "position": "grid_8", "text": "八方来财", "year": "2026" }, { "position": "grid_9", "text": "九九同心", "year": "2026" } ], "constraints": { "禁止项": [ "不改变人物身份", "不夸张表情", "不女性化姿态", "不使用复杂背景", "不添加节日道具", "不风格化面部" ], "一致性要求": [ "人物脸型五官保持完全一致", "服装颜色与材质一致", "拍摄角度与距离基本一致" ] }, "use_cases": [ "男生新年纪念照", "个人春节祝福九宫格", "社交平台头像矩阵", "品牌新年男生模板" ] }"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "project_settings": { "task_type": "九宫格新年祝福肖像(男生版)", "aspect_ratio": "1:1", "grid_layout": "3x3", "batch_size": 1 }, "overall_style": { "整体风格": "极简新年祝福风", "视觉基调": "干净、温和、克制的节日感", "背景": "纯色白墙面,无装饰", "光线": "自然柔光,均匀无强阴影", "色彩重点": "中国红(服装 + 文字)" }, "subject_base": { "人物一致性": "九宫格内为同一位人物", "人物类型": "亚洲男性", "性别气质": "干净、阳光、自然,不油腻", "发型": "黑色短发,自然蓬松,简洁利落", "服装": "红色针织毛衣或卫衣,简洁无图案", "妆容": "无明显妆感,真实自然肤质", "表情气质": "开心,克制的微笑,不夸张" }, "pose_variations": { "grid_1": "食指竖于嘴前,轻松安静手势", "grid_2": "单手比 V 手势靠近脸部", "grid_3": "单手做 OK 或三指手势", "grid_4": "双手举起做轻松俏皮手势(不过度卖萌)", "grid_5": "单手张开遮住半边脸", "grid_6": "单手做电话手势靠近脸侧", "grid_7": "单手轻点脸颊或下巴", "grid_8": "单手托下巴,轻微思考姿势", "grid_9": "双手指向脸部或克制比心变体" }, "text_overlays": { "字体风格": "传统中文新年书法字体", "文字颜色": "中国红", "年份颜色": "深蓝色", "文字位置": "每一格顶部居中", "文字结构": "四字祝福语 + 年份" }, "text_content": [ { "position": "grid_1", "text": "一帆风顺", "year": "2026" }, { "position": "grid_2", "text": "双喜临门", "year": "2026" }, { "position": "grid_3", "text": "三阳开泰", "year": "2026" }, { "position": "grid_4", "text": "四季发财", "year": "2026" }, { "position": "grid_5", "text": "五福临门", "year": "2026" }, { "position": "grid_6", "text": "六六大顺", "year": "2026" }, { "position": "grid_7", "text": "七星高照", "year": "2026" }, { "position": "grid_8", "text": "八方来财", "year": "2026" }, { "position": "grid_9", "text": "九九同心", "year": "2026" } ], "constraints": { "禁止项": [ "不改变人物身份", "不夸张表情", "不女性化姿态", "不使用复杂背景", "不添加节日道具", "不风格化面部" ], "一致性要求": [ "人物脸型五官保持完全一致", "服装颜色与材质一致", "拍摄角度与距离基本一致" ] }, "use_cases": [ "男生新年纪念照", "个人春节祝福九宫格", "社交平台头像矩阵", "品牌新年男生模板" ] }"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "project_settings": { "task_type": "九宫格新年祝福肖像(男生版)", "aspect_ratio": "1:1", "grid_layout": "3x3", "batch_size": 1 }, "overall_style": { "整体风格": "极简新年祝福风", "视觉基调": "干净、温和、克制的节日感", "背景": "纯色白墙面,无装饰", "光线": "自然柔光,均匀无强阴影", "色彩重点": "中国红(服装 + 文字)" }, "subject_base": { "人物一致性": "九宫格内为同一位人物", "人物类型": "亚洲男性", "性别气质": "干净、阳光、自然,不油腻", "发型": "黑色短发,自然蓬松,简洁利落", "服装": "红色针织毛衣或卫衣,简洁无图案", "妆容": "无明显妆感,真实自然肤质", "表情气质": "开心,克制的微笑,不夸张" }, "pose_variations": { "grid_1": "食指竖于嘴前,轻松安静手势", "grid_2": "单手比 V 手势靠近脸部", "grid_3": "单手做 OK 或三指手势", "grid_4": "双手举起做轻松俏皮手势(不过度卖萌)", "grid_5": "单手张开遮住半边脸", "grid_6": "单手做电话手势靠近脸侧", "grid_7": "单手轻点脸颊或下巴", "grid_8": "单手托下巴,轻微思考姿势", "grid_9": "双手指向脸部或克制比心变体" }, "text_overlays": { "字体风格": "传统中文新年书法字体", "文字颜色": "中国红", "年份颜色": "深蓝色", "文字位置": "每一格顶部居中", "文字结构": "四字祝福语 + 年份" }, "text_content": [ { "position": "grid_1", "text": "一帆风顺", "year": "2026" }, { "position": "grid_2", "text": "双喜临门", "year": "2026" }, { "position": "grid_3", "text": "三阳开泰", "year": "2026" }, { "position": "grid_4", "text": "四季发财", "year": "2026" }, { "position": "grid_5", "text": "五福临门", "year": "2026" }, { "position": "grid_6", "text": "六六大顺", "year": "2026" }, { "position": "grid_7", "text": "七星高照", "year": "2026" }, { "position": "grid_8", "text": "八方来财", "year": "2026" }, { "position": "grid_9", "text": "九九同心", "year": "2026" } ], "constraints": { "禁止项": [ "不改变人物身份", "不夸张表情", "不女性化姿态", "不使用复杂背景", "不添加节日道具", "不风格化面部" ], "一致性要求": [ "人物脸型五官保持完全一致", "服装颜色与材质一致", "拍摄角度与距离基本一致" ] }, "use_cases": [ "男生新年纪念照", "个人春节祝福九宫格", "社交平台头像矩阵", "品牌新年男生模板" ] }"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "project_settings": { "task_type": "九宫格新年祝福肖像(男生版)", "aspect_ratio": "1:1", "grid_layout": "3x3", "batch_size": 1 }, "overall_style": { "整体风格": "极简新年祝福风", "视觉基调": "干净、温和、克制的节日感", "背景": "纯色白墙面,无装饰", "光线": "自然柔光,均匀无强阴影", "色彩重点": "中国红(服装 + 文字)" }, "subject_base": { "人物一致性": "九宫格内为同一位人物", "人物类型": "亚洲男性", "性别气质": "干净、阳光、自然,不油腻", "发型": "黑色短发,自然蓬松,简洁利落", "服装": "红色针织毛衣或卫衣,简洁无图案", "妆容": "无明显妆感,真实自然肤质", "表情气质": "开心,克制的微笑,不夸张" }, "pose_variations": { "grid_1": "食指竖于嘴前,轻松安静手势", "grid_2": "单手比 V 手势靠近脸部", "grid_3": "单手做 OK 或三指手势", "grid_4": "双手举起做轻松俏皮手势(不过度卖萌)", "grid_5": "单手张开遮住半边脸", "grid_6": "单手做电话手势靠近脸侧", "grid_7": "单手轻点脸颊或下巴", "grid_8": "单手托下巴,轻微思考姿势", "grid_9": "双手指向脸部或克制比心变体" }, "text_overlays": { "字体风格": "传统中文新年书法字体", "文字颜色": "中国红", "年份颜色": "深蓝色", "文字位置": "每一格顶部居中", "文字结构": "四字祝福语 + 年份" }, "text_content": [ { "position": "grid_1", "text": "一帆风顺", "year": "2026" }, { "position": "grid_2", "text": "双喜临门", "year": "2026" }, { "position": "grid_3", "text": "三阳开泰", "year": "2026" }, { "position": "grid_4", "text": "四季发财", "year": "2026" }, { "position": "grid_5", "text": "五福临门", "year": "2026" }, { "position": "grid_6", "text": "六六大顺", "year": "2026" }, { "position": "grid_7", "text": "七星高照", "year": "2026" }, { "position": "grid_8", "text": "八方来财", "year": "2026" }, { "position": "grid_9", "text": "九九同心", "year": "2026" } ], "constraints": { "禁止项": [ "不改变人物身份", "不夸张表情", "不女性化姿态", "不使用复杂背景", "不添加节日道具", "不风格化面部" ], "一致性要求": [ "人物脸型五官保持完全一致", "服装颜色与材质一致", "拍摄角度与距离基本一致" ] }, "use_cases": [ "男生新年纪念照", "个人春节祝福九宫格", "社交平台头像矩阵", "品牌新年男生模板" ] }"
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "{ \"project_settings\": { \"task_type\": \"九宫格新年祝福肖像(男生版)\", \"aspect_ratio\": \"1:1\", \"grid_layout\": \"3x3\", \"batch_size\": 1 }, \"overall_style\": { \"整体风格\": \"极简新年祝福风\", \"视觉基调\": \"干净、温和、克制的节日感\", \"背景\": \"纯色白墙面,无装饰\", \"光线\": \"自然柔光,均匀无强阴影\", \"色彩重点\": \"中国红(服装 + 文字)\" }, \"subject_base\": { \"人物一致性\": \"九宫格内为同一位人物\", \"人物类型\": \"亚洲男性\", \"性别气质\": \"干净、阳光、自然,不油腻\", \"发型\": \"黑色短发,自然蓬松,简洁利落\", \"服装\": \"红色针织毛衣或卫衣,简洁无图案\", \"妆容\": \"无明显妆感,真实自然肤质\", \"表情气质\": \"开心,克制的微笑,不夸张\" }, \"pose_variations\": { \"grid_1\": \"食指竖于嘴前,轻松安静手势\", \"grid_2\": \"单手比 V 手势靠近脸部\", \"grid_3\": \"单手做 OK 或三指手势\", \"grid_4\": \"双手举起做轻松俏皮手势(不过度卖萌)\", \"grid_5\": \"单手张开遮住半边脸\", \"grid_6\": \"单手做电话手势靠近脸侧\", \"grid_7\": \"单手轻点脸颊或下巴\", \"grid_8\": \"单手托下巴,轻微思考姿势\", \"grid_9\": \"双手指向脸部或克制比心变体\" }, \"text_overlays\": { \"字体风格\": \"传统中文新年书法字体\", \"文字颜色\": \"中国红\", \"年份颜色\": \"深蓝色\", \"文字位置\": \"每一格顶部居中\", \"文字结构\": \"四字祝福语 + 年份\" }, \"text_content\": [ { \"position\": \"grid_1\", \"text\": \"一帆风顺\", \"year\": \"2026\" }, { \"position\": \"grid_2\", \"text\": \"双喜临门\", \"year\": \"2026\" }, { \"position\": \"grid_3\", \"text\": \"三阳开泰\", \"year\": \"2026\" }, { \"position\": \"grid_4\", \"text\": \"四季发财\", \"year\": \"2026\" }, { \"position\": \"grid_5\", \"text\": \"五福临门\", \"year\": \"2026\" }, { \"position\": \"grid_6\", \"text\": \"六六大顺\", \"year\": \"2026\" }, { \"position\": \"grid_7\", \"text\": \"七星高照\", \"year\": \"2026\" }, { \"position\": \"grid_8\", \"text\": \"八方来财\", \"year\": \"2026\" }, { \"position\": \"grid_9\", \"text\": \"九九同心\", \"year\": \"2026\" } ], \"constraints\": { \"禁止项\": [ \"不改变人物身份\", \"不夸张表情\", \"不女性化姿态\", \"不使用复杂背景\", \"不添加节日道具\", \"不风格化面部\" ], \"一致性要求\": [ \"人物脸型五官保持完全一致\", \"服装颜色与材质一致\", \"拍摄角度与距离基本一致\" ] }, \"use_cases\": [ \"男生新年纪念照\", \"个人春节祝福九宫格\", \"社交平台头像矩阵\", \"品牌新年男生模板\" ] }"
}
JSON
import { NanoBananaClient } from "@runapi.ai/nano-banana";

const client = new NanoBananaClient({
  apiKey: process.env.RUNAPI_API_KEY,
});

const result = await client.textToImage.run({
  "model": "nano-banana-2",
  "prompt": "{ \"project_settings\": { \"task_type\": \"九宫格新年祝福肖像(男生版)\", \"aspect_ratio\": \"1:1\", \"grid_layout\": \"3x3\", \"batch_size\": 1 }, \"overall_style\": { \"整体风格\": \"极简新年祝福风\", \"视觉基调\": \"干净、温和、克制的节日感\", \"背景\": \"纯色白墙面,无装饰\", \"光线\": \"自然柔光,均匀无强阴影\", \"色彩重点\": \"中国红(服装 + 文字)\" }, \"subject_base\": { \"人物一致性\": \"九宫格内为同一位人物\", \"人物类型\": \"亚洲男性\", \"性别气质\": \"干净、阳光、自然,不油腻\", \"发型\": \"黑色短发,自然蓬松,简洁利落\", \"服装\": \"红色针织毛衣或卫衣,简洁无图案\", \"妆容\": \"无明显妆感,真实自然肤质\", \"表情气质\": \"开心,克制的微笑,不夸张\" }, \"pose_variations\": { \"grid_1\": \"食指竖于嘴前,轻松安静手势\", \"grid_2\": \"单手比 V 手势靠近脸部\", \"grid_3\": \"单手做 OK 或三指手势\", \"grid_4\": \"双手举起做轻松俏皮手势(不过度卖萌)\", \"grid_5\": \"单手张开遮住半边脸\", \"grid_6\": \"单手做电话手势靠近脸侧\", \"grid_7\": \"单手轻点脸颊或下巴\", \"grid_8\": \"单手托下巴,轻微思考姿势\", \"grid_9\": \"双手指向脸部或克制比心变体\" }, \"text_overlays\": { \"字体风格\": \"传统中文新年书法字体\", \"文字颜色\": \"中国红\", \"年份颜色\": \"深蓝色\", \"文字位置\": \"每一格顶部居中\", \"文字结构\": \"四字祝福语 + 年份\" }, \"text_content\": [ { \"position\": \"grid_1\", \"text\": \"一帆风顺\", \"year\": \"2026\" }, { \"position\": \"grid_2\", \"text\": \"双喜临门\", \"year\": \"2026\" }, { \"position\": \"grid_3\", \"text\": \"三阳开泰\", \"year\": \"2026\" }, { \"position\": \"grid_4\", \"text\": \"四季发财\", \"year\": \"2026\" }, { \"position\": \"grid_5\", \"text\": \"五福临门\", \"year\": \"2026\" }, { \"position\": \"grid_6\", \"text\": \"六六大顺\", \"year\": \"2026\" }, { \"position\": \"grid_7\", \"text\": \"七星高照\", \"year\": \"2026\" }, { \"position\": \"grid_8\", \"text\": \"八方来财\", \"year\": \"2026\" }, { \"position\": \"grid_9\", \"text\": \"九九同心\", \"year\": \"2026\" } ], \"constraints\": { \"禁止项\": [ \"不改变人物身份\", \"不夸张表情\", \"不女性化姿态\", \"不使用复杂背景\", \"不添加节日道具\", \"不风格化面部\" ], \"一致性要求\": [ \"人物脸型五官保持完全一致\", \"服装颜色与材质一致\", \"拍摄角度与距离基本一致\" ] }, \"use_cases\": [ \"男生新年纪念照\", \"个人春节祝福九宫格\", \"社交平台头像矩阵\", \"品牌新年男生模板\" ] }"
});
console.log(result.id);
require "runapi/nano_banana"

client = RunApi::NanoBanana::Client.new
result = client.text_to_image.run(
  model: "nano-banana-2",
  prompt: "{ \"project_settings\": { \"task_type\": \"九宫格新年祝福肖像(男生版)\", \"aspect_ratio\": \"1:1\", \"grid_layout\": \"3x3\", \"batch_size\": 1 }, \"overall_style\": { \"整体风格\": \"极简新年祝福风\", \"视觉基调\": \"干净、温和、克制的节日感\", \"背景\": \"纯色白墙面,无装饰\", \"光线\": \"自然柔光,均匀无强阴影\", \"色彩重点\": \"中国红(服装 + 文字)\" }, \"subject_base\": { \"人物一致性\": \"九宫格内为同一位人物\", \"人物类型\": \"亚洲男性\", \"性别气质\": \"干净、阳光、自然,不油腻\", \"发型\": \"黑色短发,自然蓬松,简洁利落\", \"服装\": \"红色针织毛衣或卫衣,简洁无图案\", \"妆容\": \"无明显妆感,真实自然肤质\", \"表情气质\": \"开心,克制的微笑,不夸张\" }, \"pose_variations\": { \"grid_1\": \"食指竖于嘴前,轻松安静手势\", \"grid_2\": \"单手比 V 手势靠近脸部\", \"grid_3\": \"单手做 OK 或三指手势\", \"grid_4\": \"双手举起做轻松俏皮手势(不过度卖萌)\", \"grid_5\": \"单手张开遮住半边脸\", \"grid_6\": \"单手做电话手势靠近脸侧\", \"grid_7\": \"单手轻点脸颊或下巴\", \"grid_8\": \"单手托下巴,轻微思考姿势\", \"grid_9\": \"双手指向脸部或克制比心变体\" }, \"text_overlays\": { \"字体风格\": \"传统中文新年书法字体\", \"文字颜色\": \"中国红\", \"年份颜色\": \"深蓝色\", \"文字位置\": \"每一格顶部居中\", \"文字结构\": \"四字祝福语 + 年份\" }, \"text_content\": [ { \"position\": \"grid_1\", \"text\": \"一帆风顺\", \"year\": \"2026\" }, { \"position\": \"grid_2\", \"text\": \"双喜临门\", \"year\": \"2026\" }, { \"position\": \"grid_3\", \"text\": \"三阳开泰\", \"year\": \"2026\" }, { \"position\": \"grid_4\", \"text\": \"四季发财\", \"year\": \"2026\" }, { \"position\": \"grid_5\", \"text\": \"五福临门\", \"year\": \"2026\" }, { \"position\": \"grid_6\", \"text\": \"六六大顺\", \"year\": \"2026\" }, { \"position\": \"grid_7\", \"text\": \"七星高照\", \"year\": \"2026\" }, { \"position\": \"grid_8\", \"text\": \"八方来财\", \"year\": \"2026\" }, { \"position\": \"grid_9\", \"text\": \"九九同心\", \"year\": \"2026\" } ], \"constraints\": { \"禁止项\": [ \"不改变人物身份\", \"不夸张表情\", \"不女性化姿态\", \"不使用复杂背景\", \"不添加节日道具\", \"不风格化面部\" ], \"一致性要求\": [ \"人物脸型五官保持完全一致\", \"服装颜色与材质一致\", \"拍摄角度与距离基本一致\" ] }, \"use_cases\": [ \"男生新年纪念照\", \"个人春节祝福九宫格\", \"社交平台头像矩阵\", \"品牌新年男生模板\" ] }"
)
puts result.id
package main

import (
  "context"
  "fmt"
  "log"
  "net/http"
  "os"
  "strings"
)

func main() {
  body := strings.NewReader("{\"model\":\"nano-banana-2\",\"prompt\":\"{ \\\"project_settings\\\": { \\\"task_type\\\": \\\"九宫格新年祝福肖像(男生版)\\\", \\\"aspect_ratio\\\": \\\"1:1\\\", \\\"grid_layout\\\": \\\"3x3\\\", \\\"batch_size\\\": 1 }, \\\"overall_style\\\": { \\\"整体风格\\\": \\\"极简新年祝福风\\\", \\\"视觉基调\\\": \\\"干净、温和、克制的节日感\\\", \\\"背景\\\": \\\"纯色白墙面,无装饰\\\", \\\"光线\\\": \\\"自然柔光,均匀无强阴影\\\", \\\"色彩重点\\\": \\\"中国红(服装 + 文字)\\\" }, \\\"subject_base\\\": { \\\"人物一致性\\\": \\\"九宫格内为同一位人物\\\", \\\"人物类型\\\": \\\"亚洲男性\\\", \\\"性别气质\\\": \\\"干净、阳光、自然,不油腻\\\", \\\"发型\\\": \\\"黑色短发,自然蓬松,简洁利落\\\", \\\"服装\\\": \\\"红色针织毛衣或卫衣,简洁无图案\\\", \\\"妆容\\\": \\\"无明显妆感,真实自然肤质\\\", \\\"表情气质\\\": \\\"开心,克制的微笑,不夸张\\\" }, \\\"pose_variations\\\": { \\\"grid_1\\\": \\\"食指竖于嘴前,轻松安静手势\\\", \\\"grid_2\\\": \\\"单手比 V 手势靠近脸部\\\", \\\"grid_3\\\": \\\"单手做 OK 或三指手势\\\", \\\"grid_4\\\": \\\"双手举起做轻松俏皮手势(不过度卖萌)\\\", \\\"grid_5\\\": \\\"单手张开遮住半边脸\\\", \\\"grid_6\\\": \\\"单手做电话手势靠近脸侧\\\", \\\"grid_7\\\": \\\"单手轻点脸颊或下巴\\\", \\\"grid_8\\\": \\\"单手托下巴,轻微思考姿势\\\", \\\"grid_9\\\": \\\"双手指向脸部或克制比心变体\\\" }, \\\"text_overlays\\\": { \\\"字体风格\\\": \\\"传统中文新年书法字体\\\", \\\"文字颜色\\\": \\\"中国红\\\", \\\"年份颜色\\\": \\\"深蓝色\\\", \\\"文字位置\\\": \\\"每一格顶部居中\\\", \\\"文字结构\\\": \\\"四字祝福语 + 年份\\\" }, \\\"text_content\\\": [ { \\\"position\\\": \\\"grid_1\\\", \\\"text\\\": \\\"一帆风顺\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_2\\\", \\\"text\\\": \\\"双喜临门\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_3\\\", \\\"text\\\": \\\"三阳开泰\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_4\\\", \\\"text\\\": \\\"四季发财\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_5\\\", \\\"text\\\": \\\"五福临门\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_6\\\", \\\"text\\\": \\\"六六大顺\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_7\\\", \\\"text\\\": \\\"七星高照\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_8\\\", \\\"text\\\": \\\"八方来财\\\", \\\"year\\\": \\\"2026\\\" }, { \\\"position\\\": \\\"grid_9\\\", \\\"text\\\": \\\"九九同心\\\", \\\"year\\\": \\\"2026\\\" } ], \\\"constraints\\\": { \\\"禁止项\\\": [ \\\"不改变人物身份\\\", \\\"不夸张表情\\\", \\\"不女性化姿态\\\", \\\"不使用复杂背景\\\", \\\"不添加节日道具\\\", \\\"不风格化面部\\\" ], \\\"一致性要求\\\": [ \\\"人物脸型五官保持完全一致\\\", \\\"服装颜色与材质一致\\\", \\\"拍摄角度与距离基本一致\\\" ] }, \\\"use_cases\\\": [ \\\"男生新年纪念照\\\", \\\"个人春节祝福九宫格\\\", \\\"社交平台头像矩阵\\\", \\\"品牌新年男生模板\\\" ] }\"}")
  req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/nano_banana/text_to_image", body)
  if err != nil {
    log.Fatal(err)
  }

  req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
  req.Header.Set("Content-Type", "application/json")

  resp, err := http.DefaultClient.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  defer resp.Body.Close()

  fmt.Println(resp.Status)
}
nano-banana-2 /api/v1/nano_banana/text_to_image 获取 API Key
相关 PROMPTS

更多相似 prompts

IM
图像
Photography nano-banana-2

Ultra-realistic 8K full body portrait of [PERSON’S FULL NAME...

Ultra-realistic 8K full body portrait of [PERSON’S FULL NAME], wearing a clean and pressed white social shirt with folded collar and a small lapel microphone, dark navy-blue dress pants and polished brown social shoes. Casually and unpretentiously leaning against a smooth light gray studio wall; hands are in pockets and one leg is crossed over the other, with relaxed and confident body language. Add to the wall next to them a prominent vector portrait in black and white of their face and bust - with sharp lines and angles, overlapping polygonal shapes and a minimalist modern graphic style, right below the information: “[PERSON’S FULL NAME]”, and below the name: “[PROFESSION]”

查看 API 代码
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "Ultra-realistic 8K full body portrait of [PERSON’S FULL NAME], wearing a clean and pressed white social shirt with folded collar and a small lapel microphone, dark navy-blue dress pants and polished brown social shoes. Casually and unpretentiously leaning against a smooth light gray studio wall; hands are in pockets and one leg is crossed over the other, with relaxed and confident body language. Add to the wall next to them a prominent vector portrait in black and white of their face and bust - with sharp lines and angles, overlapping polygonal shapes and a minimalist modern graphic style, right below the information: “[PERSON’S FULL NAME]”, and below the name: “[PROFESSION]”"
}
JSON
IM
图像
Food & Drink nano-banana-2

Ultra-clean modern recipe infographic. Showcase [FOOD] in a...

Ultra-clean modern recipe infographic. Showcase [FOOD] in a visually appealing finished form—sliced, plated, or portioned—floating slightly in perspective or angled view. Arrange ingredients, steps, and tips around the dish in a dynamic editorial layout, not restricted to top-down. Ingredients Section: Include icons or mini illustrations for each ingredient with quantities. Arrange them in clusters, lists, or circular flows connected visually to the dish. Steps Section: Show preparation steps with numbered panels, arrows, or lines, forming a logical flow around the main dish. Include small cooking icons (knife, pan, oven, timer) where helpful. Additional Info (optional): Total calories, prep/cook time, servings, spice level—displayed as clean bubbles or badges near the dish. Visual Style: Editorial infographic meets lifestyle food photography. Vibrant, natural food colors, subtle drop shadows, clean vector icons, modern typography, soft gradients or glassmorphism for step panels. Accent colors can highlight key info (calories, prep time). Composition Guidelines: Finished meal as hero visual (perspective or angled). Ingredients and steps flow dynamically around the dish. Clear visual hierarchy: dish > steps > ingredients > optional stats. Enough negative space to keep design airy and readable. Lighting & Background: Soft, natural studio lighting. Minimal textured or gradient background for premium editorial feel. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark

查看 API 代码
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "Ultra-clean modern recipe infographic. Showcase [FOOD] in a visually appealing finished form—sliced, plated, or portioned—floating slightly in perspective or angled view. Arrange ingredients, steps, and tips around the dish in a dynamic editorial layout, not restricted to top-down. Ingredients Section: Include icons or mini illustrations for each ingredient with quantities. Arrange them in clusters, lists, or circular flows connected visually to the dish. Steps Section: Show preparation steps with numbered panels, arrows, or lines, forming a logical flow around the main dish. Include small cooking icons (knife, pan, oven, timer) where helpful. Additional Info (optional): Total calories, prep/cook time, servings, spice level—displayed as clean bubbles or badges near the dish. Visual Style: Editorial infographic meets lifestyle food photography. Vibrant, natural food colors, subtle drop shadows, clean vector icons, modern typography, soft gradients or glassmorphism for step panels. Accent colors can highlight key info (calories, prep time). Composition Guidelines: Finished meal as hero visual (perspective or angled). Ingredients and steps flow dynamically around the dish. Clear visual hierarchy: dish > steps > ingredients > optional stats. Enough negative space to keep design airy and readable. Lighting & Background: Soft, natural studio lighting. Minimal textured or gradient background for premium editorial feel. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark"
}
JSON
IM
图像
UI & Graphic nano-banana-2

Create a branded technical infographic of a [SNACK], combini...

Create a branded technical infographic of a [SNACK], combining a realistic photograph or photoreal render of the product with technical annotation overlays placed directly on top. Use black ink–style line drawings with strategic [BRAND COLOR] accents (architectural sketch look) on a pure white studio background, including: • Key component labels • Internal cross-section showing structure, layering, or internal design • Measurements, dimensions, and specifications • Material callouts with composition and quantities • Arrows indicating function for primary features and structural integrity • Simple schematic or sectional diagram showing key mechanical or design elements • Sustainability callouts Title placement: Inside a hand-drawn technical annotation box with accent border reading the product name in bold font, positioned in upper corner. Style & layout rules: • The realistic product remains clearly visible • Annotations feel sketched, technical, and architectural • Accents used for highlight (20-30% of linework), black for primary technical lines (70-80%) • Clean composition with balanced negative space • Educational, food-engineering vibe with premium branding • Include subtle brand logo mark in corner Visual style: Minimal technical illustration aesthetic, black linework with accents over realistic imagery, precise but slightly hand-drawn feel. Color palette: White background, black annotation lines/text, [BRAND COLOR] for accents and key callouts only. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark

查看 API 代码
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "Create a branded technical infographic of a [SNACK], combining a realistic photograph or photoreal render of the product with technical annotation overlays placed directly on top. Use black ink–style line drawings with strategic [BRAND COLOR] accents (architectural sketch look) on a pure white studio background, including: • Key component labels • Internal cross-section showing structure, layering, or internal design • Measurements, dimensions, and specifications • Material callouts with composition and quantities • Arrows indicating function for primary features and structural integrity • Simple schematic or sectional diagram showing key mechanical or design elements • Sustainability callouts Title placement: Inside a hand-drawn technical annotation box with accent border reading the product name in bold font, positioned in upper corner. Style & layout rules: • The realistic product remains clearly visible • Annotations feel sketched, technical, and architectural • Accents used for highlight (20-30% of linework), black for primary technical lines (70-80%) • Clean composition with balanced negative space • Educational, food-engineering vibe with premium branding • Include subtle brand logo mark in corner Visual style: Minimal technical illustration aesthetic, black linework with accents over realistic imagery, precise but slightly hand-drawn feel. Color palette: White background, black annotation lines/text, [BRAND COLOR] for accents and key callouts only. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark"
}
JSON
IM
图像
Product & Brand nano-banana-2

[product], luxury packaging reveal scene, premium unboxing m...

[product], luxury packaging reveal scene, premium unboxing moment, pristine hands partially visible at the edges, delicate interaction with the packaging, lid slightly lifted to reveal the product inside, crisp folds and precise alignment, tactile materials [ ex: matte paper, soft touch coating, embossed details, foil accents], subtle micro texture and dust free finish, clean white background, soft diffused studio lighting, controlled specular highlights, realistic shadows, macro product photography look, shallow depth of field with sharp focus on the product and branding area, high end editorial commercial style, ultra realistic, 4k, 1:1, no watermark, no extra text

查看 API 代码
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "[product], luxury packaging reveal scene, premium unboxing moment, pristine hands partially visible at the edges, delicate interaction with the packaging, lid slightly lifted to reveal the product inside, crisp folds and precise alignment, tactile materials [ ex: matte paper, soft touch coating, embossed details, foil accents], subtle micro texture and dust free finish, clean white background, soft diffused studio lighting, controlled specular highlights, realistic shadows, macro product photography look, shallow depth of field with sharp focus on the product and branding area, high end editorial commercial style, ultra realistic, 4k, 1:1, no watermark, no extra text"
}
JSON
IM
图像
Product & Brand nano-banana-2

Create a 3×3 grid in 3:4 aspect ratio for a high-end commerc...

Create a 3×3 grid in 3:4 aspect ratio for a high-end commercial marketing campaign using the uploaded product as the central subject. Each frame must present a distinct visual concept while maintaining perfect product consistency across all nine images. Grid Concepts (one per cell): 1. Iconic hero still life with bold composition 2. Extreme macro detail highlighting material, surface, or texture 3. Dynamic liquid or particle interaction surrounding the product 4. Minimal sculptural arrangement with abstract forms 5. Floating elements composition suggesting lightness and innovation 6. Sensory close-up emphasizing tactility and realism 7. Color-driven conceptual scene inspired by the product palette 8. Ingredient or component abstraction (non-literal, symbolic) 9. Surreal yet elegant fusion scene combining realism and imagination Visual Rules: Product must remain 100% accurate in shape, proportions, label, typography, color, and branding No distortion, deformation, or redesign of the product Clean separation between product and background Lighting & Style: Soft, controlled studio lighting Subtle highlights, realistic shadows High dynamic range, ultra-sharp focus Editorial luxury advertising aesthetic Premium sensory marketing look Overall Feel: Modern, refined, visually cohesive High-end commercial campaign Designed for brand websites, social grids, and digital billboards Hyperreal, cinematic, polished, and aspirational

查看 API 代码
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "Create a 3×3 grid in 3:4 aspect ratio for a high-end commercial marketing campaign using the uploaded product as the central subject. Each frame must present a distinct visual concept while maintaining perfect product consistency across all nine images. Grid Concepts (one per cell): 1. Iconic hero still life with bold composition 2. Extreme macro detail highlighting material, surface, or texture 3. Dynamic liquid or particle interaction surrounding the product 4. Minimal sculptural arrangement with abstract forms 5. Floating elements composition suggesting lightness and innovation 6. Sensory close-up emphasizing tactility and realism 7. Color-driven conceptual scene inspired by the product palette 8. Ingredient or component abstraction (non-literal, symbolic) 9. Surreal yet elegant fusion scene combining realism and imagination Visual Rules: Product must remain 100% accurate in shape, proportions, label, typography, color, and branding No distortion, deformation, or redesign of the product Clean separation between product and background Lighting & Style: Soft, controlled studio lighting Subtle highlights, realistic shadows High dynamic range, ultra-sharp focus Editorial luxury advertising aesthetic Premium sensory marketing look Overall Feel: Modern, refined, visually cohesive High-end commercial campaign Designed for brand websites, social grids, and digital billboards Hyperreal, cinematic, polished, and aspirational"
}
JSON
IM
图像
UI & Graphic nano-banana-2

Create ONE final image. A clean 3×3 [ratio] storyboard gri...

Create ONE final image. A clean 3×3 [ratio] storyboard grid with nine equal [ratio] sized panels on [4:5] ratio. Use the reference image as the base product reference. Keep the same product, packaging design, branding, materials, colors, proportions and overall identity across all nine panels exactly as the reference. The product must remain clearly recognizable in every frame. The label, logo and proportions must stay exactly the same. This storyboard is a high-end designer mockup presentation for a branding portfolio. The focus is on form, composition, materiality and visual rhythm rather than realism or lifestyle narrative. The overall look should feel curated, editorial and design-driven. FRAME 1: Front-facing hero shot of the product in a clean studio setup. Neutral background, balanced composition, calm and confident presentation of the product. FRAME 2: Close-up shot with the focus centered on the middle of the product. Focusing on surface texture, materials and print details. FRAME 3: Shows the reference product placed in an environment that naturally fits the brand and product category. Studio setting inspired by the product design elements and colours. FRAME 4: Product shown in use or interaction on a neutral studio background. Hands and interaction elements are minimal and restrained, the look matches the style of the package. FRAME 5: Isometric composition showing multiple products arranged in a precise geometric order from the top isometric angle. All products are placed at the same isometric top angle, evenly spaced, clean, structured and graphic. FRAME 6: Product levitating slightly tilted on a neutral background that matches the reference image color palette. Floating position is angled and intentional, the product is floating naturally in space. FRAME 7: is an extreme close-up focusing on a specific detail of the label, edge, texture or material behavior. FRAME 8: The product in an unexpected yet aesthetically strong setting that feels bold, editorial and visually striking. Unexpected but highly stylized setting. Studio-based, and designer-driven. Bold composition that elevates the brand. FRAME 9: Wide composition showing the product in use, placed within a refined designer setup. Clean props, controlled styling, cohesive with the rest of the series. CAMERA & STYLE: Ultra high-quality studio imagery with a real camera look. Different camera angles and framings across frames. Controlled depth of field, precise lighting, accurate materials and reflections. Lighting logic, color palette, mood and visual language must remain consistent across all nine panels as one cohesive series. OUTPUT: A clean 3×3 grid with no borders, no text, no captions and no watermarks.

查看 API 代码
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-2",
  "prompt": "Create ONE final image. A clean 3×3 [ratio] storyboard grid with nine equal [ratio] sized panels on [4:5] ratio. Use the reference image as the base product reference. Keep the same product, packaging design, branding, materials, colors, proportions and overall identity across all nine panels exactly as the reference. The product must remain clearly recognizable in every frame. The label, logo and proportions must stay exactly the same. This storyboard is a high-end designer mockup presentation for a branding portfolio. The focus is on form, composition, materiality and visual rhythm rather than realism or lifestyle narrative. The overall look should feel curated, editorial and design-driven. FRAME 1: Front-facing hero shot of the product in a clean studio setup. Neutral background, balanced composition, calm and confident presentation of the product. FRAME 2: Close-up shot with the focus centered on the middle of the product. Focusing on surface texture, materials and print details. FRAME 3: Shows the reference product placed in an environment that naturally fits the brand and product category. Studio setting inspired by the product design elements and colours. FRAME 4: Product shown in use or interaction on a neutral studio background. Hands and interaction elements are minimal and restrained, the look matches the style of the package. FRAME 5: Isometric composition showing multiple products arranged in a precise geometric order from the top isometric angle. All products are placed at the same isometric top angle, evenly spaced, clean, structured and graphic. FRAME 6: Product levitating slightly tilted on a neutral background that matches the reference image color palette. Floating position is angled and intentional, the product is floating naturally in space. FRAME 7: is an extreme close-up focusing on a specific detail of the label, edge, texture or material behavior. FRAME 8: The product in an unexpected yet aesthetically strong setting that feels bold, editorial and visually striking. Unexpected but highly stylized setting. Studio-based, and designer-driven. Bold composition that elevates the brand. FRAME 9: Wide composition showing the product in use, placed within a refined designer setup. Clean props, controlled styling, cohesive with the rest of the series. CAMERA & STYLE: Ultra high-quality studio imagery with a real camera look. Different camera angles and framings across frames. Controlled depth of field, precise lighting, accurate materials and reflections. Lighting logic, color palette, mood and visual language must remain consistent across all nine panels as one cohesive series. OUTPUT: A clean 3×3 grid with no borders, no text, no captions and no watermarks."
}
JSON
常见问题

使用这个 nano-banana-2 prompt

如何安全复制这个 prompt?

使用完整 prompt 区块旁边的复制按钮。它只复制 prompt 文本,不包含页面标签,所以可以直接粘贴到 agent 指令、JSON 请求体或你自己的 prompt 库。

为什么详情页会显示参数?

有些 prompt 采集时带有画幅、时长或声音控制等生成设置。存在参数时,页面会单独列出,方便你同时复用 prompt 文本和结构化设置。

应该调用哪个 endpoint?

使用 API 代码块里显示的 endpoint 路径。这个路径由 prompt 的 RunAPI 服务和 endpoint 名称生成,并渲染成 curl 与 SDK 示例使用的公开 API URL。

可以不用代码,直接在 agent 里用吗?

可以。在标签切换器里选择 Claude Code、Codex、Cursor 或 Windsurf,安装 RunAPI MCP Server,然后粘贴生成好的指令。指令会包含完整 prompt 文本。