# Seedance-2-5-Flash API

> Seedance 2.5 Flash video generation

- Model ID: `dreamina-seedance-2-5-flash-261115`
- Provider: BytePlus
- Tasks: Image to Video, Text to Video, Video to Video
- Price: Provider cost USD / 1M completion tokens: 7.0 without video; 4.3 with video (480p/720p)
- Web page: https://scalingtensor.com/models/dreamina-seedance-2-5-flash-261115

## How to call it

Authenticate with the `apiKey` request header. Submit a job, then poll for the result:

1. `POST https://restapi.scalingtensor.com/api/media/generate` with JSON `{ "model": "<model ID>", "params": { ... } }`. The response `data.jobId` identifies the job.
2. `GET https://restapi.scalingtensor.com/api/media/result?jobId=<jobId>` until the status is `completed` or `failed`.
3. A response `code` of 0 means success; otherwise read `msg`.

```bash
curl --request POST 'https://restapi.scalingtensor.com/api/media/generate' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "model": "dreamina-seedance-2-5-flash-261115",
  "params": {
    "ratio": "16:9",
    "content": [
      {
        "text": "A small cat walks through a sunlit garden, cinematic tracking shot.",
        "type": "text"
      }
    ],
    "duration": 5,
    "watermark": false,
    "resolution": "720p",
    "generate_audio": true
  }
}'
```

## Input parameters

Parameters go inside the `params` object.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `content` | object[] | true | Video assets, provided in params; use the slug from the model table for the top-level model field. Supports text, first-frame, first-and-last-frame, and omni-reference inputs; up to 10 reference images, 5 videos, and 5 audio clips. First-frame, first-and-last-frame, and omni-reference modes cannot be combined. |
| `content[].type` | string | true | text, image_url, video_url, or audio_url. |
| `content[].text` | string | conditional | Required when type=text; English text of no more than 1000 words is recommended. |
| `content[].image_url` | object | conditional | Required when type=image_url; must contain url. |
| `content[].image_url.url` | string | conditional | A public URL, data:image/...;base64,..., or asset:// asset URI; each image must be smaller than 30MB, with width and height between 300 and 6000 pixels and an aspect ratio between 0.4 and 2.5. |
| `content[].video_url` | object | conditional | Required when type=video_url; must contain url. |
| `content[].video_url.url` | string | conditional | A public URL or asset URI for the reference video; must comply with the upstream provider's format and asset duration limits. |
| `content[].audio_url` | object | conditional | Required when type=audio_url; must contain url. Audio-only input is supported. |
| `content[].audio_url.url` | string | conditional | A public URL or asset URI for the reference audio. |
| `content[].role` | string | conditional | Use first_frame for the first frame, last_frame for the last frame, reference_image for a reference image, reference_video for a video, or reference_audio for audio; required in first-and-last-frame and omni-reference modes. |
| `omni_reference_task_type` | string | false | Defaults to auto; other options are reference, edit, and extend. edit requires a 4-30-second reference video, ratio=adaptive, and duration=-1; extend requires a reference video and ratio=adaptive. |
| `resolution` | string | false | Defaults to 720p; only 480p and 720p are supported. |
| `ratio` | string | false | Defaults to adaptive; supports 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, and adaptive. First-frame, first-and-last-frame, video editing, and video extension modes support only adaptive. |
| `duration` | integer | false | Defaults to -1 (automatic); supports 4-30 seconds or -1. Must be -1 for video editing to preserve the reference video's duration. |
| `generate_audio` | boolean | false | Defaults to true to generate a synchronized audio track; false generates a silent video. |
| `watermark` | boolean | false | Defaults to false; true displays an AI Generated watermark. |
| `output_format` | string | false | Defaults to mp4; options are mp4 and mov. |
| `return_last_frame` | boolean | false | Defaults to false; when true, the result query response includes the last frame as a watermark-free JPEG. |
| `service_tier` | string | false | Only default for online inference is supported; flex is not supported. |
| `callback_url` | string | false | The URL that receives POST notifications when the upstream task status changes; notifications include the upstream task ID, while the platform's /result endpoint uses the local jobId. |
| `execution_expires_after` | integer | false | Defaults to 172800; range: 3600-259200, in seconds. |
| `priority` | integer | false | Defaults to 0; range: 0-9. Higher values indicate higher priority; applies only within the same Endpoint. |
| `safety_identifier` | string | false | A unique end-user identifier of up to 64 English characters; using a hash of the user identifier is recommended. |

## FAQ

### How much does the Seedance-2-5-Flash API cost?

Seedance-2-5-Flash is billed at the provider's actual cost for each job (USD / 1M completion tokens: 7.0 without video; 4.3 with video (480p/720p)). The charge is deducted from your prepaid ScalingTensor wallet.

### How do I call the Seedance-2-5-Flash API?

Send POST /api/media/generate with "model": "dreamina-seedance-2-5-flash-261115" and the parameters in a params object, using your apiKey header. The call returns a jobId. Poll GET /api/media/result?jobId=... until the status is completed, then read the output URL from the result.

### Which parameters does Seedance-2-5-Flash accept?

Required: content. Optional: omni_reference_task_type, resolution, ratio, duration, generate_audio, watermark, output_format, return_last_frame, service_tier and callback_url and 3 more. The parameter table on this page describes each one.

### Do I need a BytePlus account to use Seedance-2-5-Flash?

No. You call Seedance-2-5-Flash with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.
