Krea 2 Large의 저비용 버전으로, 동일한 포토리얼리즘 스타일에 집중하면서 일부 정밀도를 더 빠르고 저렴한 생성과 맞바꾼 모델입니다.
콘솔의 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": "krea/krea-2-medium",
"input": {
"prompt": "A ceramic coffee mug on a wooden table near a window, soft morning light, shallow depth of field",
"aspect_ratio": "4:3",
"creativity": "medium"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 생성할 이미지를 설명하는 텍스트 프롬프트입니다. |
aspect_ratio | string | No | 1:1 | 생성된 이미지의 종횡비입니다. 1:14:33:216:92.35:14:52:39:16 |
creativity | string | No | medium | 모델이 프롬프트를 얼마나 확장 해석할지 결정합니다. 'raw'는 설명한 내용만 그대로 렌더링하고, 'low'는 명백한 빈틈만 채우며, 'medium'은 합리적인 해석을 더하고, 'high'는 상당한 창의적 자유를 허용합니다. rawlowmediumhigh |
style_reference_images | array | No | [] | 출력물에 스타일을 전달할 참조 이미지를 최대 10장까지 업로드할 수 있습니다. 이미지에서 스타일을 추출해 적용하며, 적용 강도는 `style_reference_strength`로 조절합니다. |
style_reference_strength | number | No | 0.5 | 참조 이미지의 스타일을 얼마나 강하게 적용할지 결정합니다. 0이면 영향이 없고 1이면 스타일이 지배적으로 반영됩니다. 모든 스타일 참조 이미지에 동일하게 적용됩니다. |
moodboard_id | string | No | - | 선택적인 Krea 무드보드 UUID입니다. 무드보드는 먼저 Krea 웹앱(https://www.krea.ai/moodboards)에서 생성해야 하며, 공유 URL의 `?share=<uuid>` 부분에서 UUID를 확인할 수 있습니다. |
moodboard_strength | number | No | 0.35 | 무드보드가 결과물에 미치는 영향의 강도입니다. |
seed | integer | No | - | 랜덤 시드입니다. 동일한 결과를 재현하려면 값을 지정하세요. |
이 모델의 style_reference_images 파라미터에 파일을 전달하는 방법은 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=krea/krea-2-medium" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:style_reference_images=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "krea/krea-2-medium",
"input": {
"prompt": "your prompt here",
"style_reference_images": ["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로도 제공 |
기본 creativity 값과 4:3 종횡비로 만든 빠른 포토리얼리즘 초안입니다.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "krea/krea-2-medium",
"input": {
"prompt": "A ceramic coffee mug on a wooden table near a window, soft morning light, shallow depth of field",
"aspect_ratio": "4:3",
"creativity": "medium"
}
}'스타일 참조 이미지의 느낌을 중간 강도로 새로운 장면에 적용합니다.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "krea/krea-2-medium",
"input": {
"prompt": "A city street at dusk with neon signs reflecting on wet pavement",
"aspect_ratio": "16:9",
"style_reference_images": [
"https://example.com/reference-style.jpg"
],
"style_reference_strength": 0.5
}
}'