# create_music

Canonical URL: https://developers.iagenify.com/sdk/agent/tools/create-music/
Language: en

`create_music({ prompt, duration?, tempo?, style?, path? })`

Generate a short music clip and save it. The price is flat, whatever the length.

Status: category: write · ~15 credits, flat · 1 to 120 seconds

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `prompt` | string | required | What to create. |
| `duration` | number | 10 | Seconds, 1 to 120. **The price does not change with it.** |
| `tempo` | number | 120 | Beats per minute. |
| `style` | string | classical | Genre or mood — `lo-fi`, `cinematic`. |
| `path` | string |  | Where to save it. |

## A long clip costs the same as a short one {#flat}

> **The one media tool where length is free**
>
> Images are priced by resolution and video by the second; this one is flat. Asking for ten seconds when you want ninety costs the same and gives you less.

## What it is for {#use}

A bed under a narration, a short sting, an ambience behind a generated clip. For anything more precise, the result is a starting point rather than the deliverable.

## Both audio tools write audio {#audio}

Speech and music land as audio files in the workspace. Give them distinct paths if a run produces both, or the second overwrites nothing but confuses everything.

- [create_voice](/sdk/agent/tools/create-voice): Words, read aloud.
- [Agent tools](/sdk/agent/tools): The 35, by family.
