Midjourney
Create a Midjourney video task
Use POST /mj/submit/video in CometAPI to submit a Midjourney video job, set parameters, and track processing for generated video output.
POST
/
mj
/
submit
/
video
cURL
curl https://api.cometapi.com/mj/submit/video \
-H "Authorization: Bearer $COMETAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The paper boat drifts slowly forward",
"motion": "low",
"image": "https://your-image-host/first-frame.png",
"videoType": "vid_1.1_i2v_480"
}'import os
import requests
response = requests.post(
"https://api.cometapi.com/mj/submit/video",
headers={"Authorization": "Bearer " + os.environ["COMETAPI_KEY"]},
json={
"prompt": "The paper boat drifts slowly forward",
"motion": "low",
"image": "https://your-image-host/first-frame.png",
"videoType": "vid_1.1_i2v_480",
},
)
task = response.json()
print(task["code"], task.get("result"))
const response = await fetch("https://api.cometapi.com/mj/submit/video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "The paper boat drifts slowly forward",
motion: "low",
image: "https://your-image-host/first-frame.png",
videoType: "vid_1.1_i2v_480",
}),
});
const task = await response.json();
console.log(task.code, task.result);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/mj/submit/video",
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([
'motion' => 'low',
'image' => 'https://your-image-host/first-frame.png'
]),
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.cometapi.com/mj/submit/video"
payload := strings.NewReader("{\n \"motion\": \"low\",\n \"image\": \"https://your-image-host/first-frame.png\"\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.cometapi.com/mj/submit/video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"motion\": \"low\",\n \"image\": \"https://your-image-host/first-frame.png\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/mj/submit/video")
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 \"motion\": \"low\",\n \"image\": \"https://your-image-host/first-frame.png\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": {
"prompt": "<string>"
}
}Use this endpoint to turn a Midjourney image result into a short video render.
Before you call it
- Start from a finished Midjourney image result or a supported image URL
- Treat the returned task id as the start of an async workflow
- Expect the finished asset to arrive through the same polling endpoint used by other Midjourney tasks
Task flow
1
Submit the video task
Start the render and store the returned task id.
2
Poll until the task finishes
Use Fetch Single Task until the task reaches a terminal state and exposes the final video URL.
3
Persist the output
Move the finished video into your own storage if you need stable retention beyond the provider delivery URL.
Body
application/json
Response
200 - application/json
Success
Last modified on June 23, 2026
⌘I
cURL
curl https://api.cometapi.com/mj/submit/video \
-H "Authorization: Bearer $COMETAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The paper boat drifts slowly forward",
"motion": "low",
"image": "https://your-image-host/first-frame.png",
"videoType": "vid_1.1_i2v_480"
}'import os
import requests
response = requests.post(
"https://api.cometapi.com/mj/submit/video",
headers={"Authorization": "Bearer " + os.environ["COMETAPI_KEY"]},
json={
"prompt": "The paper boat drifts slowly forward",
"motion": "low",
"image": "https://your-image-host/first-frame.png",
"videoType": "vid_1.1_i2v_480",
},
)
task = response.json()
print(task["code"], task.get("result"))
const response = await fetch("https://api.cometapi.com/mj/submit/video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "The paper boat drifts slowly forward",
motion: "low",
image: "https://your-image-host/first-frame.png",
videoType: "vid_1.1_i2v_480",
}),
});
const task = await response.json();
console.log(task.code, task.result);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/mj/submit/video",
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([
'motion' => 'low',
'image' => 'https://your-image-host/first-frame.png'
]),
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.cometapi.com/mj/submit/video"
payload := strings.NewReader("{\n \"motion\": \"low\",\n \"image\": \"https://your-image-host/first-frame.png\"\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.cometapi.com/mj/submit/video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"motion\": \"low\",\n \"image\": \"https://your-image-host/first-frame.png\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/mj/submit/video")
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 \"motion\": \"low\",\n \"image\": \"https://your-image-host/first-frame.png\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": {
"prompt": "<string>"
}
}