naïve
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
    ParameterDescription
    prompt
    string · required
    Genre, mood and tempo, e.g. "upbeat lo-fi, 90 bpm".
    seconds
    number
    Track 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.

    from $0.004
    per image
    2 actions
  • Naive

    Text or image to video with sound, 5–15 s.

    $0.05
    per second
    1 action
  • Naive

    Text to speech, dialogue, voice changer and voice isolation.

    from $0.002
    per second
    5 actions