game-character-gen
Generate professional game character designs via OpenAI Images API. Create diverse characters for RPGs, video games, tabletop games, and interactive media. Use when user needs character concept art, character portraits, game sprites, or character sheets with specific attributes like race, class, profession, equipment, and visual style (e.g., "create an elven ranger", "design a cyberpunk hacker", "generate fantasy warrior character").
Game Character Generator
Generate detailed character concepts for games with precise control over race, class, equipment, and visual style.
Setup
- Needs env:
OPENAI_API_KEY
Quick Start
Generate a basic character:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "elf" \
--class "ranger"
Generate with specific details:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "dragonborn" \
--class "paladin" \
--gender "female" \
--equipment "plate armor, divine shield" \
--style "epic fantasy painting"
Generate a batch of characters:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" "dwarf" "tiefling" \
--class "warrior" "mage" "rogue" \
--style "dark fantasy" "anime" "realistic"
Character Parameters
Race (Fantasy)
human- Human (various ethnicities)elf- High elf, wood elf, dark elf (drow)dwarf- Mountain dwarf, hill dwarfhalfling- Lightfoot, stout halflinggnome- Rock gnome, forest gnomehalf-elf- Half-elf heritagehalf-orc- Half-orc heritagedragonborn- Dragonborn (various draconic lineages)tiefling- Tiefling (infernal heritage)goliath- Goliath (giant heritage)aasimar- Aasimar (celestial heritage)goblin- Goblinhobgoblin- Hobgoblinbugbear- Bugbearkenku- Kenku (bird-like)tabaxi- Tabaxi (feline)lizardfolk- Lizardfolkfirbolg- Firbolggenasi- Genasi (elemental: air, earth, fire, water)
Class (Fantasy)
warrior- Fighter, barbarian, knightmage- Wizard, sorcerer, warlockcleric- Cleric, priest, paladinrogue- Rogue, assassin, thiefranger- Ranger, hunter, scoutbard- Bard, entertainermonk- Monk, martial artistdruid- Druid, shamanartificer- Artificer, engineerinquisitor- Inquisitor, investigator
Race (Sci-Fi / Cyberpunk)
human-augmented- Cybernetically enhanced humanandroid- Synthetic androidclone- Clone soldieralien-humanoid- Various alien speciescyborg- Heavily modified cyborgbio-engineered- Genetically modified
Class (Sci-Fi / Cyberpunk)
hacker- Netrunner, hackersoldier- Mercenary, corporate soldiertech-specialist- Engineer, technicianmedic- Combat medicscout- Reconnaissance specialistpilot- Starship pilotassassin- Corporate assassindetective- Investigator
Equipment
Common equipment keywords (comma-separated):
leather armor/chainmail/plate armor/cybernetic implantssword and shield/greatsword/daggers/quarterstaffcrossbow/longbow/pistol/plasma rifle/laser pistolspellbook/arcane focus/holy symbol/tech gauntletcloak/hooded cape/tactical vest/exosuitbackpack/tool belt/medical kit/hacking deck
Style
Artistic styles for character render:
epic fantasy painting- Rich oil painting, cinematicrealistic portrait- Photorealistic character portraitanime studio- Anime/manga styleconcept art- Game concept art qualityillustration- Detailed illustrationcomic book- Bold comic stylepixel art- Retro pixel characterdark fantasy- Grim dark aestheticlow poly- Low poly 3D model lookcel shaded- Cel shading anime stylewatercolor- Soft watercolor stylevintage fantasy- Classic fantasy art
Gender / Expression
male,female,non-binary,androgynousyoung,middle-aged,elderlystoic,determined,mysterious,playful,grim,noble
Advanced Options
Custom prompt for full control:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--prompt "A rugged dwarven warrior with braided red beard, wearing ornate mithral plate armor decorated with runic engravings. He wields a massive warhammer with lightning crackling along the head. Battle-hardened expression, scars visible on face. Epic fantasy oil painting style, cinematic lighting, detailed textures."
Include character sheet:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" \
--class "mage" \
--style "concept art" \
--sheet
Parameters
--race- Character race/species (repeatable for batch)--class- Character class/profession (repeatable for batch)--gender- Gender identity--equipment- Equipment and gear description--style- Artistic style (repeatable for batch)--prompt- Full custom prompt (overrides other options)--count- Number of variants per character (default: 1)--sheet- Generate character sheet JSON with stats--out-dir- Output directory (default: ~/Projects/tmp/game-character-gen-*)--size- Image size: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)--quality- high/standard (default: high)--model- OpenAI image model (default: gpt-image-1.5)--api-key- OpenAI API key (or use OPENAI_API_KEY env)
Character Sheet Format
When using --sheet, generates character_sheet.json with:
{
"name": "Generated Character",
"race": "human",
"class": "mage",
"gender": "male",
"equipment": ["staff", "robes"],
"stats": {
"strength": 8,
"dexterity": 14,
"constitution": 10,
"intelligence": 18,
"wisdom": 12,
"charisma": 10
},
"image_file": "01-mage.png"
}
Output
*.png- Character imagescharacter_sheet.json- Character data (if --sheet)prompts.json- All prompts usedindex.html- Character gallery
Examples
D&D party:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" "elf" "dwarf" "half-orc" \
--class "paladin" "ranger" "cleric" "barbarian" \
--style "epic fantasy painting"
Cyberpunk crew:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human-augmented" "android" "clone" "cyborg" \
--class "hacker" "soldier" "tech-specialist" "assassin" \
--style "cyberpunk neon" \
--equipment "hacking deck" "plasma rifle" "tool belt" "monowire"
Children's book characters:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" "elf" "gnome" "fairy" \
--class "adventurer" "wizard" "explorer" "healer" \
--style "whimsical illustration" "watercolor"