Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Gemini image generation #5181

Open
egoist opened this issue Mar 13, 2025 · 4 comments
Open

Support Gemini image generation #5181

egoist opened this issue Mar 13, 2025 · 4 comments
Labels

Comments

@egoist
Copy link
Contributor

egoist commented Mar 13, 2025

Feature Description

https://ai.google.dev/gemini-api/docs/image-generation

Gemini 2.0 Flash Exp now supports image output

Use Cases

No response

Additional context

No response

@egoist egoist added the enhancement New feature or request label Mar 13, 2025
@nikshepsvn
Copy link

yes please! trying to avoid swapping integrating the google sdk

@cpakken
Copy link

cpakken commented Mar 14, 2025

Api can be like the "user" messages

{role: "assistant", content: {type: "image", image: ...}

@hamzaydia
Copy link

I really need to use this model in Next.js. Is there any hack or workaround to run it for now before it's officially added to the SDK?

@cpakken
Copy link

cpakken commented Mar 15, 2025

@hamzaydia You can clone and try modifying the gemini model provider on your own

https://sdk.vercel.ai/providers/community-providers/custom-providers#implementing-the-language-model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants