Stable Diffusion API 文档
👋 欢迎
危险
注意
提示
API的特点
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
注意
--header 'Content-Type: application/json'
信息
可能的错误响应
速率限制
{
"status": "error",
"message": "Rate limit exceeded",
"tips": "you are sending same request multiple times, spam filter is enabled, please wait for 30 seconds and try again"
}
无效密钥
{
"status": "error",
"message": "Invalid Api Key",
"tip": "1. Make sure you are passing Content-Type: application/json in header. 2. Make sure you are doing POST request with valid JSON. 3. Make sure your JSON does not have error, use jsonlint to validate json array. 4. Make sure you have valid API key."
}
响应失败
{
"status": "failed",
"id": "",
"message": "Failed, Try Again",
"output": ""
}
验证错误
{
"status": "error",
"message": {
"prompt": [
"The prompt field is required."
]
}
}
{
"status": "error",
"message": "Model id not found"
}
修改于 2023-12-21 03:13:08