curl --request POST \
--url https://api.apimart.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
}'
import requests
url = "https://api.apimart.ai/v1/videos/generations"
payload = {
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";
const payload = {
model: "seedance-2.0",
prompt: "새끼 고양이가 카메라를 향해 하품한다",
resolution: "720p",
size: "16:9",
duration: 5,
generate_audio: true
};
const headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.apimart.ai/v1/videos/generations"
payload := map[string]interface{}{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true,
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://api.apimart.ai/v1/videos/generations";
String payload = """
{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
}
""";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
<?php
$url = "https://api.apimart.ai/v1/videos/generations";
$payload = [
"model" => "seedance-2.0",
"prompt" => "새끼 고양이가 카메라를 향해 하품한다",
"resolution" => "720p",
"size" => "16:9",
"duration" => 5,
"generate_audio" => true
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <token>",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI("https://api.apimart.ai/v1/videos/generations")
payload = {
model: "seedance-2.0",
prompt: "새끼 고양이가 카메라를 향해 하품한다",
resolution: "720p",
size: "16:9",
duration: 5,
generate_audio: true
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = payload.to_json
response = http.request(request)
puts response.body
import Foundation
let url = URL(string: "https://api.apimart.ai/v1/videos/generations")!
let payload: [String: Any] = [
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error)")
return
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var url = "https://api.apimart.ai/v1/videos/generations";
var payload = @"{
""model"": ""seedance-2.0"",
""prompt"": ""새끼 고양이가 카메라를 향해 하품한다"",
""resolution"": ""720p"",
""size"": ""16:9"",
""duration"": 5,
""generate_audio"": true
}";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>");
var content = new StringContent(payload, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01KMCGF6BQGN3X28H3KSR50X5T"
}
]
}
{
"error": {
"code": 400,
"message": "요청 매개변수가 유효하지 않습니다",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "인증에 실패했습니다. API 키를 확인해주세요",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "잔액이 부족합니다. 충전 후 다시 시도해주세요",
"type": "payment_required"
}
}
{
"error": {
"code": 429,
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해주세요",
"type": "rate_limit_error"
}
}
{
"error": {
"code": 500,
"message": "서버 내부 오류입니다. 잠시 후 다시 시도해주세요",
"type": "server_error"
}
}
seedance-2-0
seedance-2.0 영상 생성
- 비동기 처리 모드, 후속 조회를 위한 작업 ID 반환
- 텍스트에서 영상, 이미지에서 영상(첫 프레임/마지막 프레임) 지원
- 참조 영상, 참조 오디오, 유성 영상 지원
- 가로, 세로, 정사각형, 울트라 와이드, 자동 맞춤 등 다양한 비율 지원
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.apimart.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
}'
import requests
url = "https://api.apimart.ai/v1/videos/generations"
payload = {
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";
const payload = {
model: "seedance-2.0",
prompt: "새끼 고양이가 카메라를 향해 하품한다",
resolution: "720p",
size: "16:9",
duration: 5,
generate_audio: true
};
const headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.apimart.ai/v1/videos/generations"
payload := map[string]interface{}{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true,
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://api.apimart.ai/v1/videos/generations";
String payload = """
{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
}
""";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
<?php
$url = "https://api.apimart.ai/v1/videos/generations";
$payload = [
"model" => "seedance-2.0",
"prompt" => "새끼 고양이가 카메라를 향해 하품한다",
"resolution" => "720p",
"size" => "16:9",
"duration" => 5,
"generate_audio" => true
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <token>",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI("https://api.apimart.ai/v1/videos/generations")
payload = {
model: "seedance-2.0",
prompt: "새끼 고양이가 카메라를 향해 하품한다",
resolution: "720p",
size: "16:9",
duration: 5,
generate_audio: true
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = payload.to_json
response = http.request(request)
puts response.body
import Foundation
let url = URL(string: "https://api.apimart.ai/v1/videos/generations")!
let payload: [String: Any] = [
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error)")
return
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var url = "https://api.apimart.ai/v1/videos/generations";
var payload = @"{
""model"": ""seedance-2.0"",
""prompt"": ""새끼 고양이가 카메라를 향해 하품한다"",
""resolution"": ""720p"",
""size"": ""16:9"",
""duration"": 5,
""generate_audio"": true
}";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>");
var content = new StringContent(payload, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01KMCGF6BQGN3X28H3KSR50X5T"
}
]
}
{
"error": {
"code": 400,
"message": "요청 매개변수가 유효하지 않습니다",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "인증에 실패했습니다. API 키를 확인해주세요",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "잔액이 부족합니다. 충전 후 다시 시도해주세요",
"type": "payment_required"
}
}
{
"error": {
"code": 429,
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해주세요",
"type": "rate_limit_error"
}
}
{
"error": {
"code": 500,
"message": "서버 내부 오류입니다. 잠시 후 다시 시도해주세요",
"type": "server_error"
}
}
curl --request POST \
--url https://api.apimart.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
}'
import requests
url = "https://api.apimart.ai/v1/videos/generations"
payload = {
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";
const payload = {
model: "seedance-2.0",
prompt: "새끼 고양이가 카메라를 향해 하품한다",
resolution: "720p",
size: "16:9",
duration: 5,
generate_audio: true
};
const headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.apimart.ai/v1/videos/generations"
payload := map[string]interface{}{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true,
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://api.apimart.ai/v1/videos/generations";
String payload = """
{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
}
""";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
<?php
$url = "https://api.apimart.ai/v1/videos/generations";
$payload = [
"model" => "seedance-2.0",
"prompt" => "새끼 고양이가 카메라를 향해 하품한다",
"resolution" => "720p",
"size" => "16:9",
"duration" => 5,
"generate_audio" => true
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <token>",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI("https://api.apimart.ai/v1/videos/generations")
payload = {
model: "seedance-2.0",
prompt: "새끼 고양이가 카메라를 향해 하품한다",
resolution: "720p",
size: "16:9",
duration: 5,
generate_audio: true
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = payload.to_json
response = http.request(request)
puts response.body
import Foundation
let url = URL(string: "https://api.apimart.ai/v1/videos/generations")!
let payload: [String: Any] = [
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"generate_audio": true
]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error)")
return
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var url = "https://api.apimart.ai/v1/videos/generations";
var payload = @"{
""model"": ""seedance-2.0"",
""prompt"": ""새끼 고양이가 카메라를 향해 하품한다"",
""resolution"": ""720p"",
""size"": ""16:9"",
""duration"": 5,
""generate_audio"": true
}";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>");
var content = new StringContent(payload, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01KMCGF6BQGN3X28H3KSR50X5T"
}
]
}
{
"error": {
"code": 400,
"message": "요청 매개변수가 유효하지 않습니다",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "인증에 실패했습니다. API 키를 확인해주세요",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "잔액이 부족합니다. 충전 후 다시 시도해주세요",
"type": "payment_required"
}
}
{
"error": {
"code": 429,
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해주세요",
"type": "rate_limit_error"
}
}
{
"error": {
"code": 500,
"message": "서버 내부 오류입니다. 잠시 후 다시 시도해주세요",
"type": "server_error"
}
}
인증
string
필수
모든 API 엔드포인트는 Bearer Token 인증이 필요합니다API 키 받기:API 키 관리 페이지에서 API 키를 받으세요요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
요청 매개변수
string
필수
영상 생성 모델 이름지원되는 모델:
seedance-2.0- 표준 버전, 텍스트에서 영상, 이미지에서 영상, 첫/마지막 프레임 영상, 참조 영상, 참조 오디오, 유성 영상 지원seedance-2.0-fast- 빠른 버전, 표준 버전과 동일한 기능, 더 빠른 생성 속도seedance-2.0-mini- 미니 버전, 표준 버전과 동일한 기능
boolean
기본값:"false"
비디오 작업을 제출하기 전에 콘텐츠 검토를 실행할지 여부를 지정합니다.사용 예시:감지 시 응답:
true:omni-moderation-latest로 프롬프트와 입력 이미지를 검토false또는 생략: 검토 요청을 보내지 않으며 검토 비용이나 지연이 추가되지 않음(기본값)
- 텍스트:
prompt,negative_prompt - 이미지:
image_urls,image_with_roles[].url,first_frame_image,last_frame_image - 이미지 유형 비공개
asset://소재: 원본 공개 URL을 조회한 후 검토 - Base64 이미지: 공개 URL로 변환한 후 검토
video_urls, audio_urls 및 비디오/오디오 유형 비공개 소재는 검토 모델이 비디오와 오디오를 지원하지 않으므로 검토되지 않습니다.지원 모델 ID: seedance-2.0, seedance-2.0-fast, seedance-2.0-mini, seedance-2.0-face, seedance-2.0-fast-face, seedance-2-0(이전 이름), seedance-2.5.검토 호출 자체는 비디오 요청을 제출한 사용자에게 청구되지 않습니다.- 콘텐츠가 감지되면 HTTP 400(
nsfw_content_detected)이 동기식으로 반환됩니다. 작업과task_id가 생성되지 않으며 비디오 생성 할당량도 차감되지 않습니다 - 검토 서비스를 사용할 수 없거나 시간 초과 또는 잘못된 응답이 발생하면 fail-open으로 처리되어 생성 요청이 계속됩니다. 이 옵션을 절대적인 콘텐츠 안전 보장으로 사용하지 마세요
- 공개 이미지 URL로 확인할 수 없는 입력은 건너뜁니다. 지원하지 않는 모델에서는
nsfw_check: true가 알림 없이 무시됩니다
{
"model": "seedance-2.0",
"prompt": "a cat walking on the beach",
"image_urls": ["https://cdn.example.com/ref.png"],
"nsfw_check": true
}
{
"error": {
"message": "Your request was rejected by content moderation (`nsfw_check` is enabled). Flagged categories: sexual, violence/graphic.",
"type": "nsfw_content_detected",
"param": "",
"code": "nsfw_content_detected"
}
}
string
영상 콘텐츠 설명텍스트에서 영상 생성 시 필수, 이미지에서 영상/영상 참조 생성 시 선택 사항주제, 동작, 카메라 움직임, 스타일을 명확하게 설명하면 더 나은 생성 결과를 얻을 수 있습니다예:
- 프롬프트는 최대 4000자까지 입력할 수 있지만, 500자 정도를 권장합니다.
seedance-2.0-mini모델은 글자 수 제한이 없습니다. 권장: 중국어 프롬프트는 500자, 영어 프롬프트는 1000단어를 넘지 않는 것이 좋습니다. 글자 수가 너무 많으면 정보가 분산되기 쉬우며, 모델이 세부 사항을 놓치고 핵심에만 집중하여 영상에 일부 요소가 누락될 수 있습니다.
"새끼 고양이가 카메라를 향해 하품한다"integer
기본값:"5"
영상 길이(초)지원 범위:
4 ~ 15초기본값: 5string
기본값:"16:9"
영상 화면 비율화면 비율은 0.5~2.5 사이여야 합니다옵션:
16:9- 가로 화면9:16- 세로 화면1:1- 정사각형4:3- 전통적인 비율3:4- 세로 전통적인 비율21:9- 울트라 와이드adaptive- 자동 맞춤(입력 이미지/영상에 맞게 자동 조정)
16:9string
기본값:"720p"
영상 해상도옵션:
480p- 표준 화질720p- 고화질1080p- Full HD (seedance-2.0만 지원)4k- Ultra HD (seedance-2.0만 지원)
720pinteger
랜덤 시드, 생성 콘텐츠의 무작위성을 제어하는 데 사용됩니다
- 동일한 요청에서 모델이 다른 seed 값을 받으면 다른 결과를 생성합니다
- 동일한 요청에서 모델이 같은 seed 값을 받으면 유사한 결과를 생성하지만, 완전히 동일하다는 보장은 없습니다
boolean
기본값:"true"
오디오 생성 여부(유성 영상)
true로 설정하면 영상에 AI가 생성한 오디오가 포함됩니다false로 설정하면 영상에 오디오가 포함되지 않습니다(무음 영상)기본값: trueboolean
기본값:"false"
마지막 프레임 이미지 반환 여부
true로 설정하면 작업 결과에 영상 마지막 프레임의 이미지 URL이 추가로 반환되며, 연속 영상 생성에 사용할 수 있습니다기본값: falsearray<object>
도구 목록, 웹 검색 등 향상된 기능에 사용됩니다예:
[{"type": "web_search"}]표시 필드 설명
표시 필드 설명
string
필수
도구 유형옵션:
web_search- 웹 검색, 생성 시 인터넷 정보를 참조합니다
array<string>
이미지 URL 배열, 이미지에서 영상 생성에 사용됩니다두 가지 형식을 지원합니다:
- 일반 이미지 URL:
https://example.com/cat.jpg - Asset URL (심사 통과 소재):
asset://asset_a
["https://example.com/cat.jpg"] 또는 ["asset://asset_a"]Asset URL은
seedance-2.0, seedance-2.0-fast, seedance-2.0-mini를 포함한 모든 Seedance 2.0 모델에서 지원됩니다.image_urls와image_with_roles는 동시에 사용할 수 없습니다- 최대 9장의 참조 이미지
array
역할이 지정된 이미지 배열, 첫 프레임/마지막 프레임 지정을 지원합니다
예:Asset URL 작성법:
url 필드에 Asset URL을 사용하는 경우, seedance-2.0, seedance-2.0-fast, seedance-2.0-mini를 포함한 모든 Seedance 2.0 모델이 지원됩니다.표시 필드 설명
표시 필드 설명
string
필수
이미지 URL 주소두 가지 형식을 지원합니다:
- 일반 이미지 URL:
https://example.com/day.jpg - Asset URL (심사 통과 소재):
asset://asset_a
Asset URL은
seedance-2.0, seedance-2.0-fast, seedance-2.0-mini를 포함한 모든 Seedance 2.0 모델에서 지원됩니다.string
필수
이미지 역할옵션:
first_frame- 첫 프레임 이미지, 영상 시작 화면으로 사용last_frame- 마지막 프레임 이미지, 영상 종료 화면으로 사용reference_image- 참조 인물 이미지 (Asset URL과 함께 사용)
[
{"url": "https://example.com/day.jpg", "role": "first_frame"},
{"url": "https://example.com/night.jpg", "role": "last_frame"}
]
[
{"url": "asset://asset_a", "role": "reference_image"}
]
image_urls와image_with_roles는 동시에 사용할 수 없습니다- 첫/마지막 프레임 이미지를 사용할 때
video_urls와audio_urls는 사용할 수 없습니다
array<string>
참조 영상 URL 배열두 가지 형식을 지원합니다:
- 일반 영상 URL:
https://example.com/reference.mp4 - Asset URL (심사 통과 소재):
asset://asset_a
["https://example.com/reference.mp4"] 또는 ["asset://asset_a"]Asset URL은
seedance-2.0, seedance-2.0-fast, seedance-2.0-mini를 포함한 모든 Seedance 2.0 모델에서 지원됩니다.- 첫/마지막 프레임 이미지(
image_with_roles)를 사용할 때 참조 영상은 사용할 수 없습니다 - 최대 3개의 참조 영상, 1.8s < 총 길이 < 15.2s
- 참조 영상 해상도는 480P ~ 720P 사이여야 합니다
array<string>
참조 오디오 URL 배열두 가지 형식을 지원합니다:
- 일반 오디오 URL:
https://example.com/speech.wav - Asset URL (심사 통과 소재):
asset://asset_a
["https://example.com/speech.wav"] 또는 ["asset://asset_a"]Asset URL은
seedance-2.0, seedance-2.0-fast, seedance-2.0-mini를 포함한 모든 Seedance 2.0 모델에서 지원됩니다.- 첫/마지막 프레임 이미지(
image_with_roles)를 사용할 때 참조 오디오는 사용할 수 없습니다 - 최대 3개의 참조 오디오, 총 길이 15초 이하
- 참조 오디오는 참조 이미지 또는 참조 영상과 함께 사용해야 합니다
응답
integer
응답 상태 코드, 성공 시 200
사용 시나리오
시나리오 1: 텍스트에서 영상
{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 카메라를 향해 하품한다",
"resolution": "720p",
"size": "16:9",
"duration": 5,
"seed": 42,
"generate_audio": true
}
시나리오 2: 이미지에서 영상(첫 프레임)
{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 일어나서 카메라를 향해 걸어온다",
"image_urls": ["https://example.com/cat.jpg"],
"duration": 5
}
시나리오 3: 첫/마지막 프레임 영상
{
"model": "seedance-2.0",
"prompt": "낮에서 밤으로 전환",
"image_with_roles": [
{"url": "https://example.com/day.jpg", "role": "first_frame"},
{"url": "https://example.com/night.jpg", "role": "last_frame"}
],
"duration": 5
}
시나리오 4: 영상 참조 기반 영상 생성
{
"model": "seedance-2.0",
"prompt": "영상 스타일을 애니메이션 스타일로 변환",
"video_urls": ["https://example.com/reference.mp4"]
}
시나리오 5: 참조 영상 + 참조 오디오
{
"model": "seedance-2.0",
"prompt": "인물이 말하는 장면",
"video_urls": ["https://example.com/reference.mp4"],
"audio_urls": ["https://example.com/speech.wav"],
"size": "16:9",
"duration": 11
}
시나리오 6: 유성 영상
{
"model": "seedance-2.0",
"prompt": "남자가 여자를 불러 세우며 말한다: \"기억해, 앞으로 손가락으로 달을 가리키면 안 돼.\"",
"generate_audio": true
}
시나리오 7: 연속 영상 생성(마지막 프레임 반환)
{
"model": "seedance-2.0",
"prompt": "새끼 고양이가 계속 카메라를 향해 걸어온다",
"image_urls": ["https://example.com/last_frame_from_prev.png"],
"return_last_frame": true
}
시나리오 8: 빠른 버전 생성
{
"model": "seedance-2.0-fast",
"prompt": "도시 야경 타임랩스 촬영",
"size": "21:9",
"duration": 8
}
시나리오 9: 참조 이미지 + 참조 영상 + 참조 오디오 (멀티모달 영상)
참조 이미지, 참조 영상, 참조 오디오를 결합하여 몰입감 있는 1인칭 시점 광고 영상을 생성합니다. 제품 홍보, 브랜드 광고 등 다양한 소스 소재 융합이 필요한 시나리오에 적합합니다.{
"model": "seedance-2.0",
"prompt": "전체적으로 영상1의 1인칭 시점 구도를 사용하고, 전체적으로 오디오1을 배경 음악으로 사용합니다. 1인칭 시점 과일차 홍보 광고, seedance 브랜드 '苹苹安安' 사과 과일차 한정판. 첫 프레임은 이미지1: 당신의 손이 아침 이슬이 맺힌 아커쑤 홍사과를 따며, 선명한 사과 부딪히는 소리. 2-4초: 빠른 컷 전환, 당신의 손이 사과 조각을 셰이커 컵에 넣고, 얼음과 차 베이스를 추가하고, 세게 흔듭니다. 얼음 부딪히는 소리와 흔드는 소리가 경쾌한 드럼 비트에 맞춰짐, 배경 음성: '신선 컷, 신선 셰이크'. 4-6초: 1인칭 완성품 클로즈업, 층이 있는 과일차를 투명 컵에 붓고, 당신의 손이 크림 캡을 상단에 가볍게 짜서 펼치고, 컵에 핑크색 라벨을 붙이고, 카메라가 크림 캡과 과일차의 층상 텍스처로 줌인. 6-8초: 1인칭 손으로 컵을 들어올림, 이미지2의 과일차를 카메라 앞으로 들어올림(시청자에게 건네는 시점 시뮬레이션), 컵 라벨이 선명하게 보임, 배경 음성 '상쾌한 한 모금 드세요', 마지막 프레임은 이미지2로 정지. 배경 음성은 일관되게 여성 음색을 사용.",
"image_urls": [
"https://example.com/tea_pic1.jpg",
"https://example.com/tea_pic2.jpg"
],
"video_urls": ["https://example.com/tea_video1.mp4"],
"audio_urls": ["https://example.com/tea_audio1.mp3"],
"generate_audio": true,
"size": "16:9",
"duration": 11
}
시나리오 10: Asset URL을 사용한 이미지에서 영상 생성
심사 통과된 가상 아바타 소재를 참조 이미지로 직접 전달할 수 있으며, 재업로드나 재심사가 필요하지 않습니다.{
"model": "seedance-2.0",
"prompt": "인물이 밝은 햇살 아래 도시 거리를 자연스럽게 걷는다",
"image_urls": ["asset://asset_a"],
"duration": 5,
"resolution": "720p"
}
시나리오 11: Asset URL로 참조 인물 지정 (image_with_roles)
{
"model": "seedance-2.0",
"prompt": "참조 인물을 사용하여, 인물이 우아하게 카메라를 향해 걷는다",
"image_with_roles": [
{
"url": "asset://asset_a",
"role": "reference_image"
}
],
"resolution": "720p",
"duration": 5
}
시나리오 12: 고속 버전 + Asset URL 이미지에서 영상 생성
{
"model": "seedance-2.0-fast",
"prompt": "인물이 공원을 산책하며 부드러운 바람이 불어온다",
"image_urls": ["asset://asset_a"],
"duration": 5,
"resolution": "720p"
}
시나리오 13: Asset URL 이미지 + 참조 영상 (동작 전이)
심사 통과된 인물 소재와 참조 영상을 결합하여 지정된 동작을 수행하도록 인물을 유도합니다.{
"model": "seedance-2.0",
"prompt": "인물이 참조 영상의 리듬에 맞춰 춤을 추며, 동작이 자연스럽고 부드럽다",
"image_urls": ["https://example.com/dance_reference.jpg", "asset://asset_a"],
"video_urls": ["https://example.com/dance_reference.mp4", "asset://asset_a"],
"duration": 8,
"resolution": "720p"
}
작업 결과 조회영상 생성은 비동기 작업으로, 제출 후
task_id를 반환합니다. 작업 상태 가져오기 엔드포인트를 사용하여 생성 진행 상황과 결과를 조회하세요.1.5 Pro 버전과의 차이점
| 특성 | 1.5 Pro | 2.0 / 2.0 fast |
|---|---|---|
| 해상도 | 480p/720p/1080p | 480p/720p/1080p/4k(fast는 480p/720p만) |
| 길이 범위 | 4-12초 | 5-15초 |
| 기본 길이 | 5초 | 5초 |
| 화면 비율 매개변수 | aspect_ratio | size(새로운 adaptive 자동 맞춤 추가) |
| 오디오 생성 | audio 매개변수 | generate_audio 매개변수 |
| 참조 영상 | 미지원 | video_urls 지원 |
| 참조 오디오 | 미지원 | audio_urls 지원 |
| 이미지에서 영상 | image_urls / image_with_roles | image_urls / image_with_roles |
| 유성 영상 | 미지원 | generate_audio 지원 |
| 연속 영상 | 미지원 | return_last_frame 지원 |
| 빠른 버전 | 미지원 | seedance-2.0-fast 지원 |
⌘I