Langsung ke konten utama
POST
/
mj
/
submit
/
video
Submit Video
curl --request POST \
  --url https://api.cometapi.com/mj/submit/video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "motion": "low",
  "image": "https://storage.fonedis.cc/attachments/1372468820912115716/1388566717961338880/hyper_realistic_3d_rendering_pink_tulip_style_686021570d5ec4451c1c120a.jpg?ex=68617307&is=68602187&hm=f939f10d79de24e3ed0f2c4dc1453c902ee6b383d13d9a1787eacfccfadb9488&"
}
'
{
  "code": 123,
  "description": "<string>",
  "result": "<string>",
  "properties": {
    "prompt": "<string>"
  }
}
Gunakan endpoint ini untuk mengubah hasil gambar Midjourney menjadi render video pendek.

Sebelum Anda memanggilnya

  • Mulai dari hasil gambar Midjourney yang sudah selesai atau URL gambar yang didukung
  • Perlakukan task id yang dikembalikan sebagai awal dari alur kerja async
  • Perkirakan aset akhir akan tersedia melalui endpoint polling yang sama seperti yang digunakan oleh task Midjourney lainnya

Alur task

1

Kirim task video

Mulai render dan simpan task id yang dikembalikan.
2

Poll hingga task selesai

Gunakan Fetch Single Task hingga task mencapai status terminal dan menampilkan URL video final.
3

Simpan output

Pindahkan video yang sudah selesai ke penyimpanan Anda sendiri jika Anda memerlukan retensi yang stabil di luar URL pengiriman dari provider.

Otorisasi

Authorization
string
header
wajib

Bearer token authentication. Use your CometAPI key.

Body

application/json
motion
enum<string>
default:example
wajib

Motion intensity of the generated video.

Opsi yang tersedia:
low,
high
image
string
default:example
wajib

First-frame image as a public URL or base64-encoded data URI.

prompt
string

Text prompt to guide the video generation.

action
string

Action to perform on an existing video task. When set, index and taskId are required.

index
integer

Zero-based index selecting which video variant to act on from the parent task.

taskId
string

Parent task id to continue from. Required when action is set.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

noStorage
boolean

When true, return the original provider video URL instead of a CometAPI-proxied link.

videoType
string

Video model variant, e.g. vid_1.1_i2v_480 (480p) or vid_1.1_i2v_720 (720p).

Respons

200 - application/json

Success

code
integer
wajib
description
string
wajib
result
string
wajib
properties
object
wajib