curl --request POST \
--url https://aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance2",
"params": {
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"video_url": ["https://example.com/dance.mp4"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true
},
"out_task_id": "my_task_123456"
}'
curl --request POST \
--url https://aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance2",
"params": {
"prompt": "일출에서 일몰로 전환",
"type": "first_last_frame",
"image_url": ["https://example.com/start.jpg"],
"end_image_url": "https://example.com/end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5"
},
"out_task_id": "my_task_123457"
}'
import requests
url = "https://aireiter.com/api/openapi/submit"
payload = {
"model": "seedance2",
"params": {
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": True
},
"out_task_id": "my_task_123456"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://aireiter.com/api/openapi/submit";
const payload = {
model: "seedance2",
params: {
prompt: "한 사람이 스튜디오에서 춤추고 있습니다",
type: "all_reference",
image_url: ["https://example.com/character.jpg"],
aspect_ratio: "16:9",
resolution: "720p",
video_length: "5",
generate_audio: true
},
out_task_id: "my_task_123456"
};
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://aireiter.com/api/openapi/submit"
payload := map[string]interface{}{
"model": "seedance2",
"params": map[string]interface{}{
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": []string{"https://example.com/character.jpg"},
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true,
},
"out_task_id": "my_task_123456",
}
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.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
try {
URL url = new URL("https://aireiter.com/api/openapi/submit");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Authorization", "Bearer <token>");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"model\":\"seedance2\",\"params\":{\"prompt\":\"한 사람이 스튜디오에서 춤추고 있습니다\",\"type\":\"all_reference\",\"image_url\":[\"https://example.com/character.jpg\"],\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\",\"video_length\":\"5\",\"generate_audio\":true},\"out_task_id\":\"my_task_123456\"}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
os.close();
BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
StringBuilder response = new StringBuilder();
while ((line = br.readLine()) != null) {
response.append(line);
}
br.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
<?php
$url = "https://aireiter.com/api/openapi/submit";
$payload = array(
"model" => "seedance2",
"params" => array(
"prompt" => "한 사람이 스튜디오에서 춤추고 있습니다",
"type" => "all_reference",
"image_url" => array("https://example.com/character.jpg"),
"aspect_ratio" => "16:9",
"resolution" => "720p",
"video_length" => "5",
"generate_audio" => true
),
"out_task_id" => "my_task_123456"
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Authorization: Bearer <token>",
"Content-Type: application/json"
));
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI.parse("https://aireiter.com/api/openapi/submit")
payload = {
model: "seedance2",
params: {
prompt: "한 사람이 스튜디오에서 춤추고 있습니다",
type: "all_reference",
image_url: ["https://example.com/character.jpg"],
aspect_ratio: "16:9",
resolution: "720p",
video_length: "5",
generate_audio: true
},
out_task_id: "my_task_123456"
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url.path)
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://aireiter.com/api/openapi/submit")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let payload: [String: Any] = [
"model": "seedance2",
"params": [
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true
],
"out_task_id": "my_task_123456"
]
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let data = data {
print(String(data: data, encoding: .utf8) ?? "")
}
}
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://aireiter.com/api/openapi/submit";
var payload = "{\"model\":\"seedance2\",\"params\":{\"prompt\":\"한 사람이 스튜디오에서 춤추고 있습니다\",\"type\":\"all_reference\",\"image_url\":[\"https://example.com/character.jpg\"],\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\",\"video_length\":\"5\",\"generate_audio\":true},\"out_task_id\":\"my_task_123456\"}";
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",
"success": true,
"data": {
"out_task_id": "my_task_123456",
"status": "pending",
"estimated_credits": 82.5,
"created_at": "2026-04-02T08:00:00.000Z"
}
}
{
"statusCode": 400,
"message": "잘못된 요청 파라미터",
"ok": false
}
{
"error": {
"code": 401,
"message": "인증 실패, API 키를 확인하세요"
}
}
{
"error": {
"code": 433,
"message": "계정 잔액 부족, 충전 후 다시 시도하세요"
}
}
{
"error": {
"code": 500,
"message": "서버 내부 오류, 잠시 후 다시 시도하세요"
}
}
Seedance 2.0
Seedance 2.0 비디오 생성
- 비동기 처리 모드, 이후 조회를 위한 작업 ID 반환
- 텍스트를 비디오로, 이미지로 비디오 생성 지원(첫 프레임/마지막 프레임/다중 참조 이미지)
- 가로 화면, 세로 화면 다양한 비율 지원
- 오디오 생성 지원
POST
/
api
/
openapi
/
submit
curl --request POST \
--url https://aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance2",
"params": {
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"video_url": ["https://example.com/dance.mp4"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true
},
"out_task_id": "my_task_123456"
}'
curl --request POST \
--url https://aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance2",
"params": {
"prompt": "일출에서 일몰로 전환",
"type": "first_last_frame",
"image_url": ["https://example.com/start.jpg"],
"end_image_url": "https://example.com/end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5"
},
"out_task_id": "my_task_123457"
}'
import requests
url = "https://aireiter.com/api/openapi/submit"
payload = {
"model": "seedance2",
"params": {
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": True
},
"out_task_id": "my_task_123456"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://aireiter.com/api/openapi/submit";
const payload = {
model: "seedance2",
params: {
prompt: "한 사람이 스튜디오에서 춤추고 있습니다",
type: "all_reference",
image_url: ["https://example.com/character.jpg"],
aspect_ratio: "16:9",
resolution: "720p",
video_length: "5",
generate_audio: true
},
out_task_id: "my_task_123456"
};
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://aireiter.com/api/openapi/submit"
payload := map[string]interface{}{
"model": "seedance2",
"params": map[string]interface{}{
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": []string{"https://example.com/character.jpg"},
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true,
},
"out_task_id": "my_task_123456",
}
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.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
try {
URL url = new URL("https://aireiter.com/api/openapi/submit");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Authorization", "Bearer <token>");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"model\":\"seedance2\",\"params\":{\"prompt\":\"한 사람이 스튜디오에서 춤추고 있습니다\",\"type\":\"all_reference\",\"image_url\":[\"https://example.com/character.jpg\"],\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\",\"video_length\":\"5\",\"generate_audio\":true},\"out_task_id\":\"my_task_123456\"}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
os.close();
BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
StringBuilder response = new StringBuilder();
while ((line = br.readLine()) != null) {
response.append(line);
}
br.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
<?php
$url = "https://aireiter.com/api/openapi/submit";
$payload = array(
"model" => "seedance2",
"params" => array(
"prompt" => "한 사람이 스튜디오에서 춤추고 있습니다",
"type" => "all_reference",
"image_url" => array("https://example.com/character.jpg"),
"aspect_ratio" => "16:9",
"resolution" => "720p",
"video_length" => "5",
"generate_audio" => true
),
"out_task_id" => "my_task_123456"
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Authorization: Bearer <token>",
"Content-Type: application/json"
));
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI.parse("https://aireiter.com/api/openapi/submit")
payload = {
model: "seedance2",
params: {
prompt: "한 사람이 스튜디오에서 춤추고 있습니다",
type: "all_reference",
image_url: ["https://example.com/character.jpg"],
aspect_ratio: "16:9",
resolution: "720p",
video_length: "5",
generate_audio: true
},
out_task_id: "my_task_123456"
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url.path)
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://aireiter.com/api/openapi/submit")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let payload: [String: Any] = [
"model": "seedance2",
"params": [
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true
],
"out_task_id": "my_task_123456"
]
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let data = data {
print(String(data: data, encoding: .utf8) ?? "")
}
}
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://aireiter.com/api/openapi/submit";
var payload = "{\"model\":\"seedance2\",\"params\":{\"prompt\":\"한 사람이 스튜디오에서 춤추고 있습니다\",\"type\":\"all_reference\",\"image_url\":[\"https://example.com/character.jpg\"],\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\",\"video_length\":\"5\",\"generate_audio\":true},\"out_task_id\":\"my_task_123456\"}";
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",
"success": true,
"data": {
"out_task_id": "my_task_123456",
"status": "pending",
"estimated_credits": 82.5,
"created_at": "2026-04-02T08:00:00.000Z"
}
}
{
"statusCode": 400,
"message": "잘못된 요청 파라미터",
"ok": false
}
{
"error": {
"code": 401,
"message": "인증 실패, API 키를 확인하세요"
}
}
{
"error": {
"code": 433,
"message": "계정 잔액 부족, 충전 후 다시 시도하세요"
}
}
{
"error": {
"code": 500,
"message": "서버 내부 오류, 잠시 후 다시 시도하세요"
}
}
이 인터페이스는 두 가지 모델 변형을 지원하며, 파라미터는 완전히 동일합니다:
seedance2— 표준 버전seedance2_face— 실사 업로드 지원, 기능은 표준 버전과 동일
Authorizations
string
필수
모든 엔드포인트는 Bearer Token 인증을 필요로 합니다API 키 얻기:API Key 관리 페이지를 방문하여 API 키를 받으세요요청 헤더에 다음을 추가하여 사용:
Authorization: Bearer YOUR_API_KEY
Body
string
필수
모델 이름다음 모델 변형을 지원합니다(파라미터는 완전히 동일하며 필요에 따라 선택):
seedance2— 표준 버전seedance2_face— 실제 인물 업로드 지원, 기능은 표준 버전과 동일
object
필수
모델 파라미터 객체
표시 params 객체 속성
표시 params 객체 속성
string
필수
비디오 생성에 사용할 텍스트 설명, 비어 있을 수 없습니다
string
필수
참고 모드, 이미지/비디오 파라미터 사용 방식을 결정합니다
all_reference— 스마트 참고 모드:image_url는 캐릭터/스타일 참고 이미지(최대 9장),video_url는 참고 비디오(최대 3개)first_last_frame— 첫-마지막 프레임 모드:image_url는 첫 프레임(단 1장),end_image_url는 마지막 프레임,video_url는 지원하지 않음
all_reference, first_last_framestring[]
참고 이미지 URL
all_reference모드: 최대 9장, 각 최대 50MB, 최소 변 길이 300pxfirst_last_frame모드: 단 1장(첫 프레임), 최대 10MB, 최소 변 길이 300px
string[]
참고 비디오 URL
all_reference 모드만 지원. 최대 3개; mp4, mov 지원; 단일 비디오 길이 2-15초, 모든 참고 비디오 총 길이 15초를 넘지 않음; 단일 비디오 최대 50MB; 프레임률 24-60 FPS; 해상도 480p, 720p 지원; 종횡비 0.4-2.5; 너비 및 높이 300-6000px; 전체 픽셀 수 409600-927408 사이여야 함all_reference 모드에서만 유효, type이 first_last_frame일 경우 이 파라미터를 전달하지 마십시오string
마지막 프레임 이미지 URL최대 10MB
first_last_frame 모드에서만 유효string
기본값:"16:9"
비디오 종횡비지원되는 종횡비:
16:9- 가로 화면(기본값)9:16- 세로 화면1:1- 정사각형4:3- 표준3:4- 세로 표준21:9- 울트라 와이드
string
기본값:"720p"
비디오 해상도지원되는 해상도:
480p720p(기본값)1080p
string
기본값:"5"
비디오 길이(초)지원 길이 범위: 4~15초, 기본값 5초
boolean
기본값:"true"
오디오 생성 여부, 기본값
truestring
필수
요청자 작업 ID사용자가 정의한 작업 식별자, 필수 입력
Response
string
요청자 작업 ID로 결과 조회에 사용할 수 있습니다
string
초기 상태로, 고정값
"pending"number
예상 소모 크레딧
string
생성 시간(ISO 형식)
curl --request POST \
--url https://aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance2",
"params": {
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"video_url": ["https://example.com/dance.mp4"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true
},
"out_task_id": "my_task_123456"
}'
curl --request POST \
--url https://aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance2",
"params": {
"prompt": "일출에서 일몰로 전환",
"type": "first_last_frame",
"image_url": ["https://example.com/start.jpg"],
"end_image_url": "https://example.com/end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5"
},
"out_task_id": "my_task_123457"
}'
import requests
url = "https://aireiter.com/api/openapi/submit"
payload = {
"model": "seedance2",
"params": {
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": True
},
"out_task_id": "my_task_123456"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://aireiter.com/api/openapi/submit";
const payload = {
model: "seedance2",
params: {
prompt: "한 사람이 스튜디오에서 춤추고 있습니다",
type: "all_reference",
image_url: ["https://example.com/character.jpg"],
aspect_ratio: "16:9",
resolution: "720p",
video_length: "5",
generate_audio: true
},
out_task_id: "my_task_123456"
};
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://aireiter.com/api/openapi/submit"
payload := map[string]interface{}{
"model": "seedance2",
"params": map[string]interface{}{
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": []string{"https://example.com/character.jpg"},
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true,
},
"out_task_id": "my_task_123456",
}
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.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
try {
URL url = new URL("https://aireiter.com/api/openapi/submit");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Authorization", "Bearer <token>");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"model\":\"seedance2\",\"params\":{\"prompt\":\"한 사람이 스튜디오에서 춤추고 있습니다\",\"type\":\"all_reference\",\"image_url\":[\"https://example.com/character.jpg\"],\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\",\"video_length\":\"5\",\"generate_audio\":true},\"out_task_id\":\"my_task_123456\"}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
os.close();
BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
StringBuilder response = new StringBuilder();
while ((line = br.readLine()) != null) {
response.append(line);
}
br.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
<?php
$url = "https://aireiter.com/api/openapi/submit";
$payload = array(
"model" => "seedance2",
"params" => array(
"prompt" => "한 사람이 스튜디오에서 춤추고 있습니다",
"type" => "all_reference",
"image_url" => array("https://example.com/character.jpg"),
"aspect_ratio" => "16:9",
"resolution" => "720p",
"video_length" => "5",
"generate_audio" => true
),
"out_task_id" => "my_task_123456"
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Authorization: Bearer <token>",
"Content-Type: application/json"
));
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI.parse("https://aireiter.com/api/openapi/submit")
payload = {
model: "seedance2",
params: {
prompt: "한 사람이 스튜디오에서 춤추고 있습니다",
type: "all_reference",
image_url: ["https://example.com/character.jpg"],
aspect_ratio: "16:9",
resolution: "720p",
video_length: "5",
generate_audio: true
},
out_task_id: "my_task_123456"
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url.path)
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://aireiter.com/api/openapi/submit")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let payload: [String: Any] = [
"model": "seedance2",
"params": [
"prompt": "한 사람이 스튜디오에서 춤추고 있습니다",
"type": "all_reference",
"image_url": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"resolution": "720p",
"video_length": "5",
"generate_audio": true
],
"out_task_id": "my_task_123456"
]
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let data = data {
print(String(data: data, encoding: .utf8) ?? "")
}
}
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://aireiter.com/api/openapi/submit";
var payload = "{\"model\":\"seedance2\",\"params\":{\"prompt\":\"한 사람이 스튜디오에서 춤추고 있습니다\",\"type\":\"all_reference\",\"image_url\":[\"https://example.com/character.jpg\"],\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\",\"video_length\":\"5\",\"generate_audio\":true},\"out_task_id\":\"my_task_123456\"}";
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",
"success": true,
"data": {
"out_task_id": "my_task_123456",
"status": "pending",
"estimated_credits": 82.5,
"created_at": "2026-04-02T08:00:00.000Z"
}
}
{
"statusCode": 400,
"message": "잘못된 요청 파라미터",
"ok": false
}
{
"error": {
"code": 401,
"message": "인증 실패, API 키를 확인하세요"
}
}
{
"error": {
"code": 433,
"message": "계정 잔액 부족, 충전 후 다시 시도하세요"
}
}
{
"error": {
"code": 500,
"message": "서버 내부 오류, 잠시 후 다시 시도하세요"
}
}
⌘I