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: Bearer YOUR_API_KEY
Request Body
model
string
default:"sora-2"
required
The model to use for the request
prompt
string
default:"A video of a horse dancing."
required
Prompt parameter
Request Example
curl -X POST "gptproto/v1/video/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"orientation": "portrait",
"prompt": "A video of a horse dancing.",
"images": [
"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
],
"duration": 15
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}