歌曲生成
clavue-music 是官方歌曲产品 ID(premium 池)。打 api.clavue.com 的 POST /v1/audio/speech。一句话默认 10 秒(hop spark:35B∥3.8,接近时 4b 裁判)。TTT-ready 默认 30 秒、seed 11。不要对引擎一次发 180 或 240。不要选 4b,产品代码不要写上游模型名。
如何生成
- POST /v1/audio/speech,只写 model=clavue-music。不要选 4b / 35B / 3.8。
- 一句话:input 用用户原句。不要本地拆成 [Verse] + caption。默认 10 秒,seed 11。
- TTT-ready:标签单独成行的词 + 英文三段 caption。默认 30 秒。
- 一句话由网关 spark(35B∥3.8;接近时 4b ≤0.8s)。响应头 x-imux-music-compose = spark | spark-4b | local。
- voice 为同一秒数字符串。引擎最长 110。180 秒并行两次 90 — 不要发 180。
- caption:10 秒 90–140 英文词;30 秒 150–220。不要写成小说。
curl -sS https://api.clavue.com/v1/audio/speech \
-H "Authorization: Bearer $CLAVUE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model":"clavue-music",
"input":"[Verse]\nMorning light filtering through the pine\n[Chorus]\nStay with me in this light",
"instructions":"Global Metadata\nAcoustic pop, 96 BPM, intimate morning.\nVocal Details\nSoft female lead, close-mic.\nArrangement\nFingerpicked guitar, soft piano, brushed snare in the chorus.",
"audio_duration":30,
"voice":"30",
"seed":11,
"response_format":"wav"
}' --output song.wav --max-time 600推荐设置
引擎采样锁死。只传时长、seed、歌词和 caption。单段超时 ≥600s。不要传 temperature / top_p / speed / 音色名。
- audio_duration:一句话 10 / TTT-ready 30 · 引擎最长 110 · 产品 240 用 90∥90 或 110∥110
- voice:同一秒数的字符串,例如 "30"
- seed:热路径 11;用户要换一版再换 seed
- response_format:wav · 读真实时长,不要只看 HTTP 200
{
"model": "clavue-music",
"audio_duration": 30,
"voice": "30",
"seed": 11,
"response_format": "wav"
}提示词演示(30 秒原声)
一句话可以直接打 /v1/audio/speech(10 秒)。这一节是你们已经控词时的 TTT-ready 30 秒 payload。标签必须单独成行。弱 caption:Genre: pop. BPM: 96.
# User intent
Duration: 30 seconds. Acoustic pop. Soft female, close-mic, no belting.
Theme: pine needles at a morning window, a quiet street.
No full drum kit, no celebrity names.
# Caption rewriter system
You are a song caption engineer. Expand the user's intent into an English Structured Caption.
Output only three headings. No title, no lyrics, no explanation.
### Global Metadata — genre, BPM, mood arc, scene, production
### Vocal Details — gender, register, verse vs chorus, harmony, space
### Arrangement — instrument entries by section; 2–3 lead instruments; 150–220 words for 30s (90–140 for 10s)
# Lyrics rewriter system
Write lyrics for the target duration. Tags on their own line.
Allowed: [Intro] [Verse] [Pre-Chorus] [Chorus] [Bridge] [Outro]
Chorus short and repeatable. ~2–3 Chinese characters per second.
30s = Verse + Chorus, 8–12 lines. Lyrics only.
# Example input (lyrics)
[Verse]
晨光穿过窗边的松针
这条安静的街像只属于我们
把昨夜的 rumble 轻轻放下
让呼吸自己找到节奏
[Chorus]
世界慢慢醒来
你走在我左边
别说话,先听风
把名字吹成一天
# Example instructions (caption)
Global Metadata
Basic Attributes: bpm is 96. key is C, and scale is major. Contemporary acoustic pop.
Global Emotional Progression: Opens intimate and still, then lifts into a wider, hopeful chorus without turning anthemic.
Application Scenarios & Imagery: Early morning apartment, pine light through a window.
Sonics & Production Profile: Intimate, mid-focused, warm low mids, no harsh cymbals.
Vocal Details
Soft female lead, breathy, close to the microphone. Conversational verse; sustained chorus; no belting.
Light stacked doubles only in the chorus. Short plate, almost dry in the verse.
Arrangement
Intro: fingerpicked steel-string guitar alone.
Verse: guitar plus very soft piano; no full drum kit.
Chorus: brushed snare, upright bass, piano opens; keep the guitar pattern continuous.限制
单次引擎 10–110 秒。单段超时 ≥600s。不要传 temperature / speed / 音色名。词不够会提前结束 — 读 WAV 时长。180/240 必须并行两段。
一次发 180 或 240 会失败。把默认单曲做成 3 分钟,墙钟会到大约 19 分钟。