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

# Azure Sora 2 Remix

> Remix an existing video using Azure Sora 2 model

> [!NOTE]
>
> **Note for users in mainland China:** Please use `https://toapis.cn` as the API endpoint (Base URL). Replace `https://toapis.com` with `https://toapis.cn` in the examples in this document.

The remix feature allows you to modify specific aspects of an existing video while preserving its core elements. By referencing the previous video ID from a successfully completed generation, and supplying an updated prompt, the system maintains the original video's framework, scene transitions, and visual layout while implementing your requested changes.

> [!TIP]
>
> For optimal results, limit your modifications to one clearly articulated adjustment. Narrow, precise edits retain greater fidelity to the source material and minimize the likelihood of generating visual defects.

## Authorizations

**Authorization** `string` *required*

All endpoints require Bearer Token authentication

Get your API Key from the [API Key Management Page](https://toapis.com/console/token)

Add to request header:

```
Authorization: Bearer YOUR_API_KEY
```

## Path Parameters

**video\_id** `string` *required*

The ID of a previously completed video to remix

Example: `"video_01K8SGYNNNVBQTXNR4MM964S7K"`

## Body

**model** `string` *required*

Video generation model name

Must use `sora-2-official` for Azure Sora 2 remix

Example: `"sora-2-official"`

**prompt** `string` *required*

Updated text description for the remixed video

Describe the specific changes you want to make to the original video. Be precise and focused on one clear modification.

Example: `"Shift the color palette to teal, sand, and rust, with a warm backlight"`

## Response

**id** `string`

Unique task identifier for the remixed video

**object** `string`

Object type, always `video`

**model** `string`

Model name used

**status** `string`

Task status

* `queued` - Queued for processing
* `in_progress` - Processing
* `completed` - Successfully completed
* `failed` - Failed

**progress** `integer`

Task progress percentage (0-100)

**created\_at** `integer`

Task creation timestamp (Unix timestamp)

**remixed\_from\_video\_id** `string`

The original video ID that was remixed

**seconds** `string`

Video duration in seconds

**size** `string`

Video resolution (e.g., "1280x720")

```bash cURL theme={null}
curl --request POST \
  --url https://toapis.com/v1/videos/video_01K8SGYNNNVBQTXNR4MM964S7K/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2-official",
    "prompt": "Shift the color palette to teal, sand, and rust, with a warm backlight"
  }'
```

```python Python theme={null}
import requests

video_id = "video_01K8SGYNNNVBQTXNR4MM964S7K"

response = requests.post(
    f"https://toapis.com/v1/videos/{video_id}/remix",
    headers={
        "Authorization": "Bearer your-ToAPIs-key",
        "Content-Type": "application/json"
    },
    json={
        "model": "sora-2-official",
        "prompt": "Shift the color palette to teal, sand, and rust, with a warm backlight"
    }
)

task = response.json()
print(f"Remix Task ID: {task['id']}")
print(f"Status: {task['status']}")
print(f"Remixed from: {task.get('remixed_from_video_id')}")
```

```javascript JavaScript theme={null}
const videoId = "video_01K8SGYNNNVBQTXNR4MM964S7K";

const response = await fetch(`https://toapis.com/v1/videos/${videoId}/remix`, {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer your-ToAPIs-key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'sora-2-official',
    prompt: 'Shift the color palette to teal, sand, and rust, with a warm backlight'
  })
});

const task = await response.json();
console.log(`Remix Task ID: ${task.id}`);
console.log(`Status: ${task.status}`);
console.log(`Remixed from: ${task.remixed_from_video_id}`);
```

```json 200 theme={null}
{
  "id": "video_68ff7cef76cc8190b7eab9395e936d9e",
  "object": "video",
  "model": "sora-2-official",
  "status": "queued",
  "progress": 0,
  "created_at": 1761574127,
  "remixed_from_video_id": "video_01K8SGYNNNVBQTXNR4MM964S7K",
  "seconds": "8",
  "size": "1280x720"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.