Generate music from a reference audio
Changed onRequest
- Base URLhttps://api.beatra.ai (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: Idempotency-Key
Headers
Request body
Generate music from a prompt, optional lyrics, and reference audio.
Caller-supplied metadata; limited by task creation policy.
HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state
Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
Style, mood, genre, and instrumentation. When lyrics are supplied (or Suno custom mode is on) this maps to the provider's style-conditioning field; otherwise it is the song description the model writes the song from. Either way it is not an instruction field: execution directives written here (for example "do not omit anything", "sing it verbatim", "make chapter three differ from chapter one") are not read as instructions and will not be obeyed. Put the words to be sung in lyrics, or set instrumental to true for a track with no vocals.
Optional lyrics text. Must be omitted for instrumental music.
When true, generate instrumental music without vocals.
Model-family scoped public options for music generation.
Target length in seconds (10–360). Results of 30 seconds or longer land within about 10%; shorter targets are generated at 30 seconds and trimmed. Not combinable with references or reference_audio.
approx keeps the generated length; exact trims to the target with a short fade-out. Only with duration_seconds.
A singer from GET /v1/music/personas (saved from a song or created from the user's own voice); the new song keeps that singer's voice and style.
Response
Task accepted
Standard Task envelope.
Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.
Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.
Actual model that ran (null until execution starts; equals model for explicit-model calls)
Changes
- info
added the new optional request property
duration_fit - info
added the new optional request property
duration_seconds - info
added the new optional request property
persona_id
5 more changes in this revision
- info