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
model
string
default:"veo3.1-pro"
required
The model to use for the request
Prompt parameter
- content Add “upsample” to the content parameter to enable high-resolution video
- content Add “aspect_ratio” to the content aspect ratio. 16:9, 9:16
Request Example
curl -X POST "https://gptproto.com/v1/chat/completions" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
//aspect_ratio 16:9 ,9:16
//Add "upsample" to the text parameter to enable high-resolution video
"model": "veo3.1-pro",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A video of a horse dancing. aspect_ratio 16:9 upsample."
},
{
"type": "image_url",
"image_url": {
"url": "https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
}
}
]
}
],
"stream": true
}'
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}