Imagen 3 #28

Closed
opened 2026-02-13 17:27:41 -06:00 by mirrors · 2 comments
Owner

Originally created by @Ryy00 on GitHub (Dec 10, 2024).

Hi bro do you have imagen 3 code on gemini? not just image urls some other people have imagen 3 on their gemini just like on web

Originally created by @Ryy00 on GitHub (Dec 10, 2024). Hi bro do you have imagen 3 code on gemini? not just image urls some other people have imagen 3 on their gemini just like on web
Author
Owner

@HanaokaYuzu commented on GitHub (Dec 10, 2024):

No. But you can still generate images with text prompt, example provided in readme https://github.com/HanaokaYuzu/Gemini-API?tab=readme-ov-file#generate-images-with-imagefx

@HanaokaYuzu commented on GitHub (Dec 10, 2024): No. But you can still generate images with text prompt, example provided in readme https://github.com/HanaokaYuzu/Gemini-API?tab=readme-ov-file#generate-images-with-imagefx
Author
Owner

@Ryy00 commented on GitHub (Dec 13, 2024):

No. But you can still generate images with text prompt, example provided in readme https://github.com/HanaokaYuzu/Gemini-API?tab=readme-ov-file#generate-images-with-imagefx

I already have imagen3 now thanks to your local save file i convert it into base64 and send it as an response and now i have it
IMG_0859

thanks to this code of urs

async def main():
response = await client.generate_content("Generate some pictures of cats")
for i, image in enumerate(response.images):
await image.save(path="temp/", filename=f"cat_{i}.png", verbose=True)

asyncio.run(main())

@Ryy00 commented on GitHub (Dec 13, 2024): > No. But you can still generate images with text prompt, example provided in readme https://github.com/HanaokaYuzu/Gemini-API?tab=readme-ov-file#generate-images-with-imagefx I already have imagen3 now thanks to your local save file i convert it into base64 and send it as an response and now i have it ![IMG_0859](https://github.com/user-attachments/assets/a6440efc-6665-4a5e-874c-57e848e0d992) thanks to this code of urs async def main(): response = await client.generate_content("Generate some pictures of cats") for i, image in enumerate(response.images): await image.save(path="temp/", filename=f"cat_{i}.png", verbose=True) asyncio.run(main())
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mirrors/Gemini-API#28
No description provided.