콘텐츠로 이동
캐스털리 오픈콘솔

영상

happyhorse-1.1-i2v API

Modelflare 비동기 비디오 라우팅을 통해 정확한 happyhorse-1.1-i2v 모델 ID를 사용하세요.

정확한 모델 ID happyhorse-1.1-i2v를 사용하세요. 모델 필드는 이 페이지와 정확히 일치해야 합니다.

샘플 출력happyhorse-1.1-i2vPOST /v1/videos5.2s

매개변수: duration=5resolution=1080pratio=16:9입력 이미지

프롬프트: One continuous take, no cuts. The braided steam keeps thickening until the ribbons lock into one coral and ultraviolet serpent that uncoils along the ceiling, drops down past the stools and pours out through the open door into the rain, the cook in the orange jacket stepping back to let it pass. The camera holds at counter height, then tracks with the serpent to the doorway and tilts to watch it leave. One hard tungsten bulb overhead stays the only warm source. Real weight and inertia, visible density in the steam, no text.

입력 미디어 URL을 대체하여 이 샘플을 생성한 요청
{
"model": "happyhorse-1.1-i2v",
"prompt": "One continuous take, no cuts. The braided steam keeps thickening until the ribbons lock into one coral and ultraviolet serpent that uncoils along the ceiling, drops down past the stools and pours out through the open door into the rain, the cook in the orange jacket stepping back to let it pass. The camera holds at counter height, then tracks with the serpent to the doorway and tilts to watch it leave. One hard tungsten bulb overhead stays the only warm source. Real weight and inertia, visible density in the steam, no text.",
"seconds": "5",
"duration": 5,
"resolution": "1080p",
"ratio": "16:9",
"aspect_ratio": "16:9",
"image": "https://example.com/input-image.png"
}

https://modelflare.dev/v1과 함께 Modelflare API 키를 사용합니다. 게이트웨이 진입점은 POST /v1/videos입니다.

HTTP
Authorization: Bearer YOUR_MODELFLARE_API_KEY
터미널 창bash
curl https://modelflare.dev/v1/videos \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "happyhorse-1.1-i2v",
"input": {"prompt": "The cat runs across the grass as the camera follows smoothly.", "media": [{"type": "first_frame", "url": "https://example.com/cat.png"}]},
"parameters": {"resolution": "1080P", "duration": 5, "watermark": false}
}'

작업 ID를 저장합니다. GET /v1/videos/{task_id}을 폴링하고 GET /v1/videos/{task_id}/content로 다운로드합니다. 결과 URL은 만료될 수 있으므로 즉시 파일을 전송하세요.

터미널 창bash
curl https://modelflare.dev/v1/videos/TASK_ID \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"

HappyHorse는 input.prompt을 사용합니다. t2v, i2v 또는 r2v 모델 ID와 일치하는 input.media 모양을 선택하세요.

HappyHorse I2V는 input.media에 하나의 first_frame 이미지를 배치합니다.

필드 필수 노트
model 예 happyhorse-1.1-i2v
input.prompt 아니요 선택적 동작 및 카메라 설명, 최대 5,000자(비한자) 또는 2,500자(한자)
input.media[] 예 정확히 하나 first_frame; 공개 URL 또는 Base64 데이터 URL, 20MB 미만, 최소 300픽셀 측면, 가로세로 비율 1:2.5~2.5:1
parameters.resolution 아니요 720P / 1080P, 기본값 1080P
parameters.ratio 아니요 지원되지 않습니다. 출력은 첫 번째 프레임 이미지 비율을 따릅니다.
parameters.duration 아니요 3~15초, 기본값 5
parameters.watermark 아니요 HappyHorse 워터마크 추가 여부
parameters.seed 아니요 0부터 2,147,483,647까지의 선택적 시드

I2V는 하나의 first_frame 이미지를 사용합니다. 최소 측면이 300px이고 가로 세로 비율이 1:2.5~2.5:1인 20MB 미만의 공용 URL 또는 Base64 데이터 URL을 허용하고 입력 비율을 대략 유지합니다.

잘못된 모델 매개변수는 요청 ID와 함께 4xx를 반환합니다. 비동기 작업은 생성이 성공한 후 실패 상태로 들어갈 수도 있습니다. 최종 작업 사유로 폴 응답의 error_code 및 error_message을 사용합니다. 다른 JSON 형태로 동일한 요청을 재시도하지 마세요.

이 페이지에서는 Modelflare 모델 생성 및 편집 호출을 다룹니다. 검색 또는 지도 강화, 음성 관리 및 요소 라이브러리 관리는 이 공개 모델 호출 표면 외부의 리소스 API이며 필수 요청 필드가 아닙니다.

이 모델은 초당 비디오 과금을 사용합니다. 현재 고객 가격, 참조 정가 및 전체 사양은 모델 가격 페이지를 참조하세요.

미디어 계약 · v1

계약 ID: media.happyhorse-1-1-i2v.v1어댑터: video.happyhorse.v1@v1지문: 01f7b831efe834006a6606efc8aa63b9cf704640b40556d3c3e1f70d0a91a3db

공식 출처: Alibaba Cloud Model Studio

계약 매개변수

인텐트 필드컨트롤옵션
resolutionselect720p / 1080p
durationselect3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15

지원되는 기능

  • allowed_values · resolution · 720p, 1080p
  • allowed_values · duration · 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  • required_assets · reference_asset_ids
  • max_assets · reference_asset_ids · 1

구조화된 요청 예시

reference

인텐트

{
  "duration": 3,
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "reference_asset_ids": [
    "asset_example"
  ],
  "resolution": "720p"
}

제공자 요청

{
  "duration": 3,
  "image": "https://example.com/reference.png",
  "model": "happyhorse-1.1-i2v",
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "resolution": "720p",
  "seconds": "3"
}