Skip to content

OpenRouter Cloud Image Generator Guide

OpenRouter is a unified cloud API gateway that provides access to dozens of state-of-the-art AI models. By configuring OpenRouter as your image generator, you can generate portraits using heavy, cutting-edge cloud models (such as Black Forest Labs' Flux.1) without needing any local graphics hardware.

It works identically across both Course of Temptation and Shady Deals.


Advantages & Limitations

  • Bleeding-Edge Cloud Models: Access heavy models like Flux.1 Klein or Dev that are otherwise very difficult to run locally.
  • Zero Local GPU Strain: All image rendering happens on remote servers.
  • Unified Account: If you use OpenRouter for LLM prompt generation, you can use the exact same account, balance, and API key for both text and images!
  • Pay-Per-Image: Each generated portrait costs a fraction of a cent or a few cents from your balance.
  • Safety & Moderation: Because models are hosted by commercial cloud providers, some models enforce strict content moderation filters.
  • No Seed Control: The OpenRouter /api/v1/images endpoint does not support seed parameters (setting a frozen image seed has no effect).
  • Requires Internet: Cannot run offline.

Pricing & Suggested Models

OpenRouter uses a transparent pay-per-generation billing system. You deposit credits (minimum $5) into your OpenRouter account, which are deducted per generation:

Model ID Cost per Image (Est.) Description
black-forest-labs/flux.2-klein-4b ~$0.014 / image Fast, high-resolution, modern photorealism and anatomy. Highly recommended.

Step-by-Step Setup Guide

Step 1: Create an OpenRouter Account & API Key

  1. Go to the OpenRouter Website and create an account.
  2. Go to your account dashboard and deposit a few dollars of credit (e.g. $5).
  3. Navigate to Keys in your dashboard settings.
  4. Click Create Key, give it a name (e.g. Portrait Mod Image), and copy the key (starts with sk-or-v1-).

Step 2: Configure the Mod in the Game

  1. Open your patched game in your browser (CourseOfTemptation.patched.html or Shady Deals.patched.html).
  2. Open the Settings modal (⚙️) and go to the Image Generators tab.
  3. Expand the OpenRouter Image API card.
  4. Paste your API key into the OpenRouter API Key field. (Note: entering this key will automatically synchronize with your OpenRouter LLM prompt settings as well).
  5. In OpenRouter Image Model, select or enter black-forest-labs/flux.2-klein-4b.
  6. Click Test Connection to verify your account balance and key validity.
  7. Set Active Image Generator to OpenRouter Image API at the bottom of the tab.
  8. Click Save Settings.

Screenshot: OpenRouter Image Settings