Ideogram v4による画像生成2026年8月30日 | |||||||||||||||||||||
はじめに画像生成AIのIdeogram(アイデオグラム)について。 環境
Ideogram v4のセットアップComfyUIを起動。 テンプレートで “ideogram” と検索して、「Ideogram v4: テキストから画像へ」を選択(速度が必要ならINT8版を選ぶ)。 エラーで不足しているモデルが出ているので、それらをダウンロードする。
ComfyUIのディレクトリの ComfiyUIを再起動する。エラーが出ていなければOK。 [実行する] をクリックして、絵が出てくれば完了。 Ideogram v4のプロンプトIdeogram v4のプロンプトについては ここ に記述があるが、structured JSON captionsと呼ばれている(Gemma 4 翻訳版)。 JSONでなくてもいけなくはない。 Ideogram4 Caption Prompt Templateの利用作りたいネタを考える。
上記のネタを
これを
フィルター問題フィルターを回避したモデルもあり、以下のような画像も出力できるようになる(そもそもなんでこの程度でフィルターに引っかかるのかは謎)。ここでは
付録: Ideogram 4 プロンプトガイド(要約)Ideogram 4は、構造化されたJSON形式のキャプション(structured JSON captions)を用いて学習されており、この形式で指示を出すことで、構図、スタイル、色の再現性を最大限に高めることができる。 1. プロンプトの基本:プレーンテキストとJSONIdeogram 4では、単なる文章(プレーンテキスト)よりも、構造化されたJSONプロンプトの方が圧倒的に高い精度を発揮する。といっても、必ずしもJSONを手書きする必要はない。「マジックプロンプト」機能を利用すれば、短い文章から詳細なJSONプロンプトへ自動的に拡張してくれるため、初心者でも簡単に高品質な画像が生成可能である。 なお、マジックプロンプト用システムプロンプトはIdeogram4 Caption Prompt Templateを使ったときにプレビューに出てくるあれらしい。 2. JSONキャプションの構成要素より細かく制御したい場合は、以下の3つの要素で構成されるJSONスキーマを理解することが重要である。 ① 全体記述 (
| |||||||||||||||||||||
| 項目 | 内容・実例 | 備考 |
|---|---|---|
| aesthetics | 美学的キーワード(例: "cinematic", "minimal", "vibrant") |
必須 |
| lighting | 照明の状態(例: "golden hour", "soft studio light", "neon glow") |
必須 |
| medium | 媒体(例: "photograph", "illustration", "3d_render", "painting") |
必須 |
| photo | 写真の場合の詳細(例: "35mm lens, f/1.8, bokeh") |
写真の時のみ必須 |
| art_style | アートの場合の詳細(例: "flat vector art", "oil painting") |
アートの時のみ必須 |
| color_palette | 16進数カラーコードのリスト(例: ["#FF0000", "#0000FF"]) |
任意(最後に追加) |
compositional_deconstruction)画像のレイアウトを詳細に指定する。
"A starry night sky over a calm ocean.""type": "obj"): 詳細な説明(desc)を記述。"type": "text"): 表示させたい文字列(text)と、その説明(desc)を記述。bbox) :座標を指定することで、配置場所をコントロールできる(任意)。[y_min, x_min, y_max, x_max] の形式で、0–1000 の正規化座標(原点は左上)。Ideogram 4の強力な機能の一つが、色の直接指定である。
#RRGGBB 形式で指定すること(例: #FFFFFF ◯ / #fff ✕)。style_description の中で最大16色まで指定可能。elements の中で、特定の物体だけに最大5色まで指定可能。{
"high_level_description": "A lone sailboat on calm water at sunset.",
"style_description": {
"aesthetics": "serene, warm",
"lighting": "golden hour backlighting",
"photo": "wide angle, f/8",
"medium": "photograph",
"color_palette": ["#FF6B35", "#F7C59F", "#004E89"]
},
"compositional_deconstruction": {
"background": "A calm ocean stretching to a low horizon, sky washed in orange.",
"elements": [
{"type": "obj", "desc": "A single sailboat with a white triangular sail."}
]
}

{
"aspect_ratio": "1184:896",
"high_level_description": "A cinematic wide shot of a futuristic metropolis at night under a starry sky over calm ocean waters, dominated by a giant glowing pink crayon-style 3D animated bipedal rabbit with textured hand-drawn aesthetics looming from behind the skyline.",
"compositional_deconstruction": {
"background": "A deep indigo starry night sky with scattered clouds reflecting faintly on the surface of a calm dark blue ocean below. The horizon line is low, emphasizing the scale of the foreground subjects. Soft ambient lighting creates a dreamy nighttime atmosphere with subtle texture reminiscent of crayon strokes.",
"elements": [
{
"type": "obj",
"bbox": [200, 0, 800, 1000],
"desc": "A sprawling futuristic metropolis skyline composed of tall sleek skyscrapers with neon lights in cool blue and purple tones, featuring flying vehicles moving through the air between buildings. The city has a clean, polished 3D animated aesthetic with subtle crayon-like texture overlay that gives it a hand-drawn quality rather than photorealistic detail."
},
{
"type": "obj",
"bbox": [50, 0, 950, 1000],
"desc": "A massive bipedal rabbit figure with a cute crayon-style 3D animated character design, glowing with pink neon light. The rabbit has rounded soft features, and a friendly personified mascot appearance. Its entire body emits a soft glowing illumination in a vibrant pink hue that contrasts against the cool-toned city background. The texture resembles colored pencil or crayon strokes rendered in 3D space, giving it a tactile hand-drawn quality while maintaining three-dimensional form."
},
{
"type": "text",
"bbox": [800, 300, 900, 700],
"desc": "A large stylized text reading 'USAGI' in bold yellow font with a sci-fi glow effect and slight 3D depth, positioned at the bottom center of the frame. The typography has rounded edges matching the cute anime aesthetic with subtle crayon-like texture to maintain visual consistency."
}
]
}
}

ComryUIのIdeogram4 Caption Prompt TemplateとLM Studio/qwen3.5-9b-uncensored-hauhaucs-aggressiveを使用。