Skip to main content
POST
cURL
Use este endpoint para transformar o resultado de uma imagem do Midjourney em uma renderização de vídeo curta.

Antes de chamar

  • Comece com um resultado de imagem do Midjourney finalizado ou uma URL de imagem compatível
  • Trate o task id retornado como o início de um fluxo de trabalho assíncrono
  • Espere que o recurso finalizado chegue pelo mesmo endpoint de polling usado por outras tarefas do Midjourney

Fluxo da tarefa

1

Enviar a tarefa de vídeo

Inicie a renderização e armazene o task id retornado.
2

Fazer polling até a tarefa terminar

Use Fetch Single Task até que a tarefa atinja um estado terminal e exponha a URL final do vídeo.
3

Persistir a saída

Mova o vídeo finalizado para o seu próprio armazenamento se precisar de retenção estável além da URL de entrega do provedor.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Corpo

application/json
motion
enum<string>
padrão:low
obrigatório

Motion intensity of the generated video.

Opções disponíveis:
low,
high
image
string
padrão:https://your-image-host/source.jpg
obrigatório

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

Resposta

200 - application/json

Success

code
integer
obrigatório

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
obrigatório
result
string
obrigatório
properties
object
obrigatório