- 触站AI API接口使用说明
- 返回结构
- 更新历史
- 基础
- 工作流(AI小工具)
- 应用工具(电商工具)
- 通用AI绘画(触站AI绘画)
- 模型训练
- MJ绘画
- 示例&DEMO
获取模型训练进度或者结果
POST
https://ai.huashi6.com/aiapi/v1/train/detail
最后修改时间:2023-11-10 03:32:25
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
taskId
string
任务ID
示例
{
"taskId": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ai.huashi6.com/aiapi/v1/train/detail' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
data
object
必需
state
string
任务当前状态
progress
integer
训练进度
remainSeconds
integer
预估本次任务的剩余训练时间
modelStyleId
integer
训练结果风格ID
此次训练成功后可以用于图生图
或者文生图
的风格ID,此字段仅在state
为success
时才有值
code
integer
必需
success
boolean
必需
示例
{
"data": {
"state": "success",
"progress": 1,
"remainSeconds": 0,
"modelStyleId": 152
},
"code": 0,
"success": true
}
修改于 2023-11-10 03:32:25