Generates instrumental music or songs with sung vocals. OpenRouter can help
draft original lyrics, structure prompts, or translate style notes, but audio
generation must use music_generate or song_generate.
Before calling tools, extract these fields from the user request:
OpenRouter can draft original lyrics and prompts, but it is not an audio provider. Do not imply OpenRouter created the audio.
music_generate for BGM, loopable beds, intro/outro, ads, transitions,
and instrumental moods.song_generate when the user provides lyrics or asks for singing,
vocals, chorus, verse, jingle with words, or 唱歌.audio_provider_capabilities if music/singing availability is
uncertain.music_generate, pass a concise prompt, optional style, duration, and
output path.song_generate, pass original lyrics, vocal style, backing style,
duration, and output path.For unspecified song length, generate a short demo first instead of a full song. Use 8-15 seconds for sung demos and 10-20 seconds for instrumental BGM unless the user explicitly asks for a longer duration.
For singing, keep first-pass lyrics compact: one hook plus one short verse is
usually enough to test vocal language, accent, melody feel, and quota behavior.
If the user asks for a complete song, generate or present the full lyrics, but
send a short demo to song_generate first and then scale up after approval or
after confirming key quota.
If the provider returns quota_retry.strategy=short_preview, treat that as a
successful short demo, not as a failed generation.
music_generate or song_generate returns status=ok, put the playable
artifact/path first, then duration, style, and rights summary.song_generate returns quota_retry.strategy=short_preview, say a short
demo was generated because the full request exceeded the API key quota.note and distinguish account credits,
API key quota, feature gating, duration, format, content policy, and network
failures.music_generate,
song_generate, or audio_provider_capabilities(probe_live=true) returned
that exact provider error.note / provider message and
distinguish account credits from feature gating, duration limits, output
format restrictions, API key quota, and content-policy rejection.song_generate returns status=ok with quota_retry.strategy=short_preview,
the song was generated as a shorter playable demo after an API key quota
retry. Do not say generation failed; explain that a short version was
produced and include the playable artifact.For singing, first identify the target language and desired accent. The final vocal should use a locale-appropriate accent. Lyrics, vocal style, and pronunciation notes should match that target.
Return: