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

# Seedance 2.5 Flash Reference to Video

> Seedance 2.5 Flash reference-to-video: drive generation with reference images, videos and audio. Reference the assets inside the prompt as `@image1`, `@video1`, `@audio1` — the array order is what those numbers refer to.

Seedance 2.5 Flash is the faster, lower-cost tier of [Seedance 2.5 Reference to Video](/api-reference/video-generations/seedance-2-5-refs), with the same quality options (`480p` and `720p`) and the same parameters. The only difference is in how many assets you can send.

**Asset limits** (lower than Seedance 2.5 Reference to Video, which allows 30/10/10):

- Up to **10** reference images, **5** reference videos and **5** reference audio clips.
- Reference videos and audio are 2–30 seconds each, and each type may total up to **30 seconds**.
- At least one image, video or audio clip is required — **audio alone is enough**.
- `duration` is any integer from 4 to 30 seconds.

**Pricing** — in tokens (USD at $0.02/token). Without reference videos (images and/or audio only), only the generated seconds are billed, at the same price as [Seedance 2.5 Flash](/api-reference/video-generations/seedance-2-5-flash). With reference videos, a lower per-second rate applies to **output seconds + max(total reference video seconds, output seconds)**:

| resolution | references | tokens/s | USD/s | billed seconds |
|---|---|---|---|---|
| 480p | images / audio only | 5.915 | $0.1183 | output |
| 480p | with reference videos | 3.64 | $0.0728 | output + max(reference videos, output) |
| 720p | images / audio only | 12.675 | $0.2535 | output |
| 720p | with reference videos | 7.735 | $0.1547 | output + max(reference videos, output) |

The total reference video length is measured from your files before any tokens are charged, and rounded up to the next 0.1 second. Reference images and audio are not charged. Native audio is included at no extra charge.

Examples at 720p:

- 5 seconds with reference images only: 63.38 tokens (= $1.2676)
- 5 seconds with an 8-second reference video: 13 billed seconds, 100.56 tokens (= $2.0112)
- 10 seconds with a 5-second reference video: 20 billed seconds, 154.7 tokens (= $3.094)

To quote a request with reference videos via `POST /api/v1/pricing/quote`, include `ref_videos` and declare their total length as `input_video_seconds` in the payload (the quote endpoint does not download your files).

Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use `custom_callback_url`) to get the generated video.



## OpenAPI

````yaml api-reference/video-generations/openapi-seedance-2-5-flash-refs.json POST /api/v1/videos/generations
openapi: 3.1.0
info:
  title: GoEnhance API - Seedance 2.5 Flash Reference to Video
  description: >-
    Seedance 2.5 Flash Reference to Video: faster, lower-cost video generation
    guided by reference images, videos and audio.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/videos/generations:
    post:
      tags:
        - VideoGenerations
      summary: Seedance 2.5 Flash Reference to Video
      description: >-
        Seedance 2.5 Flash reference-to-video: drive generation with reference
        images, videos and audio. Reference the assets inside the prompt as
        `@image1`, `@video1`, `@audio1` — the array order is what those numbers
        refer to.


        Seedance 2.5 Flash is the faster, lower-cost tier of [Seedance 2.5
        Reference to Video](/api-reference/video-generations/seedance-2-5-refs),
        with the same quality options (`480p` and `720p`) and the same
        parameters. The only difference is in how many assets you can send.


        **Asset limits** (lower than Seedance 2.5 Reference to Video, which
        allows 30/10/10):


        - Up to **10** reference images, **5** reference videos and **5**
        reference audio clips.

        - Reference videos and audio are 2–30 seconds each, and each type may
        total up to **30 seconds**.

        - At least one image, video or audio clip is required — **audio alone is
        enough**.

        - `duration` is any integer from 4 to 30 seconds.


        **Pricing** — in tokens (USD at $0.02/token). Without reference videos
        (images and/or audio only), only the generated seconds are billed, at
        the same price as [Seedance 2.5
        Flash](/api-reference/video-generations/seedance-2-5-flash). With
        reference videos, a lower per-second rate applies to **output seconds +
        max(total reference video seconds, output seconds)**:


        | resolution | references | tokens/s | USD/s | billed seconds |

        |---|---|---|---|---|

        | 480p | images / audio only | 5.915 | $0.1183 | output |

        | 480p | with reference videos | 3.64 | $0.0728 | output + max(reference
        videos, output) |

        | 720p | images / audio only | 12.675 | $0.2535 | output |

        | 720p | with reference videos | 7.735 | $0.1547 | output +
        max(reference videos, output) |


        The total reference video length is measured from your files before any
        tokens are charged, and rounded up to the next 0.1 second. Reference
        images and audio are not charged. Native audio is included at no extra
        charge.


        Examples at 720p:


        - 5 seconds with reference images only: 63.38 tokens (= $1.2676)

        - 5 seconds with an 8-second reference video: 13 billed seconds, 100.56
        tokens (= $2.0112)

        - 10 seconds with a 5-second reference video: 20 billed seconds, 154.7
        tokens (= $3.094)


        To quote a request with reference videos via `POST
        /api/v1/pricing/quote`, include `ref_videos` and declare their total
        length as `input_video_seconds` in the payload (the quote endpoint does
        not download your files).


        Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use
        `custom_callback_url`) to get the generated video.
      parameters:
        - name: Authorization
          in: header
          required: true
          example: Bearer YOUR_API_KEY
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - seedance-2-5-flash-refs
                  description: Model name. Must be `seedance-2-5-flash-refs`.
                prompt:
                  type: string
                  description: >-
                    Text prompt. Chinese: recommended up to 500 characters;
                    English: recommended up to 1000 words.
                ref_imgs:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 10
                  description: >-
                    Reference images (up to 10). jpeg/png/webp, ≤10MB each,
                    300–6000px, aspect ratio 0.4–2.5. Referenced in the prompt
                    as `@image1`, `@image2`, … in array order.
                ref_videos:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 5
                  description: >-
                    Reference videos (up to 5). mp4/mov, 2–30s each and ≤30s in
                    total, 24–60 fps, ≤100MB each. Longer clips are trimmed
                    automatically — the 30s budget is split evenly across them
                    (1 clip keeps 30s, 3 clips get 10s each). Referenced as
                    `@video1`, `@video2`, … in array order. ⚠️ Using this field
                    changes how the request is priced — see the pricing note
                    above.
                ref_audios:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 5
                  description: >-
                    Reference audio (up to 5). wav/mp3, 2–30s each and ≤30s in
                    total, ≤15MB each. Not transcoded — clips exceeding the
                    total budget are rejected by the model. Referenced as
                    `@audio1`, `@audio2`, … in array order. At least one of
                    ref_imgs / ref_videos / ref_audios is required; audio on its
                    own is accepted.
                duration:
                  type: integer
                  minimum: 4
                  maximum: 30
                  default: 5
                  description: Any integer from 4 to 30 seconds.
                quality:
                  type: string
                  enum:
                    - 480p
                    - 720p
                  default: 720p
                  description: >-
                    Output resolution. `resolution` is accepted as a compatible
                    alias.
                aspect_ratio:
                  type: string
                  enum:
                    - '16:9'
                    - '9:16'
                    - '1:1'
                    - '4:3'
                    - '3:4'
                    - '21:9'
                    - adaptive
                  default: '16:9'
                  description: >-
                    Output aspect ratio. Reference-to-video accepts every value
                    below. `ratio` is accepted as a compatible alias.
                generate_audio:
                  type: boolean
                  default: true
                  description: Generate synchronized audio at no additional charge.
                callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional public HTTPS callback URL. `custom_callback_url` is
                    accepted as a compatible alias.
              required:
                - model
                - prompt
            example:
              model: seedance-2-5-flash-refs
              prompt: >-
                Use the camera movement of @video1 and keep the product in
                @image1, with @audio1 as background music
              ref_imgs:
                - https://your-cdn.com/product.jpg
              ref_videos:
                - https://your-cdn.com/camera-ref.mp4
              ref_audios:
                - https://your-cdn.com/bgm.mp3
              duration: 10
              quality: 720p
              aspect_ratio: '16:9'
      responses:
        '200':
          description: Task submitted or application-level error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                      cost:
                        type: number
                        description: >-
                          Tokens deducted for this request. This is the amount
                          actually charged, so it already reflects any discount
                          active on your account and can be lower than the
                          listed price. Tokens are deducted when the task is
                          accepted, and refunded automatically if the generation
                          ends in failure.
                        example: 5.82
                required:
                  - code
                  - msg
              example:
                code: 0
                msg: Success
                data:
                  img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                  cost: 5.82
        '401':
          description: Unauthorized

````

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