- (必读)网站使用教程
- (必读)前言
- 批量请求示例
- 常见问题及解决办法
- 聊天模型
- 音乐生成
- 绘画模型
- Midjourney
- Dalle和Gpt-image-1和Sora_image
- Flux
- Grok
- Stable-diffusion
- 即梦AI
- 可灵AI
- 音频模型
- 视频生成
- 查询令牌用量GET
- 查询令牌限额GET
任务:绘图变化Change
POST
https://api.apicore.ai/mj/submit/change
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
action
string
必需
index
integer
<int32>
序号(1~4), action为UPSCALE,VARIATION时必传 >= 1 <= 4 示例值: 1
notifyHook
string
可选
state
string
自定义参数
taskId
string
任务ID
示例
{
"action": "UPSCALE",
"index": 1,
"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/change' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "UPSCALE",
"index": 1,
"taskId": "1725017986212425"
}'
返回响应
🟢200成功
application/json
Body
code
integer
<int32>
description
string
描述
properties
object
{0} 扩展字段
result
integer
任务ID
示例
{
"code": 1,
"description": "Submit success",
"result": "1725017986212425",
"properties": {
"discordChannelId": "1278917486263402612",
"discordInstanceId": "1550466896007176192"
}
}