Skip to main content
What is Seedance 2.0? AI video generation API supporting text-to-video and first & last frame image-to-video. 4-15 second duration, pay-as-you-go pricing.

Before You Start

You’ll need:

Generate Your First Video

1

Set up your environment

export SEEDANCE_API_KEY="your_api_key_here"
2

Create a task

curl -X POST "https://seedance2-pro.com/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $SEEDANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-20",
    "inputs": {
      "prompt": "A serene Japanese garden with cherry blossoms swaying in the wind",
      "resolution": "1280x720",
      "duration": "5s"
    }
  }'
Response:
{
  "taskId": "task_clxxxxxx"
}
A 200 response means the task was created, not completed. You must poll the status endpoint to get the final result.
3

Poll for completion

curl -X GET "https://seedance2-pro.com/api/v1/jobs/recordInfo?taskId=task_clxxxxxx" \
  -H "Authorization: Bearer $SEEDANCE_API_KEY"
4

Get your video

When the task completes, the output array contains your video:
{
  "taskId": "task_clxxxxxx",
  "model": "seedance-20",
  "status": "success",
  "output": [
    {
      "url": "https://static.seedance2-pro.com/generated/video.mp4",
      "width": 1280,
      "height": 720
    }
  ]
}

FAQ

How long does generation take? Typically 1-5 minutes depending on duration and server load. What if I get ‘Insufficient credits’? Add credits in your Account. A 5-second video costs 200 credits.

Next Steps