Skip to main content
POST
/
v1
/
video
/
create
Submit Task
curl --request POST \
  --url https://gptproto.com/v1/video/create \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "orientation": "<string>",
  "prompt": "<string>",
  "images": [
    {}
  ],
  "duration": 123
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

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
orientation
string
default:"portrait"
Orientation parameter
prompt
string
default:"A video of a horse dancing."
required
Prompt parameter
images
array
Images parameter
duration
integer
default:"15"
Duration 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

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}