Seedance-2-5-Flash API

Seedance 2.5 Flash video generation

Image to VideoText to VideoVideo to Video

Provider

BytePlus

Billing

Provider cost

ScalingTensor price

Provider cost USD / 1M completion tokens: 7.0 without video; 4.3 with video (480p/720p)

Playground

Try Seedance-2-5-Flash

Edit the params, add your API key and run the model here. The result plays on this page when the job completes.

Input

Used for this request only and never stored. Get a key

Running a request charges your wallet: Provider cost USD / 1M completion tokens: 7.0 without video; 4.3 with video (480p/720p).

Output

preview

Request summary

Endpoint
POST /api/media/generate
Model ID
dreamina-seedance-2-5-flash-261115
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

Need job lookups or the raw response? Open the full playground.

Pricing

Seedance-2-5-Flash API pricing

Prices come from the live catalog. There is no subscription; each request is charged to your prepaid wallet.

ScalingTensor price

Provider cost

Live catalog price

Provider cost

USD / 1M completion tokens: 7.0 without video; 4.3 with video (480p/720p)

Compare all model prices

Shared balance

Add credits

Top up

One wallet and one API key for every model in the catalog. Top-ups start at $10 and are paid through Stripe.

Parameters

Input parameters

These parameters belong inside the request body's params object.

Input parameters
nametyperequireddescription
contentobject[]trueVideo 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[].typestringtruetext, image_url, video_url, or audio_url.
content[].textstringconditionalRequired when type=text; English text of no more than 1000 words is recommended.
content[].image_urlobjectconditionalRequired when type=image_url; must contain url.
content[].image_url.urlstringconditionalA 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_urlobjectconditionalRequired when type=video_url; must contain url.
content[].video_url.urlstringconditionalA public URL or asset URI for the reference video; must comply with the upstream provider's format and asset duration limits.
content[].audio_urlobjectconditionalRequired when type=audio_url; must contain url. Audio-only input is supported.
content[].audio_url.urlstringconditionalA public URL or asset URI for the reference audio.
content[].rolestringconditionalUse 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_typestringfalseDefaults 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.
resolutionstringfalseDefaults to 720p; only 480p and 720p are supported.
ratiostringfalseDefaults 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.
durationintegerfalseDefaults to -1 (automatic); supports 4-30 seconds or -1. Must be -1 for video editing to preserve the reference video's duration.
generate_audiobooleanfalseDefaults to true to generate a synchronized audio track; false generates a silent video.
watermarkbooleanfalseDefaults to false; true displays an AI Generated watermark.
output_formatstringfalseDefaults to mp4; options are mp4 and mov.
return_last_framebooleanfalseDefaults to false; when true, the result query response includes the last frame as a watermark-free JPEG.
service_tierstringfalseOnly default for online inference is supported; flex is not supported.
callback_urlstringfalseThe 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_afterintegerfalseDefaults to 172800; range: 3600-259200, in seconds.
priorityintegerfalseDefaults to 0; range: 0-9. Higher values indicate higher priority; applies only within the same Endpoint.
safety_identifierstringfalseA unique end-user identifier of up to 64 English characters; using a hash of the user identifier is recommended.

Output fields

Output fields
nametypedescription
idstringThe upstream task ID returned by the task creation API. The platform returns a local jobId; subsequently query /api/media/result?jobId=... to retrieve the video and usage data.

API

Call Seedance-2-5-Flash from your code

Create a key in the console and call the API from your server using the apiKey header. Save data.jobId and poll GET /api/media/result?jobId=... with the same key; a code of 0 means success.

POST /api/media/generate
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
  }
}'
const response = await fetch("https://restapi.scalingtensor.com/api/media/generate", {
  method: "POST",
  headers: {
    apiKey: process.env.SCALINGTENSOR_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "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
    }
  }),
});

const result = await response.json();
if (!response.ok || result.code !== 0) {
  throw new Error(result.msg || `Request failed: ${response.status}`);
}
console.log(result.data); // Save data.jobId to query /api/media/result
import os
import requests

payload = {
    "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,
    },
}

response = requests.post(
    "https://restapi.scalingtensor.com/api/media/generate",
    headers={"apiKey": os.environ["SCALINGTENSOR_API_KEY"]},
    json=payload,
    timeout=60,
)
result = response.json()
if result["code"] != 0:
    raise RuntimeError(result["msg"])
print(result["data"])  # Save data["jobId"] to query /api/media/result

API documentation · This page as Markdown · Markdown API reference

Related models

Seedance-2-5-Flash API 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.