mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 12:23:03 -06:00
Imagen 3 #28
Labels
No labels
advanced
advanced
bug
dependencies
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
model
pull-request
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/Gemini-API#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@Ryy00 commented on GitHub (Dec 13, 2024):
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

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())