알리바바의 Happy Horse 1.1은 텍스트로 비디오를 생성하고, 단일 이미지를 애니메이션화하며, 여러 레퍼런스 이미지로부터 비디오를 만들어냅니다. 720p·1080p 해상도, 3~15초 길이, 5가지 화면 비율을 지원합니다.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "The animal prances across the branch",
"images": [
"https://example.com/animal.png"
],
"duration": 5,
"resolution": "1080p"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | No | - | 텍스트 프롬프트 (최대 2,500자). 단일 이미지 제공 시 생략 가능, 텍스트-비디오·레퍼런스-비디오에서는 필수. 레퍼런스 이미지는 [Image 1], [Image 2]로 참조 |
images | array | No | [] | 텍스트-비디오는 이미지 없이, 이미지-비디오는 1장, 레퍼런스-비디오는 최대 9장. jpg/png/bmp/webp, 각 10MB 이하, 각 변 300px 이상 |
resolution | string | No | 1080p | 출력 해상도. 720p는 초당 210크레딧, 1080p는 초당 270크레딧 과금 720p1080p |
aspect_ratio | string | No | 16:9 | 텍스트-비디오·레퍼런스-비디오용 화면 비율. 단일 이미지 입력 시에는 무시되고 이미지 비율을 따름 16:99:161:14:33:4 |
duration | integer | No | 5 | 비디오 길이 초 (3~15). 출력 초당 과금 3456789101112131415 |
seed | integer | No | - | 재현 가능한 생성을 위한 랜덤 시드 (0~2147483647) |
이 모델의 images 파라미터에 파일을 전달하는 방법은 3가지입니다.
POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 필요 없습니다.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=alibaba/happyhorse-1.1" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:images=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "your prompt here",
"images": ["https://example.com/image.jpg"]
}
}POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.
| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
model | string | Yes | - | 모델 식별자 |
input | object | Yes | - | 위 테이블의 모델별 파라미터를 포함하는 객체 |
output_folder | string | No | - | 결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가) |
webhook_url | string | No | - | 완료 시 호출할 Webhook URL |
is_public | boolean | No | false | true 시 결과물을 영구 공개 URL로도 제공 |
정지 이미지를 첫 프레임으로 애니메이션화
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "The animal prances across the branch",
"images": [
"https://example.com/animal.png"
],
"duration": 5,
"resolution": "1080p"
}
}'텍스트 설명만으로 비디오 생성
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "A majestic white horse gallops along a black-sand beach at golden hour, mane flowing in the wind, waves crashing in slow motion, cinematic tracking shot",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5
}
}'