scenario-gemini-image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScenario Gemini Image
Scenario Gemini Image
Overview
概述
Gemini, Google's image family on Scenario (the Nano Banana line), generates and edits through one required : edits are instructions against the references, never mask painting. Discover members with and treat as the contract: the creative fields are shared and nearly everything else is per member.
promptsearchmodel_schema_getConnection and the core loop: see the skill in this repo; model-agnostic image work: the skill. Gemini video belongs to the skill; Gemini speech models are the audio domain. If a sibling skill named here is missing from your available skills, ask the user to install it (); unattended, proceed from tool schemas and flag the gap.
scenarioscenario-imagescenario-gemini-omninpx skills add scenario-labs/skills --skill <name>Gemini是Google在Scenario平台上的图像模型系列(即Nano Banana产品线),通过一个必填的进行生成和编辑:编辑操作是基于参考图的指令,而非蒙版绘制。可通过查找模型成员,将视为约定:创意相关字段是通用的,其余几乎所有字段都是各模型成员专属的。
promptsearchmodel_schema_get连接与核心流程:参见本仓库中的 skill;与模型无关的图像处理工作:参见 skill。Gemini视频功能属于 skill;Gemini语音模型属于音频领域。如果你的可用skill列表中缺少此处提到的同系列skill,请让用户安装(命令:);若处于无人值守模式,可根据工具schema继续操作并标记缺失项。
scenarioscenario-imagescenario-gemini-omninpx skills add scenario-labs/skills --skill <name>Quick reference
快速参考
Three members at authoring time (per-member facts move, so read the schema):
| Member | Resolution | Sets it apart |
|---|---|---|
| 3.1 Flash | | video input, four |
| 3.0 Pro | | built for complex instruction edits and multi-image fusion |
| 3.1 Lite | fixed 1K, no | fastest and cheapest; |
Shared fields: (up to 14, an array even for one), (1 to 4 variations of one prompt), ( through plus the default ; pin the ratio when a placement demands one), and a prompt cap near 250000 characters, so a full brief fits verbatim. Flash alone takes (one clip, about 15 MB, sampled at , default 1 fps) to pull stills from footage; and are mutually exclusive. (Flash and Pro) grounds the run in live web context and moves the price, like every field marked . No mask, seed, or negative-prompt field exists: regional edits are sentences, and reruns give variations, not reproductions.
referenceImagesnumOutputsaspectRatio21:99:16autovideovideoFpsvideoreferenceImagesuseGoogleSearchcost_impact本文撰写时有三个模型成员(各模型的参数可能会变动,请以schema为准):
| 模型成员 | 分辨率 | 核心特点 |
|---|---|---|
| 3.1 Flash | | 支持视频输入、四级 |
| 3.0 Pro | | 专为复杂指令编辑和多图融合设计 |
| 3.1 Lite | 固定1K,无 | 速度最快、成本最低; |
通用字段包括:(最多14张,即使只有1张也需用数组格式)、(单个prompt生成1到4个变体)、(支持到,默认;如果有固定排版需求请指定比例),prompt长度上限接近250000字符,因此可以完整放入整份需求说明。仅Flash版本支持字段(单个视频片段,约15MB,按采样,默认1fps)用于从视频中提取静帧;与互斥。(仅Flash和Pro支持)基于实时网络上下文为生成结果提供事实依据,和所有标记为的字段一样,会影响费用。模型不支持mask、seed或negative-prompt字段:区域编辑通过自然语言句子描述,重新运行会生成变体,而非完全复刻的结果。
referenceImagesnumOutputsaspectRatio21:99:16autovideovideoFpsvideoreferenceImagesuseGoogleSearchcost_impactWrite instructions, not tags
编写指令,而非标签
Describe subject, setting, and style in plain sentences. For edits, state the change and what must survive it: "keep the shoe's shape, colors, and branding unchanged; place it on a sunlit deck". With several references, assign roles by position ("image 1 is the character's face, image 2 the outfit, image 3 the background style"); unassigned references blur together. Lock identity explicitly: say the features must be preserved while pose, lighting, or scene changes. Quote in-image copy exactly and say where each block sits ("the title reads 'LUMEN', top third"); unquoted wording is treated as a theme to depict, not copy to render. When one word keeps mangling, do not rerun the design: pass the keeper in and spell the word letter by letter ("the title reads 'LUMEN', spelled L, U, M, E, N"), changing nothing else. On Flash and Lite, defaults to , the careful setting; drop to for speed on simple runs.
referenceImagesthinkingLevelHIGHMINIMAL用平实的句子描述主体、场景和风格。如果是编辑任务,说明需要修改的内容以及必须保留的部分,例如:「保持鞋子的形状、颜色和品牌标识不变,将其放置在阳光照射的甲板上」。如果有多张参考图,按位置分配角色(例如:「图1是角色的脸部,图2是服装,图3是背景风格」);未分配角色的参考图会被混合在一起。如需锁定身份,请明确说明:要求在姿势、光线或场景变化时保留特征。请准确引用图中的文字内容,并说明每个文字块的位置(例如:「标题为'LUMEN',位于画面上三分之一处」);未加引用的文字会被视为需要描绘的主题,而非需要原样渲染的文字。如果某个单词一直生成错误,不要重新运行整个设计:将效果合格的图片放入,然后逐字母拼写该单词(例如:「标题为'LUMEN',拼写为L, U, M, E, N」),其余内容保持不变。在Flash和Lite版本中,默认为(精细模式);对于简单任务,可调低至以提升速度。
referenceImagesthinkingLevelHIGHMINIMALPrice the member before the batch
批量处理前先评估模型费用
The cost cliff sits between members more than between resolutions: at authoring time the same 1K edit cost about double on Flash what Lite charged, Pro's 2K default roughly doubled it again, and Lite returned in under half the time. the same parameters on two members before any batch, and re-estimate whenever , , references, or change.
dry_run=trueresolutionnumOutputsuseGoogleSearch不同模型成员之间的费用差异远大于不同分辨率之间的差异:在本文撰写时,同样的1K编辑任务,Flash的费用约为Lite的两倍,Pro默认2K的费用又约为Flash的两倍,而Lite的生成时间还不到一半。在批量处理前,可在两个模型上使用相同参数设置进行试算;每当、、参考图或发生变化时,都需要重新估算费用。
dry_run=trueresolutionnumOutputsuseGoogleSearchWorked example: product restyle with locked identity
实操示例:锁定身份的产品风格重绘
- with
search,target="models",query="gemini". Video and speech members surface too; pick an image member, e.g.public=true(a live hit at authoring time: re-discover each session).model_google-gemini-3-1-flash - with that id: fields, caps, and defaults.
model_schema_get - the product photo and the style reference (see the
upload_assetskill) to get asset ids.scenario - with that
model_run,model_id, anddry_run=truefor the cost estimate.parameters={"prompt": "Image 1 is the product: keep its shape, label, and colors exactly. Image 2 sets the mood: warm sunset palette, soft shadows. Place the product on a marble counter in natural window light.", "referenceImages": ["asset_a", "asset_b"], "aspectRatio": "4:5", "resolution": "2K", "numOutputs": 2} - Repeat with
model_run, thenwait=falsewith the returned job id, re-called withjobs_waiton timeout, never a secondpending_job_ids.model_run - to review both variations,
asset_displayto save the pick.asset_download
- 调用,设置
search、target="models"、query="gemini"。搜索结果会同时显示视频和语音模型成员;选择一个图像模型成员,例如public=true(本文撰写时的有效ID:每次会话都需要重新查找)。model_google-gemini-3-1-flash - 调用并传入该ID,获取字段、上限和默认值。
model_schema_get - 调用上传产品照片和风格参考图(参见
upload_assetskill),获取资源ID。scenario - 调用,传入该
model_run、model_id以及dry_run=true,以获取费用估算。parameters={"prompt": "Image 1 is the product: keep its shape, label, and colors exactly. Image 2 sets the mood: warm sunset palette, soft shadows. Place the product on a marble counter in natural window light.", "referenceImages": ["asset_a", "asset_b"], "aspectRatio": "4:5", "resolution": "2K", "numOutputs": 2} - 重复调用并设置
model_run,然后使用返回的任务ID调用wait=false,如果超时则使用jobs_wait重新调用,切勿重复发起pending_job_ids。model_run - 调用查看两个变体,调用
asset_display保存选中的结果。asset_download
Common mistakes
常见错误
- Passing and
videotogether on Flash: they are mutually exclusive.referenceImages - Reaching for or
seed: neither exists on any member; describe the edit and batchmaskto pick from.numOutputs - Carrying fields across members: fails on Lite,
resolutionon Pro,thinkingLeveleverywhere but Flash.video - Keyword-tag prompts: comma lists underperform; write the sentence you would give a designer.
- Several references with no roles: outputs blend them; say which image is which by position.
- Enabling for stylistic work: it raises cost and earns it only on factual, real-world subjects.
useGoogleSearch
- 在Flash版本中同时传入和
video:二者互斥。referenceImages - 尝试使用或
seed:所有模型成员都不支持这两个字段;请描述编辑需求,并通过mask生成多个变体以供选择。numOutputs - 跨模型成员复用字段:Lite版本不支持,Pro版本不支持
resolution,除Flash外其他版本都不支持thinkingLevel。video - 使用关键词标签式的prompt:逗号分隔的列表效果不佳;请写出你会给设计师的完整句子。
- 多张参考图未分配角色:输出结果会将它们混合;请按位置说明每张图的作用。
- 为风格类任务开启:这会增加成本,仅适用于事实性、真实世界主题的任务。
useGoogleSearch