> ## Documentation Index
> Fetch the complete documentation index at: https://doc.octopusx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Video Remix

> Submit a remix extension based on an existing Veo video task using `POST /v1/videos/{video_id}/remix`.

# Video Remix

On the basis of a completed or available Veo video task, submit a new remix task via `POST /v1/videos/{video_id}/remix`. The API still returns an OpenAI-style `video` object.

* The path parameter `video_id` is the original video task ID.
* The request body must include both `prompt` and `model`.
* A commonly used example remix model is `veo_3_1-extend`; the actual available model depends on the current channel.
* The `remixed_from_video_id` in the new task response points to the source video ID.

## Method and Path

```http theme={null}
POST /v1/videos/{video_id}/remix
```

## Request Example

<CodeGroup>
  ```bash theme={null}
  curl -X POST https://octopusx.ai/v1/videos/video_fafb00cb-5475-4882-8714-57df146c6dbe/remix \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{
      "prompt": "牛飞到海里去了",
      "model": "veo_3_1-extend"
    }'
  ```

  ```python theme={null}
  import requests

  video_id = "video_fafb00cb-5475-4882-8714-57df146c6dbe"

  resp = requests.post(
      f"https://octopusx.ai/v1/videos/{video_id}/remix",
      headers={
          "Authorization": "Bearer YOUR_API_KEY",
          "Content-Type": "application/json",
          "Accept": "application/json",
      },
      json={
          "prompt": "牛飞到海里去了",
          "model": "veo_3_1-extend",
      },
      timeout=60,
  )
  print(resp.json())
  ```

  ```javascript theme={null}
  const videoId = "video_fafb00cb-5475-4882-8714-57df146c6dbe";

  const response = await fetch(
    `https://octopusx.ai/v1/videos/${videoId}/remix`,
    {
      method: "POST",
      headers: {
        Authorization: "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
        Accept: "application/json",
      },
      body: JSON.stringify({
        prompt: "牛飞到海里去了",
        model: "veo_3_1-extend",
      }),
    }
  );

  console.log(await response.json());
  ```
</CodeGroup>

## Response Example

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "video_456",
    "object": "video",
    "model": "veo_3_1-extend",
    "status": "queued",
    "progress": 0,
    "created_at": 1712698600,
    "size": "720x1280",
    "seconds": "8",
    "remixed_from_video_id": "video_123",
    "quality": ""
  }
  ```
</ResponseExample>

After submission, please use [Veo Task Query](./query) to poll the newly returned `id`.

## Authentication

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Path Parameters

<ParamField path="video_id" type="string" required>
  The source video task ID, which is the same as the `id` returned by [Veo Video Generation](./generation) or the query interface.
</ParamField>

## Body

<ParamField body="prompt" type="string" required>
  Remix prompt, describing how you want to rewrite or continue the original video content.
</ParamField>

<ParamField body="model" type="string" required>
  The model name used for remixing, for example `veo_3_1-extend`.
</ParamField>

## Response

<ResponseField name="id" type="string">
  The new remix task ID.
</ResponseField>

<ResponseField name="object" type="string">
  Always `video`.
</ResponseField>

<ResponseField name="model" type="string">
  The actual remix model used.
</ResponseField>

<ResponseField name="status" type="string">
  Task status; common values include `queued`, `processing`, `completed`, and `failed`.
</ResponseField>

<ResponseField name="progress" type="integer">
  Task progress percentage.
</ResponseField>

<ResponseField name="created_at" type="integer">
  Creation time (Unix timestamp).
</ResponseField>

<ResponseField name="size" type="string">
  Output size.
</ResponseField>

<ResponseField name="seconds" type="string">
  Output duration (seconds).
</ResponseField>

<ResponseField name="remixed_from_video_id" type="string">
  Source video task ID, namely the `video_id` in the request path.
</ResponseField>

<ResponseField name="quality" type="string">
  A field related to image quality; some responses may return an empty string.
</ResponseField>

## Related Endpoints

* [Veo Video Overview](./overview)
* [Veo Video Generation](./generation)
* [Veo Task Query](./query)
