Stable-Audio(instrumental generation)
POST
/302/submit/stable-audio302.AI's API comes from models we deployed on cloud GPUs. Some models are open-source, while others are fine-tuned or developed by 302.AI.
Generate instrumental music.
Project from:https://huggingface.co/stabilityai/stable-audio-open-1.0
Average runtime 10-20s
Price:0.05 PTC/call
请求参数
Header Params
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
music prompt
seconds_total
integer
required
The length of the generated music. Duration between 0 and 45 seconds;default duration is 30 seconds.
Example
{
"prompt": "a transition music",
"seconds_total": 30
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
completed_at
string
required
created_at
string
required
error
string
required
id
string
required
model
string
required
output
string
required
started_at
string
required
status
string
required
Example
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
Last modified: 25 天前