Back to Primitives
1 action · $0.0025 / second
Music
NaiveTool
Royalty-free music and sound effects from a prompt.
Part of AI models
Actions
Every action: POST /v1/tools/runs { "tool": "<name>", "input": { … } }
- Music
Generate track
music.generate
A track from a prompt.
Parameters Parameter Description promptstring · requiredGenre, mood and tempo, e.g. "upbeat lo-fi, 90 bpm". secondsnumberTrack length, 3-300 seconds. Left out, 30. Example response
{ "object": "audio", "url": "https://files.usenaive.ai/mus_01JDXD.mp3", "seconds": 30 }$0.0025 / second
Pricing
$0.0025 / second
Billed per call to one prepaid balance. No vendor accounts, no subscription.
Code
import { createNaive } from "@usenaive-sdk/naive"; const naive = createNaive(); // reads NAIVE_API_KEYconst run = await naive.tools.run("music.generate", {"prompt":"upbeat lo-fi, 90 bpm"}, { wait: true });console.log(run.output);
Related tools
- Naive
Text to image and image editing, up to 4K.
2 actionsfrom $0.004per image - Naive
Text or image to video with sound, 5–15 s.
1 action$0.05per second - Naive
Text to speech, dialogue, voice changer and voice isolation.
5 actionsfrom $0.002per second