Audio

ElevenLabs Music v2

Changed on

Generate a song or instrumental track with ElevenLabs Music v2 — better prompt adherence, composition, and vocal delivery than v1, plus multilingual output. Send a text prompt, or a composition_plan for chunk-by-chunk control of lyrics, styles, and timing. With a prompt, vocals are included by default; set force_instrumental for instrumental-only output.

post/generate/audio/elevenlabs/music-v2

Request

  • Base URL
    https://api.krea.ai
  • Auth
    HTTP bearer

Headers

X-Webhook-URL, string uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

Request body

object required
prompt, string

Text prompt describing the music to generate, e.g. genre, mood, instruments, and lyrics style. Send either prompt or composition_plan.

composition_plan, object

Up to 30 chunks played in order, each with its own text, length, and styles, totalling 3s to 10 minutes. Send either prompt or composition_plan.

seed, integer

Seed for more consistent results with the same composition_plan. Only applies to a composition_plan.

music_length_ms, integer

Length of the track in milliseconds (3s to 600s). Omit to let the model choose. Only applies to a prompt.

force_instrumental, boolean

When true, generate instrumental music without vocals. Only applies to a prompt.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

object required
job_id, string uuid required
status, 'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'finalizing' | 'completed' | 'failed' | 'cancelled' required
created_at, string date-time required
completed_at, unknown required
result, unknown required
error, object
progress, number nullable
export_progress, object

Motion exports only, while running: frames rendered of the total, then finishing while the sound is added, then saving while the MP4 is filed.

Changes

    • info

      added the new optional request property composition_plan

    • info

      added the new optional request property seed

    • info

      the request property prompt became optional