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://aireiter.com/api/openapi/submit"; String payload = """ { "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456" } """; 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://aireiter.com/api/openapi/submit";$payload = [ "model" => "happyhorse_1_0", "params" => [ "type" => "text_to_video", "prompt" => "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution" => "720p", "aspect_ratio" => "16:9", "video_length" => 5, "seed" => 0 ], "out_task_id" => "happyhorse_1_0_t2v_123456"];$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://aireiter.com/api/openapi/submit")payload = { model: "happyhorse_1_0", params: { type: "text_to_video", prompt: "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", resolution: "720p", aspect_ratio: "16:9", video_length: 5, seed: 0 }, out_task_id: "happyhorse_1_0_t2v_123456"}http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Post.new(url)request["Authorization"] = "Bearer <token>"request["Content-Type"] = "application/json"request.body = payload.to_jsonresponse = http.request(request)puts response.body
import Foundationlet url = URL(string: "https://aireiter.com/api/openapi/submit")!let payload: [String: Any] = [ "model": "happyhorse_1_0", "params": [ "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 ], "out_task_id": "happyhorse_1_0_t2v_123456"]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://aireiter.com/api/openapi/submit"; var payload = @" { ""model"": ""happyhorse_1_0"", ""params"": { ""type"": ""text_to_video"", ""prompt"": ""밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광"", ""resolution"": ""720p"", ""aspect_ratio"": ""16:9"", ""video_length"": 5, ""seed"": 0 }, ""out_task_id"": ""happyhorse_1_0_t2v_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); }}
(* Requires cohttp and yojson libraries *)open Lwtopen Cohttpopen Cohttp_lwt_unixlet url = "https://aireiter.com/api/openapi/submit"let payload = {|{ "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456"}|}let () = let headers = Header.init () |> fun h -> Header.add h "Authorization" "Bearer <token>" |> fun h -> Header.add h "Content-Type" "application/json" in let body = Cohttp_lwt.Body.of_string payload in let response = Client.post ~headers ~body (Uri.of_string url) >>= fun (resp, body) -> body |> Cohttp_lwt.Body.to_string >|= fun body_str -> print_endline body_str in Lwt_main.run response
import 'dart:convert';import 'package:http/http.dart' as http;void main() async { final url = Uri.parse('https://aireiter.com/api/openapi/submit'); final payload = { "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456" }; final response = await http.post( url, headers: { 'Authorization': 'Bearer <token>', 'Content-Type': 'application/json' }, body: jsonEncode(payload), ); print(response.body);}
library(httr)library(jsonlite)url <- "https://aireiter.com/api/openapi/submit"payload <- list( model = "happyhorse_1_0", params = list( type = "text_to_video", prompt = "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", resolution = "720p", aspect_ratio = "16:9", video_length = 5, seed = 0 ), out_task_id = "happyhorse_1_0_t2v_123456")response <- POST( url, add_headers( Authorization = "Bearer <token>", `Content-Type` = "application/json" ), body = toJSON(payload, auto_unbox = TRUE), encode = "raw")cat(content(response, "text"))
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://aireiter.com/api/openapi/submit"; String payload = """ { "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456" } """; 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://aireiter.com/api/openapi/submit";$payload = [ "model" => "happyhorse_1_0", "params" => [ "type" => "text_to_video", "prompt" => "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution" => "720p", "aspect_ratio" => "16:9", "video_length" => 5, "seed" => 0 ], "out_task_id" => "happyhorse_1_0_t2v_123456"];$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://aireiter.com/api/openapi/submit")payload = { model: "happyhorse_1_0", params: { type: "text_to_video", prompt: "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", resolution: "720p", aspect_ratio: "16:9", video_length: 5, seed: 0 }, out_task_id: "happyhorse_1_0_t2v_123456"}http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Post.new(url)request["Authorization"] = "Bearer <token>"request["Content-Type"] = "application/json"request.body = payload.to_jsonresponse = http.request(request)puts response.body
import Foundationlet url = URL(string: "https://aireiter.com/api/openapi/submit")!let payload: [String: Any] = [ "model": "happyhorse_1_0", "params": [ "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 ], "out_task_id": "happyhorse_1_0_t2v_123456"]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://aireiter.com/api/openapi/submit"; var payload = @" { ""model"": ""happyhorse_1_0"", ""params"": { ""type"": ""text_to_video"", ""prompt"": ""밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광"", ""resolution"": ""720p"", ""aspect_ratio"": ""16:9"", ""video_length"": 5, ""seed"": 0 }, ""out_task_id"": ""happyhorse_1_0_t2v_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); }}
(* Requires cohttp and yojson libraries *)open Lwtopen Cohttpopen Cohttp_lwt_unixlet url = "https://aireiter.com/api/openapi/submit"let payload = {|{ "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456"}|}let () = let headers = Header.init () |> fun h -> Header.add h "Authorization" "Bearer <token>" |> fun h -> Header.add h "Content-Type" "application/json" in let body = Cohttp_lwt.Body.of_string payload in let response = Client.post ~headers ~body (Uri.of_string url) >>= fun (resp, body) -> body |> Cohttp_lwt.Body.to_string >|= fun body_str -> print_endline body_str in Lwt_main.run response
import 'dart:convert';import 'package:http/http.dart' as http;void main() async { final url = Uri.parse('https://aireiter.com/api/openapi/submit'); final payload = { "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456" }; final response = await http.post( url, headers: { 'Authorization': 'Bearer <token>', 'Content-Type': 'application/json' }, body: jsonEncode(payload), ); print(response.body);}
library(httr)library(jsonlite)url <- "https://aireiter.com/api/openapi/submit"payload <- list( model = "happyhorse_1_0", params = list( type = "text_to_video", prompt = "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", resolution = "720p", aspect_ratio = "16:9", video_length = 5, seed = 0 ), out_task_id = "happyhorse_1_0_t2v_123456")response <- POST( url, add_headers( Authorization = "Bearer <token>", `Content-Type` = "application/json" ), body = toJSON(payload, auto_unbox = TRUE), encode = "raw")cat(content(response, "text"))
{ "error": { "code": 401, "message": "인증 실패. API 키를 확인하세요" }}
{ "error": { "code": 433, "message": "잔액이 부족합니다. 충전 후 다시 시도하세요" } }
{ "error": { "code": 500, "message": "서버 내부 오류입니다. 나중에 다시 시도하세요" }}
HappyHorse 1.0은 AIReiter에서의 모델 이름이 happyhorse_1_0입니다.
Authorizations
string
필수
모든 인터페이스는 Bearer Token을 사용하여 인증해야 합니다.API Key 관리 페이지에 접속하여 API Key를 가져온 다음, 요청 헤더에 추가하세요:
Authorization: Bearer YOUR_API_KEY
Body
string
필수
모델 이름으로, 고정값 happyhorse_1_0을 사용합니다.
object
필수
모델 파라미터 객체입니다.
표시 params 객체 속성
string
기본값:"text_to_video"
필수
비디오 워크플로우:
text_to_video - 텍스트에 따라 비디오 생성
image_to_video - 한 장의 첫 프레임 이미지로 비디오 생성
reference_to_video - 1-9장의 참고 이미지로 비디오 생성
video_edit - 지시에 따라 원본 비디오 편집
string
비디오 콘텐츠 설명 또는 편집 지시사항입니다. text_to_video, reference_to_video 및 video_edit는 필수이며, image_to_video는 선택 사항입니다.최대 2500개의 중국어 문자 또는 5000개의 비중국어 문자를 지원하며, 초과분은 잘립니다.reference_to_video 모드에서는 이미지 순서에 따라 character1, character2 등의 이름으로 참고 이미지를 지칭합니다.
string | string[]
이미지 URL로, 공개 네트워크에서 직접 접근 가능해야 합니다.
image_to_video - 필수, 첫 번째 이미지를 첫 프레임으로 사용
reference_to_video - 필수, 1-9장의 순서가 있는 참고 이미지를 지원
video_edit - 선택 사항, 최대 5장의 스타일 또는 피사체 참고 이미지
JPEG, JPG, PNG, WEBP를 지원합니다. 이미지로 비디오 생성 및 비디오 편집용 이미지는 가로·세로 길이가 모두 300px 이상이어야 하며, 다중 참고 이미지 모드는 짧은 변이 400px 이상이어야 합니다. 단일 이미지는 10MB를 초과할 수 없습니다.
string | string[]
video_edit 모드에서 필수이며, 단 하나의 원본 비디오만 사용합니다.MP4, MOV를 지원하며, H.264 인코딩 사용을 권장합니다. 원본 비디오 요구사항:
길이 3-60초, 15초를 초과하면 앞부분 15초만 처리
파일은 100MB를 초과할 수 없음
긴 변은 2160px을 초과할 수 없고, 짧은 변은 320px 이상이어야 함
가로세로 비율 범위는 1:2.5에서 2.5:1까지
프레임률은 8 FPS보다 커야 함
string
기본값:"720p"
출력 해상도: 720p 또는 1080p.
string
기본값:"16:9"
text_to_video 및 reference_to_video 모드의 출력 가로세로 비율입니다.지원: 16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9.
video_edit는 이 파라미터를 지원하지 않으므로 전달하지 마세요. image_to_video의 출력 가로세로 비율은 입력 이미지에 따릅니다.
integer
기본값:"5"
출력 비디오 길이로, 단위는 초입니다. 3-15 사이의 정수를 지원합니다.
video_edit는 이 파라미터를 지원하지 않으므로 전달하지 마세요. 출력 길이는 원본 비디오에 의해 자동으로 결정되며, min(입력 비디오 길이, 15초)와 같습니다.
integer
기본값:"0"
랜덤 시드로, 범위는 0-2147483647입니다. 0을 전달하거나 생략하면 랜덤 시드를 사용합니다.
boolean
기본값:"false"
video_edit 모드에서만 유효합니다. true로 설정하면 원본 비디오 오디오 트랙을 강제로 유지하며, false로 설정하거나 생략하면 모델이 자동으로 결정합니다.
string
필수
호출 측에서 생성한 고유한 작업 ID이며, 이후 이 ID로 작업 상태와 결과를 조회합니다.영문자, 숫자, 밑줄, 하이픈만 지원하며, 길이는 1-64자입니다.
Response
string
호출자 작업 ID로, 결과를 조회하는 데 사용할 수 있습니다.
string
초기 상태이며, 일반적으로 pending입니다.
string
생성 시간, ISO 8601 형식입니다.
Query Task
작업 제출이 성공한 후, 동일한 out_task_id를 통해 상태를 조회합니다. 작업 상태에는 pending, processing, completed, failed가 포함됩니다. 완료 후 output 배열에는 비디오 결과가 포함됩니다.
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://aireiter.com/api/openapi/submit"; String payload = """ { "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456" } """; 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://aireiter.com/api/openapi/submit";$payload = [ "model" => "happyhorse_1_0", "params" => [ "type" => "text_to_video", "prompt" => "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution" => "720p", "aspect_ratio" => "16:9", "video_length" => 5, "seed" => 0 ], "out_task_id" => "happyhorse_1_0_t2v_123456"];$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://aireiter.com/api/openapi/submit")payload = { model: "happyhorse_1_0", params: { type: "text_to_video", prompt: "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", resolution: "720p", aspect_ratio: "16:9", video_length: 5, seed: 0 }, out_task_id: "happyhorse_1_0_t2v_123456"}http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Post.new(url)request["Authorization"] = "Bearer <token>"request["Content-Type"] = "application/json"request.body = payload.to_jsonresponse = http.request(request)puts response.body
import Foundationlet url = URL(string: "https://aireiter.com/api/openapi/submit")!let payload: [String: Any] = [ "model": "happyhorse_1_0", "params": [ "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 ], "out_task_id": "happyhorse_1_0_t2v_123456"]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://aireiter.com/api/openapi/submit"; var payload = @" { ""model"": ""happyhorse_1_0"", ""params"": { ""type"": ""text_to_video"", ""prompt"": ""밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광"", ""resolution"": ""720p"", ""aspect_ratio"": ""16:9"", ""video_length"": 5, ""seed"": 0 }, ""out_task_id"": ""happyhorse_1_0_t2v_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); }}
(* Requires cohttp and yojson libraries *)open Lwtopen Cohttpopen Cohttp_lwt_unixlet url = "https://aireiter.com/api/openapi/submit"let payload = {|{ "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456"}|}let () = let headers = Header.init () |> fun h -> Header.add h "Authorization" "Bearer <token>" |> fun h -> Header.add h "Content-Type" "application/json" in let body = Cohttp_lwt.Body.of_string payload in let response = Client.post ~headers ~body (Uri.of_string url) >>= fun (resp, body) -> body |> Cohttp_lwt.Body.to_string >|= fun body_str -> print_endline body_str in Lwt_main.run response
import 'dart:convert';import 'package:http/http.dart' as http;void main() async { final url = Uri.parse('https://aireiter.com/api/openapi/submit'); final payload = { "model": "happyhorse_1_0", "params": { "type": "text_to_video", "prompt": "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", "resolution": "720p", "aspect_ratio": "16:9", "video_length": 5, "seed": 0 }, "out_task_id": "happyhorse_1_0_t2v_123456" }; final response = await http.post( url, headers: { 'Authorization': 'Bearer <token>', 'Content-Type': 'application/json' }, body: jsonEncode(payload), ); print(response.body);}
library(httr)library(jsonlite)url <- "https://aireiter.com/api/openapi/submit"payload <- list( model = "happyhorse_1_0", params = list( type = "text_to_video", prompt = "밝은 흰색 스튜디오를 천천히 지나가는 빨간 종이비행기 한 대, 고정 카메라, 부드러운 자연광", resolution = "720p", aspect_ratio = "16:9", video_length = 5, seed = 0 ), out_task_id = "happyhorse_1_0_t2v_123456")response <- POST( url, add_headers( Authorization = "Bearer <token>", `Content-Type` = "application/json" ), body = toJSON(payload, auto_unbox = TRUE), encode = "raw")cat(content(response, "text"))