Files
CosmicLaca-ComfyUI_Primere_…/terminal_helpers/snippet.py
T

15 lines
444 B
Python

response = client.models.generate_content(
model="gemini-3.1-flash-image-preview",
contents=prompt,
config=types.GenerateContentConfig(
response_modalities=['IMAGE'],
image_config=types.ImageConfig(
aspect_ratio=aspect_ratio,
image_size=resolution
),
thinking_config=types.ThinkingConfig(
thinking_level="High",
include_thoughts=True
),
)
)