> ## 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.

# 视频Remix

> 使用 `POST /v1/video/remix` 通过统一视频格式对已有 Grok 任务提交 remix。

# 视频Remix

Grok 统一视频 remix 入口为 `POST /v1/video/remix`。与 [OpenAI 格式的视频Remix](./remix) 不同，原任务 ID 通过 Body 的 `task_id` 传入，而不是路径参数。

* 路由入口是 `POST /v1/video/remix`。
* 必填 `model`、`prompt`、`size`、`aspect_ratio`、`task_id`。
* 提交成功后用 [查询任务](./unified-query) 轮询新返回的 `id`。

## 方法与路径

```http theme={null}
POST /v1/video/remix
```

## 请求示例

<CodeGroup>
  ```bash theme={null}
  curl -X POST https://octopusx.ai/v1/video/remix \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{
      "model": "grok-video-3",
      "prompt": "play with another white cat",
      "aspect_ratio": "3:2",
      "size": "1080P",
      "task_id": "grok:48a67431-0708-46d1-9ab9-83cb84700153"
    }'
  ```

  ```python theme={null}
  import requests

  resp = requests.post(
      "https://octopusx.ai/v1/video/remix",
      headers={
          "Authorization": "Bearer YOUR_API_KEY",
          "Content-Type": "application/json",
          "Accept": "application/json",
      },
      json={
          "model": "grok-video-3",
          "prompt": "play with another white cat",
          "aspect_ratio": "3:2",
          "size": "1080P",
          "task_id": "grok:48a67431-0708-46d1-9ab9-83cb84700153",
      },
      timeout=60,
  )
  print(resp.json())
  ```

  ```javascript theme={null}
  const response = await fetch("https://octopusx.ai/v1/video/remix", {
    method: "POST",
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
      "Content-Type": "application/json",
      Accept: "application/json",
    },
    body: JSON.stringify({
      model: "grok-video-3",
      prompt: "play with another white cat",
      aspect_ratio: "3:2",
      size: "1080P",
      task_id: "grok:48a67431-0708-46d1-9ab9-83cb84700153",
    }),
  });

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

## 响应示例

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "grok:48a67431-0708-46d1-9ab9-83cb84700153",
    "status": "processing",
    "status_update_time": 1762685256
  }
  ```
</ResponseExample>

## 认证

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

## Body

<ParamField body="model" type="string" required>
  模型名称，例如 `grok-video-3`。
</ParamField>

<ParamField body="prompt" type="string" required>
  Remix 提示词。
</ParamField>

<ParamField body="size" type="string" required>
  分辨率规格，传 `720P` 或 `1080P`。
</ParamField>

<ParamField body="aspect_ratio" type="string" required>
  视频比例，可选 `2:3`、`3:2`、`1:1`。
</ParamField>

<ParamField body="task_id" type="string" required>
  原视频任务 ID，与 [创建视频](./unified-generation) 或 [查询任务](./unified-query) 返回的 `id` 一致。
</ParamField>

<ParamField body="parent_post_id" type="string">
  上游帖子 ID。部分 Apifox 示例中出现，非 schema 必填字段，按需传入。
</ParamField>

## Response

<ResponseField name="id" type="string">
  新 remix 任务 ID。
</ResponseField>

<ResponseField name="status" type="string">
  任务状态，常见值包括 `processing`、`completed`、`failed`。
</ResponseField>

<ResponseField name="status_update_time" type="integer">
  状态最近更新时间（Unix 时间戳）。
</ResponseField>

## 相关接口

* [Grok 视频概览](./overview)
* [创建视频](./unified-generation)
* [视频Extend（统一视频）](./unified-extend)
* [视频Extensions（统一视频）](./unified-extensions)
* [查询任务](./unified-query)
* [视频Remix（OpenAI 格式）](./remix)
