4스텝으로 증류된 FLUX.2 [klein] 9B 모델입니다. Klein 4B보다 용량이 큰 고속 모델로, 텍스트-이미지 생성과 최대 5장의 참조 이미지를 활용한 편집을 지원하며 출력 메가픽셀을 선택할 수 있습니다.
콘솔의 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-klein-9b",
"input": {
"images": [],
"prompt": "A surreal cosmic garden scene with bioluminescent flora against a deep navy blue to black background, glowing particles floating like plankton, cinematic lighting. With large white text in the center \"FLUX.2 [klein] 9B\"",
"go_fast": true,
"megapixels": "1",
"aspect_ratio": "1:1",
"output_format": "jpg",
"output_quality": 95
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 이미지 생성을 위한 텍스트 프롬프트 |
images | array | No | [] | 이미지-이미지 생성을 위한 입력 이미지 (최대 5장, jpeg·png·gif·webp) |
aspect_ratio | string | No | 1:1 | 생성 이미지의 종횡비. match_input_image로 첫 입력 이미지의 비율을 따를 수 있음 1:116:99:163:22:34:33:45:44:521:99:21match_input_image |
megapixels | string | No | 1 | 출력 이미지의 메가픽셀 해상도. 값이 클수록 더 많은 크레딧이 소요됨 0.250.5124 |
seed | integer | No | - | 재현 가능한 생성을 위한 랜덤 시드 |
go_fast | boolean | No | true | 추가 최적화로 더 빠른 추론 실행 |
output_format | string | No | jpg | 출력 이미지 형식 webpjpgpng |
output_quality | integer | No | 95 | 출력 이미지 저장 품질 (0-100). 100이 최고 품질, 0이 최저 품질. png 출력에는 해당 없음. |
disable_safety_checker | boolean | No | false | 생성된 이미지의 안전성 검사기 비활성화. |
이 모델의 images 파라미터에 파일을 전달하는 방법은 3가지입니다.
공개 접근 가능한 URL을 직접 전달합니다. Storage API(POST /v1/files/upload-url)로 업로드하면 파일이 S3로 직접 올라가고(파일당 50MB), 반환된 file_url을 그대로 쓰면 됩니다.
{
"model": "black-forest-labs/flux-2-klein-9b",
"input": {
"prompt": "your prompt here",
"images": ["https://example.com/image.jpg"]
}
}POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 없는 대신, 파일이 API 서버를 거치므로 요청 전체 10MB 제한이 적용됩니다.
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-klein-9b" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:images=@your_file.png"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로도 제공 |
이미지 내 텍스트가 포함된 기본 1메가픽셀 텍스트-이미지 생성 — 35 크레딧

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-klein-9b",
"input": {
"images": [],
"prompt": "A surreal cosmic garden scene with bioluminescent flora against a deep navy blue to black background, glowing particles floating like plankton, cinematic lighting. With large white text in the center \"FLUX.2 [klein] 9B\"",
"go_fast": true,
"megapixels": "1",
"aspect_ratio": "1:1",
"output_format": "jpg",
"output_quality": 95
}
}'빠른 프롬프트 반복을 위한 0.25메가픽셀 드래프트 — 9 크레딧
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-klein-9b",
"input": {
"prompt": "A neon-lit cyberpunk alley at night, concept sketch",
"megapixels": "0.25"
}
}'