Agent tools

create_music

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

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

category: write~15 credits, flat1 to 120 seconds
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

promptstringrequired

What to create.

durationnumber10

Seconds, 1 to 120. The price does not change with it.

temponumber120

Beats per minute.

stylestringclassical

Genre or mood — lo-fi, cinematic.

pathstring

Where to save it.

A long clip costs the same as a short one

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

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

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.