Skip to main content
POST
cURL
使用這個端點可將 Midjourney 圖像結果轉換為短片渲染。

呼叫前須知

  • 從已完成的 Midjourney 圖像結果或受支援的圖片 URL 開始
  • 將回傳的 task id 視為非同步工作流程的起點
  • 預期完成的資產會透過其他 Midjourney 任務所使用的相同輪詢端點返回

任務流程

1

提交影片任務

啟動渲染並儲存回傳的 task id。
2

輪詢直到任務完成

使用 擷取單一任務,直到任務進入終態並公開最終影片 URL。
3

保存輸出

如果你需要比供應商交付 URL 更穩定的保留期限,請將完成的影片移至你自己的儲存空間。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

主體

application/json
motion
enum<string>
預設值:low
必填

Motion intensity of the generated video.

可用選項:
low,
high
image
string
預設值:https://your-image-host/source.jpg
必填

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

回應

200 - application/json

Success

code
integer
必填

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
必填
result
string
必填
properties
object
必填