Change(U/V/Reroll)
curl --request POST \
--url https://openp.ai/mj/submit/changeimport requests
url = "https://openp.ai/mj/submit/change"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://openp.ai/mj/submit/change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openp.ai/mj/submit/change",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openp.ai/mj/submit/change"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openp.ai/mj/submit/change")
.asString();require 'uri'
require 'net/http'
url = URI("https://openp.ai/mj/submit/change")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body视频与图像生成
Change(U/V/Reroll)
POST /mj/submit/change —— 对已生成任务执行放大、变体、重抽
POST
/
mj
/
submit
/
change
Change(U/V/Reroll)
curl --request POST \
--url https://openp.ai/mj/submit/changeimport requests
url = "https://openp.ai/mj/submit/change"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://openp.ai/mj/submit/change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openp.ai/mj/submit/change",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openp.ai/mj/submit/change"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openp.ai/mj/submit/change")
.asString();require 'uri'
require 'net/http'
url = URI("https://openp.ai/mj/submit/change")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body对一个已完成的 Midjourney 任务执行后续操作:Upscale(放大)、Variation(变体)、Reroll(重抽)。
请求
curl https://openp.ai/mj/submit/change \
-H "Authorization: Bearer $OPENPAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskId": "1737200000000000",
"action": "UPSCALE",
"index": 1
}'
参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
taskId | string | ✅ | 上一步任务 ID |
action | string | ✅ | UPSCALE / VARIATION / REROLL |
index | integer | 1-4,U/V 对应第几格 | |
notifyHook | string | 回调 URL | |
state | string | 自定义透传 |
其他 action 端点
| 端点 | 用途 |
|---|---|
POST /mj/submit/blend | 多图融合 |
POST /mj/submit/describe | 反推 prompt |
POST /mj/submit/zoom | 缩放扩展 |
POST /mj/submit/pan | 横 / 纵向延展 |
POST /mj/submit/modal | 高级修改窗口操作 |