Google AI (Gemini API)이미지 생성AI generation

Google: Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite)

google-ai.image-gen.gemini-3-1-flash-lite-image

Generate or edit one 1K image with Gemini 3.1 Flash Lite Image on Google's own API, the cheapest Gemini image model; the image returns inline as base64.

Price
$0.04/success제공업체 원가
Success rate
96.6%Last 30 days · 356 calls
Latency p50
3 sp95 7.4 s
Last verified
2026. 9. 30.Verified working
POSThttps://toolswitch.dev/v1/tools/google-ai.image-gen.gemini-3-1-flash-lite-image?fields=candidates%28content%28parts%28text%2CinlineData%29%29%2CfinishReason%29%2CusageMetadata%2CmodelVersion%2CresponseId%2CpromptFeedbackPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

파라미터

파라미터유형필수설명예시
경로 파라미터
model문자열필수gemini-3.1-flash-lite-image is the stable model; the -preview alias is the same model at the same price.gemini-3.1-flash-lite-image
쿼리 파라미터
fields문자열선택Google's partial-response mask; the example drops the multi-megabyte thoughtSignature. Keep usageMetadata in any mask you send.candidates(content(parts(text,inlineData)),finishReason),usageMetadata,modelVersion,responseId,promptFeedback
  • 경로 파라미터
  • model문자열필수

    gemini-3.1-flash-lite-image is the stable model; the -preview alias is the same model at the same price.

    예시: gemini-3.1-flash-lite-image

  • 쿼리 파라미터
  • fields문자열선택

    Google's partial-response mask; the example drops the multi-megabyte thoughtSignature. Keep usageMetadata in any mask you send.

    예시: candidates(content(parts(text,inlineData)),finishReason),usageMetadata,modelVersion,responseId,promptFeedback

코드 예제

$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.image-gen.gemini-3-1-flash-lite-image?fields=candidates%28content%28parts%28text%2CinlineData%29%29%2CfinishReason%29%2CusageMetadata%2CmodelVersion%2CresponseId%2CpromptFeedback' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"contents":[{"parts":[{"text":"A clean editorial illustration of a paper airplane."}]}],"generationConfig":{"imageConfig":{"imageSize":"1K","aspectRatio":"1:1"},"responseModalities":["IMAGE"]}}'

게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.04/success이며 서비스 수수료가 포함되어 있습니다.