启明星云服务
  1. 通用接口
启明星云服务
  • 接入指南
  • 通用接口
    • 票据接口
      POST
    • 发起任务接口
      POST
    • 任务结果接口
      POST
  • 其他接口
    • COS文件公网链接接口
      POST
  • 服务列表
    • 音乐分离
      • 声伴分离服务
      • 多轨分离服务
    • AI作曲
      • 文生音频服务
      • 音频扩写服务
  1. 通用接口

发起任务接口

POST
service_request

请求参数

Body 参数application/json
appid
string 
分配的AppId
必需
ticket
string 
有效票据
必需
2h内有效,过期需要重新获取
spaceId
integer 
企业空间ID
必需
serviceCode
string 
接口编码
必需
具体请查看【服务列表】中对应的【ServiceCode】
param
string 
接口参数
必需
具体请查看【服务列表】中对应ServiceCode中【param参数】
示例
{
    "appid": "string",
    "ticket": "string",
    "spaceId": 0,
    "serviceCode": "string",
    "param": "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 'service_request' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appid": "string",
    "ticket": "string",
    "spaceId": 0,
    "serviceCode": "string",
    "param": "string"
}'

返回响应

🟢200成功
application/json
Body
requestId
string 
链路ID
必需
本次请求的链路ID
code
integer 
错误码
必需
请求返回的错误码
msg
string 
提示信息
必需
请求返回的提示信息
taskId
string 
任务查询ID
必需
返回本次任务查询ID
示例
{
    "code": 0,
    "msg": "success",
    "taskId": "a3cb1818017dd890657482fe77d"
}
修改于 2024-10-09 03:32:30
上一页
票据接口
下一页
任务结果接口
Built with