Chuyển đến nội dung chính
POST
cURL
Sử dụng endpoint này để biến một kết quả ảnh Midjourney thành một bản render video ngắn.

Trước khi gọi

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

Luồng tác vụ

1

Gửi tác vụ video

Bắt đầu render và lưu task id được trả về.
2

Poll 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à cung cấp URL video cuối cùng.
3

Lưu trữ đầu ra

Di 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 lưu giữ ổn định vượt quá URL phân phối của 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:low
bắt buộc

Motion intensity of the generated video.

Tùy chọn có sẵn:
low,
high
image
string
mặc định:https://your-image-host/source.jpg
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

Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.

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