Gemini 3.1 Flash Image 기반의 Google 고속 이미지 생성 모델입니다. Nano Banana Pro의 고효율 버전으로, Pro급 시각 품질을 Flash 속도와 가격으로 제공합니다. 대화형 편집, 다중 이미지 융합, 캐릭터 일관성, 정확한 텍스트 렌더링, Google 검색 연동을 지원합니다. 최대 14장의 참조 이미지와 4K 해상도를 지원합니다.
이 모델의 사용법을 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",
"input": {
"prompt": "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, carefully inspecting a freshly glazed tea bowl in his rustic sun-drenched workshop.",
"aspect_ratio": "3:4",
"resolution": "2K",
"output_format": "jpg"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 생성할 이미지에 대한 텍스트 설명 |
image_input | array | No | - | 변환하거나 참조로 사용할 입력 이미지 (최대 14장) |
aspect_ratio | string | No | 1:1 | 생성 이미지의 비율 match_input_image1:11:41:82:33:23:44:14:34:55:48:19:1616:921:9 |
resolution | string | No | 1K | 생성 이미지의 해상도 1K2K4K |
google_search | boolean | No | false | Google 웹 검색을 사용한 실시간 정보 기반 생성 |
image_search | boolean | No | false | Google 이미지 검색을 사용한 시각적 참조 생성 |
output_format | string | No | jpg | 출력 이미지 형식 pngjpg |
이 모델의 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" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image_input=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "google/nano-banana-2",
"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",
"input": {
"prompt": "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, carefully inspecting a freshly glazed tea bowl in his rustic sun-drenched workshop.",
"aspect_ratio": "3:4",
"resolution": "2K",
"output_format": "jpg"
}
}'참조 이미지를 활용해 스튜디오 지브리 애니메이션 스타일로 변환
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",
"input": {
"prompt": "Transform this photograph into a Studio Ghibli anime style illustration. Keep the same composition but render everything with soft cel-shading, warm colors, and the dreamy atmosphere of a Miyazaki film.",
"aspect_ratio": "match_input_image"
}
}'