- (必读)网站使用教程
- (必读)前言
- 批量请求示例
- 常见问题及解决办法
- 聊天模型
- 音乐生成
- 绘画模型
- Midjourney
- Dalle和Gpt-image-1和Sora_image
- Flux
- Grok
- Stable-diffusion
- 即梦AI
- 可灵AI
- 音频模型
- 视频生成
- 查询令牌用量GET
- 查询令牌限额GET
任务:执行动作Action
POST
https://api.apicore.ai/mj/submit/action
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
Body 参数application/json
customId
string
动作标识
taskId
string
任务ID
notifyHook
string
可 选
state
string
可选
示例
{
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "1725017986212425"
}
示例代码
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.apicore.ai/mj/submit/action' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "1725017986212425"
}'
返回响应
🟢200成功
application/json
Body
提交成功
code
integer
必需
description
string
示例值: 提交成功
properties
object
扩展字段
discordChannelId
string
必需
discordInstanceId
string
必需
result
integer
必需
示例
{
"code": 1,
"description": "Submit success",
"result": "1725017986212425",
"properties": {
"discordChannelId": "1278917486263402612",
"discordInstanceId": "1550466896007176192"
}
}