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: YOUR_API_KEY
Request Body
Video generation prompt. Can include parameters like —ratio (16:9, 9:16, 1:1), —resolution (480p, 720p, 1080p), —duration (5-10s), —camerafixed (true/false)
model
string
default: "seedance-1-0-pro-250528"
required
The model to use for the request
Request Example
curl -X POST "https://gptproto.com/api/v3/contents/generations/tasks" \
-H "Authorization: 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-pro-250528",
"ratio": "16:9",
"resolution": "1080p",
"seed": -1,
"watermark": false
}'
Response
Error Responses
401 - Invalid signature
403 - Invalid Token
403 - Insufficient balance
500 - Internal server error
503 - Content policy violation
{
"error" : {
"message" : "Invalid signature" ,
"type" : "401"
}
}