audiostring
URL of an audio file for the avatar to lip-sync to. When provided, overrides prompt and voice.
heygen/heygen-avatar4/image-to-videoHeygen Avatar4 is HeyGen's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.
모델 사용해 보기
PNG, JPEG, WebP 또는 GIF · 최대 20 MiB
다음에 무엇을 하시겠습니까?
예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
{
"image": "https://static.sandbase.ai/examples/58f680f7-93d6-4f27-9255-0043d7b5c44c/input/48d5dacb-cf6b-4678-a54d-dd7bc01337fb.png",
"prompt": "Hey friends! Welcome to the GPU force podcast and today we are going to discuss about the rising GPU cost!"
}HeyGen Avatar 4: turn a single photo into a talking presenter, driven by a script or an audio track.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string | — | Script to speak. |
image | image URL, required | — | Photo of the presenter. JPEG, PNG, or WebP URL. |
audio | audio URL | — | Optional voice track. |
aspect_ratio | 16:9 / 9:16 / 4:5 / 5:4 / 1:1 | — | Output frame shape. |
voice | string | Melissa | Voice for the script. |
resolution | 360p / 480p / 540p / 720p / 1080p | 720p | Video resolution preset. |
talking_style | stable / expressive | stable | expressive adds more head and hand motion. |
$0.10 per output second; length follows the audio or the spoken script. The quote before submission assumes 5 seconds.
| Output | Price |
|---|---|
| 5s | $0.50 |
| 30s | $3.00 |
| 60s | $6.00 |
Failed runs are not charged.
Related: heygen/avatar5/digital-twin.
빌드를 시작하세요
SandBase Unified Run API를 통해 이 모델을 제출하세요.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "heygen/heygen-avatar4/image-to-video",
"image": "https://v3b.fal.media/files/b/0a90062c/A7EIviZqNxZ2HAs0yHeZ6_77a05b99-8588-4ffc-90aa-be7f9d34e9d3.png",
"voice": "Melissa",
"prompt": "Hey friends! Welcome to the GPU force podcast and today we are going to discuss about the rising GPU cost!",
"resolution": "720p",
"talking_style": "stable"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBase API 키를 생성해 서버 환경에 설정하세요. 모든 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하거나 저장소에 커밋하지 마세요.
이 모델 ID와 입력값을 사용해 /v1/run로 POST하세요. 위의 요청 예시에는 제출과 폴링이 포함되어 있습니다.
반환된 실행 ID를 사용해 상태가 completed, failed 또는 timeout이 될 때까지 폴링하세요. completed 이후에만 출력을 읽으세요.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"모델의 이미지, 비디오 또는 오디오 필드에 공개적으로 접근 가능한 파일 URL을 전달하세요. 지원 형식과 제한은 각 Playground 입력 옆에 표시됩니다.
Playground의 지원되는 이미지 필드에서 업로드 또는 교체 컨트롤을 사용하세요. 비디오 URL 필드는 호스팅된 driving video를 받으며, 비디오 업로드 지원을 의미하지는 않습니다.
audiostringURL of an audio file for the avatar to lip-sync to. When provided, overrides prompt and voice.
imagestring필수URL of the image to animate. The image should contain a clear face.
voicestringThe voice ID to use for the avatar.
기본값: "Melissa"
promptstringThe text the avatar will speak
resolutionstringVideo resolution preset.
기본값: "720p"
가능한 값: "360p", "480p", "540p", "720p", "1080p"
aspect_ratiostringOutput aspect ratio. Omit to keep the source aspect ratio (falls back to 16:9 when it cannot be read).
가능한 값: "16:9", "9:16", "4:5", "5:4", "1:1"
talking_stylestringTalking style: 'stable' for minimal movement, 'expressive' for more animation.
기본값: "stable"
가능한 값: "stable", "expressive"
{
"model": "heygen/heygen-avatar4/image-to-video",
"image": "https://v3b.fal.media/files/b/0a90062c/A7EIviZqNxZ2HAs0yHeZ6_77a05b99-8588-4ffc-90aa-be7f9d34e9d3.png",
"voice": "Melissa",
"prompt": "Hey friends! Welcome to the GPU force podcast and today we are going to discuss about the rising GPU cost!",
"resolution": "720p",
"talking_style": "stable"
}완료된 실행의 결과는 출력에 표시됩니다. 아래 내용은 새 생성 결과가 아니라 모델에 저장된 예시입니다.
[
{
"poster": "https://static.sandbase.ai/examples/posters/a1f21fe6264568c9ddae.jpg",
"source": "heygen schema mirror",
"source_url": "https://heygen.example/",
"url": "https://static.sandbase.ai/examples/58f680f7-93d6-4f27-9255-0043d7b5c44c/output/3fac915a-6088-4da9-9af5-2ba18962809a.mp4"
}
]