AM

나노 바나나 프로

최대 4K 해상도까지 지원하는 고품질 이미지 생성

기능
  • 텍스트-이미지 생성
  • 이미지-투-이미지 변환
  • 다중 해상도 (1K/2K/4K)
  • 더 높은 품질의 출력
요금제
ResolutionCredits
1K8 (~$0.09)
2K12 (~$0.13)
4K16 (~$0.18)
엔드포인트
POST/api/v1/images/generate
매개변수
Parameter타입필수설명
modelstring필수Must be "nano-banana-pro"
typestring선택 사항"text-to-image" or "image-to-image" (default: text-to-image)
promptstring필수Text description of the image to generate
resolutionstring선택 사항"1K", "2K", or "4K"
aspect_ratiostring선택 사항"1:1", "16:9", "9:16", "4:3", "3:4"
image_urlsstring[]선택 사항Input image URLs or base64 for image-to-image
input_imagestring선택 사항Deprecated. Alias for image_urls[0]
num_imagesnumber선택 사항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": 12,
    "remaining_credits": 488,
    "model": "nano-banana-pro"
  }
}
코드 예제
curl -X POST https://gateway.apimall.ai/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"
  }'
API Documentation - Nano Banana Pro | API Mall