Skip to main content
POST
/
v1
/
video
/
create
Image To Video
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": [
    "<string>"
  ],
  "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: YOUR_API_KEY

Request Body

model
string
default:"sora-2"
required
The video generation model to use.
orientation
string
default:"portrait"
portrait 、landscape
prompt
string
required
The positive prompt for the generation.
images
string[]
required
Images parameter
duration
integer
default:"4"
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
string
{
    "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"
  }
}