APIFree
APIFree
Video Generation

POST /v1/videos/{video_id}/remix

Create a remix task from an existing completed video.

Create a remix task from an existing completed video.

Description

This endpoint starts a new video generation task based on an existing completed video. Provide a new prompt describing the modification you want to apply.

This endpoint is also available through the compatibility route POST /v1/openai/videos/{video_id}/remix with identical behavior.

Path parameters

NameTypeRequiredDescription
video_idstringYesExisting completed video task ID.

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token in the format Bearer YOUR_API_KEY.
Content-TypestringYesMust be application/json.

Request body parameters

NameTypeRequiredDescription
promptstringYesDescription of the change to apply to the original video.
modelstringNoOptional model field when required by your client workflow.

Example request

curl https://api.apifree.ai/v1/videos/video_abc123/remix \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Keep the same camera movement but change the scene to a snowy mountain at dawn"
  }'

Response schema

A successful response returns the newly created remix task object.

FieldTypeDescription
idstringNew remix task ID.
objectstringObject type, typically video.
created_atintegerUnix timestamp for task creation time.
statusstringInitial task status such as queued or in_progress.
modelstringModel used for remix generation.

Example response:

{
  "id": "video_remix_456",
  "object": "video",
  "created_at": 1758941888,
  "status": "queued",
  "model": "video-model-id"
}

Notes

  • The source video should already be in a completed state before remix is requested.
  • After remix creation, poll GET /v1/videos/{task_id} to monitor the new task.

Errors

Typical error cases include:

  • Missing video_id
  • Missing prompt
  • Authentication failure
  • Original video not found
  • Original video is not yet completed
  • Upstream remix task creation failure