Overview
This endpoint provides text to video (9:16) 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 Example
curl --location --request POST 'https://gptproto.com/v1/chat/completions' \
--header 'Authorization: sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
//veo3.1-pro
//Add "upsample" to the text parameter to enable high-resolution video
"model": "veo3.1",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A beautiful woman is dancing in a European and American style. upsample aspect_ratio 16:9"
},
{
"type": "image_url",
"image_url": {
"url": "https://heyoo.oss-ap-southeast-1.aliyuncs.com/20251017_170918_yyy1.jpeg"
}
},
{
"type": "image_url",
"image_url": {
"url": "https://heyoo.oss-ap-southeast-1.aliyuncs.com/20251017_170932_yyy2.jpeg"
}
}
]
}
],
"stream": true
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}