- 介绍
- 项目说明
- 导言
- 身份验证
- 发出请求
- 参数详情
- 模型(Models)
- gpt
- 运行(Runs)
- 线程数(Threads)
- 留言(Messages)
- 助手测试版(AssistantsBeta)
- 文件(Files)
- 审查(Moderations)
- 图像(Images)
- 微调(Fine-tuning)
- 嵌入(Embeddings)
- 聊天(Chat)
- 音频(Audio)
- 自动补全(Completions)
- midjourney
- Claude
绘图变化(UPSCALE; VARIATION; REROLL)
开发中
POST
https://www.wushuangai.com/mj-fast/mj/submit/change
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
action
string
UPSCALE(放大); VARIATION(变换); REROLL(重新生成)
index
integer
序号(1~4), action为UPSCALE,VARIATION时必传
notifyHook
string
回调地址, 为空时使用全局notifyHook
state
string
自定义参数
taskId
string
任务ID
示例
{
"action": "UPSCALE",
"index": 1,
"notifyHook": "string",
"state": "string",
"taskId": "1320098173412546"
}
示例代码
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://www.wushuangai.com/mj-fast/mj/submit/change' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "UPSCALE",
"index": 1,
"notifyHook": "string",
"state": "string",
"taskId": "1320098173412546"
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码: 1(提交成功), 21(已存在), 22(排队中), other(错误)
description
string
描述
result
string
任务ID
示 例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
修改于 2024-09-29 06:15:08