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

# Sora 2 Remix Video

> Use DeerAPI to call the Sora 2 Remix Video endpoint with request details, response details, examples, and an OpenAPI playground.

## Overview

Use this endpoint to call the Sora 2 Remix Video workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.

## Before you start

Use the DeerAPI base URL and pass your API Key in the `Authorization` header:

```text theme={null}
https://api.deerapi.com
```

```text theme={null}
Authorization: Bearer $DEERAPI_KEY
```

## Model selection

Choose a current model ID from the [live pricing page](https://api.deerapi.com/pricing). Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.

## Implementation notes

* Use the OpenAPI playground for the exact request fields accepted by this endpoint.
* Keep API Keys on the server side when you build production applications.
* Log the request ID from failed calls so support can investigate the request.
* Retry `429`, `500`, and `503` responses with exponential backoff.


## OpenAPI

````yaml /api/openapi/video/sora-2/official/post-remix-video.openapi.json POST /v1/videos/{video_id}/remix
openapi: 3.1.0
info:
  title: Remix Video API
  version: 1.0.0
servers:
  - url: https://api.deerapi.com
security:
  - bearerAuth: []
paths:
  /v1/videos/{video_id}/remix:
    post:
      summary: Remix Video API
      operationId: post_v1_videos_video_id_remix
      parameters:
        - name: video_id
          in: path
          required: true
          description: The identifier of the completed video to remix.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: Use this field according to the endpoint schema.
                  example: cry
                model:
                  type: string
                  example: sora-2
              required:
                - prompt
              default:
                prompt: cry
            examples:
              Remix:
                summary: Remix
                value:
                  prompt: >-
                    Extend the scene with the cat taking a bow to the cheering
                    audience
            example:
              prompt: >-
                Extend the scene with the cat taking a bow to the cheering
                audience
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - object
                  - model
                  - status
                  - progress
                  - created_at
                  - size
                  - seconds
                  - remixed_from_video_id
                properties:
                  id:
                    type: string
                  object:
                    type: string
                  model:
                    type: string
                  status:
                    type: string
                  progress:
                    type: integer
                  created_at:
                    type: integer
                  size:
                    type: string
                  seconds:
                    type: string
                  remixed_from_video_id:
                    type: string
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: |
            curl https://api.deerapi.com/v1/videos/video_id-value/remix \
              -H "Content-Type: application/json" \
              -H "Authorization: Bearer $DEERAPI_KEY" \
              -d '{
                "prompt": "Extend the scene with the cat taking a bow to the cheering audience"
              }'
        - lang: Python
          label: requests
          source: |
            import os
            import requests

            url = "https://api.deerapi.com/v1/videos/video_id-value/remix"
            headers = {
                "Authorization": "Bearer " + os.environ["DEERAPI_KEY"],
                "Content-Type": "application/json",
            }
            payload = {
              "prompt": "Extend the scene with the cat taking a bow to the cheering audience"
            }

            response = requests.post(url, headers=headers, json=payload)
            print(response.json())
        - lang: JavaScript
          label: fetch
          source: >
            const response = await
            fetch("https://api.deerapi.com/v1/videos/video_id-value/remix", {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.DEERAPI_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "prompt": "Extend the scene with the cat taking a bow to the cheering audience"
              }),
            });


            console.log(await response.json());
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use a DeerAPI API Key as a Bearer token.

````