scenario-grok-imagine-image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScenario Grok Imagine Images
Scenario Grok Imagine 图像模型
Overview
概述
Grok Imagine, xAI's image family on Scenario, puts generation and editing in every member: the same model reads an empty as text-to-image and a filled one as an edit, so the inputs pick the mode and the member picks the tier. Members ship side by side, agreeing on the prompt contract and disagreeing on knobs and price, so discover them with and treat as the contract. The Grok Imagine video members belong to the skill.
referenceImagessearchmodel_schema_getscenario-grok-imagine-videoConnection and the core loop: see the skill; model-agnostic image work: the skill. 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-imagenpx skills add scenario-labs/skills --skill <name>Grok Imagine是xAI在Scenario平台上的图像模型家族,其所有成员均支持生成和编辑功能:同一个模型会将空的识别为文生图模式,将有内容的识别为编辑模式,因此输入决定模式,模型成员决定等级。各模型成员并行提供,遵循统一的prompt规范,但参数和定价不同,因此请使用发现模型,并将的返回结果作为约定依据。Grok Imagine的视频模型成员属于技能。
referenceImagesreferenceImagessearchmodel_schema_getscenario-grok-imagine-video连接方式与核心流程:请参考技能;与模型无关的图像处理工作:请参考技能。如果你的可用技能中缺少此处提到的同类技能,请让用户安装(命令:);若处于无人值守模式,请根据工具schema继续操作并标记缺失项。
scenarioscenario-imagenpx skills add scenario-labs/skills --skill <name>Quick reference
快速参考
At authoring time (caps are per member, read the live schema):
| Member | Aspect ratios | Notes |
|---|---|---|
| 2.0 | 14 values up to 20:9 and 9:20, default auto | adds |
| Quality | same 14, default 1:1 | fast at 2k; price near flat across variants |
| Image | 10 values, 2:1 through 1:2 | cheapest per image |
The rest is shared: up to 10000 characters, capped at 3, 1 to 10, at 1k or 2k. No seed, mask, negative prompt, or pixel sizing exists anywhere in the family: size is ratio times resolution tier, and decides what is in frame, not just the crop. In editing mode is ignored entirely and the output follows the source's proportions. The price spread is why the older members stay live: one image on the unversioned member cost a fraction of a versioned run at authoring time, and 2.0's 2k text-to-image ran well over a minute where the others took seconds. So iterate cheap and fast (the unversioned member, or 2.0 at and 1k), spend a medium 2k run on keepers, and two members on the same job before a batch: , , , and references all move price.
promptreferenceImagesnumOutputsresolutionaspectRatioaspectRatioquality: "low"dry_runnumOutputsqualityresolution在编写本文时(限制因模型成员而异,请以实时schema为准):
| 模型成员 | 宽高比 | 说明 |
|---|---|---|
| 2.0 | 支持14种,最高20:9和9:20,默认自动 | 新增 |
| Quality | 同样支持14种,默认1:1 | 2k分辨率下速度快;不同变体的价格基本持平 |
| Image | 支持10种,范围从2:1到1:2 | 单张图像成本最低 |
其余参数为所有成员共享:最多10000字符,最多3张,范围1-10,支持1k或2k。整个模型家族均不支持seed、mask、negative prompt或像素级尺寸设置:图像尺寸由宽高比乘以分辨率等级决定,不仅决定裁剪,还决定画面内容。在编辑模式下,会被完全忽略,输出将遵循源图像的比例。价格差异是旧模型成员仍在服役的原因:在编写本文时,使用无版本成员生成一张图像的成本仅为版本化模型的一小部分,而2.0版本的2k文生图运行时间远超一分钟,其他模型仅需几秒。因此,请使用低成本高速度的方式迭代(无版本成员,或2.0版本设置且分辨率为1k),对满意的结果使用中等质量的2k运行生成,批量处理前先对两个模型成员使用测试同一任务:、、和参考图都会影响价格。
promptreferenceImagesnumOutputsresolutionaspectRatioaspectRatioquality: "low"dry_runnumOutputsqualityresolutionWrite the copy, not a vibe
撰写具体文案,而非模糊感觉
The family's edge is legible in-image text: posters, packaging, infographics, memes. It only pays when the prompt carries the copy verbatim: wrap every literal string in quotes, give each a role ("the title reads ...", "a line beneath reads ..."), keep strings short, and close with "no other text", or the model invents extra labels. Real numbers and statistics go in as quoted copy too, since invented figures look plausible. Render small type at 2k and proofread in before building on the result. For the rest, write a short natural-language brief, subject, setting, composition, light, finish, in 30 to 80 words: quality adjectives ("8K", "masterpiece") are ignored and negatives mostly too, so state positives ("clean empty background", not "no clutter") and keep one aesthetic per prompt.
asset_display该模型家族的优势在于可生成清晰可读的图内文字:适用于海报、包装、信息图、表情包。只有当prompt中包含逐字准确的文案时,才能发挥这一优势:将每个字面字符串用引号括起来,为每个字符串指定角色(例如“标题内容为……”、“下方一行小字为……”),保持字符串简短,并以“no other text”结尾,否则模型会生成额外的标签。真实数字和统计数据也需要作为带引号的文案输入,因为模型编造的数字看起来会很像真的。小字号内容请使用2k分辨率渲染,并在中校对后再基于结果进行后续操作。其余内容请撰写简短的自然语言描述,包括主题、场景、构图、光线、质感,长度在30-80词之间:质量形容词(如“8K”、“masterpiece”)会被忽略,否定词也大多会被忽略,因此请陈述正面要求(例如“干净空旷的背景”,而非“没有杂物”),且每个prompt只保持一种美学风格。
asset_displayEdits are instructions, no mask exists
编辑为指令式,不支持mask
Editing is prompt-driven: pass up to three and describe the change. Two habits keep it surgical: describe only what changes and name what stays ("keep the pose, background, and lighting unchanged"), and chain one edit per run instead of stacking several. With more than one reference, state each image's role (subject, style, scene) so the blend lands where intended. The output inherits the source's proportions, so reframe before the edit, never with .
referenceImagesaspectRatio编辑功能由prompt驱动:最多可传入3张并描述修改内容。两个习惯可以让编辑更精准:只描述需要修改的部分,并明确说明保留的内容(例如“保持姿势、背景和灯光不变”),每次运行只做一次编辑,不要堆叠多个编辑请求。如果使用多张参考图,请说明每张图像的作用(主体、风格、场景),以便融合效果符合预期。输出图像会继承源图像的比例,因此请在编辑前调整好源图像的构图,不要使用来调整。
referenceImagesaspectRatioWorked example: a branded label onto a product photo
实操示例:为产品照片添加品牌标签
- with
search,target="models",query="grok imagine image". Prefer the newest non-deprecated hit, e.g.public=true(a live hit at authoring time: re-discover each session).model_xai-grok-imagine-image-2-0 - with that id: the reference cap,
model_schema_getandqualityvalues, and the ratio list before anything else.resolution - the product photo (see the
upload_assetskill) to get its asset id.scenario - with that
model_run,model_id, and the exactdry_run=true; re-estimate after any change toparameters={"prompt": "Add a minimalist front label to the bottle where the title reads \"LUMEN\" in a clean white serif and a smaller line beneath reads \"Sparkling Citrus Soda\". Keep the bottle shape, glass tint, background, shadows, and lighting unchanged, no other text.", "referenceImages": ["asset_abc"], "quality": "medium", "resolution": "2k"},quality,resolution, or references.numOutputs - Repeat with
model_run, thenwait=falsewith the returned job id, re-called withjobs_waiton timeout, never a secondpending_job_ids.model_run - and proofread the label at full size, then
asset_displaythe keeper.asset_download
- 使用方法,设置
search、target="models"、query="grok imagine image"。优先选择最新的未弃用结果,例如public=true(编写本文时的有效结果:每次会话都需要重新查询)。model_xai-grok-imagine-image-2-0 - 使用该id调用:首先查看参考图数量上限、
model_schema_get和quality的可选值,以及宽高比列表。resolution - 上传产品照片(参考技能)调用
scenario,获取其资产id。upload_asset - 使用该调用
model_id,设置model_run,并传入准确的dry_run=true;如果修改了parameters={"prompt": "Add a minimalist front label to the bottle where the title reads \"LUMEN\" in a clean white serif and a smaller line beneath reads \"Sparkling Citrus Soda\". Keep the bottle shape, glass tint, background, shadows, and lighting unchanged, no other text.", "referenceImages": ["asset_abc"], "quality": "medium", "resolution": "2k"}、quality、resolution或参考图,需要重新估算。numOutputs - 再次调用,设置
model_run,然后使用返回的任务id调用wait=false,如果超时则使用jobs_wait重新调用,切勿重复调用pending_job_ids。model_run - 使用全尺寸校对标签,然后调用
asset_display下载满意的结果。asset_download
Common mistakes
常见错误
- Setting on an edit: it is ignored and the output keeps the source's proportions; reframe the source first.
aspectRatio - Describing copy loosely ("a catchy tagline"): text comes back garbled or invented; quote exact strings and end with "no other text".
- Negative prompts: largely ignored; state the positive instead.
- A bare string where the schema says array: one reference still goes as .
["asset_x"] - Carrying beyond 2.0: at authoring time no other member had the field; check the live schema before reusing parameters across members.
quality - Fine print at 1k: small type blurs; render text-heavy finals at 2k.
- 在编辑时设置:该参数会被忽略,输出将保持源图像的比例;请先调整源图像的构图。
aspectRatio - 模糊描述文案(例如“一个吸引人的标语”):返回的文字会混乱或被编造;请引用准确的字符串,并以“no other text”结尾。
- Negative prompt:基本会被忽略;请改为陈述正面要求。
- schema要求数组时传入裸字符串:即使只有一张参考图,也要以的形式传入。
["asset_x"] - 在2.0以外的版本中使用参数:编写本文时,其他模型成员均不支持该字段;在不同成员间复用参数前,请检查实时schema。
quality - 使用1k分辨率渲染小字:小字号会模糊;文字较多的最终成品请使用2k分辨率渲染。