curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happyhorse-1.1-reference-to-video",
"prompt": "A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head.",
"image_urls": [
"https://cdn.example.com/girl.jpg",
"https://cdn.example.com/folding-fan.jpg",
"https://cdn.example.com/earrings.jpg"
],
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
'
{
"created": 1761313744,
"id": "task-unified-1761313744-h1r2vef0",
"model": "happyhorse-1.1-reference-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 607500
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"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.1-reference-to-video",
"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.1
HappyHorse 1.1 Reference-to-Video 참조-비디오
- HappyHorse 1.1 참조-비디오, 1~9장의 참조 이미지와 텍스트 프롬프트 지원
- 캐릭터 참조 규약:
prompt에서character1,character2,character3… 키워드를 사용하여image_urls배열의 이미지를 순서대로 참조 - 비동기 처리 모드, 반환된 작업 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.1-reference-to-video",
"prompt": "A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head.",
"image_urls": [
"https://cdn.example.com/girl.jpg",
"https://cdn.example.com/folding-fan.jpg",
"https://cdn.example.com/earrings.jpg"
],
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
'
{
"created": 1761313744,
"id": "task-unified-1761313744-h1r2vef0",
"model": "happyhorse-1.1-reference-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 607500
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"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.1-reference-to-video",
"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
텍스트 프롬프트, 필수
길이 제한:
- 중국어: 최대
2500자 - 비중국어: 최대
5000자 - 초과 부분은 자동으로 잘립니다
캐릭터 참조 규약 (중요):
- 프롬프트는
character1,character2,character3... 키워드를 명시적으로 사용하여image_urls의 이미지를 순서대로 참조해야 합니다 - 1번째 이미지는
character1, 2번째는character2에 해당, 이하 동일 - 명시적 참조가 없으면 캐릭터 혼동이 발생할 수 있습니다
예시:
"A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head."
참조 이미지 URL 배열, 필수, 1 ~ 9장
이미지 요구 사항:
- 지원 형식: JPEG, JPG, PNG, WEBP
- 해상도: 짧은 변 ≥
400px; 720P 이상의 선명한 이미지 권장 (극도로 작거나 흐릿하거나 심하게 압축된 이미지 피하기) - 권장 화면 비율: 짧은 변 / 긴 변 ≥
0.4, 여러 이미지 간 일관된 비율 (대상 비디오 비율에 가깝게) - 파일 크기: 장당 ≤
10MB - 이미지 URL은 공개적으로 접근 가능(HTTP 또는 HTTPS)해야 합니다. 비공개 OSS, 인트라넷 또는 인증 필요 링크는 지원되지 않습니다
순서: 배열 순서가 프롬프트 내 character1, character2 ... 참조에 대응
Required array length:
1 - 9 elements예시:
[ "https://cdn.example.com/girl.jpg", "https://cdn.example.com/folding-fan.jpg", "https://cdn.example.com/earrings.jpg" ]
작업 완료 후 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"
응답
비디오 생성 작업이 성공적으로 생성되었습니다