# An AI game music generator your coding agent can call

> Make game music with AI from a few words: mood, genre, tempo and instruments in, a 30 second mp3 out, one track for each menu, level and boss.

- URL: https://tyrbo.ai/ai-game-music-generator
- Title: AI Game Music Generator: A Track for Every Place
- Language: English (en)
- Updated: 2026-11-26
- In other languages: [Deutsch](https://tyrbo.ai/de/ki-spielmusik-generator), [Español](https://tyrbo.ai/es/musica-para-videojuegos-con-ia), [Français](https://tyrbo.ai/fr/generateur-de-musique-de-jeu-ia), [Português (Brasil)](https://tyrbo.ai/pt-br/gerador-de-musica-para-jogos-com-ia), [日本語](https://tyrbo.ai/ja/gemu-bgm-sakusei), [한국어](https://tyrbo.ai/ko/ai-geim-eumak-saengseong), [简体中文](https://tyrbo.ai/zh-cn/ai-youxi-yinyue-shengcheng)

Silence in a level reads as unfinished, and a single borrowed loop gets old by the third stage. `asset music` writes a track from a short line of words: what it should feel like, what style it is, how fast it goes, which instruments carry it. One call gives one 30 second `.mp3`, named after the word you chose, so the village theme is `village.mp3` and the boss fight is `boss.mp3`. Your agent can ask for a track per place in the game while it builds the rest.

Send this to your agent

```
Set up Tyrbo asset gen for me so I can make my game's art, sprite sheets, animated characters, 3D models, UI and sound from here, all in one look.
1. Install the CLI: run `npm install -g @tyrbo/asset` (Node 20.11 or later).
2. Add the skill: in Claude Code, run `claude plugin marketplace add https://cdn.jsdelivr.net/npm/@tyrbo/asset/.claude-plugin/marketplace.json`, then `claude plugin install tyrbo-asset@tyrbo`. In another MCP client, add the MCP server `npx -y @tyrbo/asset mcp`. In any other agent, read `asset --help` before the first call.
3. Check it, free: in an empty scratch folder, not my game's, run `asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mock`. It needs no key and writes stand-in files there.
4. Authenticate: ask me to make an asset key at https://app.tyrbo.ai/?from=/asset-generator#/settings/assets (Settings, Asset gen) and to run `asset login` in my own terminal, pasting the key there. Never ask me for the key in chat, and never run `asset login` yourself. Once I have, run `asset spend` to see it works.
Once that's done, let me know when it's ready.
```

[Get an asset key](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)[Read the docs](https://tyrbo.ai/asset-generator/docs)

## The commands

```
asset music village "warm folk village theme, slow tempo, accordion and acoustic guitar"
asset music boss "driving orchestral battle, fast tempo, brass and taiko drums"
asset music menu "quiet ambient menu, soft synth pads, no drums"
asset music cave "dripping, hollow cave mood, low strings, very slow" --mock
asset spend
```

## Four things to say in every ask

A music ask works when it names four things, in any order:

1. **Mood**: calm, tense, playful, sad, triumphant.
2. **Genre**: folk, chiptune, orchestral, lo-fi, synthwave, jazz.
3. **Tempo**: slow, steady, fast, or a beat count if you know one.
4. **Instruments**: fiddle and harp, a lone piano, brass and drums, soft pads.

"Upbeat chiptune, fast tempo, square wave lead and noise drums" leaves little to guess. "Something for level two" leaves everything to guess. Say what is missing too: "no drums" keeps a menu track out of the way of the buttons.

## One track for each place in the game

Think of the soundtrack as a list of places rather than one song. A title screen, a hub, two or three kinds of level, a shop and a boss cover most small games. Ask each with its own name and its own words, and keep the instruments related across them if you want the game to sound like one world: the same fiddle in the village and the forest, a heavier version of it for the boss.

Every track is 30 seconds long. Your game plays it on a loop, so a steady groove usually suits better than a track that builds to a big ending.

## Asked, quoted and kept

Before a paid call runs it is quoted, and refused if your credits cannot cover it. `asset spend` prints what you have used and what remains. A track you asked for before, with the same words, comes back from your account's cache without a second charge. `--mock` writes a placeholder file offline, so the game's code can load `boss.mp3` before the real one exists.

The service picks the model behind each verb, so this page is about what `asset music` makes rather than which model makes it. The rates are on [the pricing page](https://tyrbo.ai/pricing), and the [sound effect page](https://tyrbo.ai/game-sound-effect-generator) covers effects, voice and free retro sounds.

## Questions people ask

### Does the game’s look change the music?

No. The look guides pictures, models and the interface. A track follows only its own words, so put the mood of the place into each ask.

### Can I get a longer track?

Each call writes 30 seconds. For a longer stretch, ask two related tracks and let the game play one after the other, or loop the one you like most.

### Where does the file land?

In `./public/assets/` of the game, or wherever `TYRBO_ASSET_OUT` points, as `<name>.mp3`. The command also prints a JSON line naming the file, which a coding agent reads to wire it in.

## Interface, screens, textures and sound

- [Game UI generator](https://tyrbo.ai/game-ui-generator)
- [Game title screen generator](https://tyrbo.ai/game-title-screen-generator)
- [Tileable texture generator](https://tyrbo.ai/tileable-texture-generator)
- [Game icon generator](https://tyrbo.ai/game-icon-generator)
- [Game sound effect generator](https://tyrbo.ai/game-sound-effect-generator)
- [AI voice lines for games](https://tyrbo.ai/ai-voice-lines-for-games)
- [Game background generator](https://tyrbo.ai/game-background-generator)

## More from the asset generator

- [Asset generator](https://tyrbo.ai/asset-generator)
- [Docs](https://tyrbo.ai/asset-generator/docs)
- [Top-down RPG character sprite sheet](https://tyrbo.ai/top-down-rpg-character-sprite-sheet)
- [AI 3D model generator for games](https://tyrbo.ai/ai-3d-model-generator-for-games)
- [Auto-rig a 3D model for games](https://tyrbo.ai/auto-rig-3d-model-for-games)
- [AI sprites for Godot](https://tyrbo.ai/ai-sprites-for-godot)
- [Game assets for Claude Code](https://tyrbo.ai/ai-game-assets-for-claude-code)
- [Pixel art asset generator](https://tyrbo.ai/pixel-art-asset-generator)

## Install it, then ask for the look.

[Get an asset key](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)

Make a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.

---

This is the Markdown version of https://tyrbo.ai/ai-game-music-generator, from Tyrbo (The AI game engine). Cite and link the page itself. Every page: https://tyrbo.ai/llms.txt