Skip to main content
POST
cURL
Użyj tego endpointu, aby zamienić wynik obrazu Midjourney w krótki render wideo.

Zanim go wywołasz

  • Zacznij od ukończonego wyniku obrazu Midjourney lub obsługiwanego URL obrazu
  • Traktuj zwrócony identyfikator task id jako początek asynchronicznego workflow
  • Oczekuj, że gotowy zasób zostanie dostarczony przez ten sam endpoint odpytywania używany przez inne zadania Midjourney

Przepływ zadania

1

Prześlij zadanie wideo

Rozpocznij renderowanie i zapisz zwrócony task id.
2

Odpytuj, aż zadanie się zakończy

Użyj Fetch Single Task, aż zadanie osiągnie stan końcowy i udostępni końcowy URL wideo.
3

Zapisz wynik

Przenieś gotowe wideo do własnej pamięci masowej, jeśli potrzebujesz stabilnego przechowywania wykraczającego poza URL dostarczany przez dostawcę.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Treść

application/json
motion
enum<string>
domyślnie:low
wymagane

Motion intensity of the generated video.

Dostępne opcje:
low,
high
image
string
domyślnie:https://your-image-host/source.jpg
wymagane

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

Odpowiedź

200 - application/json

Success

code
integer
wymagane

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