오래된 사진과 AI 생성 얼굴을 위한 강력한 얼굴 복원 모델입니다 (5,400만+ 실행). 복원 품질과 원본 얼굴 충실도의 균형을 조절하는 fidelity 다이얼이 특징이며, Real-ESRGAN 배경 향상을 내장하고 있습니다.
콘솔의 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": "sczhou/codeformer",
"input": {
"image": "https://example.com/degraded-photo.jpg",
"codeformer_fidelity": 0.7,
"upscale": 2,
"background_enhance": true,
"face_upsample": true
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
image | string | Yes | - | 복원할 얼굴이 있는 입력 이미지 |
codeformer_fidelity | number | No | 0.5 | 품질(낮음)과 원본 얼굴 충실도(높음)의 균형, 0-1 |
background_enhance | boolean | No | true | Real-ESRGAN으로 배경도 함께 향상 |
face_upsample | boolean | No | true | 복원된 얼굴을 고해상도로 업샘플 |
upscale | integer | No | 2 | 이미지의 최종 확대 배율 |
이 모델의 image 파라미터에 파일을 전달하는 방법은 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=sczhou/codeformer" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "sczhou/codeformer",
"input": {
"prompt": "your prompt here",
"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": "sczhou/codeformer",
"input": {
"image": "https://example.com/degraded-photo.jpg",
"codeformer_fidelity": 0.7,
"upscale": 2,
"background_enhance": true,
"face_upsample": true
}
}'