Skip to main content
POST
/
v1
/
videos
/
{video_id}
/
remix
curl --request POST \
  --url https://api.apimart.ai/v1/videos/{video_id}/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "Add a puppy playing in the scene",
    "duration": 15
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}
curl --request POST \
  --url https://api.apimart.ai/v1/videos/{video_id}/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "Add a puppy playing in the scene",
    "duration": 15
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}

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 API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the 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 descriptionDescribe the modifications you want to make to the video, maximum 1000 characters
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

Response

created
integer
Task creation timestamp
id
string
Unique task identifier
model
string
The actual model name used
object
string
Object type, fixed as video.remix.task
progress
integer
Task completion progress percentage (0-100)
status
string
Task statusPossible values:
  • pending - Waiting for processing
  • processing - In progress
  • completed - Completed
  • failed - Failed
task_info
object
Task details
type
string
Output type, fixed as video
usage
object
Billing information