사진 한 장과 오디오로 토킹헤드 영상을 만듭니다. 자연스러운 머리 움직임과 눈 깜빡임으로 얼굴을 애니메이션하며, GFPGAN 얼굴 향상 옵션을 제공합니다.
콘솔의 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": "cjwbw/sadtalker",
"input": {
"source_image": "https://example.com/portrait.jpg",
"driven_audio": "https://example.com/narration.wav",
"preprocess": "full",
"still_mode": true,
"use_enhancer": true
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
source_image | string | Yes | - | 소스 얼굴 이미지 (png/jpg 또는 영상) |
driven_audio | string | Yes | - | 구동 오디오 (.wav 또는 .mp4) |
use_enhancer | boolean | No | false | GFPGAN 얼굴 향상 사용 |
pose_style | integer | No | 0 | 포즈 스타일 |
expression_scale | number | No | 1 | 클수록 표정 움직임이 강해짐 |
use_eyeblink | boolean | No | true | 자연스러운 눈 깜빡임 추가 |
preprocess | string | No | crop | 이미지 전처리 방식 (crop/resize/full/extcrop/extfull) cropresizefullextcropextfull |
size_of_image | integer | No | 256 | 얼굴 모델 해상도 256512 |
facerender | string | No | facevid2vid | 얼굴 렌더링 방식 선택 facevid2vidpirender |
still_mode | boolean | No | true | 머리 움직임 최소화 (preprocess 'full'과 함께 사용) |
이 모델의 source_imagedriven_audio 파라미터에 파일을 전달하는 방법은 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=cjwbw/sadtalker" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:source_image=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "cjwbw/sadtalker",
"input": {
"prompt": "your prompt here",
"source_image": "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": "cjwbw/sadtalker",
"input": {
"source_image": "https://example.com/portrait.jpg",
"driven_audio": "https://example.com/narration.wav",
"preprocess": "full",
"still_mode": true,
"use_enhancer": true
}
}'