google/gemini-2.5-flash-image
Google Nano Banana, backed by Gemini 2.5 Flash Image, for image generation and image editing through the Vertex-compatible OneHop route. It supports text and image input and can return image output with optional text.
์ถ์ฒ: gemini_image_x0.5 ยท 2026-06-06 ํ์ธ
API ํธ์ถ ์ ์ด๋ค ID๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
google/gemini-2.5-flash-imageONEHOP_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-2.5-flash-image",
contents="What is the meaning of life?",
)
print(response.text)์ต๊ทผ 30์ผ๊ฐ ์์ฒญ 14๊ฑด