Skip to main content
POST
/
api
/
v3
/
contents
/
generations
/
tasks
Image to Video
curl --request POST \
  --url https://gptproto.com/api/v3/contents/generations/tasks \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "camerafixed": true,
  "content": [
    {}
  ],
  "framepersecond": 123,
  "model": "<string>",
  "ratio": "<string>",
  "resolution": "<string>",
  "seed": 123,
  "watermark": true
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

This endpoint provides image to video functionality.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

camerafixed
boolean
default:"false"
Camerafixed parameter
content
array
Content parameter
framepersecond
integer
default:"24"
Framepersecond parameter
model
string
default:"seedance-1-0-lite-i2v-250428"
required
The model to use for the request
ratio
string
default:"16:9"
Ratio parameter
resolution
string
default:"1080p"
Resolution parameter
seed
integer
default:"-1"
Seed parameter
watermark
boolean
default:"false"
Watermark parameter

Request Example

curl -X POST "https://gptproto.com/api/v3/contents/generations/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "camerafixed": false,
  "content": [
    {
      "type": "image_url",
      "image_url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream_i2i.jpeg"
    },
    {
      "type": "text",
      "text": "The camera pans from left to right, revealing the full scene of the image"
    }
  ],
  "framepersecond": 24,
  "model": "seedance-1-0-lite-i2v-250428",
  "ratio": "16:9",
  "resolution": "1080p",
  "seed": -1,
  "watermark": false
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}