고품질 편집 기능과 최대 8개의 참조 이미지를 지원하는 프로페셔널 FLUX 2 모델입니다. 품질, 속도, 크리에이티브 제어의 뛰어난 균형을 제공합니다.
콘솔의 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": "black-forest-labs/flux-2-pro",
"input": {
"prompt": "Luxury perfume bottle on polished marble surface, soft diffused lighting, editorial advertisement quality, shallow depth of field, 8k ultra detailed",
"image_size": "square_hd",
"guidance_scale": 3.5
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 생성할 이미지에 대한 텍스트 설명 |
input_images | array | No | [] | 이미지-이미지 생성을 위한 입력 이미지 목록. 최대 8장. jpeg, png, gif, webp 형식이어야 함. |
aspect_ratio | string | No | 1:1 | 생성 이미지의 비율. 첫 번째 입력 이미지의 비율을 따르려면 'match_input_image'를 사용하세요. match_input_imagecustom1:116:93:22:34:55:49:163:44:3 |
resolution | string | No | 1 MP | 메가픽셀 단위 해상도. 최대 4 MP까지 가능하지만 2 MP 이하를 권장합니다. 최대 이미지 크기는 2048x2048이며, 비율이 1:1이 아니면 고해상도 이미지가 이 해상도를 정확히 따르지 않을 수 있습니다.
aspect_ratio가 'custom'일 때는 resolution이 사용되지 않습니다. aspect_ratio가 'match_input_image'일 때는 'match_input_image'를 사용해 입력 이미지의 해상도를 따르세요 (0.5-4 MP로 제한됨). match_input_image0.5 MP1 MP2 MP4 MP |
width | integer | No | - | 생성 이미지의 너비. aspect_ratio=custom일 때만 사용됨. 16의 배수여야 하며(아니면 가장 가까운 16의 배수로 반올림됨). |
height | integer | No | - | 생성 이미지의 높이. aspect_ratio=custom일 때만 사용됨. 16의 배수여야 하며(아니면 가장 가까운 16의 배수로 반올림됨). |
safety_tolerance | integer | No | 2 | 콘텐츠 안전 수준 (1-6) |
seed | integer | No | - | 재현성을 위한 랜덤 시드 |
output_format | string | No | webp | 출력 이미지 포맷. webpjpgpng |
output_quality | integer | No | 80 | 출력 이미지 저장 품질 (0-100). 100이 최고 품질, 0이 최저 품질. png 출력에는 해당 없음 |
이 모델의 input_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=black-forest-labs/flux-2-pro" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:input_images=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "black-forest-labs/flux-2-pro",
"input": {
"prompt": "your prompt here",
"input_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로도 제공 |
하이엔드 제품 사진 생성
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "black-forest-labs/flux-2-pro",
"input": {
"prompt": "Luxury perfume bottle on polished marble surface, soft diffused lighting, editorial advertisement quality, shallow depth of field, 8k ultra detailed",
"image_size": "square_hd",
"guidance_scale": 3.5
}
}'