Skip to main content
POST
https://ai-nebula.com
/
prod-api
/
nebula
/
v4
/
api
/
volcImageFirstLast
Image to Video - First/Last Frame Mode - Submit Task
curl --request POST \
  --url https://ai-nebula.com/prod-api/nebula/v4/api/volcImageFirstLast \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    "<string>"
  ],
  "prompt": "<string>",
  "duration": 123,
  "req_key": "<string>",
  "resolution": "<string>",
  "return_url": true
}
'
{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "id": "task-1234567890"
  }
}

Introduction

Submit image-to-video task in first/last frame mode, used to generate video based on start and end images.

Authentication

Authorization
string
required
Bearer Token, e.g., Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... How to get: Obtain via the POST interface in the Authentication module at the top left, https://docs.openai-nebula.com/en/nebula-lab-v4/endpoint/get-token

Request Parameters

image_urls
string[]
required
List of image URLs, including first and last images, must be 2 images
prompt
string
required
Text prompt
duration
long
required
Video duration (seconds)
req_key
string
Request key
resolution
string
Resolution
return_url
boolean
Whether to return video URL

Response Example

{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "id": "task-1234567890"
  }
}