Change 变换
curl --request POST \
--url https://api.omniall.ai/mj/submit/change \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "xxxx",
"action": "UPSCALE",
"index": 1
}
'import requests
url = "https://api.omniall.ai/mj/submit/change"
payload = {
"taskId": "xxxx",
"action": "UPSCALE",
"index": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskId: 'xxxx', action: 'UPSCALE', index: 1})
};
fetch('https://api.omniall.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://api.omniall.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",
CURLOPT_POSTFIELDS => json_encode([
'taskId' => 'xxxx',
'action' => 'UPSCALE',
'index' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omniall.ai/mj/submit/change"
payload := strings.NewReader("{\n \"taskId\": \"xxxx\",\n \"action\": \"UPSCALE\",\n \"index\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.omniall.ai/mj/submit/change")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskId\": \"xxxx\",\n \"action\": \"UPSCALE\",\n \"index\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omniall.ai/mj/submit/change")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskId\": \"xxxx\",\n \"action\": \"UPSCALE\",\n \"index\": 1\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Midjourney
Change 变换
使用 taskId + action/index 或 customId 进行放大/变体/重绘等。
Base: https://api.omniall.ai + 路径。鉴权:Authorization: Bearer sk-...。任务为异步,请用 GET /mj/task/{id}/fetch 查询。
POST
/
mj
/
submit
/
change
Change 变换
curl --request POST \
--url https://api.omniall.ai/mj/submit/change \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "xxxx",
"action": "UPSCALE",
"index": 1
}
'import requests
url = "https://api.omniall.ai/mj/submit/change"
payload = {
"taskId": "xxxx",
"action": "UPSCALE",
"index": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskId: 'xxxx', action: 'UPSCALE', index: 1})
};
fetch('https://api.omniall.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://api.omniall.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",
CURLOPT_POSTFIELDS => json_encode([
'taskId' => 'xxxx',
'action' => 'UPSCALE',
'index' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omniall.ai/mj/submit/change"
payload := strings.NewReader("{\n \"taskId\": \"xxxx\",\n \"action\": \"UPSCALE\",\n \"index\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.omniall.ai/mj/submit/change")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskId\": \"xxxx\",\n \"action\": \"UPSCALE\",\n \"index\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omniall.ai/mj/submit/change")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskId\": \"xxxx\",\n \"action\": \"UPSCALE\",\n \"index\": 1\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}授权
使用来自 https://omniall.ai/dashboard 的 Authorization: Bearer sk-...
请求体
application/json
Midjourney 代理提交体(/mj/submit/*)。字段随动作(imagine/change/blend/…)而用。
Imagine/Describe 的提示词文本。
示例:
"a red fox in misty forest --v 6"
参考图 Base64 数组(blend/edits/带参考的 imagine)。
change/simple-change/action 等接口的动作类型(如 UPSCALE、VARIATION)。
放大/变体按钮序号(通常 1–4)。
继续任务时的 MJ 任务 ID(change/action/modal)。
上一任务 buttons 中的按钮 customId。
可选任务完成回调 Webhook。
客户端自定义状态,代理会回传。
部分 MJ 代理部署需要的 bot 类型。
部分动作的附加内容(modal/shorten)。
编辑/局部重绘蒙版 Base64。