curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happyhorse-1.0-video-edit",
"prompt": "Have the character in the video wear the striped sweater from the image",
"video_urls": [
"https://cdn.example.com/source.mp4"
],
"image_urls": [
"https://cdn.example.com/sweater.jpg"
],
"quality": "720p",
"keep_original_sound": true
}
'
{
"created": 1761313744,
"id": "task-unified-1761313744-h1edgh12",
"model": "happyhorse-1.0-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 1608660
}
}{
"error": {
"code": "missing_video_urls",
"message": "happyhorse-1.0-video-edit requires video_urls or video_url",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: happyhorse-1.0-video-edit",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}HappyHorse 1.0
HappyHorse 1.0 Video-Edit 비디오 편집
- HappyHorse 1.0 비디오 편집, 1개의 소스 비디오와 텍스트 지시로 스타일 변환, 부분 교체 등 수행
- 스타일 / 주체 가이드용으로 0~5장의 참조 이미지를 선택적으로 입력 가능
duration미지원: 출력 비디오 길이 =min(입력 비디오 길이, 15), 모델이 결정aspect_ratio미지원: 출력 화면 비율은 소스 비디오와 동일- 특수 과금 규칙:
(입력 비디오 길이 + 출력 비디오 길이) × 해상도 단가; 모델이 15초를 초과하는 입력을 15초로 잘라냄 - 비동기 처리 모드, 반환된 작업 ID를 사용하여 조회하세요
- 생성된 비디오 링크는 7일 동안 유효하며, 가능한 빨리 저장하세요
- 드물게 생성 결과가 공식 원본 링크로 제공되며, 유효 기간이 7일보다 짧을 수 있습니다. 필요한 결과는 즉시 다운로드해 보관하세요.
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happyhorse-1.0-video-edit",
"prompt": "Have the character in the video wear the striped sweater from the image",
"video_urls": [
"https://cdn.example.com/source.mp4"
],
"image_urls": [
"https://cdn.example.com/sweater.jpg"
],
"quality": "720p",
"keep_original_sound": true
}
'
{
"created": 1761313744,
"id": "task-unified-1761313744-h1edgh12",
"model": "happyhorse-1.0-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 1608660
}
}{
"error": {
"code": "missing_video_urls",
"message": "happyhorse-1.0-video-edit requires video_urls or video_url",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: happyhorse-1.0-video-edit",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}인증
##모든 API는 Bearer Token 인증이 필요합니다##
API Key 얻기:
API Key 관리 페이지에서 API Key를 받으세요
요청 헤더에 다음을 추가하세요:
Authorization: Bearer YOUR_API_KEY
본문
application/json
편집할 소스 비디오 URL, 필수, 1개만 (배열의 첫 번째 요소 사용)
비디오 요구 사항:
- 지원 형식: MP4, MOV (H.264 인코딩 권장)
- 재생 시간:
3~60초 - 모델은
15초를 초과하는 입력을 자동으로 첫15초로 자릅니다 - 해상도: 긴 변 ≤
2160px, 짧은 변 ≥320px - 화면 비율:
1:2.5~2.5:1 - 파일 크기: ≤
100MB - 프레임 레이트: >
8fps - 비디오 URL은 공개적으로 접근 가능(HTTP 또는 HTTPS)해야 합니다. 비공개 OSS, 인트라넷 또는 인증 필요 링크는 지원되지 않습니다
호환 필드: video_url / video도 허용 (video_urls보다 우선 순위 낮음)
Required array length:
1 element예시:
["https://cdn.example.com/source.mp4"]
작업 완료 후 HTTPS 콜백 주소
콜백 시점:
- 작업 완료, 실패 또는 취소 시 트리거
- 과금 확인 완료 후 전송
보안 제한:
- HTTPS 프로토콜만 지원
- 내부 네트워크 IP 주소로의 콜백 금지(127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x 등)
- URL 길이는
2048자를 초과할 수 없습니다
콜백 메커니즘:
- 타임아웃:
10초 - 실패 시 최대
3회 재시도(실패 후 각각1/2/4초 후 재시도) - 콜백 응답 본문 형식은 작업 조회 API 반환 형식과 동일
- 2xx 상태 코드를 성공으로 간주하며, 다른 상태 코드는 재시도를 트리거합니다
예시:
"https://your-domain.com/webhooks/video-task-completed"
응답
비디오 생성 작업이 성공적으로 생성되었습니다