- 账户
- 模型调用
- 会话(chat)
- 嵌入(embedding)
- 图像(dall)
- 排序模型
- 图片
- 工具
图片生成(Imagine)
POST
https://api.agicto.cn/v1/mj/submit/imagine
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
可选
示例值:
Bearer $API_KEY
Body 参数application/json
model
string
必需
botType
string
必需
prompt
string
提示词
base64Array
array[string]
必需
示例
{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"base64Array": [],
"accountFilter": {
"channelId": "",
"instanceId": "",
"modes": [],
"remark": "",
"remix": true,
"remixAutoConsidered": true
},
"notifyHook": "",
"state": ""
}
示例代码
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://api.agicto.cn/v1/mj/submit/imagine' \
--header 'Authorization: Bearer $API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"base64Array": [],
"accountFilter": {
"channelId": "",
"instanceId": "",
"modes": [],
"remark": "",
"remix": true,
"remixAutoConsidered": true
},
"notifyHook": "",
"state": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
description
string
描述
properties
object
扩展字段
result
integer
任务id
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 12463258
}