Skip to content

[Vertex AI] Add VertexAI.Preview nested type for preview APIs#14334

Closed
andrewheard wants to merge 14 commits intovertex-imagenfrom
ah/vertex-imagen-preview
Closed

[Vertex AI] Add VertexAI.Preview nested type for preview APIs#14334
andrewheard wants to merge 14 commits intovertex-imagenfrom
ah/vertex-imagen-preview

Conversation

@andrewheard
Copy link
Contributor

@andrewheard andrewheard commented Jan 10, 2025

Added a nested struct Preview in VertexAI for encapsulating Public Preview API surfaces. This clarifies that ImagenModel is in Public Preview.

Before:

let model = VertexAI.vertexAI().imagenModel("imagen-3.0-generate-001")

After:

let model = VertexAI.vertexAI().preview().imagenModel("imagen-3.0-generate-001")

Note: This is the only way to obtain an instance of ImagenModel.

Commit 4ff1cdf (#14334) has the relevant example code since this PR is out of date.

#14221
#no-changelog

@andrewheard andrewheard closed this May 7, 2025
@firebase firebase locked and limited conversation to collaborators Jul 19, 2025
@paulb777 paulb777 deleted the ah/vertex-imagen-preview branch February 18, 2026 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants