나노 바나나 프로
최대 4K 해상도까지 지원하는 고품질 이미지 생성
기능
- 텍스트-이미지 생성
- 이미지-투-이미지 변환
- 다중 해상도 (1K/2K/4K)
- 더 높은 품질의 출력
요금제
| Resolution | Credits |
|---|---|
| 1K | 6 (~$0.07) |
| 2K | 9 (~$0.10) |
| 4K | 15 (~$0.17) |
엔드포인트
POST
/api/v1/images/generate매개변수
| Parameter | 타입 | 필수 | 설명 |
|---|---|---|---|
| model | string | 필수 | Must be "nano-banana-pro" |
| prompt | string | 필수 | Text description of the image to generate |
| resolution | string | 선택 사항 | "1K", "2K", or "4K" |
| negative_prompt | string | 선택 사항 | What to avoid in the image |
| aspect_ratio | string | 선택 사항 | "1:1", "16:9", "9:16", "4:3", "3:4" |
| input_image | string | 선택 사항 | URL or base64 for image-to-image |
| num_images | number | 선택 사항 | Must be 1 |
요청 예시
{
"model": "nano-banana-pro",
"resolution": "2K",
"prompt": "A majestic dragon flying over a medieval castle",
"aspect_ratio": "16:9"
}응답 예시
{
"success": true,
"data": {
"task_id": "task_xyz789",
"credits_used": 9,
"remaining_credits": 491,
"model": "nano-banana-pro"
}
}코드 예제
curl -X POST https://gateway.nanobananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"resolution": "2K",
"prompt": "A majestic dragon flying over a medieval castle",
"aspect_ratio": "16:9"
}'