- chatgpt对话
- chatgpt绘图识图
- claude-gemini
- 逆向模型
- 绘图midjourney-proxy-plus
- 音乐
- 绘图dall-e-3POST
执行动作
开发中
国内站
国内站
POST
https://api.huiyan-ai.cn/mj/submit/action
https://api.huiyan-ai.cn
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
string
可选
Header 参数
Accept
string
可选
示例值:
*/*
Content-Type
string
可选
示例值:
application/json
string
可选
Body 参数application/json
chooseSameChannel
boolean
可选
customId
string
动作标识
示例值:
MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
taskId
string
任务ID
示例值:
14001934816969359
accountFilter
object (账号筛选条件)
可选
channelId
string
频道ID
instanceId
string
账号实例ID
modes
array[string]
账号模式
remark
string
备注包含
remix
boolean
账号是否remix
remixAutoConsidered
boolean
可选
remix自动提交
视为 账号的remix为false
notifyHook
string
可选
state
string
自定义参数
示例
{
"chooseSameChannel": "",
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "14001934816969359",
"accountFilter": {
"channelId": "",
"instanceId": "",
"modes": [
""
],
"remark": "",
"remix": "",
"remixAutoConsidered": ""
},
"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.huiyan-ai.cn/mj/submit/action' \
--header 'Content-Type: application/json' \
--data-raw '{"chooseSameChannel":"","customId":"MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011","taskId":"14001934816969359","accountFilter":{"channelId":"","instanceId":"","modes":[""],"remark":"","remix":"","remixAutoConsidered":""},"notifyHook":"","state":""}'
返回响应
🟢200成功
application/json
Body
code
integer <int32>
可选
示例值:
1
description
string
描述
示例值:
提交成功
properties
object
扩展字段
result
string
任务ID
示例值:
1320098173412546
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
🟠404失败
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2024-05-30 08:37:41