Skip to main content
POST
https://toapis.com
/
v1
/
videos
/
{video_id}
/
remix
curl --request POST \
  --url https://toapis.com/v1/videos/task_01K8SGYNNNVBQTXNR4MM964S7K/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "Add a puppy playing in the scene",
    "duration": 15,
    "aspect_ratio": "16:9"
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}
  • Sora2 video remix feature
  • Remix and edit existing generated videos
  • Supports secondary creation based on existing videos
  • Asynchronous processing mode, returns task ID for subsequent queries

Path Parameters

video_id
string
required
Original video task IDThis is the task ID returned from a previous video generation request

Authorizations

Authorization
string
required
All endpoints require Bearer Token authenticationGet your API Key from the API Key Management PageAdd to request header:
Authorization: Bearer YOUR_API_KEY

Body

model
string
default:"sora-2"
required
Video remix model nameSupported models:
  • sora-2 - Standard version
  • sora-2-pro - Professional version, supports longer duration
Example: "sora-2" or "sora-2-pro"
prompt
string
required
Remix instruction description
duration
integer
Video duration in seconds
  • sora-2: Supports 10 or 15 seconds
  • sora-2-pro: Supports 15 seconds (HD) or 25 seconds
Example: 15
aspect_ratio
string
Video aspect ratioSupported ratios:
  • 16:9 - Standard widescreen (recommended)
  • 9:16 - Portrait mode
  • 1:1 - Square
Example: "16:9"

Response

code
integer
Response status code, 200 for success
data
array
Response data arrayArray Elements:
  • status (string) - Task status, submitted upon initial submission
  • task_id (string) - Unique task identifier for querying task status and results
curl --request POST \
  --url https://toapis.com/v1/videos/task_01K8SGYNNNVBQTXNR4MM964S7K/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "Add a puppy playing in the scene",
    "duration": 15,
    "aspect_ratio": "16:9"
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}