OpenRouter LLM Prompt Guide
The OpenRouter (LLM) prompt generator connects the mod to cloud-hosted Large Language Models (LLMs) via OpenRouter.ai.
Instead of relying on rigid templates, the mod sends character details, outfit layers, location information, weather, and physical statuses to a smart language model. The LLM acts as an expert prompt engineer, crafting a creative, highly detailed, and style-compliant prompt for your image generator.
It works seamlessly with both Course of Temptation and Shady Deals.
Advantages & Limitations
- Exceptional Prompt Quality: LLMs write natural, cohesive descriptions that lead to superior facial expressions, authentic clothing draping, and rich scene lighting.
- Zero Local Hardware Load: All text processing runs on cloud servers, requiring zero CPU or GPU on your computer.
- Intelligent Mood Interpretation: Dynamically translates character emotions (e.g. embarrassment, exhaustion, arousal, authority) into vivid visual cues.
- Free Model Options: Several great instruct models on OpenRouter are 100% free to use.
- Requires Internet: Cannot operate offline.
- Minor Latency: Adds a brief 1–2 second delay while the LLM crafts the prompt before image generation begins.
- Safety Filters: Avoid heavily censored models; always use uncensored or flexible instruct models (like Qwen or Llama).
Pricing & Suggested Models
OpenRouter charges on a pay-per-token basis. Because prompts are concise (typically 200–400 tokens), costs are microscopic:
- Typical gameplay consumes less than $0.01 for hours of play.
- You can deposit as little as $5.00 to last for months of active gameplay.
| Model Slug | Cost | Notes |
|---|---|---|
meta-llama/llama-3-8b-instruct:free |
Free | Fast, capable, and completely free of charge. |
qwen/qwen-2.5-72b-instruct |
Near-Free | Outstanding detail, strict adherence to clothing and physical appearance. |
mistralai/mistral-nemo |
Near-Free | Excellent natural language descriptive flair. |
Step-by-Step Setup Guide
Step 1: Create an OpenRouter Account & API Key
- Go to OpenRouter.ai and register an account.
- In your dashboard, click Keys in the left menu.
- Click Create Key, give it a descriptive name (e.g.
Portrait Mod LLM), and copy the generated key (starts withsk-or-v1-).
Keep Your Key Private
Never share your API key with anyone. This key authenticates access to your OpenRouter balance.
Step 2: Configure the Mod in the Game
- Open your patched game in your browser (
CourseOfTemptation.patched.htmlorShady Deals.patched.html). - Click the gear icon (
⚙️) to open the Settings modal. - Go to the Prompt Generators tab and expand the OpenRouter (LLM) card.
- Paste your API key into the OpenRouter API Key field.
- Click Test Connection. Once confirmed, choose your model from the Model dropdown (or select a recommended default like
meta-llama/llama-3-8b-instruct:free). - At the bottom of the tab, ensure Prompt Generator Selection is set to OpenRouter (LLM).
- Click Save Settings.