RelaxvideoCreate
curl --request POST \
--url https://api.maxapi.ai/mj-relax/mj/submit/video \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl",
"motion": "low",
"video_type": "vid_1.1_i2v_480"
}
'import requests
url = "https://api.maxapi.ai/mj-relax/mj/submit/video"
payload = {
"prompt": "https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl",
"motion": "low",
"video_type": "vid_1.1_i2v_480"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl',
motion: 'low',
video_type: 'vid_1.1_i2v_480'
})
};
fetch('https://api.maxapi.ai/mj-relax/mj/submit/video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/mj-relax/mj/submit/video"
payload := strings.NewReader("{\n \"prompt\": \"https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl\",\n \"motion\": \"low\",\n \"video_type\": \"vid_1.1_i2v_480\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.maxapi.ai/mj-relax/mj/submit/video")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl\",\n \"motion\": \"low\",\n \"video_type\": \"vid_1.1_i2v_480\"\n}")
.asString();{
"code": 0,
"description": "提交成功",
"result": "280f4c64-2b54-409f-ac61-48c034bc56fa",
"properties": {
"prompt": "https://s.mj.run/zPQ58b_Wl6c a girl --video 1 --aspect 187:256"
}
}RelaxvideoCreate
POST
https://api.maxapi.ai
/
mj-relax
/
mj
/
submit
/
video
RelaxvideoCreate
curl --request POST \
--url https://api.maxapi.ai/mj-relax/mj/submit/video \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl",
"motion": "low",
"video_type": "vid_1.1_i2v_480"
}
'import requests
url = "https://api.maxapi.ai/mj-relax/mj/submit/video"
payload = {
"prompt": "https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl",
"motion": "low",
"video_type": "vid_1.1_i2v_480"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl',
motion: 'low',
video_type: 'vid_1.1_i2v_480'
})
};
fetch('https://api.maxapi.ai/mj-relax/mj/submit/video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/mj-relax/mj/submit/video"
payload := strings.NewReader("{\n \"prompt\": \"https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl\",\n \"motion\": \"low\",\n \"video_type\": \"vid_1.1_i2v_480\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.maxapi.ai/mj-relax/mj/submit/video")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"https://cdn.midjourney.com/f9e3db60-f76c-48ca-a4e1-ce6545d9355d/0_0.png a girl\",\n \"motion\": \"low\",\n \"video_type\": \"vid_1.1_i2v_480\"\n}")
.asString();{
"code": 0,
"description": "提交成功",
"result": "280f4c64-2b54-409f-ac61-48c034bc56fa",
"properties": {
"prompt": "https://s.mj.run/zPQ58b_Wl6c a girl --video 1 --aspect 187:256"
}
}Headers
Body
application/json
url+提示词
high,low
视频类型vid_1.1_i2v_480(默认)/vid_1.1_i2v_720/vid_1.1_i2v_1080
图片base64或prompt里代入图片url
动画模式 (manual(默认)/auto)
视频执行动作:rerun,start_frame, auto_low,auto_high,low_motion,high_motion,如果为空,就是图生视频
视频衍生执行动作用到的任务id