画像生成
以下の各ブロックは、「テキスト生成」と同様に、同一のプロンプトと /mtp <args> コマンドを使った画像生成の出力結果を比較します。各コマンドの挙動と、MTP のノード(Power や Flow など)ごとの違いを確認できます。いくつかの異なるプロンプトで、モデルごとにテストを行っています。
1. モナ・リザのポートレート
Section titled “1. モナ・リザのポートレート”プロンプト
/mtp <args>
<agent_instruction>
[IMAGE TASK]prompt = """A captivating, hyper-realistic close-up portrait photograph reimagining the Mona Lisa as a real woman. Her skin is luminous, with flawless texture and natural makeup, revealing subtle pores. She possesses delicate, refined features and that iconic, enigmatic smile with a gentle gaze. Illuminated by flattering, soft studio lighting, creating a perfect balance. Captured with a shallow depth of field and a beautifully soft bokeh background. Cinematic clarity, ultra-high detail, photorealistic masterpiece."""
result = client.images.generate( model=<model>, prompt=prompt, size="1024x1024", aspect_ratio="1:1",)2. ファッション雑誌の写真
Section titled “2. ファッション雑誌の写真”プロンプト
/mtp <args>
<agent_instruction>
[IMAGE TASK]prompt = """High-end editorial fashion photography, a professional model wearing haute couture, highly stylized, captured on a Hasselblad 500CM medium format camera, with a 120mm f/4 lens and f/8.0 for sharpness. Precise studio strobe lighting from a beauty dish defines facial structure and highlights every textural detail of the fabric. Photorealistic masterpiece, stunning realism, film grain texture, natural skin tones."""
result = client.images.generate( model=<model>, prompt=prompt, size="1024x1024", aspect_ratio="1:1",)3. 幾何学的なビリヤードの絵画
Section titled “3. 幾何学的なビリヤードの絵画”プロンプト
/mtp <args>
<agent_instruction>
[IMAGE TASK]prompt = """Precisionist, minimalist painting of billiards and energy. Clean, sharp lines and smooth surface gradients. Low-angle perspective looking up at the table's edge. Abstract geometric shapes representing power and motion. Cool, muted tones with high-contrast shadows. Perfectly calculated composition, clinical yet powerful atmosphere. A sterile, perfectly symmetrical hall filled with intense, silent tension."""
result = client.images.generate( model=<model>, prompt=prompt, size="1024x1024", aspect_ratio="1:1",)