- 前言(必读)
- OpenAI官方SDK使用教程
- 批量请求示例
- 聊天模型(Chat)
- 内容审查
- 向量嵌入
- 图片处理
- 音频模型(Audio)
- 绘画模型(Painting)
- MidJourney
- Dalle
- Grok
- Flux
- Ideogram
- stable-diffusion
- 视频模型(Video)
- 音乐创作(suno)
- 文档处理
- 3D模型
- 更多接口开发中...
- 查询令牌用量GET
- 查询令牌限额GET
任务:绘图变化
POST
/mj/submit/change
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
object {0}
示例
{
"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 '/mj/submit/change' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "UPSCALE",
"index": 1,
"taskId": "1725017986212425"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
description
string
必需
result
string
必需
properties
object
必需
discordChannelId
string
必需
discordInstanceId
string
必需
示例
{
"code": 1,
"description": "Submit success",
"result": "1725017986212425",
"properties": {
"discordChannelId": "1278917486263402612",
"discordInstanceId": "1550466896007176192"
}
}