Text prompt describing the desired musical composition.
Quality and specificity of the prompt directly influence output quality. Include genre, mood, instrumentation, and tempo for best results.
Optional modelModel identifier to use for generation.
When omitted the provider falls back to its IAudioGenerator.defaultModelId.
Optional durationDesired output duration in seconds.
Provider limits vary: Suno caps at ~240s, Stable Audio at ~47s. Exceeding the limit may result in truncation or an error.
Optional negativeNegative prompt describing musical elements to avoid.
Not all providers support negative prompts — unsupported values are silently ignored by the adapter.
Optional outputOutput audio format.
'mp3'
Optional seedSeed for reproducible output.
Not all providers honour seeds — check provider documentation.
Optional nNumber of audio clips to generate.
1
Optional userIdentifier of the requesting user (for billing / rate limiting).
Optional providerArbitrary provider-specific options.
Request payload for music generation from a text prompt.
Passed to IAudioGenerator.generateMusic by the high-level orchestration layer after normalising user input.
Example