AI Game UI
Generate game UI elements, HUD designs, and menu screens using each::sense — the intelligent AI agent that automatically selects the best model for your request.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
Using curl
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design a fantasy RPG game HUD overlay: health bar in red with an ornate gold frame in the top-left, mana bar in blue below it, a circular minimap in the top-right with a stone border, a row of 6 skill slots along the bottom center with gem-encrusted frames, and a gold coin counter. Dark transparent overlay style, 16:9 aspect ratio, game UI design."
}
],
"stream": false
}'
Using Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_EACHLABS_API_KEY",
base_url="https://eachsense-agent.core.eachlabs.run/v1"
)
response = client.chat.completions.create(
model="eachsense/beta",
messages=[{
"role": "user",
"content": "Design a fantasy RPG game HUD overlay: health bar in red with an ornate gold frame in the top-left, mana bar in blue below it, a circular minimap in the top-right with a stone border, a row of 6 skill slots along the bottom center with gem-encrusted frames, and a gold coin counter. Dark transparent overlay style, 16:9 aspect ratio, game UI design."
}]
)
print(response.choices[0].message.content)
With Reference Image
Match the UI style of an existing game:
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Design a game settings menu screen matching the UI style of this reference. Include: volume slider, graphics quality dropdown, control remapping section, and save/cancel buttons. Same visual theme, border style, and color palette as the reference."},
{"type": "image_url", "image_url": {"url": "https://example.com/existing-game-ui.png"}}
]
}
],
"stream": false
}'
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
Streaming
Set "stream": true for real-time SSE responses, or "stream": false for complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.
UI Element Categories
| Category |
Elements |
Placement |
| HUD |
health bar, mana bar, stamina, ammo, minimap, score |
screen edges |
| Menus |
main menu, pause menu, settings, level select |
full screen or centered panel |
| Inventory |
item grid, equipment slots, character stats |
panel overlay |
| Dialog |
speech bubbles, dialog boxes, choice buttons |
lower third |
| Notifications |
popups, achievements, loot drops, damage numbers |
floating/temporary |
| Buttons |
play, pause, settings cog, arrows, close |
contextual |
| Loading |
progress bar, spinner, tips screen |
full screen |
UI Style Reference
| Style |
Characteristics |
Genre Match |
| Ornate Fantasy |
gold borders, stone textures, runes, scrollwork |
RPG, MMORPG |
| Sci-Fi Holographic |
blue glow, thin lines, hexagons, translucent panels |
space, cyberpunk |
| Clean Minimalist |
flat colors, thin borders, sans-serif text areas |
indie, puzzle |
| Cartoon / Casual |
rounded corners, bright colors, thick outlines, bouncy |
mobile, casual |
| Military Tactical |
dark green, angular, radar-style elements, stencil |
FPS, strategy |
| Pixel / Retro |
pixel-art borders, 8-bit icons, chunky elements |
retro, roguelike |
Examples
Sci-Fi Shooter HUD
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design a sci-fi FPS game HUD: holographic transparent elements, a circular crosshair in the center, health and shield bars in the bottom-left as thin horizontal neon lines (green for health, blue for shield), ammo counter in the bottom-right showing 24/120 in a digital font, a radar minimap in the top-right corner with a hex-grid pattern, and a subtle compass bar along the top edge. Cyan and white color scheme on transparent dark background, 16:9, futuristic military UI."
}
],
"stream": false
}'
Mobile Game Main Menu
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design a main menu screen for a casual mobile puzzle game. Bright cheerful background with soft clouds and a rainbow. Large round Play button in green at the center, smaller round buttons for Settings (gear icon), Leaderboard (trophy), and Shop (cart) arranged below in a row. Game title area at the top. Cartoon style with thick outlines, glossy button effects, 9:16 portrait mobile format."
}
],
"stream": false
}'
RPG Inventory Panel
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design an RPG inventory screen UI: a central character silhouette with 6 equipment slots around it (head, chest, legs, weapon, shield, ring), a 5x4 grid of inventory bag slots on the right side, character stats panel on the left showing STR, DEX, INT, VIT with numerical values, and a gold/weight counter at the bottom. Medieval parchment and dark wood theme with iron rivets, warm candlelit ambiance, 16:9 game UI design."
}
],
"stream": false
}'
Dialog System
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design a game dialog box UI for a visual novel: a semi-transparent dark panel spanning the bottom third of the screen, a character name tag in an accent-colored tab on the upper-left of the panel, placeholder text lines for dialog, a small character portrait frame on the left edge, and a flashing triangle indicator in the bottom-right to advance text. Three choice buttons stacked on the right side. Clean anime-style UI with soft rounded corners, pastel accent colors, 16:9 format."
}
],
"stream": false
}'
Batch Workflow: Complete UI Kit
STYLE="fantasy RPG, ornate gold and stone borders, parchment texture, warm tones, game UI design"
ELEMENTS=(
"Main menu screen: title area, Play button, Options button, Credits button, dark castle background"
"HUD overlay: health bar top-left, mana bar below health, minimap top-right, 6 action slots bottom center, 16:9"
"Inventory panel: 6x5 item grid, equipment slots, character stats, gold counter, close button"
"Dialog box: bottom panel with character portrait frame, name tag, text area, choice buttons"
"Pause menu: centered panel with Resume, Settings, Save, Quit buttons, blurred background overlay"
"Loading screen: full screen with ornate progress bar at bottom, tip text area, background illustration frame"
)
for ELEMENT in "${ELEMENTS[@]}"; do
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d "{
\"messages\": [{\"role\": \"user\", \"content\": \"Design a game $ELEMENT. $STYLE\"}],
\"stream\": false
}"
echo "---"
done
Common Pitfalls
- Text rendering is unreliable in AI images. UI text will appear garbled. Use the generated image as a visual layout reference and add real text programmatically.
- Aspect ratio mismatch — specify 16:9 for PC/console, 9:16 for mobile portrait, or 4:3 for tablets.
- Too many elements in one image become cluttered and small. Focus on one screen or panel at a time.
- Ignoring readability — high-contrast elements on semi-transparent backgrounds work best. Specify contrast.
- Inconsistent style across screens — use the same style description for every UI element in the kit.
Related Skills
Related Models
Documentation
1---2name: ai-game-ui3description: Generate game UI elements using each::sense AI. Create HUD designs, menu screens, health bars, inventory panels, dialog boxes, loading screens, and button sets for mobile, PC, and console games. Supports fantasy, sci-fi, cartoon, minimalist, and skeuomorphic styles. Use for: game interface design, HUD mockups, menu design, UI kit creation, game UX prototyping, mobile game UI. Triggers: game ui, game hud, game menu, health bar, inventory ui, game interface, game buttons, dialog box, game screen, loading screen4---56# AI Game UI78Generate game UI elements, HUD designs, and menu screens using [each::sense](https://docs.eachlabs.ai/sense/overview) — the intelligent AI agent that automatically selects the best model for your request.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314### Using curl1516```bash17curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \18 -H "Content-Type: application/json" \19 -H "X-API-Key: $EACHLABS_API_KEY" \20 -d '{21 "messages": [22 {23 "role": "user",24 "content": "Design a fantasy RPG game HUD overlay: health bar in red with an ornate gold frame in the top-left, mana bar in blue below it, a circular minimap in the top-right with a stone border, a row of 6 skill slots along the bottom center with gem-encrusted frames, and a gold coin counter. Dark transparent overlay style, 16:9 aspect ratio, game UI design."25 }26 ],27 "stream": false28 }'29```3031### Using Python (OpenAI SDK)3233```python34from openai import OpenAI3536client = OpenAI(37 api_key="YOUR_EACHLABS_API_KEY",38 base_url="https://eachsense-agent.core.eachlabs.run/v1"39)4041response = client.chat.completions.create(42 model="eachsense/beta",43 messages=[{44 "role": "user",45 "content": "Design a fantasy RPG game HUD overlay: health bar in red with an ornate gold frame in the top-left, mana bar in blue below it, a circular minimap in the top-right with a stone border, a row of 6 skill slots along the bottom center with gem-encrusted frames, and a gold coin counter. Dark transparent overlay style, 16:9 aspect ratio, game UI design."46 }]47)4849print(response.choices[0].message.content)50```5152### With Reference Image5354Match the UI style of an existing game:5556```bash57curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \58 -H "Content-Type: application/json" \59 -H "X-API-Key: $EACHLABS_API_KEY" \60 -d '{61 "messages": [62 {63 "role": "user",64 "content": [65 {"type": "text", "text": "Design a game settings menu screen matching the UI style of this reference. Include: volume slider, graphics quality dropdown, control remapping section, and save/cancel buttons. Same visual theme, border style, and color palette as the reference."},66 {"type": "image_url", "image_url": {"url": "https://example.com/existing-game-ui.png"}}67 ]68 }69 ],70 "stream": false71 }'72```7374> Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.7576### Streaming7778Set `"stream": true` for real-time SSE responses, or `"stream": false` for complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.7980## UI Element Categories8182| Category | Elements | Placement |83|----------|----------|-----------|84| **HUD** | health bar, mana bar, stamina, ammo, minimap, score | screen edges |85| **Menus** | main menu, pause menu, settings, level select | full screen or centered panel |86| **Inventory** | item grid, equipment slots, character stats | panel overlay |87| **Dialog** | speech bubbles, dialog boxes, choice buttons | lower third |88| **Notifications** | popups, achievements, loot drops, damage numbers | floating/temporary |89| **Buttons** | play, pause, settings cog, arrows, close | contextual |90| **Loading** | progress bar, spinner, tips screen | full screen |9192## UI Style Reference9394| Style | Characteristics | Genre Match |95|-------|----------------|-------------|96| **Ornate Fantasy** | gold borders, stone textures, runes, scrollwork | RPG, MMORPG |97| **Sci-Fi Holographic** | blue glow, thin lines, hexagons, translucent panels | space, cyberpunk |98| **Clean Minimalist** | flat colors, thin borders, sans-serif text areas | indie, puzzle |99| **Cartoon / Casual** | rounded corners, bright colors, thick outlines, bouncy | mobile, casual |100| **Military Tactical** | dark green, angular, radar-style elements, stencil | FPS, strategy |101| **Pixel / Retro** | pixel-art borders, 8-bit icons, chunky elements | retro, roguelike |102103## Examples104105### Sci-Fi Shooter HUD106107```bash108curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \109 -H "Content-Type: application/json" \110 -H "X-API-Key: $EACHLABS_API_KEY" \111 -d '{112 "messages": [113 {114 "role": "user",115 "content": "Design a sci-fi FPS game HUD: holographic transparent elements, a circular crosshair in the center, health and shield bars in the bottom-left as thin horizontal neon lines (green for health, blue for shield), ammo counter in the bottom-right showing 24/120 in a digital font, a radar minimap in the top-right corner with a hex-grid pattern, and a subtle compass bar along the top edge. Cyan and white color scheme on transparent dark background, 16:9, futuristic military UI."116 }117 ],118 "stream": false119 }'120```121122### Mobile Game Main Menu123124```bash125curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \126 -H "Content-Type: application/json" \127 -H "X-API-Key: $EACHLABS_API_KEY" \128 -d '{129 "messages": [130 {131 "role": "user",132 "content": "Design a main menu screen for a casual mobile puzzle game. Bright cheerful background with soft clouds and a rainbow. Large round Play button in green at the center, smaller round buttons for Settings (gear icon), Leaderboard (trophy), and Shop (cart) arranged below in a row. Game title area at the top. Cartoon style with thick outlines, glossy button effects, 9:16 portrait mobile format."133 }134 ],135 "stream": false136 }'137```138139### RPG Inventory Panel140141```bash142curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \143 -H "Content-Type: application/json" \144 -H "X-API-Key: $EACHLABS_API_KEY" \145 -d '{146 "messages": [147 {148 "role": "user",149 "content": "Design an RPG inventory screen UI: a central character silhouette with 6 equipment slots around it (head, chest, legs, weapon, shield, ring), a 5x4 grid of inventory bag slots on the right side, character stats panel on the left showing STR, DEX, INT, VIT with numerical values, and a gold/weight counter at the bottom. Medieval parchment and dark wood theme with iron rivets, warm candlelit ambiance, 16:9 game UI design."150 }151 ],152 "stream": false153 }'154```155156### Dialog System157158```bash159curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \160 -H "Content-Type: application/json" \161 -H "X-API-Key: $EACHLABS_API_KEY" \162 -d '{163 "messages": [164 {165 "role": "user",166 "content": "Design a game dialog box UI for a visual novel: a semi-transparent dark panel spanning the bottom third of the screen, a character name tag in an accent-colored tab on the upper-left of the panel, placeholder text lines for dialog, a small character portrait frame on the left edge, and a flashing triangle indicator in the bottom-right to advance text. Three choice buttons stacked on the right side. Clean anime-style UI with soft rounded corners, pastel accent colors, 16:9 format."167 }168 ],169 "stream": false170 }'171```172173## Batch Workflow: Complete UI Kit174175```bash176STYLE="fantasy RPG, ornate gold and stone borders, parchment texture, warm tones, game UI design"177178ELEMENTS=(179 "Main menu screen: title area, Play button, Options button, Credits button, dark castle background"180 "HUD overlay: health bar top-left, mana bar below health, minimap top-right, 6 action slots bottom center, 16:9"181 "Inventory panel: 6x5 item grid, equipment slots, character stats, gold counter, close button"182 "Dialog box: bottom panel with character portrait frame, name tag, text area, choice buttons"183 "Pause menu: centered panel with Resume, Settings, Save, Quit buttons, blurred background overlay"184 "Loading screen: full screen with ornate progress bar at bottom, tip text area, background illustration frame"185)186187for ELEMENT in "${ELEMENTS[@]}"; do188 curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \189 -H "Content-Type: application/json" \190 -H "X-API-Key: $EACHLABS_API_KEY" \191 -d "{192 \"messages\": [{\"role\": \"user\", \"content\": \"Design a game $ELEMENT. $STYLE\"}],193 \"stream\": false194 }"195 echo "---"196done197```198199## Common Pitfalls200201- **Text rendering** is unreliable in AI images. UI text will appear garbled. Use the generated image as a visual layout reference and add real text programmatically.202- **Aspect ratio mismatch** — specify 16:9 for PC/console, 9:16 for mobile portrait, or 4:3 for tablets.203- **Too many elements** in one image become cluttered and small. Focus on one screen or panel at a time.204- **Ignoring readability** — high-contrast elements on semi-transparent backgrounds work best. Specify contrast.205- **Inconsistent style** across screens — use the same style description for every UI element in the kit.206207## Related Skills208209- [AI Game Asset](../ai-game-asset/SKILL.md) — Icons for inventory and abilities210- [AI Character Design](../ai-character-design/SKILL.md) — Character portraits for UI211- [AI Game Environment](../ai-game-environment/SKILL.md) — Background art for menus212- [AI Sprite Generator](../ai-sprite-generator/SKILL.md) — Animated UI elements213214## Related Models215216- [flux-2-max](../../../models/flux-2-max/SKILL.md) — Highest quality image generation217- [seedream-v4-5](../../../models/seedream-v4-5/SKILL.md) — Creative and artistic styles218- [nano-banana-pro](../../../models/nano-banana-pro/SKILL.md) — Fast iterations219220## Documentation221222- [each::sense Overview](https://docs.eachlabs.ai/sense/overview)223- [each::labs API](https://docs.eachlabs.ai)