api-doc
runway-api
image-to-video
Createtask

CreateTask

description

Create a task for image to video

Usage

URL

https://api.comfyonline.app/api/create_runway_image2video_task

Header

{
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${token}` 
}

Params

{
    prompt: string,
    image_url?: string, // https://www.example.com/test_image.png
    aspect_radio: string, //9:16 or 16:9
    duration: number, // 5 or 10
    webhook: string

}

Response

{
  data?: {
    task_id: string // task_id, query the status of the task by this id, or receive a webhook
  },
  success: boolean,
  errorMsg: string,
  error_code: number
}