Stability AI: Stable Audio 3 Small Music
fal/fal-ai/stable-audio-3/small/music/text-to-audioStable Audio 3 Small Music is a 459-million-parameter latent diffusion model for complete stereo music compositions up to two minutes long. It is the compact music-focused member of the Stable Audio 3 family. Text prompts can describe the instrument palette, genre, rhythmic feel and atmosphere, while seed, negative-prompt and duration controls support exploration of a musical idea. Its short composition format is useful when a cue needs a developed arrangement within a modest runtime. Use cases: instrumental cues, layered beat sketches and short-form soundtrack development.
- 模型组织
- stability
- 上下文长度
- 未提供
- 输入
- 文本
- 输出
- 音频
价格
直连音频生成 $0.0217 / 次请求
能力
modalitiesaudiostream随机种子seconds
API 调用
将 ROUTER_BASE_URL 设为 https://api.mkrouter.com, ROUTER_API_KEY 设为你的 API 密钥. 示例中的媒体地址、文件和音色占位值需要替换.
Chat CompletionsPOST /api/v1/chat/completions
curl "$ROUTER_BASE_URL/api/v1/chat/completions" \
-H "Authorization: Bearer $ROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fal/fal-ai/stable-audio-3/small/music/text-to-audio",
"messages": [
{
"role": "user",
"content": "Gentle acoustic music with warm piano and soft guitar"
}
],
"modalities": [
"text",
"audio"
],
"stream": true,
"audio": {
"format": "mp3",
"duration": 30
}
}'