Overview
This endpoint provides submit task 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:"sora-2"
required
The video generation model to use.
The positive prompt for the generation.
The duration of the generated video in seconds.4, 8, 12
Request Example
curl -X POST "https://gptproto.com/v1/video/create" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"orientation": "portrait",
"prompt": "She turns around and smiles, then slowly walks out of the frame.",
"images": [
"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
],
"duration": 15
}'
Response
{
"data": {
"id": "sora-2:task_xxxx",
"model": "sora-2-pro",
"outputs": [],
"urls": {
"get": "https://gptproto.com/api/v3/predictions/sora-2:task_xxxx/result"
},
"hasNsfwContents": [],
"status": "processing",
"createdAt": "2025-10-16 21:03:10",
"executionTime": 0,
"timings": {
"inference": 0
}
},
"message": "success",
"code": 200
}
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}