Chuyển đến nội dung chính
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>"
  }
}
Sử dụng endpoint này để chuyển kết quả hình ảnh Midjourney thành một video render ngắn.

Trước khi gọi

  • Bắt đầu từ một kết quả hình ảnh Midjourney đã hoàn tất hoặc một URL hình ảnh được hỗ trợ
  • Xem task id được trả về là điểm khởi đầu của một quy trình async
  • Dự kiến asset hoàn tất sẽ được trả về thông qua cùng endpoint polling được dùng cho các tác vụ Midjourney khác

Luồng tác vụ

1

Gửi tác vụ video

Khởi chạy render và lưu task id được trả về.
2

Polling cho đến khi tác vụ hoàn tất

Sử dụng Fetch Single Task cho đến khi tác vụ đạt trạng thái kết thúc và hiển thị URL video cuối cùng.
3

Lưu trữ đầu ra

Chuyển video đã hoàn tất vào hệ thống lưu trữ của riêng bạn nếu bạn cần duy trì ổn định lâu hơn thời hạn lưu trữ của URL phân phối từ nhà cung cấp.

Ủy quyền

Authorization
string
header
bắt buộc

Bearer token authentication. Use your CometAPI key.

Nội dung

application/json
motion
enum<string>
mặc định:example
bắt buộc

Motion intensity of the generated video.

Tùy chọn có sẵn:
low,
high
image
string
mặc định:example
bắt buộc

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).

Phản hồi

200 - application/json

Success

code
integer
bắt buộc
description
string
bắt buộc
result
string
bắt buộc
properties
object
bắt buộc