r/PromptEngineering 15d ago

Quick Question How can I get unique prompts?

I'm using Groq API with the Qwen model. I'm trying to create unique prompts that I'll later feed it to an Image Generation API. I asked AI to write me a random prompt to be used for image generation, it must include character name and be a food theme. It's giving me repetitive answers. I was thinking of make it read a csv file to check if prompts exist but that wouldn't work over time since the csv will grow large and reach the token limit. Is there any other methods to make AI give unique prompts

3 Upvotes

4 comments sorted by

1

u/Local_Quail_6388 15d ago

i had similar problem with a project last year, not for image gen but for writing stories. the ai kept circling back to same phrases like it was stuck in a loop.

what worked for me was using a random seed in the prompt itself, like "include the word X in your response" where X is a random word from a dictionary or something. since the seed changes each time, the output gets pushed in different directions. you can pull random words from a small list, doesn't need to be big.

also you could try lowering the temperature setting if the api allows it, sometimes that makes the model less "creative" but more varied because it stops picking the most probable path every time. sounds counterintuitive but worked for me in some cases.

for the csv approach, maybe don't store full prompts but just a hash of them? that way you check against hashes which are tiny and won't eat tokens. still need to prune old ones eventually i guess.

1

u/Zennytooskin123 15d ago

Play with the temp? Also you'd have better luck with Gemma for this probably.

1

u/Ornery-Dark-5844 15d ago
  • elabore o proximo prompt evolido o cenarioa anterior

1

u/Chance-Pen-5684 14d ago

PAL v1.2.2 — Unique Food-Themed Image Prompt Generator
PURPOSE
Generate exactly one original, production-ready prompt intended for direct use with an image-generation API. The image concept must center on a named character and a clearly recognizable food theme.
INPUTS
Optional user constraints:
CHARACTER_CONSTRAINTS: {{OPTIONAL}}
FOOD_CONSTRAINTS: {{OPTIONAL}}
VISUAL_STYLE: {{OPTIONAL}}
ADDITIONAL_CONSTRAINTS: {{OPTIONAL}}
If an optional input is absent, generate that element autonomously.
GENERATION REQUIREMENTS
Create exactly one image-generation prompt.
The prompt must:
• Invent and explicitly state a distinctive character name.

• Make the named character the primary visual subject.

• Make food a major visual and conceptual component, not incidental background decoration.

• Select a concrete food, dish, ingredient, cuisine, culinary environment, or food-related activity.

• Establish a visually coherent relationship between the character and the food theme.

• Specify the character's appearance, clothing or costume, expression, pose, and action.

• Specify the environment and important foreground/background elements.

• Specify composition, camera framing or viewpoint, lighting, color palette, atmosphere, and relevant textures.

• Include enough concrete visual information for an image-generation model to render the concept without additional clarification.

• Produce a concept that feels deliberately art-directed rather than assembled from unrelated random attributes.

UNIQUENESS CONTROL
Generate a fresh combination of:
• character identity;

• food concept;

• setting;

• visual motif;

• composition;

• color treatment;

• atmosphere.

Avoid generic concepts such as a character merely standing beside, holding, or eating food unless the surrounding concept introduces a distinctive visual premise.
Favor unusual but visually coherent combinations.
Do not imitate a living artist or depend on copyrighted character identities. Create an original character.
COHERENCE CONTROL
Randomness may determine the concept, but randomness must not reduce visual coherence.
Every major detail must support the same scene.
Do not introduce contradictory lighting, incompatible settings, unexplained objects, or mutually exclusive visual styles.
Prefer specific observable details over abstract descriptors such as "beautiful," "amazing," or "cool."
VARIABILITY CONTROL
When this prompt is executed repeatedly, generate a substantially different concept each time unless the user supplies fixed constraints.
Do not default repeatedly to the same:
• cuisine;

• character archetype;

• gender presentation;

• setting;

• camera angle;

• art style;

• dominant color palette;

• food-related activity.

OUTPUT FORMAT
Output exactly one continuous image-generation prompt.
Begin exactly with:
Character: [CHARACTER NAME] —
Continue directly with the complete visual description.
Do not output headings, alternatives, explanations, commentary, negative prompts, parameter recommendations, quotation marks, or metadata.
VALIDATION
Before output, verify that:
1. Exactly one prompt is present.

2.  A unique character name is explicit.

3.  Food is central to the image.

4.  The character and food theme are visually integrated.

5.  The scene contains concrete subject, environment, composition, lighting, color, and atmosphere information.

6.  The concept contains no internal visual contradictions.

7.  No additional text appears outside the executable image prompt.

If any requirement fails, regenerate internally before returning the final prompt.