AI Game Asset
Generate game art assets, sprites, icons, and props 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": "Generate a set of fantasy RPG item icons: a glowing blue health potion in a glass vial, a golden shield with a lion emblem, a flaming sword with a ruby pommel, and a leather satchel with enchanted runes. Each icon on a transparent background, hand-painted style, 64x64 pixel grid layout, game-ready"
}
],
"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": "Generate a set of fantasy RPG item icons: a glowing blue health potion in a glass vial, a golden shield with a lion emblem, a flaming sword with a ruby pommel, and a leather satchel with enchanted runes. Each icon on a transparent background, hand-painted style, 64x64 pixel grid layout, game-ready"
}]
)
print(response.choices[0].message.content)
With Reference Image
Match the art style of your existing assets:
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": "Create new game item icons matching the art style of these reference icons. Generate: a frost staff, a poison dagger, a healing amulet, and a scroll of teleportation. Same visual style, color palette, and icon size as the reference."},
{"type": "image_url", "image_url": {"url": "https://example.com/existing-game-icons.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.
Asset Categories
| Category |
Examples |
Common Styles |
| Item Icons |
potions, weapons, armor, food, gems |
hand-painted, flat, pixel art |
| Props |
barrels, crates, torches, signs, treasure chests |
stylized 3D, painted, isometric |
| Tilesets |
grass, stone, water, lava, dungeon floor |
pixel art, painted, seamless |
| Weapons |
swords, bows, staves, guns, hammers |
concept art, icon, sprite |
| Collectibles |
coins, stars, hearts, keys, orbs |
vector, pixel, cartoon |
| Obstacles |
spikes, walls, pits, barriers, traps |
side-view, top-down, isometric |
Prompt Engineering Tips
Prompt Structure
"Generate [asset type] for a [game genre] game:" + [specific items] + [art style] + [background] + [size/layout] + "game-ready"
Art Style Keywords
pixel art 16-bit, pixel art 32-bit, hand-painted digital,
cel-shaded, flat vector, isometric, low-poly 3D render,
anime style, comic book style, photorealistic PBR,
retro 8-bit, watercolor game art
Background Keywords
transparent background, solid black background,
dark gradient background, clean white background,
game UI slot background
Examples
Pixel Art Tileset
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": "Generate a pixel art tileset for a 2D platformer forest level: grass tiles, dirt tiles, stone path, tree trunk, leafy canopy, bush, flower, mushroom, wooden bridge plank, and water surface. 16x16 pixel tiles arranged in a sprite sheet grid. Earthy green and brown palette, retro 16-bit style, seamless edges."
}
],
"stream": false
}'
Sci-Fi Weapon Set
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": "Generate a sci-fi weapon icon set for a space shooter game: plasma rifle with blue energy glow, laser pistol with red beam indicator, EMP grenade with electric arcs, rocket launcher with orange exhaust, and an energy shield generator. Side-view perspective, clean dark background, glowing neon accents, digital illustration style, game UI ready."
}
],
"stream": false
}'
Isometric Props
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": "Generate isometric game props for a medieval town: a wooden market stall with hanging meats, a stone well with bucket, a hay cart, a blacksmith anvil with hammer, a street lamp with flame, and a wooden barrel stack. Isometric 45-degree perspective, warm hand-painted style, transparent background, game-ready assets."
}
],
"stream": false
}'
Mobile Game Collectibles
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": "Generate collectible icons for a casual mobile puzzle game: a sparkling diamond, a ruby gem, an emerald gem, a sapphire gem, a gold coin, and a silver coin. Bright glossy cartoon style with soft highlights and shadows, each on a transparent background, round icon format suitable for match-3 game grid."
}
],
"stream": false
}'
Batch Workflow: Item Rarity Tiers
ITEM="a longsword"
TIERS=(
"common: plain iron with leather grip, dull grey metal, no effects"
"uncommon: steel with blue gem in the crossguard, slight magical shimmer"
"rare: enchanted silver with glowing purple runes along the blade"
"epic: crystalline blade radiating golden light, ornate golden hilt"
"legendary: ethereal flame sword, blazing with white-hot fire, divine radiance"
)
for TIER in "${TIERS[@]}"; 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\": \"Generate a game icon of $ITEM — $TIER. Hand-painted fantasy RPG style, dark gradient background, centered composition, game-ready icon.\"}],
\"stream\": false
}"
echo "---"
done
Common Pitfalls
- Inconsistent style across assets — describe the art style identically in every prompt or provide a reference image.
- Transparent background requests may not always yield true transparency (AI generates images, not PNGs with alpha). Plan for post-processing.
- Too many items in one image — more than 6-8 items per sheet leads to reduced quality per item.
- Ignoring game perspective — specify "side view", "top-down", "isometric", or "front-facing" to match your game camera.
Related Skills
Related Models
Documentation
1---2name: ai-game-asset3description: Generate game art assets using each::sense AI. Create sprites, icons, items, weapons, props, tilesets, and UI elements for 2D and 3D games. Supports pixel art, hand-painted, stylized, and photorealistic styles across all game genres. Use for: indie game development, game jams, prototyping, asset libraries, mobile games, RPG items. Triggers: game asset, game art, game icon, game item, weapon art, game prop, tileset, game sprite, game graphics, item icon4---56# AI Game Asset78Generate game art assets, sprites, icons, and props 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": "Generate a set of fantasy RPG item icons: a glowing blue health potion in a glass vial, a golden shield with a lion emblem, a flaming sword with a ruby pommel, and a leather satchel with enchanted runes. Each icon on a transparent background, hand-painted style, 64x64 pixel grid layout, game-ready"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": "Generate a set of fantasy RPG item icons: a glowing blue health potion in a glass vial, a golden shield with a lion emblem, a flaming sword with a ruby pommel, and a leather satchel with enchanted runes. Each icon on a transparent background, hand-painted style, 64x64 pixel grid layout, game-ready"46 }]47)4849print(response.choices[0].message.content)50```5152### With Reference Image5354Match the art style of your existing assets: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": "Create new game item icons matching the art style of these reference icons. Generate: a frost staff, a poison dagger, a healing amulet, and a scroll of teleportation. Same visual style, color palette, and icon size as the reference."},66 {"type": "image_url", "image_url": {"url": "https://example.com/existing-game-icons.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## Asset Categories8182| Category | Examples | Common Styles |83|----------|----------|---------------|84| **Item Icons** | potions, weapons, armor, food, gems | hand-painted, flat, pixel art |85| **Props** | barrels, crates, torches, signs, treasure chests | stylized 3D, painted, isometric |86| **Tilesets** | grass, stone, water, lava, dungeon floor | pixel art, painted, seamless |87| **Weapons** | swords, bows, staves, guns, hammers | concept art, icon, sprite |88| **Collectibles** | coins, stars, hearts, keys, orbs | vector, pixel, cartoon |89| **Obstacles** | spikes, walls, pits, barriers, traps | side-view, top-down, isometric |9091## Prompt Engineering Tips9293### Prompt Structure9495```96"Generate [asset type] for a [game genre] game:" + [specific items] + [art style] + [background] + [size/layout] + "game-ready"97```9899### Art Style Keywords100101```102pixel art 16-bit, pixel art 32-bit, hand-painted digital,103cel-shaded, flat vector, isometric, low-poly 3D render,104anime style, comic book style, photorealistic PBR,105retro 8-bit, watercolor game art106```107108### Background Keywords109110```111transparent background, solid black background,112dark gradient background, clean white background,113game UI slot background114```115116## Examples117118### Pixel Art Tileset119120```bash121curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \122 -H "Content-Type: application/json" \123 -H "X-API-Key: $EACHLABS_API_KEY" \124 -d '{125 "messages": [126 {127 "role": "user",128 "content": "Generate a pixel art tileset for a 2D platformer forest level: grass tiles, dirt tiles, stone path, tree trunk, leafy canopy, bush, flower, mushroom, wooden bridge plank, and water surface. 16x16 pixel tiles arranged in a sprite sheet grid. Earthy green and brown palette, retro 16-bit style, seamless edges."129 }130 ],131 "stream": false132 }'133```134135### Sci-Fi Weapon Set136137```bash138curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \139 -H "Content-Type: application/json" \140 -H "X-API-Key: $EACHLABS_API_KEY" \141 -d '{142 "messages": [143 {144 "role": "user",145 "content": "Generate a sci-fi weapon icon set for a space shooter game: plasma rifle with blue energy glow, laser pistol with red beam indicator, EMP grenade with electric arcs, rocket launcher with orange exhaust, and an energy shield generator. Side-view perspective, clean dark background, glowing neon accents, digital illustration style, game UI ready."146 }147 ],148 "stream": false149 }'150```151152### Isometric Props153154```bash155curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \156 -H "Content-Type: application/json" \157 -H "X-API-Key: $EACHLABS_API_KEY" \158 -d '{159 "messages": [160 {161 "role": "user",162 "content": "Generate isometric game props for a medieval town: a wooden market stall with hanging meats, a stone well with bucket, a hay cart, a blacksmith anvil with hammer, a street lamp with flame, and a wooden barrel stack. Isometric 45-degree perspective, warm hand-painted style, transparent background, game-ready assets."163 }164 ],165 "stream": false166 }'167```168169### Mobile Game Collectibles170171```bash172curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \173 -H "Content-Type: application/json" \174 -H "X-API-Key: $EACHLABS_API_KEY" \175 -d '{176 "messages": [177 {178 "role": "user",179 "content": "Generate collectible icons for a casual mobile puzzle game: a sparkling diamond, a ruby gem, an emerald gem, a sapphire gem, a gold coin, and a silver coin. Bright glossy cartoon style with soft highlights and shadows, each on a transparent background, round icon format suitable for match-3 game grid."180 }181 ],182 "stream": false183 }'184```185186## Batch Workflow: Item Rarity Tiers187188```bash189ITEM="a longsword"190TIERS=(191 "common: plain iron with leather grip, dull grey metal, no effects"192 "uncommon: steel with blue gem in the crossguard, slight magical shimmer"193 "rare: enchanted silver with glowing purple runes along the blade"194 "epic: crystalline blade radiating golden light, ornate golden hilt"195 "legendary: ethereal flame sword, blazing with white-hot fire, divine radiance"196)197198for TIER in "${TIERS[@]}"; do199 curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \200 -H "Content-Type: application/json" \201 -H "X-API-Key: $EACHLABS_API_KEY" \202 -d "{203 \"messages\": [{\"role\": \"user\", \"content\": \"Generate a game icon of $ITEM — $TIER. Hand-painted fantasy RPG style, dark gradient background, centered composition, game-ready icon.\"}],204 \"stream\": false205 }"206 echo "---"207done208```209210## Common Pitfalls211212- **Inconsistent style across assets** — describe the art style identically in every prompt or provide a reference image.213- **Transparent background requests** may not always yield true transparency (AI generates images, not PNGs with alpha). Plan for post-processing.214- **Too many items in one image** — more than 6-8 items per sheet leads to reduced quality per item.215- **Ignoring game perspective** — specify "side view", "top-down", "isometric", or "front-facing" to match your game camera.216217## Related Skills218219- [AI Character Design](../ai-character-design/SKILL.md) — Game character concepts220- [AI Game Environment](../ai-game-environment/SKILL.md) — Level backgrounds221- [AI Sprite Generator](../ai-sprite-generator/SKILL.md) — 2D sprite sheets222- [AI Game UI](../ai-game-ui/SKILL.md) — HUD and menu elements223224## Related Models225226- [flux-2-max](../../../models/flux-2-max/SKILL.md) — Highest quality image generation227- [seedream-v4-5](../../../models/seedream-v4-5/SKILL.md) — Creative and artistic styles228- [nano-banana-pro](../../../models/nano-banana-pro/SKILL.md) — Fast iterations229230## Documentation231232- [each::sense Overview](https://docs.eachlabs.ai/sense/overview)233- [each::labs API](https://docs.eachlabs.ai)