google/gemini-3.1-flash-image-preview
Google Nano Banana 2, backed by Gemini 3.1 Flash Image, for higher-quality image generation and editing. It accepts text, image, and video input, and returns image output through the Vertex-compatible OneHop route.
์ถ์ฒ: gemini_image_x0.5 ยท 2026-06-06 ํ์ธ
API ํธ์ถ ์ ์ด๋ค ID๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
google/gemini-3.1-flash-image-previewONEHOP_KEY ์๋ฆฌ ํ์์๋ฅผ ๊ทํ์ API key๋ก ๊ต์ฒดํ์ธ์. ์์ฑํ๊ธฐ โ
from google import genai
# OneHop ๅ
ผๅฎน Vertex AI Gemini generateContent ๆฅๅฃ
client = genai.Client(
api_key="<ONEHOP_KEY>",
http_options={"base_url": "https://api.onehop.ai/vertex-ai"},
)
response = client.models.generate_content(
model="google/gemini-3.1-flash-image-preview",
contents="What is the meaning of life?",
)
print(response.text)์ต๊ทผ 30์ผ๊ฐ ์์ฒญ 179๊ฑด