# ai-music-generation

> Generate music and songs using ElevenLabs, Diffrythm, and Tencent Song Generation models via the inference.sh CLI.

- Skill: `inference-sh/ai-music-generation` (Agent Skill)
- Install (CLI): `npx skillmds add inference-sh/ai-music-generation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/inference-sh/ai-music-generation/raw
- Safety review: CAUTION (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML, Speech & Audio
- Tags: Cli, Diffrythm, Elevenlabs, Inference Sh, Music Generation, Song Generation, Tencent Song Generation, Text To Music
- Author: inference.sh (https://skillmd.com/u/inference-sh)
- Updated: 2026-07-06
- Page: https://skillmd.com/skills/inference-sh/ai-music-generation

---


> **Install the belt CLI skill:** `npx skills add belt-sh/cli`

# AI Music Generation

Generate music and songs via [inference.sh](https://inference.sh) CLI.

![AI Music Generation](https://cloud.inference.sh/u/4mg21r6ta37mpaz6ktzwtt8krr/01jz01qvx0gdcyvhvhpfjjb6s4.png)

## Quick Start

> Requires inference.sh CLI (`belt`). [Install instructions](https://raw.githubusercontent.com/inference-sh/skills/refs/heads/main/cli-install.md)

```bash
belt login

# Generate a song
belt app run infsh/diffrythm --input '{"prompt": "upbeat electronic dance track"}'
```


## Available Models

| Model | App ID | Best For |
|-------|--------|----------|
| ElevenLabs Music | `elevenlabs/music` | Up to 10 min, commercial license |
| Diffrythm | `infsh/diffrythm` | Fast song generation |
| Tencent Song | `infsh/tencent-song-generation` | Full songs with vocals |

## Browse Audio Apps

```bash
belt app store --category audio
```

## Examples

### Instrumental Track

```bash
belt app run infsh/diffrythm --input '{
  "prompt": "cinematic orchestral soundtrack, epic and dramatic"
}'
```

### Song with Vocals

```bash
belt app sample infsh/tencent-song-generation --save input.json

# Edit input.json:
# {
#   "prompt": "pop song about summer love",
#   "lyrics": "Walking on the beach with you..."
# }

belt app run infsh/tencent-song-generation --input input.json
```

### Background Music for Video

```bash
belt app run infsh/diffrythm --input '{
  "prompt": "calm lo-fi hip hop beat, study music, relaxing"
}'
```

### Podcast Intro

```bash
belt app run infsh/diffrythm --input '{
  "prompt": "short podcast intro jingle, professional, tech themed, 10 seconds"
}'
```

### Game Soundtrack

```bash
belt app run infsh/diffrythm --input '{
  "prompt": "retro 8-bit video game music, adventure theme, chiptune"
}'
```

## Prompt Tips

**Genre keywords**: pop, rock, electronic, jazz, classical, hip-hop, lo-fi, ambient, orchestral

**Mood keywords**: happy, sad, energetic, calm, dramatic, epic, mysterious, uplifting

**Instrument keywords**: piano, guitar, synth, drums, strings, brass, choir

**Structure keywords**: intro, verse, chorus, bridge, outro, loop

## Use Cases

- **Social Media**: Background music for videos
- **Podcasts**: Intro/outro jingles
- **Games**: Soundtracks and effects
- **Videos**: Background scores
- **Ads**: Commercial jingles
- **Content Creation**: Royalty-free music

## Related Skills

```bash
# ElevenLabs music (up to 10 min, commercial license)
npx skills add inference-sh/skills@elevenlabs-music

# ElevenLabs sound effects (combine with music)
npx skills add inference-sh/skills@elevenlabs-sound-effects

# Full platform skill (all 250+ apps)
npx skills add inference-sh/skills@infsh-cli

# Text-to-speech
npx skills add inference-sh/skills@text-to-speech

# Video generation (add music to videos)
npx skills add inference-sh/skills@ai-video-generation

# Speech-to-text
npx skills add inference-sh/skills@speech-to-text
```

Browse all apps: `belt app store`

## Documentation

- [Running Apps](https://inference.sh/docs/apps/running) - How to run apps via CLI
- [Content Pipeline Example](https://inference.sh/docs/examples/content-pipeline) - Building media workflows
- [Apps Overview](https://inference.sh/docs/apps/overview) - Understanding the app ecosystem


