Skip to content

Commit 7584c1d

Browse files
committed
fix(image-generation): update model name
1 parent 1eb0765 commit 7584c1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

genai/image_generation/imggen_mmflash_edit_img_with_txt_img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def generate_content() -> str:
2626
image = Image.open("example-image.png")
2727

2828
response = client.models.generate_content(
29-
model="gemini-2.0-flash-preview-image-generation",
29+
model="gemini-2.0-flash-exp",
3030
contents=[image, "Edit this image to make it look like a cartoon."],
3131
config=GenerateContentConfig(response_modalities=["Text", "Image"]),
3232
)

genai/image_generation/imggen_mmflash_txt_and_img_with_txt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def generate_content() -> int:
2323
client = genai.Client()
2424

2525
response = client.models.generate_content(
26-
model="gemini-2.0-flash-preview-image-generation",
26+
model="gemini-2.0-flash-exp",
2727
contents=(
2828
"Generate an illustrated recipe for a paella."
2929
"Create images to go alongside the text as you generate the recipe"

genai/image_generation/imggen_mmflash_with_txt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def generate_content() -> str:
2323
client = genai.Client()
2424

2525
response = client.models.generate_content(
26-
model="gemini-2.0-flash-preview-image-generation",
26+
model="gemini-2.0-flash-exp",
2727
contents=(
2828
"Generate an image of the Eiffel tower with fireworks in the background."
2929
),

0 commit comments

Comments
 (0)