subclip-music-generation
Generate instrumental background music, soundtracks, underscore, or original music beds for product demos, SaaS launches, ads, explainers, talking heads, stories and travel videos using Subclip cloud music models. Use for new music, music variations, image-inspired music or reusing generated tracks, and for AI sound effects (whooshes, hits, risers, UI sounds, foley, ambience). For sung lyrics, also read subclip-songwriting.
Music generation
Use Subclip MCP generate_music; outputs live under Audio, not a separate category. Read prompt recipes for the matching use case before drafting. This skill is for generating media, not publishing or licensing claims.
Model preference
Default to Google Lyria 3 Pro (modelId: "lyria-3-pro") for all music and song generation. Switch to another music model only when the user explicitly requests that model or asks to switch. Do not switch automatically for duration, output format, cost, lyrics, or after a failure. If Lyria cannot meet a requirement or is unavailable, explain the limitation and ask which model the user wants before generating with another model.
Sound effects are not music: for a whoosh, hit, UI sound, foley or ambience use ElevenLabs Sound Effects (elevenlabs-sound-effects) as described in Sound effects, not Lyria.
Prepare a useful brief
Identify the intended scene, approximate length, mood/energy arc, genre, 2–4 instruments, tempo or groove, and whether narration needs room. Default a background-music request to settings.mode: instrumental; explicitly request no vocals, humming or speech. Do not invent song lyrics for an instrumental request.
Use a compact positive brief: purpose + style/mood + rhythm + instrumentation + progression + mix constraints. Avoid unrelated genre lists and contradictory tempo or energy instructions. Describe approximate scene beats in seconds when useful; Lyria and MiniMax have no duration parameter. ElevenLabs offers a target length, but musical events still need review and may need trimming. Generate a usable track, then trim/fade/mix the imported audio to the actual timeline.
Discover and generate
list_ai_models(kind: audio)and filteroperationsfortext_to_music. Read live pricing/settings and useget_ai_credit_statuswhen estimating available credits. Speech voices are unrelated; do not calllist_ai_voicesfor music.- Use Lyria by default; consult other model capabilities only for an explicit user-requested model:
- Lyria 3 Pro: prompt and up to 10 image references, optional seed; approximately up to 3 minutes. Images convey scene, palette and mood. Lyrics, language, vocals and progression are written into the prompt by the adapter. No separate duration, bitrate, sample-rate or instrumental provider fields. A seed does not guarantee identical output.
- MiniMax Music 2.6: description up to 2,000 characters, custom lyrics up to 3,500, instrumental mode or automatic lyrics. Sample rates 16/24/32/44.1 kHz; MP3 bitrates 32/64/128/256 kbps; MP3 or WAV. Subclip's
pcmoption delivers PCM in a WAV container for safe playback/import. No images, audio reference, seed or exact-duration field. Tracks may reach 6 minutes. - ElevenLabs Music (
elevenlabs-music):settings.music_length_msfrom 5,000 to 300,000 (default 10,000).settings.output_format:mp3_standard(128 kbps),mp3_high_quality(192 kbps),wav_16khz,wav_22khz,wav_24khz,wav_cd_quality(44.1 kHz). No images, audio references, seed, model-version selector or composition-plan field in this Replicate endpoint. Custom lyrics are appended to the prompt; total provider prompt including instructions is limited to 4,100 characters.instrumentalmaps toforce_instrumental: true; song modes set it false and describe vocals in the prompt. Do not confuse the wider native ElevenLabs API with the Replicate wrapper.
- Resolve user-authorized image references with
list_editor_assets; send exact source file/item IDs insourceAssetswithrole: reference. Never put paths, URLs or hidden asset IDs in settings. Do not upload a visible attachment without authorization to use it. - Establish the exact music brief, model, image inputs, lyrics mode, settings and credit estimate. An explicit generation request authorizes one matching generation; ask only for missing material choices or an unapproved change. Prices come from the live catalog. Lyria/MiniMax charge per successful track. ElevenLabs is billed per second of validated output: currently 0.7055 credits/second (42.33/minute), rounded up once at the total. Estimate uses requested seconds plus 1 second of codec padding; only actual output duration is charged. Read the live catalog instead of assuming these rates stay fixed. Successful output is charged once, not per retry; cloud files also use storage.
- Call
generate_musiconce withconfirmed: trueafter authorization. Usesettings: {mode: 'instrumental'}for background music. Do not send top-level durationSeconds, video generateAudio or negativePrompt. For ElevenLabs put target duration in settings.music_length_ms and the format in settings.output_format. For other models describe approximate timing in the prompt. - Keep the operation ID. In-app agents end the turn after the accepted async result; Subclip resumes the conversation on completion/failure. Do not loop, sleep-poll or resubmit because the track is queued. External clients can inspect
get_ai_operationlater. - On completion use
get_ai_operationandimport_ai_operation_to_timelineby stable ID when the user asked to place it. Keep original editable visuals and audio intact. A generated track imports as one Audio asset, not stems. Adjust gain beneath narration; trim and add fades with audio-editing tools when requested. Inspect duration before placement.
Sound effects
Use generate_music with modelId: "elevenlabs-sound-effects" for short non-musical sounds: transition whooshes and swishes, impacts and hits, risers, UI clicks and notifications, foley (footsteps, doors, paper), and ambience beds (rain, café, room tone). Do not use it for music beds or songs, and do not use speech tools for sound effects.
- Prompt: one sound, at most 450 characters. Describe the source, action, space and texture, for example "heavy wooden door slams in a stone hall" or "fast airy whoosh sweeping left to right, clean, no music". Generate one sound per call; place several calls on the timeline for a sequence.
settings.duration_seconds: 0.5–22. Match the timeline gap (a transition whoosh is usually 0.5–1.5 s, a hit 1–2 s). Omit it for automatic length.settings.prompt_influence: 0–1, default 0.3. Raise it (0.6–0.8) for a precise, literal sound; lower it for variety.settings.loop: trueonly for ambience or backgrounds that will loop under the edit; then setloopon the placed audio item withupdate_audio_item.settings.output_format:mp3_44100_64,mp3_44100_128(default) ormp3_44100_192.- Not accepted: song modes or lyrics (keep
modeinstrumental or omit it),music_length_ms, image references, seed, and MiniMaxaudio_format/sample_rate/bitrate. - Pricing: billed per second of the saved sound, currently 0.17 credits/second. The estimate is (duration_seconds + 1) × rate; automatic length is quoted at the 22-second maximum (3.91 credits). Quote with
estimate_ai_generation(kind: "audio",modelId: "elevenlabs-sound-effects",durationSecondsequal toduration_seconds, or omitted for automatic). Read the live catalog instead of assuming the rate stays fixed.
{"confirmed":true,"modelId":"elevenlabs-sound-effects","prompt":"Fast airy whoosh transition sweeping from left to right, clean, no music.","settings":{"duration_seconds":1,"prompt_influence":0.5}}
After completion, import it with import_ai_operation_to_timeline and set its volume with the subclip-audio-editing mixing defaults: sound effects sit under speech, so start around 0.4–0.7.
Example call
After live discovery and an authorized request for a demo soundtrack:
{"confirmed":true,"modelId":"lyria-3-pro","prompt":"Optimistic electronic underscore for a product demo, 108 BPM. Warm synth pulses, muted plucks and restrained percussion. Start simply, lift gently at the feature reveal, then resolve. Sparse midrange for spoken narration. Instrumental, no vocals.","settings":{"mode":"instrumental"}}
A changed prompt/model or new variation creates a new paid operation; do not silently regenerate. For a failed transfer/billing completion use the existing retry_ai_operation and its recovery rules, not a new generation. For deletion identify exact IDs and confirm unless the user already asked to delete those items. For a running music operation, deletion also requests cancellation. Respect any conflict returned by the service and do not promise cancellation or a refund before it is confirmed. No live generation in plan mode: read-only discovery, brief and estimate only.
Sources: ElevenLabs Replicate schema, ElevenLabs prompting guide, MiniMax schema and guidance, Lyria schema, Google prompting guide. API catalog remains authoritative if capabilities change.
- Downloads
- 83All time
- Security audit
- Pass
- Last updated
- 2d ago
- Current version
- v1.0.0
- License
- MIT-0
