scenario-ideogram
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScenario Ideogram Image
Scenario Ideogram 图像模型
Overview
概述
Ideogram's image family on Scenario is five single-purpose members, not one model with modes: V4 for generation where in-image text must read, V3 Generate Transparent for native alpha output, V3 Layerize Text for turning a flat graphic into editable text layers, Character for one identity held across scenes, and Remove Background for cutouts. Mechanically they agree on almost nothing: the same concept changes name, casing, and allowed values between members, so discover each with and treat its as the contract.
searchmodel_schema_getConnection and the core loop: see the skill in this repo; model-agnostic image work (sizing families, reference cardinality, masks): 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>Scenario平台上的Ideogram图像模型家族由5个单一用途的成员组成,而非一个支持多种模式的单一模型:V4用于生成需清晰呈现图像内文本的内容,V3 Generate Transparent用于原生alpha通道输出,V3 Layerize Text用于将平面图形转换为可编辑文本层,Character用于在不同场景中保持同一角色身份,Remove Background用于抠图。从运行机制来看,它们几乎没有共通之处:同一个概念在不同成员中的名称、大小写和允许取值都可能不同,因此请使用查找每个模型,并将其的结果作为使用规范。
searchmodel_schema_get连接方式与核心流程:参见本仓库中的 skill;与模型无关的图像处理(尺寸系列、参考数量、蒙版):参见 skill。如果你的可用skill中缺少此处提到的同类skill,请让用户安装(命令:);无人值守场景下,请基于工具schema继续操作并标记缺失项。
scenarioscenario-imagenpx skills add scenario-labs/skills --skill <name>Quick reference
快速参考
Pick the member by the job (names from the live schemas, caps at authoring time):
| Member | Job | Inputs that matter |
|---|---|---|
| V4 | Text-heavy generation | |
| V3 Generate Transparent | Native alpha output | |
| V3 Layerize Text | Flat graphic to layers | |
| Character | Same character, new scenes | |
| Remove Background | Cutout to transparent PNG | |
Nothing transfers between members. Sizing is presets on V4 ( is the largest), ratios on V3 Transparent and Character, and on Character alone an exact that overrides the ratio. values are uppercase on the two generators and Title case on Character, whose middle tier is Default, not BALANCED. Only V3 Transparent takes a . V4's buys speed on top of the tier at some quality cost; its default is right for finals. Per-asset cost differs several-fold across members and moves with every field, so the same job on the candidates before a batch.
imageSizesquare_hdaspectRatioresolutionrenderingSpeednegativePromptaccelerationnonecost_impact: truedry_run根据任务选择对应成员(名称来自实时schema,编写时的大小写如下):
| 成员 | 用途 | 关键输入参数 |
|---|---|---|
| V4 | 大文本量生成 | |
| V3 Generate Transparent | 原生alpha通道输出 | |
| V3 Layerize Text | 平面图形转分层 | |
| Character | 同角色,新场景 | |
| Remove Background | 抠图生成透明PNG | |
各成员之间没有通用参数。尺寸设置方面,V4使用预设(为最大尺寸),V3 Transparent和Character使用比例,而只有Character支持精确的参数,该参数会覆盖比例设置。的取值在两个生成器中为全大写,在Character中为标题大小写,其中间档位是Default而非BALANCED。只有V3 Transparent支持。V4的参数可在档位基础上进一步提升速度,但会牺牲一定质量;其默认值适合最终输出。不同成员的单素材成本相差数倍,且每个标记为的字段都会影响成本,因此批量处理前请在候选模型上对同一任务执行。
imageSizesquare_hdaspectRatioresolutionrenderingSpeednegativePromptaccelerationnonecost_impact: truedry_runExact text wants expansion off
需精确呈现文本时请关闭提示扩展
Both generators rewrite the prompt before generating by default, which helps a short exploratory prompt and hurts the family's specialty: the rewrite can paraphrase the exact copy that must render. When the image carries wording, disable expansion ( on V4, on V3 Transparent), quote each piece of copy, and give it a place and a style ('the headline reads "GRAND OPENING" in bold condensed capitals across the top'). V4 renders multilingual text the same way: quote it.
enablePromptExpansion: falseexpandPrompt: false两个生成器默认都会在生成前重写prompt,这对简短的探索性prompt有帮助,但会损害该模型家族的核心优势:重写可能会改写必须准确呈现的文案。当图像需要包含特定文字时,请关闭扩展功能(V4设置,V3 Transparent设置),将每段文案用引号括起来,并说明其位置和样式(例如:'the headline reads "GRAND OPENING" in bold condensed capitals across the top')。V4生成多语言文本的方式相同:用引号括起来。
enablePromptExpansion: falseexpandPrompt: falseTwo routes to transparency
两种实现透明背景的方式
Native: V3 Generate Transparent writes the alpha channel directly, so icons, stickers, and UI elements arrive compositing-ready. Cutout: generate on V4, then run Remove Background on the result; it reconstructs edge pixels with partial transparency rather than segmenting, so hair, fur, and glass survive. Go native when the asset is designed as an isolated element; go cutout when typography or overall quality leads, since at authoring time V4 scored well above the V3 line on public text-to-image arena ratings. Prompting "transparent background" on V4 does nothing: its outputs are opaque.
原生方式:V3 Generate Transparent直接写入alpha通道,因此图标、贴纸和UI元素可直接用于合成。抠图方式:先用V4生成,再对结果运行Remove Background;它会重建带有部分透明度的边缘像素而非简单分割,因此发丝、毛发和玻璃边缘都能保留。当素材设计为独立元素时选择原生方式;当排版或整体质量更重要时选择抠图方式,因为在编写本文时,V4在公开文本生成图像评测中的得分远高于V3系列。在V4中提示"transparent background"是无效的:其输出默认是不透明的。
Worked example: a localizable poster
实操示例:可本地化海报
- with
search,target="models",query="ideogram". Members return as separate hits; match by name, e.g.public=truefor typography (a live hit at authoring time: re-discover each session).model_ideogram-v4 - with that id: field names, allowed values, and defaults before anything else.
model_schema_get - with that
model_run,model_id, anddry_run=truefor the cost estimate.parameters={"prompt": "Retro travel poster, warm dusk palette. The headline reads \"KYOTO IN BLOOM\" in bold serif across the top; caption \"April 2027\" bottom right.", "imageSize": "portrait_16_9", "renderingSpeed": "QUALITY", "enablePromptExpansion": false, "numOutputs": 2} - Repeat with
model_run, thenwait=falsewith the returned job id, re-called withjobs_waiton timeout, never a secondpending_job_ids.model_run - the outputs and pick one.
asset_display - To make the copy editable, discover the Layerize member the same way (at authoring time), read its schema, and
model_ideogram-v3-layerize-textwithmodel_run: a generated asset's id feeds a file input directly, no re-upload. The output is a text-erased base plus text blocks with role, position, and content.parameters={"image": "<poster asset id>"} - , then
jobs_waitandasset_display.asset_download
- 调用,参数为
search、target="models"、query="ideogram"。各成员会作为独立结果返回;按名称匹配,例如用于排版的public=true(编写本文时的有效结果:每次会话都需重新查找)。model_ideogram-v4 - 使用该id调用:先确认字段名、允许取值和默认值,再进行其他操作。
model_schema_get - 使用该调用
model_id,设置model_run,并传入dry_run=true以估算成本。parameters={"prompt": "Retro travel poster, warm dusk palette. The headline reads \"KYOTO IN BLOOM\" in bold serif across the top; caption \"April 2027\" bottom right.", "imageSize": "portrait_16_9", "renderingSpeed": "QUALITY", "enablePromptExpansion": false, "numOutputs": 2} - 再次调用,设置
model_run,然后使用返回的job id调用wait=false,超时则使用jobs_wait重新调用,切勿重复调用pending_job_ids。model_run - 调用查看输出结果并选择一张。
asset_display - 若要让文案可编辑,用同样的方式查找Layerize成员(编写本文时为),读取其schema,然后调用
model_ideogram-v3-layerize-text并传入model_run:已生成素材的id可直接作为文件输入,无需重新上传。输出结果为擦除文字的底图加上带有角色、位置和内容的文本块。parameters={"image": "<poster asset id>"} - 调用,然后执行
jobs_wait和asset_display。asset_download
Common mistakes
常见错误
- Carrying one member's block to the next: and
imageSizeare V4's; V3 Transparent wantsenablePromptExpansionandaspectRatio.expandPrompt - Leaving expansion on with exact copy in the prompt: the rewrite can change the words before the model sees them.
- Prompting a transparent background on V4: generate on V3 Transparent or chain Remove Background instead.
- Inpainting on Character with but no
image: they go together (black repaints, white stays, mask resized to the image),maskstays required, and sizing fields are ignored while inpainting.characterReferenceImage - Setting and
fontNameH1together on Layerize: a tier's font comes from a font name or a font file, never both.fontFileH1has no font kind, so with only a local font file use the font name route and flag the gap.upload_asset
- 混用不同成员的参数:和
imageSize是V4的参数;V3 Transparent需要使用enablePromptExpansion和aspectRatio。expandPrompt - prompt中包含精确文案时仍开启扩展功能:重写可能会在模型处理前修改文字内容。
- 在V4中提示生成透明背景:请改用V3 Transparent生成,或串联使用Remove Background。
- 在Character上进行inpainting时传入但未传
image:二者必须配合使用(黑色区域重绘,白色区域保留,mask会调整为与图像匹配),mask仍为必填项,且inpainting期间会忽略尺寸相关字段。characterReferenceImage - 在Layerize中同时设置和
fontNameH1:一个层级的字体只能来自字体名称或字体文件,不能同时使用两者。fontFileH1没有字体类型,因此如果只有本地字体文件,请使用字体名称路径并标记该缺失项。upload_asset