Stability AI: Stable Audio 2.5
fal/fal-ai/stable-audio-25/text-to-audioStable Audio 2.5 is Stability AI's text-to-audio model for music and sound effects. It can turn descriptions of instruments, atmosphere and musical development into evolving audio, with seed and requested-duration controls. The official example develops a quiet piano figure into a larger orchestral moment, illustrating how a prompt can express both the starting material and the intended dynamic arc. This makes it useful for work that combines composition and scene-oriented sound design. Use cases: cinematic underscore, orchestral sketches, evolving musical beds and sound-effect concepts.
- 模型组织
- stability
- 上下文长度
- 未提供
- 输入
- 文本
- 输出
- 音频
价格
直连音频生成 $0.20 / 次请求
能力
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-25/text-to-audio",
"messages": [
{
"role": "user",
"content": "Gentle acoustic music with warm piano and soft guitar"
}
],
"modalities": [
"text",
"audio"
],
"stream": true,
"audio": {
"format": "wav",
"duration": 30
}
}'