Skip to main content
POST
/
v1beta
/
models
/
{model_name}
:predictLongRunning
veo (text to video)
curl --request POST \
  --url https://api.example.com/v1beta/models/{model_name}:predictLongRunning
Gemini’s veo 3.1 generate preview for the text to video API.
curl --location 'https://api.gptproto.com/v1beta/models/veo-3.1-generate-preview:predictLongRunning' \
  --header 'x-goog-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "instances": [
        {
            "prompt": "a cat"
        }
    ]
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

Parameters

ParameterTypeRequiredDefaultDescription
instancesarray✅ Yes-An array of instances containing the video generation parameters
instances[].promptstring✅ Yesa catThe text prompt describing the video content you want to generate