Gemini 3.1 Flash Image 기반의 가볍고 빠른 Nano Banana 2 변형 모델로, 더 빠르고 저렴한 생성에 최적화되어 있습니다. 대화형 편집, 멀티 이미지 퓨전, 캐릭터 일관성 등 풀 버전 Nano Banana 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": "google/nano-banana-2-lite",
"input": {
"prompt": "Change the background to a warm sunset gradient and add soft rim lighting on the product",
"image_input": [
"https://example.com/product-photo.jpg"
],
"aspect_ratio": "1:1"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 생성하고자 하는 이미지에 대한 텍스트 설명입니다. |
image_input | array | No | [] | 변형하거나 참조할 입력 이미지입니다 (최대 14장 지원). |
aspect_ratio | string | No | match_input_image | 생성된 이미지의 종횡비입니다. match_input_image1:11:41:82:33:23:44:14:34:55:48:19:1616:921:9 |
output_format | string | No | jpg | 출력 이미지 형식입니다. jpgpng |
이 모델의 image_input 파라미터에 파일을 전달하는 방법은 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=google/nano-banana-2-lite" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image_input=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "google/nano-banana-2-lite",
"input": {
"prompt": "your prompt here",
"image_input": ["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": "google/nano-banana-2-lite",
"input": {
"prompt": "Change the background to a warm sunset gradient and add soft rim lighting on the product",
"image_input": [
"https://example.com/product-photo.jpg"
],
"aspect_ratio": "1:1"
}
}'두 장의 참조 사진을 하나의 장면으로 합성
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "google/nano-banana-2-lite",
"input": {
"prompt": "Place the person from the first photo into the café scene from the second photo, matching the lighting and perspective",
"image_input": [
"https://example.com/person.jpg",
"https://example.com/cafe.jpg"
],
"aspect_ratio": "3:4",
"output_format": "png"
}
}'