- 客户端接入
- API接入
- 发出请求
- 模型接口
- 聊天接口(Chat)
- 自动补全接口(Completions)
- 图像接口(Images)
- 向量生成接口
- 音频接口
- Sino音乐接口
- Luma视频接口
- 帮助中心
- 接入demo
提交Shorten任务
POST
/mj/submit/shorten
请求参数
Body 参数application/json
botType
string
可选
MID_JOURNEY
NIJI_JOURNEY
示例值:
MID_JOURNEY
prompt
string
提示词Cat
accountFilter
object
账号筛选条件
instanceId
string
账号实例ID
modes
array[string]
必需
remix
string
账号是否remix
remixAutoConsidered
string
必需
notifyHook
string
可选
state
string
自定义参数
示例
{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"accountFilter": {
"instanceId": "string",
"modes": [
"RELAX"
],
"remix": true,
"remixAutoConsidered": true
},
"notifyHook": "string",
"state": "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 '/mj/submit/shorten' \
--header 'Content-Type: application/json' \
--data-raw '{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"accountFilter": {
"instanceId": "string",
"modes": [
"RELAX"
],
"remix": true,
"remixAutoConsidered": true
},
"notifyHook": "string",
"state": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
description
string
示例值: 提交成功
result
string
必需
properties
object
扩展字段
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
修改于 2024-05-30 12:23:45