edit : 이미지생성 model 변경, api 키 변경

This commit is contained in:
2025-11-19 16:29:08 +09:00
parent 8c2e146136
commit 12b12a95f5

View File

@@ -14,11 +14,11 @@ def gemini_image(prompt, folder=None):
from custom_logger.main_log import main_logger as LOG from custom_logger.main_log import main_logger as LOG
image_path = '' image_path = ''
client = genai.Client(api_key="AIzaSyB7tu67y9gOkJkpQtvI5OAYSzUzwv9qwnE") client = genai.Client(api_key="AIzaSyCSw4pcPDYdAnjzBB7J9ZKXtRJJvunjWtA") # a2tec key
for i in range(3): for i in range(3):
response = client.models.generate_content( response = client.models.generate_content(
model="gemini-2.0-flash-preview-image-generation", model="gemini-2.5-flash-image",
contents=prompt, contents=prompt,
config=types.GenerateContentConfig( config=types.GenerateContentConfig(
response_modalities=['TEXT', 'IMAGE'] response_modalities=['TEXT', 'IMAGE']