Overview
This endpoint provides text to video pro 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
prompt
string
default:"A video of a horse dancing."
required
Prompt parameter
 
Request Example
curl -X POST "gptproto/api/v3/openai/sora-2/text-to-video-pro" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A video of a horse dancing.",
  "size": "720*1280",
  "duration": 4
}'
 
Response
Error Responses
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}