generate or extend music
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Task type. Use GET /generate/schema?task=xxx to query required fields for each task.
create, extend, upload_extend, upload_cover, cover, use_styles_lyrics, replace_section, add_instrumental, add_vocals, gen_stem_two, gen_stem_all, mashup, sample, inspiration "create"
Model version.
chirp-v35, chirp-v40, chirp-v45, chirp-45+, chirp-v45-lite, chirp-v50 "chirp-v50"
Whether to make instrumental (no vocals). [Optional: all tasks]
false
Lyrics or prompt text. [Optional: all tasks] For replace_section: lyrics within infill_context_range (modified if replacement changes lyrics).
"[Verse]\nHello world, here I come...\n\n[Chorus]\nLa la la..."
Full song lyrics after replacement. [Required: replace_section] Contains the complete lyrics of the entire song with the replaced section updated.
"[Verse 1]\nOriginal lyrics...\n\n[Chorus]\nNew replaced lyrics...\n\n[Verse 2]\nMore lyrics..."
Lyrics for the replaced section only. [Optional: replace_section] The specific lyrics within the range being replaced.
"[Bridge]\nThis is the new bridge section\nWith updated lyrics..."
Short description for GPT lyrics generation. [Optional: create, mashup, etc.]
"A happy pop song about summer vacation"
Style tags. Supports string or array. [Optional: all tasks]
"Pop, Happy, Upbeat"
Negative style tags to exclude. [Optional: all tasks]
"Sad, Slow"
Song title. [Optional: all tasks]
"Summer Vibes"
Source clip ID. [Required: extend, cover, use_styles_lyrics, replace_section, add_instrumental, add_vocals, gen_stem_*, sample]
"clip_abc123"
Continue position in seconds. [Optional: extend, upload_extend]
x >= 030
Target range { start_s, end_s }. [Required: replace_section, add_instrumental, add_vocals, sample] For replace_section: the section to replace (duration should be > 6 seconds). For sample: the time range to sample from source clip.
{ "start_s": 15.36, "end_s": 53.8 }Infill context range (must encompass range). [Required: replace_section] Should extend ~30s before range.start_s and ~30s after range.end_s. If range starts within first 30s, use 0 for start_s. If range ends within last 30s of song, use song duration for end_s.
{ "start_s": 0, "end_s": 69.16 }Artist persona config for style mimicking. [Optional: create, cover, extend]
{
"persona_id": "persona_xyz789",
"artist_clip_id": "clip_abc123",
"persona_style": "vox"
}Advanced control sliders (0~1). [Optional: all tasks]
{
"style_weight": 0.6,
"audio_weight": 0.4,
"weirdness_constraint": 0.2
}Vocal gender (m=male, f=female). [Optional: all tasks]
m, f "m"
Audio URL for upload tasks. [Required: upload_extend, upload_cover]
"https://example.com/audio.mp3"
Two clip IDs for mashup [clip_a, clip_b]. [Required: mashup]
["clip_abc123", "clip_def456"]Clip IDs for inspiration generation (max 4). Must be clips from the same account. [Required: inspiration]
4[
"1df1d908-842d-41a2-bce4-c798a551cd2d",
"93d2bfe9-c6d4-42cd-88fc-ee508d4fa6ed"
]task id. Use this id to query task status.
"15c257ff-43f7-4678-bd41-202ad6b8488b"