PeumeAPI

Developer & public data

Music Generation

Generate studio-grade music (MP3) in any style from a natural language prompt with Eleven Music — vocals or instrumental, commercial-use cleared.

$0.225 per call

Call it

curl https://api.peume.com/v1/call/music-generation \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "music_length_ms": 10,
    "model_id": "music_v1"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: music-generation.

Parameters

promptRequiredstring

Describe the music: genre, mood, instrumentation, vocals, structure (e.g. 'Uplifting acoustic folk with warm male vocals, gentle guitar and hand claps').

music_length_msRequiredinteger

Length of the generated track in milliseconds (3000–300000). REQUIRED — it is the exact billing basis ($0.15 per minute, prorated per second).

model_idstring

Music model: music_v1 (default) or music_v2 (better prompt adherence, multilingual vocals, mid-track transitions).

music_v1 · music_v2

Example: music_v1

force_instrumentalboolean

Guarantee an instrumental track (no vocals).

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.