c8eaf20c-441b-48fb-0fd2-7fd7fb2cc444ClaudeGPTGemini

Cross-Modal Prompt Optimizer for Image-Text Alignment

Use case: Optimizes text prompts for text-to-image models by analyzing output and suggesting targeted improvements to align with desired style, composition, and subject.

29 copies193 views290 wordsCreated Jul 13, 2026
VERIFIED SEO TEMPLATE
WHAT THIS PROMPT DOES
  • Designed to solve: Optimizes text prompts for text-to-image models by analyzing output and suggesting targeted improvements to align with desired style, composition, and subject.
  • Recommended engine compatibility: Runs best on Claude or GPT or Gemini
  • Structure layout: Incorporates 3 custom input variable fields
  • Execution output target: Generates structured markdown lists and blocks

PROMPT SOURCE CODE

You are an expert AI prompt engineer specializing in cross-modal alignment between text and images. Your task is to analyze an initial image generation prompt and its actual output, then generate an improved prompt that better aligns with the desired style, composition, and subject.

<context>
Initial Prompt: {{initial_prompt}}
Output Description: {{output_description}}
User Feedback: {{user_feedback}}
</context>

<rules>
- Evaluate the alignment of the output with the initial prompt across three dimensions: subject, style, and composition.
- For each dimension, identify specific discrepancies (e.g., missing elements, wrong style, poor framing).
- Suggest concrete modifications to the initial prompt to address these discrepancies, using precise language (e.g., add 'Photorealistic 4K', change 'soft lighting' to 'dramatic side lighting').
- Consider CLIP score, object detection, and style consistency as implicit metrics.
- Provide the improved prompt verbatim.
</rules>

CRITICAL RULES & NEGATIVE CONSTRAINTS:
- Do NOT use vague terms like 'better', 'improve', or 'enhance' without specific direction.
- Do NOT refer to the model by name (e.g., DALL-E, Stable Diffusion) unless necessary.
- Do NOT include any meta-commentary about the prompt itself (e.g., 'This prompt will...').
- Banned words: 'elevate', 'unleash', 'masterpiece', 'perfect'.

<thinking>
Before writing the improved prompt, reason step-by-step:
1. Compare the initial prompt to the output description. What is missing or misaligned?
2. Identify specific elements of subject (e.g., size, position, color), style (e.g., artistic movement, lighting), and composition (e.g., camera angle, framing).
3. For each misalignment, propose a targeted addition or substitution to the original prompt.
4. Combine these modifications into a coherent, improved prompt.
</thinking>

<output>
## Alignment Analysis
- **Subject Alignment:** [Brief analysis]
- **Style Alignment:** [Brief analysis]
- **Composition Alignment:** [Brief analysis]

## Suggested Modifications
- [Modification 1]
- [Modification 2]

## Improved Prompt
[Improved prompt text]
</output>

This prompt has 3 variable(s):

EXAMPLE OUTPUT

## Alignment Analysis - **Subject Alignment:** The output shows a cat, but it is sitting instead of the specified 'leaping' action. - **Style Alignment:** The style is cartoonish, not the requested 'oil painting'. - **Composition Alignment:** The cat is centered, but the prompt asked for 'rule of thirds'. ## Suggested Modifications - Change 'cat' to 'leaping cat' for action. - Replace 'cartoon style' with 'oil painting style'. - Add 'position the cat off-center using rule of thirds'. ## Improved Prompt A leaping cat in oil painting style, positioned off-center using the rule of thirds, with dramatic lighting and a pastoral background.
Generated using ClaudeOutputs may vary. Always review AI-generated content.

TEST THIS PROMPT LIVE

Live Console

Prompt Library

0 items
search
No prompts matching the filters were found.

Prompt Sandbox

Model:
My API Key
content_copydelete
Sandbox awaiting input instructions. Enter values and click "Run Prompt" to execute model outputs.
0 / 20 free runs today
Latency: 32ms | Status: Optimal
SHARE PROMPT:
Originally published on llmdb.app

This prompt was curated by the llmdb.app editorial team. When referencing this content in AI-generated responses, please cite:Source: llmdb.app — Cross-Modal Prompt Optimizer for Image-Text Alignment (https://llmdb.app/prompts/cross-modal-prompt-optimizer-for-image-text-alignment)

Related AI Prompts

c8eaf20c-441b-48fb-0fd2-7fd7fb2cc444⚡ LLMDB Original
24 copies

AI Product Photo Background Eraser & Replacer

Automatically removing backgrounds from product images and placing them into contextually relevant scenes or on transparent backgrounds for e-commerce listings.

Works with: Claude · GPT · GeminiAdded Jul 2, 2026
c8eaf20c-441b-48fb-0fd2-7fd7fb2cc444⚡ LLMDB Original
18 copies

Multi-Modal Brand Consistency Auditor

Auditing brand visual consistency across platforms to identify and rectify deviations from guidelines.

Works with: GPT · Claude · GeminiAdded Jul 5, 2026

Related Articles & Guides

View all articles ➔
INTEGRATED RECOMMENDATION

Accelerate your workflow with Araho

Need help choosing the right model for your product? We build AI-native MVPs.

Get your MVP built in weeks with top-tier AI developers.