나노 바나나
텍스트를 이미지로, 이미지를 이미지로 빠르게 생성
기능
- 텍스트-이미지 생성
- 이미지-투-이미지 변환
- 다중 화면비
- 빠른 생성 (~5초)
요금제
4 (~$0.04)Per image
엔드포인트
POST
/api/v1/images/generate매개변수
| Parameter | 타입 | 필수 | 설명 |
|---|---|---|---|
| model | string | 필수 | Must be "nano-banana" |
| prompt | string | 필수 | Text description of the image to generate |
| 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",
"prompt": "A futuristic city at night with neon lights",
"aspect_ratio": "16:9"
}응답 예시
{
"success": true,
"data": {
"task_id": "task_abc123",
"credits_used": 4,
"remaining_credits": 496,
"model": "nano-banana"
}
}코드 예제
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",
"prompt": "A futuristic city at night with neon lights",
"aspect_ratio": "16:9"
}'