Gemini 2.0 Flash 이미지 생성 기능 프리뷰 공개
주요 개선 사항
활용 가능한 이미지 생성 기능 예시
API 사용 예시 (Python)
from google import genai
from google.genai import types
client = genai.Client(api_key="GEMINI_API_KEY")
response = client.models.generate_content(
model="gemini-2.0-flash-preview-image-generation",
contents=("Show me how to bake a macaron with images."),
config=types.GenerateContentConfig(
response_modalities=["TEXT", "IMAGE"]
),
)
향후 계획