Skip to content
Halaman ini belum tersedia dalam bahasa Anda, jadi ditampilkan dalam bahasa Inggris.

seedance-1-0-pro Video Generation

Async processing mode, returns task ID for subsequent queries

Semua dokumentasi
POST/v1/videos/generations
  • Supports text-to-video, image-to-video (first frame/last frame)
  • Supports landscape, portrait, and square aspect ratios

Contoh permintaan

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedance-1-0-pro-fast",
    "prompt": "A cute kitten playing in the sunlight, fluffy fur, bright eyes",
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "1080p"
  }'

Authorization

Authorizationstringrequired

All API endpoints require Bearer Token authentication

Get your API Key:

Visit the API Key Management Page to get your API Key

Add it to the request header:

text
Authorization: Bearer YOUR_API_KEY

Request Parameters

modelstringrequired

Video generation model name

Supported models:

  • seedance-1-0-pro-fast - Fast version, quick generation, suitable for preview and iteration
  • seedance-1-0-pro-quality - High-quality version, longer generation time, better quality
nsfw_checkbooleandefault: false

Whether to run content moderation before submitting the video task.

  • true: use omni-moderation-latest to review prompts and input images
  • false or omitted: do not send a moderation request, adding no moderation cost or latency (default)
promptstringrequired

Video content description

Describe scenes, actions, styles in detail for better generation results

Example: "Sunset at the beach, golden sunlight on the sea, waves gently hitting the sand"

durationintegerdefault: 5

Video duration (seconds)

Supported range: 2 ~ 12 seconds

Default: 5

aspect_ratiostringdefault: 16:9

Video aspect ratio

Options:

  • 16:9 - Landscape
  • 9:16 - Portrait
  • 1:1 - Square
  • 4:3 - Traditional ratio
  • 3:4 - Vertical traditional ratio
  • 21:9 - Ultra-wide

Default: 16:9

resolutionstringdefault: 1080p

Video resolution

Options:

  • 480p - Standard definition
  • 720p - High definition
  • 1080p - Full HD

Default: 1080p

seedinteger

Seed integer for controlling the randomness of generated content

Value range: Integer between -1 and 2^32-1

Note

  • With the same request, if the model receives different seed values (e.g., not specifying seed or setting seed to -1, which will use a random number), different results will be generated
  • With the same request, if the model receives the same seed value, similar results will be generated, but not guaranteed to be identical

Resolution and Aspect Ratio Combinations

ResolutionSupported Aspect RatiosNotes
480p16:9, 4:3, 1:1, 3:4, 9:16, 21:9All supported
720p16:9, 4:3, 1:1, 3:4, 9:16, 21:9All supported
1080p16:9, 4:3, 1:1, 3:4, 9:16, 21:9All supported
image_with_rolesarray

Image array with roles for more precise control

Field Description

urlstringrequired

Image URL address

rolestringrequired

Image role

Options:

  • first_frame - First frame image, as video starting frame (only one supported)
  • last_frame - Last frame image, as video ending frame (quality version only, only one supported)

Example:

json
[
  {"url": "https://example.com/start.png", "role": "first_frame"},
  {"url": "https://example.com/end.png", "role": "last_frame"}
]

Warning

  • Only one image per role is supported
  • last_frame is only supported by seedance-1-0-pro-quality version, fast version does not support first and last frame together

Response

codeinteger

Response status code, 200 on success

dataarray

Response data array

Array Elements

statusstring

Task status, submitted when initially submitted

task_idstring

Unique task identifier for querying task status and results

Use Cases

Case 1: Quick Preview Landscape Video

json
{
  "model": "seedance-1-0-pro-fast",
  "prompt": "Sunset at the beach, golden sunlight on the sea, waves gently hitting the sand"
}

Case 2: High-Quality Portrait Short Video

json
{
  "model": "seedance-1-0-pro-quality",
  "prompt": "A girl spinning under cherry blossom trees, petals falling with the wind",
  "duration": 5,
  "aspect_ratio": "9:16",
  "resolution": "1080p"
}

Case 3: Dynamic Transition Effect (First/Last Frame)

json
{
  "model": "seedance-1-0-pro-quality",
  "prompt": "Scene transitions from day to night, city lights gradually turning on",
  "image_with_roles": [
    {"url": "https://example.com/day.png", "role": "first_frame"},
    {"url": "https://example.com/night.png", "role": "last_frame"}
  ],
  "duration": 5
}

Note

Query Task Results

Video generation is an async task that returns a task_id upon submission. Use the Get Task Status endpoint to query generation progress and results.

Respons

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}

Menemukan masalah dalam dokumentasi ini? Email support@apisea.ai.