Skip to main content
POST
/
v1
/
videos
/
{task_id}
/
remix
curl --request POST \
  --url https://api.apimart.ai/v1/videos/{task_id}/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "veo3.1-fast",
    "prompt": "The cat continues running on the grass, butterflies fly into the distance",
    "raw": false,
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01JQXYZ9999NEWEXTENDID"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.apimart.ai/llms.txt

Use this file to discover all available pages before exploring further.

curl --request POST \
  --url https://api.apimart.ai/v1/videos/{task_id}/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "veo3.1-fast",
    "prompt": "The cat continues running on the grass, butterflies fly into the distance",
    "raw": false,
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01JQXYZ9999NEWEXTENDID"
    }
  ]
}

Path Parameters

task_id
string
required
Original video task IDThis is the task_id returned from the video generation API. The original video task status must be success

Authorization

Authorization
string
required
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd to the request header:
Authorization: Bearer YOUR_API_KEY

Request Parameters

model
string
required
Video model name, must match the model used for the original videoSupported models:
  • veo3.1-fast - Fast version
  • veo3.1-quality - High quality version
Example: "veo3.1-fast"
prompt
string
required
Continuation prompt describing the content for the extended portion
raw
boolean
Whether to return only the extended portion of the video
  • true - Only returns the extended video
Default: false
aspect_ratio
string
Aspect ratio for the extended videoSupported values:
  • 16:9
  • 9:16
resolution
string
Video resolutionSupported values:
  • 720p (default)
  • 1080p
  • 4k

Important Notes

Model must match: The model used for extension must be the same as the one used to generate the original video. Videos generated with veo3.1-fast must also use veo3.1-fast for extension.
Only completed videos supported: The original video task status must be success.
task_id in URL: This is the task_id returned from the first step of video generation (not the upstream ID).

Response

code
integer
Response status code
data
object[]
Response data array