Skip to content

Examples of usage generateImages editImage? #1839

Description

@dantaeusb

Since Imagen endpoints are gone from "Gemini Enterprise Agent Platform", there's literally not a single model that can work with these methods.

Documentation still says:

const response = await client.models.generateImages({
 model: 'imagen-4.0-generate-001',
 prompt: 'Robot holding a red skateboard',
 config: {
   numberOfImages: 1,
   includeRaiReason: true,
 },
});

but Vertex AI (now Gemini Enterprise Agent Platform) has no such models, they're gone: https://docs.cloud.google.com/gemini-enterprise-agent-platform/resources/locations.
The only model that have image generation capabilities are vllms that are available through generate/streamContent, not generateImages / editImage. Is there any use for those methods? Why are they not deprecated?

I am genuinely puzzled because some partner providers give access to Gemini family models (Nano Banana), which do seem to work with mask inpaining over OpenAI compatible APIs, but I could not find a way to make it work directly. Is there something I am missing?

Metadata

Metadata

Assignees

Labels

api: vertex-aiIssues related to the Vertex AI API.priority: p3Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions