Gemini 2.0 Flash Native Image Gen

function

Gemini 2.0 Flash Experimental with native image generation capabilities.

jscheah
@jscheah
·
2 years ago
982
0
2.5K
Updated 2 years ago
Created Mar 14, 2025
gemini_2_0_flash_native_image_gen.py
Python · 395 lines
"""
title: Gemini 2.0 Flash Native Image Gen
author: jscheah
author_url: https://github.com/cheahjs
version: 0.3.0
license: MIT
"""

# 0.3.0 Changelog:
# - Images are now uploaded to the server and the URL used in the response, this reduces the size of the message
# 0.2.0 Changelog:
# - Remap generated images back into images so that conversations work

Gemini 2.0 Flash Experimental with native image generation capabilities.


0