使用ガイド
開発者向け Ideogram v4.5 画像生成プロンプトレシピ
コピー可能な編集プロンプト:主体忠実、背景置換、文字保持
このページの内容
画像生成プロンプトに異なる構造が必要な理由
テキスト生成プロンプトは一つのシーンを描写します。画像生成プロンプトは、すでに存在する画像と交渉しなければなりません。この違いは表面的な修飾ではなく構造的なものであり、ゼロから作ると見事に機能するプロンプトが、参照画像を与えた途端に濁った結果を生む主な原因でもあります。
シーンを描写するとき、各トークンは積み重なります。あなたは空白のキャンバスを埋めているのです。しかし画像を編集するとき、各トークンは保持指示か変更指示のどちらかであり、モデルはどちらがどちらかを見極めなければなりません。「カフェにいる赤いジャケットの女性」とだけ書かれたプロンプトでは、モデルは顔を自由に描き直し、ジャケットの仕立てを再設計し、部屋全体を再構想できます。保持する理由が何もないのです。あなたが保持を求めていないからです。
解決策は、編集を二つのチャネルを持つ指示として書くことです。一方のチャネルは編集後も生き残らなければならない内容を、もう一方は変更すべき内容を述べます。このガイドの以降の内容はすべてこの区分に基づいています。保持チャネルは飾りではありません。それは、あなたがすでに承認したディテールをモデルが引き直すのを防ぐ契約なのです。
編集プロンプトを書く前に、簡単なメンタルテストを行ってください。草稿を一度読み、「もしモデルがこの点を変えたら、出力は誤りになるか?」と自問します。答えがイエスなら、そのディテールは保持チャネルに属します。それが保持チャネルに属するのに、説明的な文の中でついでに触れただけなら、それを前に移し、指示の語調で述べ直してください。
ここから二つの帰結が導かれます。第一に、編集プロンプトは通常、生成プロンプトより短くなります。参照画像がすでに示している内容を再描写するのではなく、差分を描写するからです。第二に、より字義的になります。命令形(「keep」「do not change」「replace only」)のほうが形容詞より信頼できるのです。以下のレシピはすべてこの二つの習慣の上に成り立っています。

基本レシピ:編集指示の解剖学
このガイドのすべてのレシピは同じ骨格の変種です。この骨格を覚えれば、どのレシピも記憶から再構築できます。
五つのスロット
- 編集意図——操作とその範囲を一文で述べる(「この商品写真の背景だけを変える。」)。
- 保持条項——変更してはならない内容を明示する(アイデンティティ、幾何、文字、色、クロップ)。
- 変更条項——何を修正するか、実行可能なほど具体的に描写する。
- スタイル/融合条項——新しい要素が古い要素とどう融合しなければならないか(光の方向、影の柔らかさ、遠近、粒子)。
- 制約——厳格な制限と除外項目(物体の追加なし、文字の変更なし、リフレーミングなし)。
穴埋め式テンプレート
Edit intent: <operation> on <target region>.
Preserve: <subject identity>, <geometry/pose>, <text and layout>, <color and material>.
Change: <what to replace or add>, <how much of the frame it covers>.
Integrate: match <light direction>, <shadow behavior>, <perspective>, <film grain / noise>.
Constraints: do not <failure mode 1>; do not <failure mode 2>; keep <critical edge> clean.
順序はあなたが思うより重要です。保持条項を変更条項の前に置くと、モデルが新しい領域を描き始める前に主体を固定でき、実際にアイデンティティの漂流を大幅に減らせます。融合条項を変更条項の後に置くと、融合指示が融合される対象と結びついたままになります。
編集意図を狭く保つ
一つのプロンプト、一つの操作。「背景を入れ替え、同時にタイトルのフォントも更新する」は二回の編集であり、モデルはしばしば簡単なほうを犠牲にして難しいほうを達成します。代わりに二回に分けて実行し、一回目の出力を二回目に渡してください。このガイドの後の組版と文字のレシピは、このチェーン方式に依存しています。
スロットを再利用可能にする
チームが再現性を得る方法は、めったに変わらないスロットの文言——保持条項と制約——を凍結し、タスクごとに変更条項と融合条項だけを編集することです。これらの凍結した文字列を一度書き留めて共有定数に入れれば、プロンプトは作者間で漂流しません。このガイドの以降の内容では、スロットファミリーごとに開始値が提示されます。

主体忠実度レシピ
主体忠実度はほとんどの人が描写不足になるスロットです。「主体を保持」は曖昧すぎて何も束縛できません。モデルはそれを「主体らしきものを保持」と解釈します。あなたが気にかける属性を名指ししてください。
レシピ:顔を保ち文脈を変える
Edit intent: change the setting around the person in this photo; the person is not the edit target.
Preserve: the person's facial identity, facial proportions, skin tone, hairline and hairstyle, expression, pose, and body proportions.
Change: the environment behind and around the person to <new scene>.
Integrate: relight the person's edges to match the new scene's <light direction> and <color temperature>; keep shadow softness consistent with the new environment.
Constraints: do not smooth, beautify, or re-synthesize the face; do not change the head angle; do not alter clothing cut or color.
do not smooth or beautify の行には価値があります。写真モデルはデフォルトで美顔補正に傾きがちで、この制約がなければ背景置換は静かに別人を返してきます。
レシピ:商品とパッケージの一貫性
Edit intent: place the product from this image into a new scene.
Preserve: product silhouette, proportions, label placement, typography on the label, cap and seam geometry, material finish, and brand colors.
Change: the surface it rests on and the surrounding scene to <new setting>.
Integrate: match perspective and horizon; add a contact shadow and a plausible reflection on <surface>; match overall exposure to the new scene.
Constraints: do not redraw the label; do not add or remove product features; do not change the camera angle.
パッケージにとって、ラベルはアイデンティティです。それが変形すれば、レンダリングが良く見えても、この編集は商業的に失敗です。
レシピ:キャラクターとイラストの連続性
Edit intent: keep the character exactly as drawn and change only their surroundings.
Preserve: character proportions, line weight, facial design, marking and pattern placement, outfit design, and palette.
Change: the background and props around the character to <new context>.
Integrate: keep the illustration style, stroke consistency, and shading language identical to the reference.
Constraints: do not add costume details; do not change the art style; do not alter character scale relative to the frame.
忠実度がまだ漂流する場合
二回試してもアイデンティティが漂流するなら、変更条項を書き直すのをやめてください——問題は通常スコープです。参照画像を主体の周りでよりタイトにトリミングし、より大きな画幅を占めさせるか、モデルに置換を求める領域のサイズを小さくしてください。忠実度の問題はしばしば、プロンプトの衣をまとったフレーミングの問題にすぎません。

背景置換レシピ
背景置換は典型的に二つの方法で失敗します。主体の縁にハローや毛羽立ちが現れること、そして新しいシーンの光が主体の元の光と一致しないことです。どちらも融合条項で解決され、新しい背景をより詳しく描写することで解決されるわけではありません。
レシピ:クリーンな縁のスタジオ置換
Edit intent: replace the background only; the subject remains untouched.
Preserve: the subject's outline down to fine edges — hair strands, fur, fabric edges, transparent or reflective parts.
Change: the background to <seamless backdrop / gradient / studio sweep>.
Integrate: light the backdrop independently of the subject; keep the subject's existing key light direction; do not add a colored spill onto the subject.
Constraints: no fringe or halo at the subject edge; no background color bleeding into hair or translucent materials; do not crop or rescale the subject.
毛羽立ちを明示的に名指しすることがここで最も価値の高い行です。それがなければ、マット風のハローが髪や半透明のパッケージでよくあるデフォルト結果になります。
レシピ:光を合わせた環境置換
Edit intent: replace the location around the subject.
Preserve: subject identity, pose, scale, and position in frame; existing shadow shape on the subject is the reference for light direction.
Change: the environment to <new location>, including depth cues appropriate to that location.
Integrate: derive the new light direction and color temperature from the subject's existing highlights; add environment contact shadows under the subject; match depth of field and grain to the reference.
Constraints: no duplicated light sources; do not introduce reflections that contradict the new scene; do not change the subject's cast shadow direction relative to the new light.
モデルに既存のハイライトから光を導出するよう伝えるほうが、光を言葉で描写するより信頼できます。参照画像はすでに真実をエンコードしています。あなたのプロンプトはそれを指し示すだけでよいのです。
レシピ:部分的な背景編集
Edit intent: modify only the region behind the subject below the shoulder line.
Preserve: everything above that line, including the subject and the existing upper background.
Change: the lower background to <new content>.
Integrate: continue the perspective and color grade of the untouched upper region seamlessly across the boundary.
Constraints: no visible seam; no change to subject edges; do not shift the subject.
領域限定の編集により、すでに満足している背景を引き直すのを避けられます。境界は率直な空間言語で描写してください——モデルはパーセント座標より一貫してそれを理解します。
組版と文字を保持するレシピ
組版は単一の汎用プロンプトが最も深刻に漏れる場所です。文字は最初に溶け、そしてクライアントが見るまであなたが最後に気づく部分です。文字をロックされたレイヤーとして扱い、それを明示してください。
レシピ:組版をロックしたポスター
Edit intent: change the imagery in this poster; the text layer is locked.
Preserve: every character of existing text, including exact spelling, capitalization, punctuation, font style, weight, size, line breaks, alignment, and position in the layout.
Change: the photographic or illustrative elements <describe region>.
Integrate: keep the same margins and grid; ensure the new imagery does not sit behind or overlap any text.
Constraints: do not re-render, re-typeset, or paraphrase any text; do not add new copy; do not change contrast between text and its immediate background.
do not paraphrase の制約は重要です。モデルは時々、文字の外形を保ちながらコピーを「訂正」します。これは明白な破損よりも悪い場合があります。一瞥しただけでは気づきにくいからです。
レシピ:スクリーンショットと UI アセットの編集
Edit intent: update visual styling of this interface asset without changing its content.
Preserve: all labels, numbers, icons' meaning, component positions, spacing, and reading order.
Change: <color theme / border radius / shadow depth> only.
Integrate: apply the change consistently across all matching components.
Constraints: do not add, remove, or reorder UI elements; do not alter any glyph; keep text legible at the original size.
レシピ:ロゴ付きブランドアセット
Edit intent: place this branded asset into a new context.
Preserve: logo geometry, letterforms, clear space around the mark, and brand colors exactly.
Change: the surrounding composition to <new layout or scene>.
Integrate: match the new composition's perspective while keeping the logo flat and undistorted.
Constraints: do not redraw, restyle, or outline the logo; do not place the logo on a busy area that reduces contrast; do not crop the clear space.
チェーン実行に関する実務的な注意
画像と文字の両方を変える必要がある場合は、二回に分けて実行してください。まず文字をロックして画像を編集し、次に文字レイヤーを別途編集して画像をロックします。複数操作のプロンプトは互いに戦いますが、段階的な実行は戦いません。二回目の実行では一回目の保持条項を完全に維持してください。そうすれば文字編集が画像作業を取り消すことはありません。
ネガティブリストの構築
画像生成におけるネガティブ指示は第二のプロンプトではありません——回帰チェックリストです。短く保ち、実際に見た失敗モードに具体的に合わせ、事後に追加するのではなくテンプレートの制約スロットに添付してください。
繰り返し現れる失敗モード
- アイデンティティの漂流——顔や商品が微妙に再合成される。ネガティブ:
do not alter facial features; do not smooth or beautify skin; do not redraw the product label。 - 縁のアーティファクト——髪や半透明素材にハロー、毛羽立ち、ギザギザのマスクが現れる。ネガティブ:
no halo or fringe at subject edges; no background bleed into hair。 - 光の不一致——新しいシーンが主体のハイライトや影と一致しない。ネガティブ:
no conflicting light directions; no duplicated shadows; no colored spill on the subject。 - 文字の破損——コピーが溶ける、誤字になる、静かに書き換えられる。ネガティブ:
do not re-typeset or paraphrase any text; do not add copy。 - 組版の蔓延——要素が移動し、余白が変わり、コンポーネントが再配置される。ネガティブ:
do not move, resize, or reorder existing elements。 - スコープの漏れ——モデルがあなたが要求していない領域を編集する。ネガティブ:
change only <region>; leave the rest of the frame untouched。 - スタイルの置換——写真がイラストになる、またはフラットイラストが写実的な陰影を得る。ネガティブ:
do not change the medium or rendering style。
リストを規律あるものに保つ
プロンプトあたり三〜六個のネガティブ項目が実用的な範囲です。長すぎるネガティブリストは注意を薄め、合理的なディテールを抑圧する可能性があるため、まだ自分で回帰を観察していない項目は削除してください。リストを共有リストとして保存し、各レシピが必要なサブセットを参照するようにし、バージョン管理してください——レビューで新しい失敗モードが現れたとき、それは一度だけ追加され、その後はどこでも継承されます。
もう一つ身につける価値のある習慣:編集が失敗したとき、ポジティブプロンプトを書き直す前に、まずその失敗を候補ネガティブ項目として記録してください。そうするチームは、毎回ゼロから書き直すチームより早く安定したプロンプトに収束します。
コードでのレシピのテストと反復
プロンプトレシピは実行可能になって初めて資産になります。軽量なループで十分です:レシピを固定し、一つのスロットを変え、生成し、比較し、引き締める。
レシピをデータとして構造化する
凍結スロットを定数として保ち、可変スロットをパラメータとして保ちます。そうすれば「テスト」は手作業で組み立てた異なる文字列ではなく、異なるパラメータにすぎなくなります。
RECIPE = {
"intent": "Change only the background of this product photo.",
"preserve": "product silhouette, label typography, brand colors, camera angle",
"integrate": "match the new scene's light direction and add a contact shadow",
"constraints": [
"do not redraw the label",
"no fringe at the product edge",
"do not change the camera angle",
],
}
def build_prompt(recipe, change, negatives):
return (
f"Edit intent: {recipe['intent']}\n"
f"Preserve: {recipe['preserve']}.\n"
f"Change: {change}.\n"
f"Integrate: {recipe['integrate']}.\n"
f"Constraints: {'; '.join(recipe['constraints'] + negatives)}."
)
反復ループ
- 凍結——参照画像と、テスト対象スロット以外のすべてのスロットを固定する。
- 一つだけ変える——通常は変更条項か単一のネガティブ項目。
- 生成——同じ画像生成呼び出しでバリアントを作り、唯一の違いがプロンプトテキストになるようにする。
- 保持条項と項目ごとに比較:アイデンティティ、幾何、文字、光。「良さそう」ではなく項目ごとに合格/不合格で採点する。
- 文言を修正して再実行。ある文言が二回連続で合格したときにのみ、共有レシピに昇格させる。
何を記録するか
完全なプロンプト、レシピバージョン、参照画像識別子、および各保持項目の合格/不合格結果を保存します。あるレシピの文言がなぜ奇妙なのか誰かが尋ねたとき、そのログが答えになります——そしてモデルやエンドポイントの挙動が変わったとき、推測するのではなく、前回の既知の良好な実行と差分比較できます。
プロンプトではなくレシピを納品する
一つのプロンプトは使い捨てですが、名前付きスロットとネガティブリストを持つレシピはチームの資産です。バージョン管理し、コードのようにその変更をレビューし、変更履歴を保ってください。これこそが、画像生成編集を人をまたぎ時間をまたいで再現可能にするものです。
これらのレシピを実際のパイプラインに接続する準備ができたら、HiAPI.ai の画像生成エンドポイントは同じプロンプト構造を受け付け、あなたの使用量に応じて課金します。現在の料金は料金パネルでご確認ください。